Mounting the file system

Deploying an HCP VM System on KVM

Version
9.6.x
Audience
anonymous
Part Number
MK-94HCP009-07
  1. Enter the following command to create a folder with your file system:
    mkdir /var/mount-location-directory-name
    For example:
    mkdir /var/kvm-fc1
  2. Enter the following command to mount the new file system:
    mount /dev/mapper/file-system-path /var/volume-group-name-logical- volume-name
    For example:
    mount /dev/mapper/kvmfc1 /var/kvm-fc1/
  3. Enter the following command to access the fstab:
    vi /etc/fstab
  4. Press I to edit the file.
  5. Add the following text to the existing file:
    /dev/mapper/mpathafc1-kvmfc1 /var/kvm-fc1 ext4 defaults 1 2
  6. Press Esc.
  7. Enter the following command to save and exit the file:
    :wq