LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   df command works, but hangs (https://www.linuxquestions.org/questions/linux-server-73/df-command-works-but-hangs-657502/)

philh03 07-22-2008 02:40 PM

df command works, but hangs
 
All - When I issue the df command on one of the Solaris X6250 running RedHat Linus 4 64 bit the command displays the data fine, but then it hangs, not returning to the command prompt. It happens no matter what shell I'm using. The only way to get out is to kill the SSH session I've used to connect.

Any ideas?

Phil

trickykid 07-22-2008 02:50 PM

You might have a hung mount somewhere, like an NFS share or the like? Does this server have NFS or another other remote mounts setup?

philh03 07-22-2008 02:53 PM

Yes, new F+NFS mount
 
Yes, another person tried to create one.

trickykid 07-22-2008 03:47 PM

Quote:

Originally Posted by philh03 (Post 3222962)
Yes, another person tried to create one.

There you go then. It's not very graceful but whenever I've encountered this issue and was unable to umount properly or if it's for sure not mounted, sometimes the /etc/mtab file will still have the NFS mount in the file, I'll edit this file to remove the NFS mount and df works like a charm once again. Be careful though to not remove any other mount you need for the system though.

You may consider AutoFS if you do need NFS mounts. It will mount when needed and umount after no activity for the time specified in the configuration.


All times are GMT -5. The time now is 04:12 PM.