Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
2 added 644 characters in body
source | link

(my systems are running centos7)

I'm trying to check from the client if drives are mounted properly over NFS.

Typing the command nfsstat -m gives me the mounts that it thinks are currently mounted, but this is no guarantee that those folders are accessible. It could just be that the nfs server was running when those folders were mounted but that the nfs server is down now.

For example if the nfs server goes down and on the client machine I type df -h then the command will hang indefinitely. Likewise, if I try to ls the folder I'm trying to mount then it too will hang indefinitely.

Here's an example that shows my problem

# on server
systemctl start nfs-server

# on client
mount node1:/mnt/images /mnt/images
df -h #works fine here

# on server
systemctl stop nfs-server

# on client
nfsstat -m #shows the list of nfs mounts
df -h #this command will hang
ls /mnt/images #this command will hang

Any suggestions on how to test if from the client side if the NSF server is running or if the NSF mounted folders are accessible would be greatly appreciated.

UPDATE

If I run showmount -e on the server I get this output (note /mnt/images and /mnt/rv_output and /rv are all folders I'm trying to mount from my client machines)

/mnt/rv_output 192.168.81.0/24
/mnt/images    192.168.81.0/24
/rv            192.168.81.0/24

But I'm not interested in testing this connection on the Server, I want to test it on the client machines. If I run showmount -e on the client I get the same output irregardless of where the nfs-server has been activated from the Server computer.

clin_create: RPC: Port mapper failure - Unable to receive: errno 111 (connection refused)

(my systems are running centos7)

I'm trying to check from the client if drives are mounted properly over NFS.

Typing the command nfsstat -m gives me the mounts that it thinks are currently mounted, but this is no guarantee that those folders are accessible. It could just be that the nfs server was running when those folders were mounted but that the nfs server is down now.

For example if the nfs server goes down and on the client machine I type df -h then the command will hang indefinitely. Likewise, if I try to ls the folder I'm trying to mount then it too will hang indefinitely.

Here's an example that shows my problem

# on server
systemctl start nfs-server

# on client
mount node1:/mnt/images /mnt/images
df -h #works fine here

# on server
systemctl stop nfs-server

# on client
nfsstat -m #shows the list of nfs mounts
df -h #this command will hang
ls /mnt/images #this command will hang

Any suggestions on how to test if from the client side if the NSF server is running or if the NSF mounted folders are accessible would be greatly appreciated.

(my systems are running centos7)

I'm trying to check from the client if drives are mounted properly over NFS.

Typing the command nfsstat -m gives me the mounts that it thinks are currently mounted, but this is no guarantee that those folders are accessible. It could just be that the nfs server was running when those folders were mounted but that the nfs server is down now.

For example if the nfs server goes down and on the client machine I type df -h then the command will hang indefinitely. Likewise, if I try to ls the folder I'm trying to mount then it too will hang indefinitely.

Here's an example that shows my problem

# on server
systemctl start nfs-server

# on client
mount node1:/mnt/images /mnt/images
df -h #works fine here

# on server
systemctl stop nfs-server

# on client
nfsstat -m #shows the list of nfs mounts
df -h #this command will hang
ls /mnt/images #this command will hang

Any suggestions on how to test if from the client side if the NSF server is running or if the NSF mounted folders are accessible would be greatly appreciated.

UPDATE

If I run showmount -e on the server I get this output (note /mnt/images and /mnt/rv_output and /rv are all folders I'm trying to mount from my client machines)

/mnt/rv_output 192.168.81.0/24
/mnt/images    192.168.81.0/24
/rv            192.168.81.0/24

But I'm not interested in testing this connection on the Server, I want to test it on the client machines. If I run showmount -e on the client I get the same output irregardless of where the nfs-server has been activated from the Server computer.

clin_create: RPC: Port mapper failure - Unable to receive: errno 111 (connection refused)
1
source | link

Check from Client if NFS is running on Server

(my systems are running centos7)

I'm trying to check from the client if drives are mounted properly over NFS.

Typing the command nfsstat -m gives me the mounts that it thinks are currently mounted, but this is no guarantee that those folders are accessible. It could just be that the nfs server was running when those folders were mounted but that the nfs server is down now.

For example if the nfs server goes down and on the client machine I type df -h then the command will hang indefinitely. Likewise, if I try to ls the folder I'm trying to mount then it too will hang indefinitely.

Here's an example that shows my problem

# on server
systemctl start nfs-server

# on client
mount node1:/mnt/images /mnt/images
df -h #works fine here

# on server
systemctl stop nfs-server

# on client
nfsstat -m #shows the list of nfs mounts
df -h #this command will hang
ls /mnt/images #this command will hang

Any suggestions on how to test if from the client side if the NSF server is running or if the NSF mounted folders are accessible would be greatly appreciated.