On NFSv4, client hangs on shutdown process if NFS server has been shutdown
first. It happens when renew or delegreturn operation is issued from async
threads after the NFS server goes down. Then async threads are never killed
and umount process blocked on them.
Once we fall to the situation, we need system reset or stop-a for recovery.
Work Around
Disable delegation by setting NFS_SERVER_DELEGATION=off on /etc/default/nfs of NFS server.
Use reboot(1M) instead of shutdown(1M).
Comments
this does not appear to work properly and as intended, 'unmountall -l' still does
attempts to unmount autofs triggered NFS mounts, see my update from
Entry 6 frank.batschulat [2008-12-01 17:53] in bug 6544130.
Similar hang issue was reported on NFSv3 on different site, and they confirmed
it's solved by fix of this CR. Because the fix is not NFSv4-specific but done
on svc.startd code, I changed the category/subcategory of this CR to utility/smf.