Q: Is there any for me install VM and not have to run vxinstall, but use vxassist straight away to create rootdg etc.,? The reboots are ok, but I am writing scripts to set up the disks in the box and this is a new install.

A: contributed by Howard Lapin

This example uses c0t2d0 as the first disk to put into 'rootdg'.

  1. Start vxconfigd in disabled mode.
    # vxconfigd -d
  2. Create the /etc/volboot file.
    # vxdctl init
  3. Add license key(s), if needed.
    # vxserial -c
  4. Make a new rootdg group.
    # vxdg init rootdg
  5. Initialize a new disk.
    # /etc/vx/bin/vxdisksetup -i c0t2d0
  6. Add disk record.
    # vxdisk -f init c0t2d0s2
  7. Add disk name to rootdg disk group.
    # vxdg -g rootdg adddisk disk01=c0t2d0s2
  8. Enable transactions.
    # vxdctl enable
  9. Remove the install-db file, if present.
    # rm /etc/vx/reconfig.d/state.d/install-db
  10. To optionally add additional disks into the 'rootdg' diskgroup,
    run the following two commands for each disk:
    # /etc/vx/bin/vxdisksetup -i c#t#d#
    # vxdg -g rootdg adddisk disk##=c#t#d#s2