Managing Serviceguard Eighteenth Edition, September 2010

Creating Volumes
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 filesystems, create them next. Use the following commands to
create a filesystem for mounting on the logical volume just created:
1. Create the filesystem on the newly created volume:
newfs -F vxfs /dev/vx/rdsk/logdata/log_files
2. Create a directory to mount the volume:
mkdir /logs
3. Mount the volume:
mount /dev/vx/dsk/logdata/log_files /logs
4. Check to make sure the filesystem is present, then unmount the filesystem:
umount /logs
Deporting Disk Groups
After creating the disk groups that are to be used by Serviceguard packages, use the
following command with each disk group to allow the disk group to be deported by
the package control script on other cluster nodes:
vxdg deport <DiskGroupName>
where <DiskGroupName> is the name of the disk group that will be activated by the
control script.
Preparing Your Systems 241