You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: The “df -hT” Command Hangs

Applies to:  

Oracle Cloud Infrastructure - Version N/A and later 

Symptoms:

OS level command like df -hT are hanging or provide no output.

Cause

The issue is due to a decommissioned NFS mount, but the NFS  mountpoint on the Client is 

still mounted.

It can be checked with:

# findmnt | grep -i nfs
TARGET                                SOURCE                                                   FSTYPE      OPTIONS
/nfs-mountpoint                nfs-server:/shared-nfs-filesystem       nfs         
rw,noatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,r
etrans=2,sec=sys,mountaddr=10.x.x..x

The following commands hang:

# df -hT
# lsof /nfs-mountpoint
# fuser /nfs-mountpoint

Solution

Attempt  to forcibly unmount the filesystem:

# umount -f /nfs-mountpoint
If the above command hangs or fails, retry with the “-l” option:
# umount -l /nfs-mountpoint

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!