I am working with sun solaris 9 and I want to install some packages but due to less disk space I am not able to install the packages.
I am giving the output of filesystem--
i have only useful files and config files only which I can't delete.
So is there any way bywhich I can Increase the size of root(/) without reinstall the OS??
@ admin@solaris:
the OP doesn't use metadevices... so your solution won't work.
@ OP
if you have a second (new) disk that you can attach to your system, you can use the "liveupgrade" option to grow your filesystem. look at docs.sun.com for "liveupgrade". also you can do a "ufsdump" of your filesystems to a new (bigger) disk... but as grippo already said, there isn't a growfs solution with your configuration.
I believe there is a growfs solution with the OP configuration assuming he is able to back-up slice 7 350 MB of data on a removable media (eg. a CD or a USB drive). The "no growfs on /" limitation can easily be overcome by booting on a Solaris installation media or Live CD.
s7 being more than likely contiguous to s0, both of these partitions can be resized to suit the needs and growfs used to enlarge the root filesystem.
Another option (although not a pleasant one):
dump the contents of /export/home onto a tape or CD or DVD
Record the results of
du -sh /opt
Record the results of
du -sh /var
Insert bootable Solaris CD
init 0
boot -s cdrom
format
Delete slice 7
Make 3 new slices - one for /opt, one for /var and one for /export/home (stick with slice 7 to avoid confusion)
mkdir /tmpopt /tmpvar
mount /dev/dsk/c0t0d0s0 /mnt
mount /dev/dsk/c0t0d0s(x) /tmpopt ###pick a number between 1 and 6 that is not being used and is not 2
mount /dev/dsk/c0t0d0s(y) /tmpvar ###pick a number between 1 and 6 that is not being used and is not 2 and not the number above
copy the contents of /mnt/opt into /tmpopt, copy the contents of /mnt/var into /tmpvar
**** Take care when copying the contents - there are several options that work well, and several that don't. Make sure that you are VERY aware of pathing when cloning these two directories. ****
modify /etc/vfstab to mount /dev/dsk/c0t0d0sx to /opt and /dev/dsk/c0t0d0sy to /var
Reboot
If the system behaves as expected, reboot from the Solaris CD into single user mode again. Mount /dev/dsk/c0t0t0s0 /mnt.
Delete the contents of /mnt/var and /mnt/opt