Skip to contentSkip to conversation

NFSroot using NFSv4?

DISCUSSION [email protected] 3 participants 3 messages Oct 26, 2006 – Oct 28, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi

I'm looking for some information on using Linux kernel NFSroot with NFSv4.

Quoted 1 line

From reading some documentation it seems that there are some additional daemons

involved to mount NFSv4 exports on a client (idmapd, gssd (just for krb5?)).

Is it possible to run NFSv4 as a read-only NFSroot, without an initrd / initramfs, which would otherwise start these deamons and use a NFSv4 enabled mount and a pivot_root?

I don't need any security features of NFSv4, as it would just be used for installing Debain via PXE and FAI.

Thanks

Jan-Marek

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 10 lines · On Thu, 2006-10-26 at 13:15 +0200, [email protected] wrote:

Hi

I'm looking for some information on using Linux kernel NFSroot with NFSv4.

Quoted 1 line

From reading some documentation it seems that there are some additional daemons

involved to mount NFSv4 exports on a client (idmapd, gssd (just for krb5?)).

Is it possible to run NFSv4 as a read-only NFSroot, without an initrd / initramfs, which would otherwise start these deamons and use a NFSv4 enabled mount and a pivot_root?

Not at this point. We may look into providing NFSroot support for NFSv4 if there is enough interest, but at the moment you will at least need an idmapd in userland running before you attempt to mount the volume.

Cheers,
Trond

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
In reply to [email protected]
Quoted 10 lines · On Thu, Oct 26, 2006 at 01:15:13PM +0200, [email protected] wrote:

Hi

I'm looking for some information on using Linux kernel NFSroot with NFSv4.

Quoted 1 line

From reading some documentation it seems that there are some additional daemons

involved to mount NFSv4 exports on a client (idmapd, gssd (just for krb5?)).

Is it possible to run NFSv4 as a read-only NFSroot, without an initrd / initramfs, which would otherwise start these deamons and use a NFSv4 enabled mount and a pivot_root?

The proper way to do that is actually to put an "/init" script in initrd. The kernel won't mount a root filesystem (i.e. no root= parameter) and leaves it up to the early userspace /init script to setup the root mount, e.g. /newroot. The last step for /init (being pid 1) is a

exec chroot /newroot /sbin/init <args>

This can handle much more types of root mounts and avoids the need for an in-kernel nfsroot.

Signature · 10 lines
Frank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs