(ve):Install NFS Server and Client

  • This page was last modified on April 18, 2012, at 12:32.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

Support Request to enable NFS on (dv) or (ve) server

Admins will need to enable this for you.

Server

Debian

/etc/init.d/portmap start
mt-test:~# update-rc.d portmap defaults
Adding system startup for /etc/init.d/portmap ...
/etc/rc0.d/K20portmap -> ../init.d/portmap
/etc/rc1.d/K20portmap -> ../init.d/portmap
/etc/rc6.d/K20portmap -> ../init.d/portmap
/etc/rc2.d/S20portmap -> ../init.d/portmap
/etc/rc3.d/S20portmap -> ../init.d/portmap
/etc/rc4.d/S20portmap -> ../init.d/portmap
/etc/rc5.d/S20portmap -> ../init.d/portmap
aptitude install unfs3

Centos

If you are using CentOS, unfs3 is not available in the standard repositories. You can get it from the DAG repository.

yum -y install unfs3 nfs-utils
chkconfig unfsd on
chkconfig portmap on
reboot

Edit your /etc/exports file according to: http://nfs.sourceforge.net/nfs-howto/ar01s03.html

Client

/etc/init.d/portmap start
mt-test:~# update-rc.d portmap defaults
Adding system startup for /etc/init.d/portmap ...
/etc/rc0.d/K20portmap -> ../init.d/portmap
/etc/rc1.d/K20portmap -> ../init.d/portmap
/etc/rc6.d/K20portmap -> ../init.d/portmap
/etc/rc2.d/S20portmap -> ../init.d/portmap
/etc/rc3.d/S20portmap -> ../init.d/portmap
/etc/rc4.d/S20portmap -> ../init.d/portmap
/etc/rc5.d/S20portmap -> ../init.d/portmap
aptitude install nfs-common

Setup your client to mount that share according to: http://nfs.sourceforge.net/nfs-howto/ar01s04.html

References

NFS server inside container - From the OpenVZ wiki (OpenVZ is the open-source version of the Virtuozzo technology that powers (mt) Media Temple (dv) and (ve) servers.