Changes

Jump to: navigation, search

NFS

1,490 bytes added, 15:36, 22 November 2006
no edit summary
This page describes howto mount NFS partition inside VPS

== Note about NFS server ==
Currently OpenVZ kernel doesn't include NFS server support. Please, refer to [http://nfs.sourceforge.net/nfs-howto/ar01s03.html NFS-server HOWTO] to find out how to setup NFS server.

== Preparations ==
=== Software ===
You will need the following software:
# [http://download.openvz.org/kernel/devel/ kernel] version 028test006 or higher
# [http://download.openvz.org/utils/vzctl/ vzctl] version 3.0.13 or higher

=== Prepare the VE ===
To allow VE use NFS filesystem you will need to start it fith "nfs" feature enabled.
<pre>
# vzctl set 100 --features "nfs:on" --save
# vzctl start 101
</pre>

After this you may see nfs in <code>/proc/filesystems</code>
<pre>
# vzctl exec 101 cat /proc/filesystems
ext3
ext2
nodev rpc_pipefs
nodev proc
nodev nfs
nodev sysfs
nodev tmpfs
nodev devpts
</pre>

== Mounting NFS ==
Assuming that you already have NFS server set up at <code>192.168.0.1:/nfs_pub</code> mounting will be simple
<pre>
# vzctl enter 100
# mkdir /nfs
# mount -t nfs 192.168.0.1:/nfs_pub /nfs
# cat /proc/mounts
simfs / simfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
nfs /nfs nfs rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.0.1 0 0
</pre>

For more details on how to setup NFS mount see [http://nfs.sourceforge.net/nfs-howto/ar01s04.htm NFS-client HOWTO]

[[Category: HOWTO]]

Navigation menu