Hi all,
i need to extend /var file system on my solaris 10 box
/var is part of rootdg
current size 2GB
Required size 6GB
layout mirror
veritas 4.1
solaris 5.10
pls let me know the steps and the procedure to follow.
regards
Ajay S
Hi all,
i need to extend /var file system on my solaris 10 box
/var is part of rootdg
current size 2GB
Required size 6GB
layout mirror
veritas 4.1
solaris 5.10
pls let me know the steps and the procedure to follow.
regards
Ajay S
Assuming a newdisk c0t1d0. Create the new 6GB filesystem and name it /var2 on c0t1d0s5
shutdown server
sync;sync;sync;init 0
boot cdrom -s
(cdrom single usermode )
# mount /dev/dsk/c0t0d0s0 /mnt <---- mount your OS disk
# mount /dev/dsk/c0t1d0s5 /a <---- mount /var2
cd /mnt/var
tar cvfp - * | (cd /a;tar xvfp -)
TERM=vt100;export TERM
EDITOR=vi;export EDITOR
cd /mnt
mv var var1
cd /mnt/etc
cp -p vfstab vfstab.`date +%d%m%y`
vi vfstab
'#' off the entry for var if any
add the entry (make sure there are 7 columns)
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /var ufs 1 no logging
save+quit vi
umount /mnt
umount /a
fsck /dev/dsk/c0t0d0s0
fsck /dev/dsk/c0t1d0s5
stop-a
boot
if server comes up with no problem, that's fine, if any problem, just boot cdrom and revert everything back(mv var1 to var) + cp vfstab.`date +%d%m%y` vfstab
Ater that create your metadevices and mirror for the new /var (from here on I assume you shud know what to do)
If you are new to Sun my advice is don't experiment or do any personal R&D learning/testing on your production server.
Thanx for ur reply Sparcguy,
but my problem is i don't have spare disk but two fc disks mirrored and some 10 gb free size to extend on the same.
whats the wat out.
Ajays