Veritas VxVM : Growing a Solaris root filesystem controlled by Veritas

Below is one of the procedure will help you to grow the root file system controlled by Veritas, but this procedure need system downtime

1. Remove the mirrored plexes from Veritas (vxplex -o rm dis )

  • use “vxprint -ht” to find the mirrored plexes (usually rootvol-02 & swapvol-02)

2. Unencapsulate the root disk (vxunroot)

  • vxunroot” can be found in /usr/lib/vxvm/bin

3. Reboot

  • vxunroot” should prompt you to reboot

4. Backup root filesystem to tape (The normal disk device is c0t0d0s0, check /etc/vfstab for the exact device )

    • # ufsdump 0f /dev/rmt/0 /dev/rdsk/
    • # init 0

5. Boot to single user mode from CD-ROM from “ok” prompt

    • Ok> boot cdrom -s

6. Resize root partition (format)

  • Be sure to select the correct disk device
  • After setting the root partition to the appropriate size, recreate the swap aprtition so that there aren’t any overlapping cylinders.

7. Put a new filesystem on root partition

    • newfs /dev/rdsk/

8. Mount root filesystem

    • mount /dev/dsk/ /mnt

9. Change directories to root filesystem

    • cd /mnt

10. Restore from tape

    • ufsrestore rf /dev/rmt/0

Restores usually run a little longer than the backup. If your backup took 30 minutes, your restore will take roughly 45 minutes. The system will not scroll anything on the screen during this time.

11. Install boot block

    • installboot /usr/platform/uname -i/lib/fs/ufs/bootblk /dev/rdsk/

The system will not boot from disk without this step

12. Comment out Veritas based filesystems in vfstab

    • # vi /mnt/etc/vfstab

13. Stop Veritas from starting at next boot by creating install-db file and reboot

    • touch /mnt/etc/vx/reconfig.d/state.d/install-db)
    • init 6


14. Clear out mirror partitions ( normally these will be partitions 3 & 4 on the mirror device )

    • # format

15. Run Veritas install scripts

    • vxinstall

16. Add mirror disk back into Veritas  using

    • vxdiskadm

17. Mirror root disk using

    • vxrootmir


I have started ( aka in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' You can connect me at -

1 Response

  1. September 18, 2015

    […] Read – Growing a Solaris root filesystem controlled by Veritas […]

What is in your mind, about this post ? Leave a Reply

  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us