Managing Disk Groups and Mount Points Using Legacy Packages

To manage disk groups and mount points in a Serviceguard cluster using CVM/CFS, create disk group and mount point packages. These packages are configured for activating disk groups and mounting the volumes. The applications that use CVM/CFS require the disk group and mount point packages to be up and running.

Creating a File System and Mount Point Package

1.Create a file system:

newfs -F vxfs /dev/vx/rdsk/logdata/log_files

version 6 layout

1-048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks largefiles supported

2.Create the cluster mount point:

cfsmntadm add logdata log_files /tmp/logdata/log_files all=rw

Package name “SG-CFS-MP-1” is generated to control the resource.

You do not need to create the directory. The command creates one on each of the nodes, during the mount.

3.Verify with cmviewcl or cfsmntadm display. This example uses the cfsmntadm command:

cfsmntadm display

Cluster Configuration for Node:

ftsys9

 

 

MOUNT POINT

TYPE

SHARED VOLUME

DISK GROUP

STATUS

/tmp/logdata/log_files

regular

log_files

logdata

NOT MOUNTED

Cluster Configuration for Node:

ftsys10

 

 

MOUNT POINT

TYPE

SHARED VOLUME

DISK GROUP

STATUS

/tmp/logdata/log_files

regular

log_files

logdata

NOT MOUNTED

4.Mount the file system:

cfsmount /tmp/logdata/log_files

This starts up the multi-node package and mounts a cluster-wide file system.

5.Verify that multi-node package is running and file system is mounted: cmviewcl

CLUSTER STATUS cfs_cluster up

NODE STATUS STATE

ftsys9

up

running

 

 

 

ftsys10

up

running

 

 

 

MULTI_NODE_PACKAGES

 

 

 

PACKAGE

 

STATUS

STATE

AUTO_RUN

SYSTEM

SG-CFS-pkg

up

running

enabled

yes

SG-CFS-DG-1

up

running

enabled

no

SG-CFS-MP-1

up

running

enabled

no

ftsys9/etc/cmcluster/cfs> bdf

Filesystem

kbytes used avail

%used

Mounted on

/dev/vx/dsk/logdata/log_files

10485 17338

966793

2%

tmp/logdata/log_files

ftsys10/etc/cmcluster/cfs> bdf

 

 

 

Filesystem

kbytes used avail

%used

Mounted on

/dev/vx/dsk/logdata/log_files

10485 17338

966793

2%

tmp/logdata/log_files

6.To view the package name that is monitoring a mount point, use the cfsmntadm show_package command:

cfsmntadm show_package /tmp/logdata/log_files

216 Building an HA Cluster Configuration

Page 216
Image 216
HP Serviceguard manual Managing Disk Groups and Mount Points Using Legacy Packages