2005-09-22 08:59:28

by Joeri Belis

[permalink] [raw]
Subject: /etc/exports and netmask option

My nfs was working perfect with following /etc/exports on the server

/home/test/nfstest 198.9.200.227(rw,sync,no_root_squash)

But after a powerloss and restart of the server it only works with the
following

/home/test/nfstest 198.9.200.227/24(rw,sync,no_root_squash)

if i don't add the /24 netmask option i get this error

exportfs: No host name given with
/home/test/nfstest(rw,no_root_squash)
(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_
locks,mapping=identity,anonuid=-2,anongid=-2),
suggest
*(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure
_locks,mapping=identity,anonuid=-2,anongid=-2)
to avoid warning

So my question is. Why do i suddenly need to add the netmask option. I am
sure it
was not there before. After the powerloss, I had to remove the mount on the
client
it was giving rubbish. any ideas?



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2005-09-24 17:47:22

by Reuti

[permalink] [raw]
Subject: Re: /etc/exports and netmask option

Hi,

Zitat von Joeri Belis <[email protected]>:

> My nfs was working perfect with following /etc/exports on the server
>
> /home/test/nfstest 198.9.200.227(rw,sync,no_root_squash)
>
> But after a powerloss and restart of the server it only works with the
> following
>
> /home/test/nfstest 198.9.200.227/24(rw,sync,no_root_squash)
>
> if i don't add the /24 netmask option i get this error
>
> exportfs: No host name given with
> /home/test/nfstest(rw,no_root_squash)
> (ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_
> locks,mapping=identity,anonuid=-2,anongid=-2),
> suggest
> *(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure
> _locks,mapping=identity,anonuid=-2,anongid=-2)
> to avoid warning
>
> So my question is. Why do i suddenly need to add the netmask option. I am
> sure it
> was not there before. After the powerloss, I had to remove the mount on the
> client
> it was giving rubbish. any ideas?

what happens if you give the command:

$ exportfs -o rw,sync,no_root_squash 198.9.200.227:/home/test/nfstest

directly? Maybe you have to "resync" some of the NFS files because of
the crash.
You can try to shutdown the NFS service and look into /var/lib/nfs and zap the
etab, rmtab and xtab (:>etab) before you restart it.

Cheers - Reuti



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs