System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Clean up of NFS on client hp-ux server problem

SOLVED
Go to solution
Doug_3
Frequent Advisor

Clean up of NFS on client hp-ux server problem

Hi, I have a 11.23 server that had a nfs mount to another 11.23 server. In the process of removing the nfs mounts, I must have followed the steps incorrectly. I am still 'seeing' the nfs mount points when using the lsf or ll commands.
I have attempted to reconnect everything using SAM and then unmount the nfs client and then the exported points.
I have not attempted to stop the nfs client or server components.

Any ideas on how to clean this up?

Thanks in advance,
Doug
P.S., am generous with points!
7 REPLIES
Matti_Kurkela
Honored Contributor
Solution

Re: Clean up of NFS on client hp-ux server problem

A mount point is simply a regular directory, onto which the new filesystem is mounted.

If you have already unmounted the NFS mounts, a simple "rmdir" will get rid of the mount point directories.

MK
MK
avizen9
Esteemed Contributor

Re: Clean up of NFS on client hp-ux server problem

Hello,
first of all you need to undestand how we mount nfs, here is one example for you.

telnet teststation
cd /
mkdir /newdata
mount hpunix.hp.com:/data /newdata

cd /newdata
ls

here i had NFS mounted /data from hpunix.hp.com to my unix system name teststation in newdata local folder

now once i will finish my work i will umount it through

umount /newdata

and then i will remove newdata folder

cd /
rm -rf newdata

that all.... let me know how it goes,
Sajjad Sahir
Honored Contributor

Re: Clean up of NFS on client hp-ux server problem



Dear Doug

Mount means make accessible no mount means not accessible once file is exported from server side and u mounted from client side
by creating a directory,u can easily umount from client side then remove as a normal directory
for mounting we are creating a dir thats all

Sajjad
點燃
Valued Contributor

Re: Clean up of NFS on client hp-ux server problem

If the only problem is that you are still seeing the old mount points, just do an 'rmdir ' and get it deleted. Also remove those entries from /etc/fstab if you have them.

regards!
Man's mind, once stretched by a new idea, never regains its original dimensions
sachit patil
Regular Advisor

Re: Clean up of NFS on client hp-ux server problem

you can check nfs filesystem present
#showmount -a
# more /etc/xtab
Bill Hassell
Honored Contributor

Re: Clean up of NFS on client hp-ux server problem

Use: bdf -t nfs

bdf will show you active NFS mountpoints. Once bdf reports no NFS mountpoints, they will be gone. Like all flavors of Unix, a simple directory is used to connect a mounted filesystem to the root directory structure. Since this can be confusing, I always do this for every directory that will be a mountpoint:

touch /cdrom/IamNOTmounted
touch /mnt/IamNOTmounted
touch /mnt1/IamNOTmounted

and so on. If you mount something (a local lvol, an NFS or CIFS volume, etc) then the IamNOTmounted file becomes invisible. Unmount the filesystem and the file becomes visible -- a self-documenting feature.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: Clean up of NFS on client hp-ux server problem

Hi,
Please post your bdf output and the below commands output

umount /your mountpoint
if not then
fuser -cu /your mountpoint

Suraj