Ready to Start Your Career?

By: saurabh1809
April 20, 2018
XFS File System - RHEL7

By: saurabh1809
April 20, 2018

- Its provide quick and fast recovery
- Its support de-fragmentation
- Its provide quota as well journalization
- First, we create size 4 GB partition like:
- # fdisk /dev/vdb
- and change the ID with LVM id 8e
- # pvcreate /dev/vdb1
- create physical volume
- # vgcreate target /dev/vdb1
- create volume group
- # lvcreate -n data -L 1G target
- create Logical volume
- # mkfs.xfs /dev/target/data
- format the partition
- # mkdir /space
- create a directory for mounting
- # mount /dev/target/data /space
- mount the partition
- # df -h
- check the partition, then the partition. Mount it successfully and then increase it.
- # lvextend -L +1G /dev/target/data -r
- If we use -r option then no need to run resize command.
- If you do not use -r option, then run the command.
- # xfs_growfs /dev/target/data
- # df -h
- Check the size of your file system and partition.