automounting file systems on HP-UX

Hi folks,

How do I create automounts? Is it just the /etc/fstab file that needs to be updated, or is there more to it?

Example:
linuxserver – all the source file systems are on this box
(all have been exported)

hpserver – where I need to implement NFS mounts for the source file systems on linuxserver
(all mount points have been created on hpserver)

I need to mount on hpserver the filesystem /rmfmnt/BWS/profile that resides on linuxserver.

Thanks in advance!

LVL 1
sonriksAsked:
Who is Participating?
 
wesly_chenConnect With a Mentor Commented:
> mount on hpserver the filesystem /rmfmnt/BWS/profile that resides on linuxserver.
For manual mount:
1. export out filesystem on linux server (as root)
# echo "/rmfmnt/BWS/profile  *(rw)"  >> /etc/exports
# exportfs -a
# service nfs restart    <=== make sure nfs server is running in linux server

2. create mount point on HP-UX (as root)
# mkdir -p /nfs-mount/BWS/profile

3. test mount on HP-UX
# mount <linux hostname or IP>:/rmfmnt/BWS/profile  /nfs-mount/BWS/profile

if everything ok, then on HP-UX
# echo "<linux hostname>:/rmfmnt/BWS/profile   /nfs-mount/BWS/profile  nfs  rw  0 0" >> /etc/fstab
0
 
wesly_chenConnect With a Mentor Commented:
Configuring and Administering AutoFS:
http://docs.hp.com/en/B1031-90043/ch02s04.html
0
 
sonriksAuthor Commented:
Wesly,

I appreciate you showing me both ways to accomplish this! Thanks for the prompt response!

Sonriks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.