You are not logged in.

#1 2009-07-24 01:01:33

colbert
Member
Registered: 2007-12-16
Posts: 809

NFS4 issues

I have 2 arch boxes, one server one desktop, and I have one part on each that I have mounted to the other. I have it working, however:

1. When I reboot I always have to redo the mount --bind command to bind the /media/stuff to /srv/nfs4/stuff. How to stop having to do this each reboot?

2. When I reboot I have to manually do "mount /media/myth" each time, it doesn't seem to do it automatically. Here is from fstab:

# NFS4
nfsd /proc/fs/nfsd nfsd rw,nodev,noexec,nosuid 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
192.168.1.100:/myth    /media/myth    nfs4    rw,user,noauto,exec    0    0

TIA for any help smile

Offline

#2 2009-07-24 09:04:42

raku
Member
Registered: 2006-08-23
Posts: 48

Re: NFS4 issues

colbert wrote:

1. When I reboot I always have to redo the mount --bind command to bind the /media/stuff to /srv/nfs4/stuff. How to stop having to do this each reboot?

add an entry to your /etc/fstab

2. When I reboot I have to manually do "mount /media/myth" each time, it doesn't seem to do it automatically. Here is from fstab:

192.168.1.100:/myth    /media/myth    nfs4    rw,user,noauto,exec    0    0


raku

Offline

#3 2009-07-24 19:41:09

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: NFS4 issues

Ah, nuts, I can't believe I missed the noauto in there! Took it out, thanks raku smile

However, the mount --bind is still an issue, I must redo it each time at reboot, why?

Offline

#4 2009-07-24 23:27:59

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: NFS4 issues

Hello Colbert!

Last case, you must put it to the /etc/rc.local

Offline

#5 2009-07-25 06:47:32

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: NFS4 issues

Thanks djszapi, didn't think of that! (Never used rc.local so far). Thanks smile big_smile

Offline

#6 2009-07-25 07:01:04

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: NFS4 issues

It's the last automatization joker file smile But you can write a daemon/script for it too, and set it to the boot runlevel in rc.conf , but this is easier. smile

Offline

#7 2009-07-25 19:56:40

raku
Member
Registered: 2006-08-23
Posts: 48

Re: NFS4 issues

heeeelooooo !!!!!

raku wrote:

add an entry to your /etc/fstab

Last edited by raku (2009-07-25 19:57:13)


raku

Offline

#8 2009-07-25 22:56:00

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: NFS4 issues

Oops, I didn't realize you had meant to put the bind command in fstab, my bad raku.. thanks smile

Offline

#9 2009-07-26 21:36:56

raku
Member
Registered: 2006-08-23
Posts: 48

Re: NFS4 issues

you're welcome :-D


raku

Offline

Board footer

Powered by FluxBB