Configuring XFS

To format OS partition with the XFS option, use the following sample configuration:

Cluster Level:

config 
   clusters cluster_name 
      node-defaults os partition smi-data 
         fs-type { ext4 | xfs } 
         exit 

Node Level:

config 
   clusters cluster_name 
      nodes node_name 
         os partition smi-data 
         fs-type { ext4 | xfs } 
         exit 

NOTES:

  • smi-data —Use when there is a separate disk for the /data directory (VMware, OpenStack, and so on).

  • fs-type { ext4 | xfs } —Specify the ext4 or XFS file system.

Verifying the Configuration

To verify the configuration, use the following commands:

  • smi-state is formatted with xfs using the following configuration:

    os partition smi-state
       fs-type xfs
       exit
  • fstab :

    $ cat /etc/fstab | grep xfs
    LABEL=smi-state /mnt/stateful_partition xfs defaults 0 0
  • blkid :

    $ blkid | grep xfs
    /dev/sda5: LABEL="smi-state" UUID="9e717cb9-c1fb-4190-9283-aa20afe24d3a" TYPE="xfs" 
    PARTLABEL="smi-state" PARTUUID="7251ecd2-9623-4a37-88f8-b969b836634d"