7.2.3. Attach from A Resource to A File Storage Volume

After creating a new Volume, attach the created Volume from a Resource, both of which exist in the same Tenant.

7.2.3.1. Linux Server

Verify the respective information on the Target IP Address & the Volume UUID, both of which are required to mount the NFS at the “Volume Details” page.

target_ip.png

Mounting the NFS (Network File System).

Execute the following command to mount. The mount command differs with standard / premium.

Premium

$ mount -t nfs 192.168.40.50:/v75d3af60ce754332927c0d062ff57216/nfs /mnt/nfs

Note

Execute the mount command by utilizing “mount -t nfs” <target IP>:/<a password of mounting direction> <mount directory>
A direction mount path of NFS will be defined as ‘/v’ + (This is a string, which omits a hyphen from the Volume ID’s UUID volume) + ‘/nfs’ .
In this above case, the mount path of the NFS is 192.168.40.50:/v75d3af60ce754332927c0d062ff57216/nfs, for UUID is “75d3af60-ce75-4332-927c-0d062ff57216”.

Standard

Specify the NFS version to be used for mounting.
This menu does not support mounting with multiple NFS versions for the same volume.
Specify the intended version on all clients and mount them.
  • Use NFSv3

# mount -t nfs -o vers=3 192.168.40.50:/v75d3af60ce754332927c0d062ff57216 /mnt/nfs
  • Use NFSv4

# mount -t nfs -o vers=4 192.168.40.50:/v75d3af60ce754332927c0d062ff57216 /mnt/nfs
  • Use NFSv4.1

# mount -t nfs -o vers=4.1 192.168.40.50:/v75d3af60ce754332927c0d062ff57216 /mnt/nfs

Note

Execute the mount command by utilizing mount -t nfs -o vers=<NFS Version> <target IP>:/<a password of mounting direction> <mount directory>
A direction mount path of NFS will be defined as ‘/v’ + (This is a string, which omits a hyphen from the Volume ID’s UUID volume) .
In this above case, the mount path of the NFS is 192.168.40.50:/v75d3af60ce754332927c0d062ff57216, for UUID is “75d3af60-ce75-4332-927c-0d062ff57216”.


2.Verifying the mount state.

Premium

# df

  FileSystem                                           1K-blocks   Used  Available  %Used Mounted on
  /dev/sda3                                             545499904 915552 544584352    1% /
  devtmpfs                                              131911140      0 131911140    0% /dev
  tmpfs                                                 131920252      0 131920252    0% /dev/shm
  tmpfs                                                 131920252   9564 131910688    1% /run
  tmpfs                                                 131920252      0 131920252    0% /sys/fs/cgroup
  /dev/sda2                                                499656  85396    377564   19% /boot
  /dev/sda1                                                524008  10024    513984    2% /boot/efi
  tmpfs                                                  26384052      0  26384052    0% /run/user/0
  192.168.40.50:/v75d3af60ce754332927c0d062ff57216/nfs  268435456      0 268435456    0% /mnt/nfs

Standard

# df

  FileSystem                                           1K-blocks   Used  Available  %Used Mounted on
  /dev/sda3                                             545499904 915552 544584352    1% /
  devtmpfs                                              131911140      0 131911140    0% /dev
  tmpfs                                                 131920252      0 131920252    0% /dev/shm
  tmpfs                                                 131920252   9564 131910688    1% /run
  tmpfs                                                 131920252      0 131920252    0% /sys/fs/cgroup
  /dev/sda2                                                499656  85396    377564   19% /boot
  /dev/sda1                                                524008  10024    513984    2% /boot/efi
  tmpfs                                                  26384052      0  26384052    0% /run/user/0
  192.168.40.50:/v75d3af60ce754332927c0d062ff57216      419430400    256 419430144    0% /mnt/nfs

If you are confirming which NFS version is mounted, please confirm with the following procedure.
  • Use NFSv3

    Make sure that “vers = 3”.

# grep v75d3af60ce754332927c0d062ff57216 /proc/mounts
  192.168.40.50:/v75d3af60ce754332927c0d062ff57216 /mnt/nfs nfs rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.40.50,mountvers=3,mountport=635,mountproto=udp,local_lock=none,addr=192.168.32.200 0 0
  • Use NFSv4

    Make sure that “vers=4 minorversion=0”.

# grep v75d3af60ce754332927c0d062ff57216 /proc/mounts
  192.168.40.50:/v75d3af60ce754332927c0d062ff57216/ /mnt/nfs nfs4 rw,relatime,vers=4,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.32.100,minorversion=0,local_lock=none,addr=192.168.40.50 0 0
  • Use NFSv4.1

    Make sure that “vers=4 minorversion=1”.

# grep v75d3af60ce754332927c0d062ff57216 /proc/mounts
  192.168.40.50:/v75d3af60ce754332927c0d062ff57216/ /mnt/nfs nfs4 rw,relatime,vers=4,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.32.100,minorversion=1,local_lock=none,addr=192.168.40.50 0 0