This section describes how to configure shared disks. If you are installing VxVM for the first time or adding disks to an existing cluster, you need to configure new shared disks. If you are upgrading VxVM, verify that your shared disks still exist.
The shared disks should be configured from one node only. Since the VxVM software cannot tell whether a disk is shared or not, you must specify which are the shared disks.
Make sure that the shared disks are not being accessed from another node while you are performing the configuration. If you start the cluster on the node where you perform the configuration only, you can prevent disk accesses from other nodes because the quorum control reserves the disks for the single node.
If you are installing and setting up VxVM for the first time, you must configure the shared disks.
vxdiskadm
program and choose option 1 to initialize new disks. When asked to add these disks to a disk group, choose none
to leave the disks for future use.
vxdctl
enable
to see the newly initialized disks.
vxdctl -c mode
.
Use the vxdg
program or VEA to create disk groups. In the vxdg
program, use the -s
option to create shared disk groups.
vxassist
or VEA to create volumes in the disk groups.
The volumes must be of type gen
. Do not create RAID-5 volumes. Before creating any log subdisks, read the section on DRL in the VERITAS Volume Manager Adminstrator's Guide.
vxdg
list
command on each node to display the shared disk groups.
If you are upgrading from a previous release of VxVM, verify that your shared disk groups still exist.
To verify that your shared disk groups exist
If you are upgrading from VxVM 3.x to VxVM 4.0 and you want to convert existing disk groups to shared disk groups, configure the shared disks as follows:
To deport disk groups to be shared, use the following command:
To import disk groups to be shared, use the following command on the master node:
# vxdg -s import
disk-group-name
This procedure marks the disks in the shared disk groups as shared and stamps them with the ID of the cluster, enabling other nodes to recognize the shared disks.
If dirty region logs exist, ensure they are active. If not, replace them with larger ones.
To display the shared flag for all the shared disk groups, use the following command:
vxdg list
command on each node to display the shared disk groups. This command displays the same list of shared disk groups displayed earlier.
This procedure applies to two upgrade scenarios:
If there are volumes in the shared disk groups with FastResync set (fastresync=on)
, before beginning the upgrade procedure, reattach each snapshot to its data volume, using this procedure:
To upgrade in a clustered environment when FastResync is set