Adding disks to a disk group

When a disk group is first created, it can contain only a single disk. You may need to add more disks to the disk group. Before adding disks, review the following:

Usage notes

  • When you place a disk under VxVM control, the disk is either encapsulated or initialized. Encapsulation preserves any existing data on the disk in volumes. Initialization destroys any existing data on the disk.

  • If you place the boot disk under VxVM control, you must encapsulate it. If you want to create an alternate boot disk, you can mirror the encapsulated boot disk.

  • Boot disk encapsulation requires a system reboot.

  • Disks cannot be added to deported disk groups.

  • Disks must be under VxVM control and in a disk group before they can be used to create volumes.

  • Disks must be online before they can be added to a disk group.

  • Disks that already belong to a disk group cannot be added to another disk group.

To add disks to a disk group

The following is an example of adding disks to a disk group using the vxdg command:

To add disks named PRODdg02, PRODdg03, and PRODdg04 to the disk group PRODdg:

# /opt/VRTS/bin/vxdg -g PRODdg adddisk PRODdg02=c1t2d0s2
# /opt/VRTS/bin/vxdg -g PRODdg adddisk PRODdg03=c1t3d0s2
# /opt/VRTS/bin/vxdg -g PRODdg adddisk PRODdg04=c1t4d0s2