Creating Volume Groups in a Cluster

You create volume groups in a cluster environment with the vgcreate command, just as you create them on a single node.

By default, volume groups created with CLVM on shared storage are visible to all computers that have access to the shared storage. It is possible, however, to create volume groups that are local, visible only to one node in the cluster, by using the -c n of the vgcreate command.

The following command, when executed in a cluster environment, creates a volume group that is local to the node from which the command was executed. The command creates a local volume named vg1 that contains physical volumes /dev/sdd1 and /dev/sde1.

vgcreate -c n vg1 /dev/sdd1 /dev/sde1

You can change whether an existing volume group is local or clustered with the -c option of the vgchange command.

You can check whether an existing volume group is a clustered volume group with the vgs command, which displays the c attribute if the volume is clustered.

EXAMPLES

To create a volume group named test_vg using physical volumes /dev/hdk1, and /dev/hdl1 with default physical extent size of 4MB:

vgcreate test_vg /dev/sdk1 /dev/sdl1

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.