linux_maintenance_nfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_maintenance_nfs [2019/10/30 17:58] – external edit 127.0.0.1linux_maintenance_nfs [2020/04/08 09:05] (current) andonovj
Line 128: Line 128:
 mount -t nfs IP_ADDR:/backups/mongo /apphome/backup/mongo -vvv -o mountproto=tcp mount -t nfs IP_ADDR:/backups/mongo /apphome/backup/mongo -vvv -o mountproto=tcp
 </sxh> </sxh>
 +
 +
 +======Unmount NFS======
 +To unmount NFS, you can use the standard:
 +<sxh bash>
 +umount /apphome/backup/mongo
 +</sxh>
 +
 +However in a lot of cases, you cannot do that because, the NFS isn't responsible or the device is busy. You have to use the force option:
 +
 +===Force===
 +<sxh bash>
 +umount -f /apphome/backup/mongo
 +</sxh>
 +
 +===Lazy===
 +However, the upper command relies that the NFS is responsible up to some amount and that isn't always teh case. In such cases, we can do so called Lazy unmount which will unmount the FS now and clean the slots when the NFS becoms available again:
 +
 +<sxh bash>
 +umount -l /apphome/backup/mongo
 +</sxh>
 +
 +===Really force===
 +In some cases, we really need to shutdown the NFS and kick everyone and burn the server to the ground :)
 +For that we can use:
 +
 +<sxh bash>
 +fuser -ks /apphome/backup/mongo
 +</sxh>
 +
 +That will kick all the processes from that file system and most probably kick you from the server as well.
 +
 +
 +
 +
 +
  
  • linux_maintenance_nfs.1572458286.txt.gz
  • Last modified: 2019/10/30 17:58
  • by 127.0.0.1