The LVM configuration
you just performed created all the partitions with an EXT file
system. An XFS file system can be fine-tuned to work with a RAID
array. To configure the XFS file system parameters for stripe-unit
and stripe-width you must know the RAID information (stripe size
and span of disks) for the respective drives. These values have
to be provided in terms of 512 byte blocks.
We suggest you use su (stripe-unit)
and sw (stripe-width)
to avoid confusion when setting the following values:
- su = RAID controller
stripe size in Bytes or KBytes
- sw = The span
of the physical data disks excluding the number of duplicate disks
for RAID10 and parity disks for RAID5 and RAID6.
Follow these steps to
configure the MUR application (/apps)
and Postgres (/db)
partitions with an XFS file system. In this example, these settings
are for four (4) disks of RAID-0 and seven (7) disks of RAID-5.
- Un-mount the partitions
using the umount command:$ umount /apps$ umount /db
- Create the XFS file
system using the mkfs.xfs
command:$ mkfs.xfs
-f -b size=4096 -d su=256k,sw=4 /dev/mapper/VolGroup01-LogVol00$ mkfs.xfs
-f -b size=4096 -d su=256k,sw=6 /dev/mapper/VolGroup02-LogVol00
- Re-mount the partitions
using the mount command: $ mount -t
xfs /dev/mapper/VolGroup01-LogVol00 /apps$ mount -t
xfs /dev/mapper/VolGroup02-LogVol00 /db
- Update the /etc/fstab file
to reflect the updated configuration.
- Open the /etc/fstab file
and change the file system type for the /apps and /db partitions
to XFS. The correct entries should be as follows:/dev/VolGroup01/LogVol00
/apps xfs defaults 1 2/dev/VolGroup02/LogVol00
/apps xfs defaults 1 2