Link to home
Create AccountLog in
Avatar of SooHow Cheng
SooHow ChengFlag for Singapore

asked on

How to unmount those nfs shares when these shares won't available from the NetAPP storage

This is using SuSE SLES 12. This is a database server with 20+ remote nfs share mapping. The mapping is reliable and work without any problem. However, one fine day, few of these nfs shares were removed from the NetAPP. This is because these shares are not more needed for the server.
Now, the problem came as on our monitoring console, these mappings still persist and show error.0107_Capture.JPG

How to unmount all these unwanted nfs shares so as these shares disappear permanently?

thanks in advance.
Avatar of rindi
rindi
Flag of Switzerland image

How did you setup the mounts in the first place? If they are in your /etc/fstab file, just edit that file & remove those entries you no longer need. You can also delete the according mount points. A reboot & everything should be fine.
Avatar of noci
noci

Besides  /etc/fstab also check if automount is active possibly it needs an adjustment as well.
To unmount the nfs shares for the current session only, as root:
umount "MountPoint"
Avatar of SooHow Cheng

ASKER

Hi everyone,

Ran this command - umount -l </mountpoint> and lazy unmount those mountpoint.

No settings in /etc/fstab
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Hi noci,

Thanks for the explanation on "-l". This method works for us.