Integrate shared storage on a server (AlmaLinux 8 and Rocky Linux 8)
Please use the “Print” function at the bottom of the page to create a PDF.
For Cloud Servers and dedicated servers that are managed in the Cloud Panel
To integrate shared storage on a server with AlmaLinux 8 or Rocky Linux 8 installed:
Requirements
- You have assigned an IP address or a domain to your server.
- You have set the access authorisations for the desired server in the detailed view of the shared storage.
- You have downloaded the Kerberos key.
- You have noted the NFS path.
- You have logged in to the server as an administrator.
Note
If you have assigned a domain to the server, it must be accessible via the Internet.
Make sure that the krb5 and nfs packages are installed. To install these packages, enter the following command:
[root@localhost ~]# yum install nfs-utils krb5-workstation
- To start the installation, press the y key.
- Open the zipped Kerberos key file.
- Copy the files krb5.conf and krb5.keytab.
- Paste the files into the /etc folder.
Note
If you are using a local computer with a Windows operating system, you can transfer the files easily and conveniently using the WinSCP application. WinSCP is a graphical open source SFTP and FTP client for Windows. You can download the application from the following website:
Optional: If the error message Failed to issue method call:No such file or directory is displayed, execute the following commands:
[root@localhost ~]# ln -s /usr/lib/systemd/system/nfs-secure.service /etc/systemd/system/multi-user.target.wants/
[root@localhost ~]# ln -s /usr/lib/systemd/system/nfs.service /etc/systemd/system/multi-user.target.wants/
To restart the server, enter the following command:
[root@localhost ~]# reboot
Create the directory under which the shared storage is to be integrated.
[root@localhost ~]# mkdir /mnt/nfs
Open the /etc/fstab file with the vi editor.
[root@localhost ~]# vi /etc/fstab
To mount the shared storage permanently, add the desired mount point in the following format:
vid12345.nas1.lan:/vid12345 /mnt/nfs nfs sec=krb5 0 0
Example:vid15943.nas3.lan:/vid15943 /mnt/nfs nfs sec=krb5 0 0
Notes
- The vi editor has an insert mode and a command mode. You can call up insert mode with the [i] key. In this mode, the characters entered are immediately inserted into the text. To call up command mode, press [ESC]. If you use command mode, your keyboard input is interpreted as a command.
- To exit vi and save the file, enter the command :wq and then press Enter.
To check the new entry in /etc/fstab and mount the shared storage, enter the following command:
[root@localhost ~]# mount -a
To restart systemd, enter the following command:
[root@localhost ~]# systemctl daemon-reload
To call up the shared storage, enter the following command:
[root@localhost ~]# cd /mnt/nfs