domenica 15 luglio 2012

NIM Cleanup

Sometimes during a nime operation , for example a maint_boot , we encounter a strange and annoying error 611.
This issue is due to a nfs problem during the mount of the spot resource on the client.
Sometimes the error is resolved by correction of the name resolution at the client side ,
but in other cases the problem depends on a nfs server issue.
There is a sequence that allows to clean and reset the nfs server environment to let the published
resources to be available to clients again.
On the master , we start unexporting all nfs resources :
exportfs -ua
stopping the daemon 
stopsrc -g nfs
removing (or moving in other place if you prefer) the daemon relatedfiles 
cd /etc
rm -rf xtab state sm sm.bak rmtab
cd /var/statmon
rm -rf state sm sm.bak
Now we can start again
startsrc -g nfs
And tell the daemon to re-export everything
exportfs -va
We can check the exportde filesystems by typing :
exportfs

Nessun commento: