ME4 Series storage supports a wide range of Linux file systems. This section focuses on two popular and stable file systems: ext4 and xfs.
File system layout
The file system can be created on top of a LUN, a LUN partition, or a logical volume within LVM. Dell Technologies recommends using the whole LUN without a partition or logical volume in LVM for ease of management. If the file systems reside in LVM, follow the LVM guidelines when creating and grouping multiple file systems.
File system mount options
When mounting a file system, consider the following options and guidelines:
- Identify the file system by its UUID or LVM LV device in the /etc/fstab file. Avoid using any non-persistent device paths such as /dev/sd*.
- UUID can be queried by blkid command.
# blkid /dev/mapper/vgme4-lvme4
/dev/mapper/vgme4-lvme4: UUID="ad40e2c2-8ce0-42c6-94bb-9854b73f5336" TYPE="xfs"
- Include nofail in the mount option if the Linux operating system experiences a mount issue during system boot. This prevents interruption during the boot process which requires manual intervention.
- For the xfs file system, the file system check (fsck option) should be disabled in /etc/fstab because it does not perform any check or repair automatically during boot time. The xfs journaling feature ensures the file system integrity and that the data is in a consistent state after an abrupt shutdown. If a manual repair or check is necessary, use the xfs_repair utility to repair the damaged file system.
- To disable fsck check, set a value of 0 in the sixth field for the file system entry in /etc/fstab. Here is an example of an xfs file system entry in /etc/fstab:
UUID="ad40e2c2-8ce0-42c6-94bb-9854b73f5336" /me4_fs xfs defaults,discard,nofail 0 0
Certain file system types, such as ext4 and xfs, support the online resize operation. The following procedure outlines the general steps to resize a file system online assuming non-partition LUNs are used.
- Expand the size of existing LUNs in ME Storage Manager.
- Perform a SCSI scan on the host systems, refresh the partition table on each LUN path, and reload multipath devices.
# rescan-scsi-bus.sh --resize
- Reload the multipath devices. Skip this step if multipath devices are disabled.
# multipathd -k"resize map mpathb"
- Expand the logical volume if the file system is on top of LVM. Skip this step if the file system does not reside in LVM.
# lvresize –L $NEW_SIZE /dev/vgme4/lvme4
- Extend the file system size to the maximum size, automatically and online
# xfs_growfs –d /me4_fs (for xfs)
or
# resize2fs /dev/mapper/mpathb (for ext4)