Reboot hangs when NFS share is mounted and lost connection to NFS server during I/O operation in Red Hat Enterprise Linux.
Issue
- Reboot hangs when NFS share is mounted and lost connection to NFS server during I/O operation.
- Mostly seen nfs disconnection log.
nfs: server 1.1.1.1 not responding, still trying
Unmounting NFS filesystems: umount.nfs: <mount point>: device is busy
umount.nfs: <mount point>: device is busy
[FAILED]
Unmounting NFS filesystems (retry): [ OK ]
The issue occurs if the mount option is hard mount
Environment
- Red Hat Enterprise Linux 9
- All kernels believed to be affected
- Red Hat Enterprise Linux 8
- All kernels believed to be affected
- Red Hat Enterprise Linux 7
- All kernels believed to be affected
- Red Hat Enterprise Linux 6
- All kernels believed to be affected
- NFS mount point
- 'hard' mount option
- NFS IO in progress
- Network partition (can be simulated with firewalld port block on NFS server)
- 'reboot'
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.