Managing HP Serviceguard A.12.00.00 for Linux, June 2014

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.
5.1.13.6 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. 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:
mkfs -t 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 ensure the file system is present, then unmount the file system:
umount /logs
5.1.13.7 Monitoring VxVM Disks
The HP Serviceguard VxVM Volume Monitor provides a means for effective and persistent monitoring
of VxVM volumes. The Volume Monitor supports Veritas Volume Manager version 6.0 and later.
You can configure the Volume Monitor (cmresserviced) to run as a service in a package that requires
the monitored volume or volumes. When a monitored volume fails or becomes inaccessible, the
service exits, causing the package to fail on the current node. (The package’s failover behavior
depends on its configured settings, as with any other failover package.)
For example, the following service_cmd monitors two volumes at the default log level 0, with a
default polling interval of 60 seconds, and prints all log messages to the console:
service_name Volume_mon
service_cmd $SGSBIN/cmresserviced /dev/vx/dsk/dg_dd2/lvol2
service_restart none
service_fail_fast_enabled yes
service_halt_timeout 300
For more information, see the cmresserviced (1m) manpage. For more information about
configuring package services, see the service_name parameter descriptions.
5.1.13.8 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 are activated by the control script.
5.1 Preparing Your Systems 163