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.
Storage* nfs

Avatar of undefined
Last Comment
SooHow Cheng

8/22/2022 - Mon

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.

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"
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SooHow Cheng

Hi everyone,

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

No settings in /etc/fstab

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SooHow Cheng

Hi noci,

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