Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2013 17:35:20 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        current@freebsd.org
Subject:   Diskless setup with NFS_V4
Message-ID:  <20130822133520.GA75880@zxy.spb.ru>

next in thread | raw e-mail | index | archive | help
Its posible use currentle FreeBSD on NFS_V4 root?

Explain:

pxeboot do NFS_v3 (not NFS_v4) mount and pass fd to kernel.
In this setup kernel can use only configured (established) nfs fh.
This is not allowed to switch version or some options.

When pxeboot use TFTP (not NFS) kernel (in nfs/bootp_subr.c) do DHCP
discover and don't allow (in nfs/nfs_diskless.c:nfs_parse_options)
'nfsv4' option.

nfs/nfs_diskless.c:nfs_setup_diskless also initialy set

nd3->root_args.flags = (NFSMNT_NFSV3 | NFSMNT_WSIZE | NFSMNT_RSIZE | NFSMNT_RESVPORT);

and don't allow 'nfsv4' option.

Where I be wrong?
How I can use diskless setup with R/O root on NFS_V4 share?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130822133520.GA75880>