Integrating Shared Storage on Cloud Server with CentOS 6

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 krb5-workstation nfs-utils
  • Activate Secure NFS. To do so, remove the comment sign(#) before the SECURE_NFS="yes" line in /etc/sysconfig/nfs.
  • Open the zipped Kerberos key file.
  • Copy the files krb5.conf and krb5.keytab.
  • Insert the files into the /etc folder.

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.

Configure the necessary RPC services so that they are automatically started at the next system startup. To do so, type the following commands:

chkconfig rpcbind on
chkconfig rpcgssd on
chkconfig rpcidmapd on
  • To start the necessary RPC services manually, enter the following commands:
service rpcbind restart
service rpcgssd restart
service rpcidmapd restart
  • Create the directory under which the storage is to be integrated:
mkdir /mnt/nfs

Note:

To integrate multiple shared storages, create another directory (e.g. /mnt/nfs2, etc.). Then, perform the next step for each shared storage.

  • 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

The shared storage will be mounted.