Data related to a particular set of applications or a particular group of users may need to be made accessible on another system. Examples of this are:
Disks must be placed in one or more disk groups before VxVM can use the disks for volumes. It is important that you locate data related to particular applications or users on an identifiable set of disks. When you need to move these disks, this allows you to move only the application or user data that should be moved.
A disk group must have at least one disk associated with it. A new disk group can be created when you use menu item
1 (Add or initialize one or more disks) 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
vxdiskadd command to create a new disk group:
sdd in this example 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
See "Adding a disk to VxVM" on page 96.
Disk groups can also be created by using the
For example, to create a disk group named
mktdg on device
vxdg init mktdg mktdg01=sdc
The disk specified by the device name,
sdc, must have been previously initialized with
vxdiskadm, and must not currently belong to a disk group.
You can use the
cds attribute with the
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.
Alternatively, you can use the following command to set this attribute for a disk group:
vxdg -g diskgroup