Creating a disk group

You can use the vxdg command to create a new disk group. A disk group must contain at least one disk at the time it is created. You also have the option to create a shared disk group for use in a cluster environment.

Disks must be placed in disk groups before they can be used by VxVM. You can create disk groups to organize your disks into logical sets of disks.

Before creating a disk group, review the following:

Prerequisites

  • Only disks that are online and do not belong to a disk group can be used to create a disk group.

  • The disk group name must be unique in the host or cluster.

  • Creating a disk group requires at least one disk.

Usage notes

  • Veritas Storage Foundation for DB2 only supports single disk groups.

  • New disks must be placed under VxVM control and then added to a dynamic disk group before they can be used for volumes.

  • When you place a disk under VxVM control, the disk is initialized. Initialization destroys any existing data on the disk.

  • For information on the vxdg command, see the vxdg(1M) manual page.

To create a new disk group

The following is an example of creating a disk group using the vxdg command:

To create a disk group named PRODdg on a raw disk partition sda, where the disk name PRODdg01 references the disk within the disk group:

# /opt/VRTS/bin/vxdg init PRODdg PRODdg01=sda