Popular Posts

Oct 8, 2016

resize root partition in solaris 10 - down time is required

resize root partition in solaris 10 - down time is required


     -  A 146 GB disk is completely assigned to c0d0s0 slice as root file system
     -  Need to split the slice to have another 20GB slice as c0d0s1 and mount it as /data

1. Add a temporary disk c1d0s0 and mount in /mnt

2. create ufs dump of root slice to a file in the temporary disk
ufsdump 0uf /mnt/rootbkp.ufs /dev/dsk/c0d0s0

3. shutdown the server and boot the server using cdrom or ISO for ldoms
boot cdrom1

4. format the disk and create 120GB space in c0d0s0 slice

5. format the disk and create a 20GB space in c0d0s1 slice

6. label the disk and quit

7. create new FS in c0d0s0 slice
newfs /dev/rdsk/c0d0s0

8. Create new fs in c0d0s1 slice
newfs /dev/rdsk/c0d0s1

9. Mount the c0d0s0 in /a
comment out "/" in /a/etc/vfstab
mount /dev/dsk/c0d0s0 /a

10. mount the temporary disk c1d0s0 in /mnt
mount /dev/dsk/c1d0s0 /mnt

11. restore the dump in root slice c0d0s0 from file
ufsrestore rf /mnt/rootbkp.ufs /a

12. install the boot block to make available the disk as boot disk
installboot /a/usr/platform/sun4v/lib/fs/ufs/bootblk /dev/rdsk/c0d0s0

13. edit and un comment the "/" in /a/etc/vfstab

14. add the below line in /a/etc/vfstab to mount the c0d0s1 slice as /data_stuff
/dev/dsk/c0d0s1    /dev/rdsk/c0d0s1    /data_stuff    ufs     2       yes     logging

15. boot the server in normal mode, server will boot in c0d0 disk,



~
how to resize FS in solaris 10
how to resize root file system in solaris 10
how to resize ufs FS online in solaris 10
how to resize root file system online in solaris 10
~

No comments:

Post a Comment

Popular Posts