- Enter the following command to create a folder with your file system:
mkdir /var/mount-location-directory-nameFor example:mkdir /var/kvm-fc1
- Enter the following command to mount the new file system:
mount /dev/mapper/file-system-path /var/volume-group-name-logical- volume-nameFor example:mount /dev/mapper/kvmfc1 /var/kvm-fc1/
- Enter the following command to access the fstab:
vi /etc/fstab
- Press I to edit the file.
- Add the following text to the existing file:
/dev/mapper/mpathafc1-kvmfc1 /var/kvm-fc1 ext4 defaults 1 2
- Press Esc.
- Enter the following command to save and exit the file:
:wq