?
Solved

df -k hangs in redhat 5.x

Posted on 2010-09-24
4
Medium Priority
?
1,223 Views
Last Modified: 2012-05-10
I did a df -k on a box and the command hung.

Called the SA and very quickly learned that it was a hung samba mount.

How did he determine that so quick ( what was the command ? )

0
Comment
Question by:TIMFOX123
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1336 total points
ID: 33756275
Issue "df" and note the last filesystem dispayed before the hang.
Now issue "mount".
The filesystem displayed just following the one you noted is most probably the culprit.

wmp
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 1336 total points
ID: 33756305
... or issue "mount" and then "df /mount/point" one by one against all displayed mountpoints.
You will immediately see where it hangs.
0
 
LVL 14

Assisted Solution

by:Deepak Kosaraju
Deepak Kosaraju earned 664 total points
ID: 33757454
df hungs when samba (or) nfs mountpoints are having problem. Try to cd to the filesystem that are mounted via samba (or) NFS if u cannot that implies filesystem is hung. Its better to open a new remote session as a backup because even cd hungs when you try to a hung filesystem. using mount -a u can try to remount the filesystem if else the entry to mount the filesystem is present under /etc/fstab if not try to check the status to services on SAMBA Server if all looks good on server side, mount the filesystem manually using following command
mount -t smbfs //server1/sharefilesystem /destinationfilesystem

To automount using fstab everytime when system boots use following procedure in the link
http://www.cyberciti.biz/faq/configure-a-system-to-automount-a-samba-share-with-etcfstab/
0
 

Author Closing Comment

by:TIMFOX123
ID: 33762518
'this answers my question
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question