Bobcares

Add NFS To XenServer | How To?

by | Jan 19, 2023

Add NFS to XenServer easily with the below steps in this article. Bobcares, as a part of our Server Management Services, offers solutions to every query that comes our way.

How To Add NFS To XenServer Easily?

The NFS server is pre-installed on a new XenServer installation. Therefore, we only need to set up NFS export rather than install the NFS server by ourselves. Here, we’ll see how to configure NFS export on XenServer. Also, we export /export directory using NFS. Let’s look into the steps:

1. On the xterm command prompt, use the following commands:

# vi /etc/exports

# exportfs -a
# service portmap start
# service nfs start
# chkconfig portmap on
# chkconfig nfs on

2. To be able to export the local storage, we must now complete one crucial final step. By default, portmap will only bind to the loopback interface (with the -l option), preventing any other external host from mounting its storage through NFS. As seen below, we can verify this behavior. The XenServer host’s IP address is 192.168.212.205.

# showmount -e localhost
# showmount -e 192.168.212.205

3. As we can see, the first command correctly displays the export list for localhost, however, the second command fails for the aforementioned reason, displaying the following message:

add nfs to xenserver

4. To remove this portmap restriction, change /etc/sysconfig/portmap as follows:

PMAP_ARGS=""

5. Restart the NFS service after the change.

# service portmap restart
# service nfs restart

6. Run again to confirm that the export is functioning properly.

$ showmount -e 192.168.212.205

7. Now we can see the export list for the XenServer host 192.168.212.205, this shows that the NFS-export is all set.

[Searching assistance for a different query? We’re available 24/7.]

Conclusion

The article provides a 7-step method to add NFS to the XenServer. Here, we only set up NFS export rather than installing the NFS server since it is already pre-installed on XenServer installation.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.