Operating System - HP-UX
1753278 Members
5567 Online
108792 Solutions
New Discussion

Re: nfs mount in service guard

 
SOLVED
Go to solution
support_billa
Valued Contributor

nfs mount in service guard

hello,

 

i tried to umount a filesystem :

 

- fuser -c <fs> and lsof -s +D <fs> didn't show any process

- i was perplexed and got an input to stop nfs shares with "/etc/cmcluster/<package>/hanfs.sh stop"

  then it works.

 

my questions :

 

- does a command exist like "fuser" , which show process for nfs share fs ?

  i found "nfsstat" , but no option for a filesystem ?

- can i find in the operating system , it is a nfs share ? i learned here, with example "ll -i /<fs>" shows inode 2, inode 2 is a mounted filesystem.

- what tasks i have to do  to umount and mount a nfs share ? hanfs.sh stops all .

 

    here my ideas:

 

   1. umount <fs>   ; <= not possible>

   2. command for looking processes ?

   3. no open processes

   4. find out , if it is a nfs share

   5. yes, "nfs-umount"

   6. after some jobs , mount the nfs share

   7. mount

   8.  nfs options for "sharing"

 

regards,

 

 

8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: nfs mount in service guard

There is fuser and lsof.

If you are on 11.31, there is umount -f.

support_billa
Valued Contributor

Re: nfs mount in service guard

hello,

 

i posted : fuser -c <fs> and lsof -s +D <fs> didn't show any process

 

following tasks i do and i got the errors

 

umount   <fs>
umount: cannot unmount /dev/vgfs/fs : Device busy
umount: return error 1.

 

# fuser -c <fs> and lsof -s +D <fs> didn't show any process


umount  -f <fs>
usage: umount [-V] [-v] { special | directory }
       umount [-F FStype] [-v] -a
       umount: return error 1.

uname -a
HP-UX server B.11.31 U ia64 4022283311 unlimited-user license

 

regards

support_billa
Valued Contributor

Re: nfs mount in service guard

hello,

 

what's the best way to find out , if it is a nfs share and show with a command the filesystem is in use ?

 

regards,

Naj
Valued Contributor

Re: nfs mount in service guard

Hi,

check background process

#ps -ef |grep nfs
#kill -l SEGV (pid)

then try to umount/mount FS

Thanks

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
support_billa
Valued Contributor

Re: nfs mount in service guard

 

hello,

what about with the commands " share -F nfs ..." , "showmount"

 

regards

Arunabha Banerjee
Valued Contributor
Solution

Re: nfs mount in service guard

To check nfs mount on server.

 

# showmount -a   (Print all remote mounts)

# showmount -e   (Print the list of exported file systems)

# cat /etc/exports  (directories to export to NFS clients)

# cat /etc/dfs/dfstab  (directories to export to NFS clients - HP-UX 11.31 onwards)

 

To check remote mount

# showmount -e host   (This shows you any nfs exports that might be available from a server to that specific host)

 

In nfs clinet

# bdf -t nfs

# cat /etc/mnttab

AB
support_billa
Valued Contributor

Re: nfs mount in service guard

thx :

 

what are the same commands at HPUX 11.23:

 

HPUX 11.31

Create Share

/usr/sbin/share -F nfs -o anon=65534 -d "test share" /test_share

 

Remove Share
/usr/sbin/unshare -F nfs /test_share

 

regards

Dennis Handly
Acclaimed Contributor

Re: nfs mount in service guard

>what are the same commands at HPUX 11.23:

>Create Share

 

exportfs(1m)

 

>Remove Share

 

exportfs -u