How to setup VxVM without encapsulating rootdisk

originally by Kristian Ejvind and subsequently modified by Doug Hughes

[Caution: You shouldn't do this unless you know what you are doing. You will not get any support from Sun or Veritas if you do this and something goes wrong.]

And this from Veritas people:
Do not do this!
This is not a supported feature and I would highly advise than you not attempt this on a production system. Rootdg was designed for just that, to encapsulate root. If you really do not wish to encapsulate root then I would advise finding an unused disk - not your boot- disk and creating a rootdg disk group there. May I ask why do you not want to encapsulate root?

However, if you still insist. Here is the procedure:

  1. deport all disk groups from both systems
  2. install OS, making sure that you have a tiny partition (e.g. a couple of MB on c0t0d0s7) at the end of the disk.
  3. install SEVM /VxVM
  4. apply VM patches
  5. reboot
  6. create rootdg by
    #vxconfigd -m disable
    #vxdctl init
    #vxdg init rootdg
    #vxdctl add disk c0t0d0s7 type=simple
    #vxdisk -f init c0t0d0s7 type=simple
    #vxdg adddisk c0t0d0s7
    #vxdctl enable
    #rm /etc/vx/reconfig.d/state/install-db
  7. reboot
  8. Add mirror of rootdg on at least one other disk!
  9. import/setup other disk groups