Create New Filesystem On Logical Volume
Create New Filesystem On Logical Volume
Question:
Create a xfs file system on a new logical volume of 100MB called lv_xfs. Mount it permanently with
uuid under /xfs.
First we create a logical volume that is mentioned in the question and we create files system
on it:
After that we have to perform all the steps for permanent mounting, starting with creation of
mount point:
mkdir /xfs
OR
vi /etc/fstab
UUID=... /xfs xfs defaults 1 2
mount -a
Additional comment:
Make sure that You know the difference between partition label and file system
name - https://superuser.com/questions/1099232/what-is-the-difference-between-a-partition-
name-and-a-partition-label/1099292 and You do not confuse them.
When editing fstab file by hand we got much more control over mount options. Also pay attention
to the fact that with provided solution we use '1 2' values for checking mount point integrity - the
first one indicates how often the partition will be backed by dump program, the second one points
to the level of integrity check when mounting (0 means no check, 1 is applied only to the root
partition).