Creating a disk group

You must associate a disk group with at least one disk. You can create a new disk group when you select Add or initialize one or more disks from the main menu of the vxdiskadm command to add disks to VxVM control. The disks to be added to a disk group must not belong to an existing disk group.

You can also use the following vxdiskadd command to create a new disk group:

# vxdiskadd hdisk11

where hdisk11 is the device name of a disk that is not currently assigned to a disk group. The command dialog is similar to that described for the vxdiskadm command.

You can also create disk groups usingthe following vxdg init command:

# vxdg init diskgroup [cds=on|off] diskname=devicename

For example, to create a disk group named mktdg on device hdisk12, enter the following:

# vxdg init mktdg mktdg01=hdisk12

The disk that is specified by the device name, hdisk12, must have been previously initialized with vxdiskadd or vxdiskadm. The disk must not currently belong to a disk group.

You can use the cds attribute with the vxdg init command to specify whether a new disk group is compatible with the Cross-platform Data Sharing (CDS) feature. In Veritas Volume Manager 4.0 and later releases, newly created disk groups are compatible with CDS by default (equivalent to specifying cds=on). If you want to change this behavior, edit the file /etc/default/vxdg and set the attribute-value pair cds=off in this file before creating a new disk group.

You can also use the following command to set this attribute for a disk group:

# vxdg -g diskgroup set cds=on|off

More Information

Adding a disk to VxVM