• Help & contact
    • Unlock security benefits
      %

    In this article, we'll show you how to add shared storage to your server running CentOS 7.

    Prerequisites
    • You have assigned an IP address or a domain to your server.

    • You have set the access authorizations for the required shared storage in the detail view.

    • You have downloaded the Kerberos key.

    • You have made a note of the NFS path.

    Please Note

    If you assigned a domain to your server, it must be accessible on the Internet.

    • Make sure the krb5 and nfs packages are installed. To install these packages, type the following command:

      yum install nfs-utils krb5-workstation

    • Open the zipped Kerberos key file.

    • Copy the files krb5.conf and krb5.keytab.

    • Add the files to the /etc folder.

    Please Note

    If you use a local Windows computer, you can transfer the files easily with the WinSCP program. WinSCP is a graphical, open-source SFTP and FTP client for Windows. To download the program, click here.

    • Activate and start the required services. To do this, enter the following commands:

      systemctl enable nfs-secure
      systemctl start nfs-secure

    • Optional: If the error Failed to issue method call:No such file or directory is displayed, 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, type the following command:

      reboot

    • Create the directory where the storage should be mounted.

      mkdir /mnt/nfs

    • To permanently mount the shared storage, open /etc/fstab with a text editor (such as vi) and add the desired mount point in the following format:

      vid12345.nas1.lan:/vid12345 /mnt/nfs nfs sec=krb5 0 0

    Please Note

    To do this, you will need the NFS path.

    • To check the new entry in /etc/fstab and mount the shared storage, enter the following command:

      mount -a

    The shared storage is now mounted and available to use in your server.