What methods can be used to expand root partition in Solaris system?
Two methods are as follows:
(1) Re-install Solaris OS;
(2) If you want to expand root partition without re-installing OS, back up the important data carefully before the operation.
#ufsdump 0uf /dev/rdsk/c0t1d0s2 /dev/rdsk/c0t0d0s0 Backup the original partition to s2 of second HD
OK boot cdrom -s
Use the format command to increase the size of c0t0d0s0. It is recommended to backup all data in /export/home and /, and allocate some of the /export/home directory’s disk space to /. After the adjustment, you need to run newfs and import the data into /export/home!
#mount /dev/dsk/c0t0d0s0 /mnt
#ufsrestore rf /dev/rdsk/c0t1d0s2
#installboot bootblk /dev/rdsk/c0t0d0s0 * Install a boot block on the new disk.