Managing Serviceguard A.11.20, March 2013
Creating Disk Groups
NOTE: You can use cmpreparestg (1m) to create a VxVM/CVM disk group. See “Using
Easy Deployment Commands to Configure the Cluster” (page 167) for more information. If you use
cmpreparestg, you do not need to perform the procedures that follow, but it is a good idea to
read them so that you understand what cmpreparestg does for you.
Use vxdiskadm, or use the vxdg command, to create disk groups, as in the following example:
vxdg init logdata c0t3d2
Verify the configuration with the following command:
vxdg list
NAME STATE ID
logdata enabled 972078742.1084.node1
Creating Logical Volumes
NOTE: You can create a single logical volume or multiple logical volumes using cmpreparestg
(1m). See “Using Easy Deployment Commands to Configure the Cluster” (page 167) and the
manpage for more information. If you use cmpreparestg, you can skip this step, but it is a good
idea to read them so that you understand what cmpreparestg does for you.
Use the vxassist command to create logical volumes. The following is an example:
vxassist -g logdata make log_files 1024m
This command creates a 1024 MB volume named log_files in a disk group named logdata.
The volume can be referenced with the block device file /dev/vx/dsk/logdata/log_files
or the raw (character) device file /dev/vx/rdsk/logdata/log_files. Verify the configuration
with the following command:
vxprint -g logdata
The output of this command is shown in the following example:
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTILO PUTILO
v logdata fsgen ENABLED 1024000 ACTIVE
pl logdata-01 system ENABLED 1024000 ACTIVE
NOTE: The specific commands for creating mirrored and multi-path storage using VxVM are
described in the Veritas Volume Manager Reference Guide.
Creating File Systems
If your installation uses file systems, create them next.
NOTE: You can create file systems by means of the cmpreparestg (1m) command. See
“Using Easy Deployment Commands to Configure the Cluster” (page 167) for more information. If
you use cmpreparestg, you can skip the following steps, but it is a good idea to read them so
that you understand what cmpreparestg does for you.
Use the following commands to create a file system for mounting on the logical volume just created:
1. Create the file system on the newly created volume:
newfs -F vxfs /dev/vx/rdsk/logdata/log_files
2. Create a directory to mount the volume:
mkdir /logs
Preparing Your Systems 189