Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to permanent mount a file system on HP-UX? 1

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
US
I did some reasearch and got an impression that can be done by adding an entry in /etc/fstab. But I don't know what the correct syntax is.

The entries look simple in /etc/fstab.

Code:
% cat /etc/fstab
# System /etc/fstab file.  Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
[COLOR=blue]/dev/vg00/lvol8[/color] [COLOR=red]/var[/color] vxfs delaylog 0 2

The blue is the file system and the red is the mount, right? But when I tried the same, the mount did not work.

I am new to HP-UX, and you help is highly appreciated.
 
Is /var the filesystem you are trying to mount? Have you already created the lvol8 logical volume and created a filesystem on it?

Does it mount correctly if you type mount /var?

Annihilannic.
 
Thank you, Annihilannic and sorry being late in replying your post.

I guess I did not make myself clear in my previous post. The example was the content of the original /etc/fstab. I added a new entry into /etc/fstab like this:

x.y.z.com:/homedir/myhome /mnt vxfs delaylog 0 2

Then I ran 'mount /mnt' at the prompt:

Code:
% mount /mnt
vxfs mount: Cannot access [b]x.y.z.com[/b]: No such file or directory
vxfs mount: Cannot access [b]x.y.z.com:/homedir/myhome[/b]: No such file or directory

However, if I ran the following cmd:

Code:
% mount x.y.z.com:/homedir/myhome /mnt

Then the mount does WORK fine, which means it CAN ACCESS x.y.z.com:/homedir/myhome.

What did I miss here?
 
The problem is you specified vxfs as the filesystem type, however the filesystem you are mounting is apparently nfs, judging by the fact that it is located on another server. vxfs is only supported on local devices.

Annihilannic.
 
thank you, Annihilannic.

After I changed vxfs to nfs, it works now.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top