Serviceguard
cancel
Showing results for 
Search instead for 
Did you mean: 

Serviceguard for Linux Adds Support of the XFS File System

Serviceguard for Linux
Honored Contributor

Serviceguard for Linux Adds Support of the XFS File System

Serviceguard for Linux will support the XFS file system if the Linux distribution vendor supports and delivers that file system.

As of this writing SUSE supports XFS, Red Hat does not.

Package Control Scripts contain references to the filesystem used by Serviceguard.

To use XFS in a Serviceguard package simply insert xfs into the FS_TYPE variable. Any additional fsck or mount options can be specified in the FS_FSCK_OPT, FS_MOUNT_OPT and FS_UMOUNT_OPT variables. In most implementations, the FS_FSCK_OPT variable for XFS will be blank. This is because XFS performs recovery at mount time and thus fsck on an XFS filesystem is not required. A sample usage with XFS would be:

LV[0]=/dev/vg0/lvol1
FS[0]=/pkga1
FS_TYPE[0]=”xfs”
FS_MOUNT_OPT[0]=”-o rw”
FS_UMOUNT_OPT[0]=””
FS_FSCK_OPT[0]=””

The Package Control Script template has a comment section that shows examples of filesystem interaction. The following example has been updated for support of XFS:

# FILESYSTEMS
# The filesystems are defined as entries specifying the logical
# volume, the mount point, the file system type, the mount,
# umount and fsck options.
# Each filesystem will be fsck'd prior to being mounted.
# The filesystems will be mounted in the order specified during package
# startup and will be unmounted in reverse order during package
# shutdown. Ensure that volume groups referenced by the logical volume
# definitions below are included in volume group definitions.
#
# Specify the filesystems which are used by this package. Uncomment
# LV[0]=""; FS[0]=""; FS_TYPE[0]=""; FS_MOUNT_OPT[0]="";
# FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]="" and fill in
# the name of your first logical volume, filesystem, type, mount,
# umount and fsck options for the file system.
# You must begin with LV[0], FS[0],
# FS_TYPE[0], FS_MOUNT_OPT[0], FS_UMOUNT_OPT[0], FS_FSCK_OPT[0]
# and increment the list in sequence.
#
# Valid types for FS_TYPE are 'ext2' , ‘ext3’. 'reiserfs', and ‘xfs’.
#
# For example, if this package uses the following:
# logical volume: /dev/vg01/lvol1 /dev/vg01/lvol2
# mount point: /pkg1a /pkg1b
# filesystem type: ext2 reiserfs
# mount options: read/write read/write
#
# Then the following would be entered:
# LV[0]=/dev/vg01/lvol1; FS[0]=/pkg1a; FS_TYPE[0]="ext2";
# FS_MOUNT_OPT[0]="-o rw"; FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]="";
#
# LV[1]=/dev/vg01/lvol2; FS[1]=/pkg1b; FS_TYPE[1]="reiserfs";
# FS_MOUNT_OPT[1]="-o rw"; FS_UMOUNT_OPT[1]=