Integrating Shared Storage on Cloud Server (CentOS 7)

Leave your reply

Prerequisites:

  • You have assigned a DNS or domain to your server.

Note:

If you have assigned a domain to the server, you must be able to access the domain on the Internet.

  • You have set the access rights for the desired server in the detail view of the shared storage
  • You have downloaded the Kerberos key.
  • You wrote down the NFS path.

How to integrate shared storage on your server:

  • Make sure that the packages krb5 and nfs are installed. To install these packages, enter the following command:
yum install nfs-utils krb5-workstation
  • Open the zipped Kerberos key file.
  • Copy the files krb5.conf and krb5.keytab.
  • Insert the files into the /etc folde

Note:

If you are using a local computer with a Windows operating system, you can quickly and conveniently transfer the files using the WinSCP program. WinSCP is a graphical open-source SFTP and FTP client for Windows. Click here to download this program.

  • Activate and start the necessary services. To do so, type the following commands:
systemctl enable nfs-secure
systemctl start nfs-secure

Optional: If the Failed to issue method call: No such file or directory error message appears, execute the following commands:

ln -s /usr/lib/systemd/system/nfs-secure.service /etc/systemd/system/multi-user.target.wants/
ln -s /usr/lib/systemd/system/nfs.service /etc/systemd/system/multi-user.target.wants/
  • To restart the server, enter the following command:
reboot
  • Create the directory under which the storage is to be integrated:
mkdir /mnt/nfs
  • Mount the shared storage with the option sec=krb5. For this, you need the NFS path.
    Example:
mount -o sec=krb5 vid12345.nas1.lan:/vid12345 /mnt/nfs