Operating System - HP-UX
1836617 Members
2642 Online
110102 Solutions
New Discussion

can we mount two different file systems on one directory?

 
praveen..
Super Advisor

can we mount two different file systems on one directory?

Hi,
#bdf
::::
::::
/dev/vg02/praveen_oracle 897449984 706100592 191349392 79% /praveen/oracle
::::
::::
I need to mount a nfs file system on /praveen/oracle.
can i do it without umount it from /dev/vg02/praveen_oracle
if yes, how can i do it?
Thanks
praveen
9 REPLIES 9
melvyn burnard
Honored Contributor

Re: can we mount two different file systems on one directory?

Yes, but any data currently visible in /praveen/oracle will not be visible or useable until you unmount the NFS file system.
Just use normal NFS mount
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
praveen..
Super Advisor

Re: can we mount two different file systems on one directory?

which command i have to use for nfs mount:
#mount ip_address:/directory /praveen/oracle

or something else?
Geoff Wild
Honored Contributor

Re: can we mount two different file systems on one directory?

If you mount a nfs mount on /praveen/oracle, then you won't be able to "see" what is currently on /praveen/oracle...until after you umount the NFS.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Chan 007
Honored Contributor

Re: can we mount two different file systems on one directory?

You can,

But you bdf output will not be proper.

Also the prev mount directory will go invisible until you unmount the new one..

Chan

Sundar_7
Honored Contributor

Re: can we mount two different file systems on one directory?

Praveen,

You cannot mount the NFS filesystem without unmounting the local file system. I disagree with the above post.

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Jason Ray
Frequent Advisor

Re: can we mount two different file systems on one directory?

You could also go into SAM and use the Add Remote File System options.
praveen..
Super Advisor

Re: can we mount two different file systems on one directory?

this is the error:
nfs mount: mount_nfs: mount: /apps/LoyAn/share: Device busy
Sundar_7
Honored Contributor

Re: can we mount two different file systems on one directory?

As I said, you cannot mount the NFS filesytsem on top of the exisiting local mount.

If it was just a directory , then it will allow you to mount the NFS filesystem on that directory. In that case you will not be able to see the contents of the directory untill you unmount the NFS filesystem.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: can we mount two different file systems on one directory?

Doh! - Sundar is right - because the underlying filesystem will be busy - even if it isn't in use...

What you need to do is either umount /praveen/oracle or mkdir /praveen/oraclenet and nfs mount on the new dir...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.