Skip to contentSkip to conversation

/etc/exports and netmask option

DISCUSSION Joeri Belis 2 participants 2 messages Sep 22, 2005 – Sep 24, 2005

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

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

#1 lore raw

Hi,

Zitat von Joeri Belis <[email protected]>:

Quoted 20 lines

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

Quoted 5 lines

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