1. Find the disk in the old rootdg:
#grep -E'dm_name|device_tag' /etc/vxvmconf/rootdg.conf
device_tag=c7t6d0
dm_name=disk01
2. Find the size of the puboffset for the rootdisk:
#grep dev_offset /etc/vxvmconf/rootdg.conf
dev_offset=1152
3. Start the VERITAS Volume Manager (tm) I/O daemons vxiod and the Volume Manager configuration daemon vxconfigd (article 246361):
#vxiod set 10
#vxconfigd -k -r reset -m disable
#vxdctl init
4. Create an empty rootdg disk group:
#vxdg init rootdg
5. Re-initialize the old root disk to be used for the rootdg disk group:
#/etc/vx/bin/vxdiskunsetup -C c7t6d0
#/etc/vx/bin/vxdisksetup -i c7t6d0 puboffset=1152
6. Add the Volume Manager disk to the rootdg disk group:
#vxdg -g rootdg adddisk disk01=c7t6d0
7. Start the Volume Manager configuration daemon:
#vxdctl enable
8. Use the Volume Manager configuration file as input to vxprint to make a copy that vxmake can use:
#cat /etc/vxvmconf/rootdg.conf | vxprint -D - -mpvsh >/var/tmp/config.out
Note:you can also use vxprivutil to save the VM configuration:
#/etc/vx/diag.d/vxprivutil dumpconfig /dev/rdsk/c7t6d0 >/var/tmp/dumpconfig.out
#cat /var/tmp/dumpconfig.out | vxprint -D - -mpvsh >/var/tmp/config.out
9. Use the configuration information saved in config.out as input to vxmake :
#vxmake -g rootdg -d /var/tmp/config.out
10. Start the volume in the rootdg:
#vxvol -g rootdg init clean
#vxvol -g rootdg startall