1834163 Members
2716 Online
110064 Solutions
New Discussion

Mounting Filesystems

 
SOLVED
Go to solution
Andrew Beal
Frequent Advisor

Mounting Filesystems

Hi,

I am trying to build a new server for the first time (a-class running hp-ux 11.11)

I am trying to create a mount point for the omniback database to live in /var/opt/sw/omni. The logical volume size is 8GB, but when I try and mount that directory, everything in it dissapears??? I find this really strange as on rare occasions the files stay there when I mount different filesystems?? I am awfully confused... can someone please shed some light on this for me?

Thanks in advance!

Andrew
5 REPLIES 5
Suhas_2
Regular Advisor

Re: Mounting Filesystems

Hi Andrew,
If I understand the problem correctly,
here is what you are trying to do ...
1> You have data in /var/opt/sw/omni. Now you have created a logical volume and you are trying to mount it as /var/opt/sw/omni. During this the data inside /var/opt/sw/omni is disappearing.

What I would suggest here is....
Initially mount the new logical volume as a temporary mount point.. say /mount.
Then dump the contents of /var/opt/sw/omni into this mount point.
Now unmount the temporary mount point.
And mount the logical volume as /var/opt/sw/omni.

Hope this helps...
Suhas.
Never say "Die"
malay boy
Trusted Contributor
Solution

Re: Mounting Filesystems

Andrew,
My assumption are :
1) you already have data in /var/opt/sw/omni and this is just directory not mount point.
2) You have create a new filesystem and want to mount at /var/opt/sw/omni

Well , you need to copy out the data in /var/opt/sw/omni either to tape or another directory.
2) good practise are to delete everything in /var/opt/sw/omni before mount
3) mount the new filesystem ro /var/opt/sw/omni
4)copy back the data...


If you a mount a filesystem to directory then the data in the directory cannot be seen anymore.(it's hidden)...the data are dare but hidden..

hope this help

regards
mB
There are three person in my team-Me ,myself and I.
Michael Tully
Honored Contributor

Re: Mounting Filesystems

The best way is create a separate filesystem for OB.

e.g. /omni_db
# mkdir /omni_db
turn off omniback
# /sbin/init.d/omni stop
# lvcreate -n obvol /dev/myvg
# lvextend -L 8192 /dev/myvg/obvol
# newfs -F vxfs /dev/myvg/robvol
# mount /dev/myvg/obvol /omni_db
# cd /var/opt/omni
# mv db40 /omni_db (if version 4)
There should be no other files.
# rm -rf /var/opt/omni
# ln -s /omni_db /var/opt/omni
# /sbin/init.d/omni start

update the /etc/fstab with the appropriate entries.
regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"

Anyone for a Mutiny ?
Andrew Beal
Frequent Advisor

Re: Mounting Filesystems

Thanks for your reply, I will defiantley give that a go.

But I still dont understand why this happens??

Regards,

Andrew
Andrew Beal
Frequent Advisor

Re: Mounting Filesystems

Thanks for all your help once again, ignore my last message it seems to be sitting in the wrong spot...

Cheers ;)

Andrew