Managing Serviceguard Eighteenth Edition, September 2010
NOTE: Under agile addressing, the physical devices in these examples would have
names such as /dev/rdisk/disk1 and /dev/rdisk/disk2. See “About Device
File Names (Device Special Files)” (page 106).
If you are using cDSFs, the device files would have names such as /dev/rcdisk/
disk1 and /dev/rcdisk/disk2. See “About Cluster-wide Device Special Files
(cDSFs)” (page 135).
On the configuration node (ftsys9), use the pvcreate(1m) command to define disks
as physical volumes. This only needs to be done on the configuration node. Use the
following commands to create two physical volumes for the sample configuration:
pvcreate -f /dev/rdsk/c1t2d0
pvcreate -f /dev/rdsk/c0t2d0
Use the following procedure to build a volume group on the configuration node
(ftsys9). Later, you will create the same volume group on other nodes; see
“Distributing Volume Groups to Other Nodes” (page 235).
NOTE: If you are using the March 2008 version or later of HP-UX 11i v3, you can skip
steps 1 and 2; vgcreate (1m) will create the device file for you.
1. Create the group directory; for example, vgdatabase:
mkdir /dev/vgdatabase
2. Create a control file named group in the directory /dev/vgdatabase, as follows:
mknod /dev/vgdatabase/group c 64 0xhh0000
The major number is always 64, and the hexadecimal minor number has the form
0xhh0000
where hh must be unique to the volume group you are creating. Use a unique
minor number that is available across all the nodes for the mknod command above.
(This will avoid further reconfiguration later, when NFS-mounted logical volumes
are created in the volume group.)
Use the following command to display a list of existing volume groups:
ls -l /dev/*/group
3. Create the volume group and add physical volumes to it with the following
commands:
Preparing Your Systems 233