Re: NFSv4 Kernel-server requires 2x manual restart after reboot? Maybe a timing problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bruce,

On Fri, Oct 23, 2009 at 11:24 AM, J. Bruce Fields <bfields@xxxxxxxxxxxx> wrote:

I'm getting closer to "works". At least the way I think it should :-/.

With,

cat /etc/auto.master
	/mnt.dev /etc/auto.device
	/mnt.nfs /etc/auto.nfsv4

cat /etc/auto.device
	cd          -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

cat /etc/auto.nfsv4
	test -fstype=nfs4,rw server.bendj.loc:/

After reboot,

mount
	/dev/dm-1 on / type ext3 (rw,acl,user_xattr)
	proc on /proc type proc (rw)
	sysfs on /sys type sysfs (rw)
	debugfs on /sys/kernel/debug type debugfs (rw)
	udev on /dev type tmpfs (rw)
	devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
	/dev/md0 on /boot type ext3 (rw,acl,user_xattr)
	/dev/dm-0 on /home type ext3 (rw,acl,user_xattr)
	fusectl on /sys/fs/fuse/connections type fusectl (rw)
	nfsd on /proc/fs/nfsd type nfsd (rw)
	rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

exportfs -v
	/nfs 192.168.1.0/24(ro,wdelay,root_squash,no_subtree_check,fsid=0)

and the mounts ARE automounted,

ls /mnt.nfs/test /mnt.dev
	/mnt.dev:
		cd/

	/mnt.nfs/test:
		bin/  boot/  dev/  etc/  home/  lib/  lib64/  lost+found/  media/
mnt/  mnt.auto/  mnt.dev/  mnt.nfs/  nfs/  opt/  proc/  root/  sbin/
selinux/  srv/  sys/  tmp/  usr/  var/

Looks like autofs mounting rahter than /etc/fstab is the way-to-go.  I
don't know if this means there IS a timing problem with the /etc/fstab
way of doing things.

Also, the /mnt.nfs/test still shows the actual SERVER root, rather
than the specified NFS (ch)root.  That shouldn't be happening, right?

And just to check,

	service nfsserver restart
		Shutting down kernel based NFS server: nfsd statd mountd


                       done
		Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify


                       done

works the 1st time around.

BenDJ
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux