To remount without rebooting you could use:
mount -o remount /mountpoint
----------------------------------------------------------------------------------
If you're satisfied with the solutions provided please mark the solution as ACCEPTED.
Don't forget to thank those who helped you out with kudos!
I would expect that your df -H hanging is a symptom of issues with your cifs device or configuration. As the df marches through the mounted filesystems, it gets to that one and is unable to get a response, hence why it is hanging. It is unusual that you would need to remount it unless you're doing something like suspending a laptop and changing it's networks where the cifs mounts was initially connected (original network) but now is not (new network).
-STM
Hi ,
I have same kind of problem in my envoirnment . So in case if mount -o remount does not work does not work .
Try # umount -lf /mountpoint
Please check firewall rules on samba server allow access to remote machine . Sometime because of slow reponse from sambe or nfs share ,df -h output hangs becasue check connectiviy between share drive .
Also in case you want to df -h command to check other partition size , Use
#df -h /mountpoint
Till share drive issue solve .
Hi,
#strace /bin/df #and verify were it hangs
# umount -l /pathToMount
This worked like a charm, Thank You
strace command is very very useful to find the errent mount!! Then simpley umount
-l /pathToMount, as shown above, WORKS EXCELENT & SIMPLE.
I unmounted my nfs share using umount command. But it is not mounting back using mount -a command. Please help.
@Kailas4035 try mounting with -v and see what it is showing. Check in the logs for any error / info.
Are there other clients as well - were the issue is found in any of those clients as well ? If yes then it is a NFS server side issue. Check for service and logs in the server.
If other clients are working fine then check the affected client side - network issue can be affecting. You can use the tcpdump script here to capture the packets and analyse the network issue : https://access.redhat.com/articles/4330981#intermittent
Hi @Mukeshkumar ,
Thanks for reaching out !
You should first try to find out the reason for the hung df -h command using strace command : strace /bin/df -h or strace mount -t cifs //<cifsserverIP>/share /mnt
There can be multiple reasons for the hung df -h like :
1. May be CIFS server is not responding.
2. May be there is a problem with the network connection between the RHEL server and the CIFS server.
3. Finally, it is also possible that there is a problem with the CIFS file system itself.
Once you found out the reason for hung df -h , then use lazy unmount :
umount -l <mountpath>
then, mount the file system using mount -a. This should resolve your issue.
Here are some additional tips for troubleshooting if df -h hangs for a CIFS mount:
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.