[RHEL 6.1] filesystem used for NFS export fails to unmount and returns 'device is busy' error
Issue
- In RHEL 6.1 NFS server, the filesystem used for NFS export failed to unmount and returned
device is busy
error:
$ umount /vol1
umount: /vol1: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
- Below are the steps that leads to this issue:
- On NFS server create ext2/ext3 filesystem on a device, and mount the filesystem
- Export the filesystem using NFS version 4 (default version)
- Mount the NFS filesystem on client
- Now open a new file in NFS share with
O_RDWR|O_CREAT
flags, again open the same file withO_RDONLY
mode - Close the file opened in previous step
- Unmount the NFS filesystem on client
- Unexport the filesystem from NFS server
- On NFS server try to unmount the filesystem used for NFS export, it fails with
device is busy
error
Environment
- Red Hat Enterprise Linux 6.1
- kernel 2.6.32-131.0.15.el6.x86_64
- NFSv4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.