cancel
Showing results for 
Search instead for 
Did you mean: 

auto mount

 
SOLVED
Go to solution
Yarok
Regular Advisor

auto mount

Hello,

Each time I am rebooting the HP UX machine, the mount for all other machines are lost.
Is there any possible to ensure it would not happend?
If so, how?

Thanks,

Yaron
35 REPLIES
DeafFrog
Valued Contributor

Re: auto mount

Hi ,

have not you mentioned them in /etc/fstab ,
(expect when FS is in cluster)
what tye of application you have on servers..how does this application utilizes the underlying disk structure , please provide more details.A fstab should look like this :

~
/dev/vg01/mango08 /mango08 vxfs defaults 0 2
/dev/vg01/mango09 /mango09 vxfs defaults 0 2
/dev/vg01/mango10 /mango10 vxfs defaults 0 2
/dev/vg01/mango11 /mango11 vxfs defaults 0 2
/dev/vg01/mango12 /mango12 vxfs defaults 0 2
/dev/vg01/mango13 /mango13 vxfs defaults 0 2
/dev/vg01/mango14 /mango14 vxfs defaults 0 2


Regards,
FrogIsDeaf
DeafFrog
Valued Contributor

Re: auto mount

Hi ,

i misread the thread "the mount for all other machines are lost"....i guess you are having NFS export form the server and having the NFS client to mount the same .

Regards,
FrogIsDeaf
Yarok
Regular Advisor

Re: auto mount

Hello,

No, I didn't mention it.
Indeed, it is NFS and I dont quite sure who is the server and who is the client (I read that it could be both).

Now I looked on other HP machin on the fstab file and I have seen your meaning. Let me be more familiar with the line from it:

ednop:/vol/vol0/scc /ednop nfs rw,suid,soft,bg 0 0

Please let me know what are the following refer to:
ednop:/vol/vol0/scc /ednop nfs rw,suid,soft,bg 0 0

for example:
ednop - machine name (i know)
vol,vol0,scc (i know)

rw?
suid?
soft?
bg?
0,0?

should I define it by myself? what are the defenitions options I have?
regards.
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi Yaron/Yarok,

First check if your NFS server is permanently sharing the filesystem in /etc/dfs/dfstab on 11.31 and /etc/exports on 11.23 and check on the client side if the nfs entry is there for mounting permanently on /etc/fstab. This is an approach to your problem.

OK, so what i understand from your query is what are mount options . Now these are some options for mount...

ro/rw :- exapansion read only/read write
suid/nosuid :- Do u want suid bit set??
quota/noquota :- Do u want a filesystem quota set?

The 0 0 refers to backup frequency and fsck order. Backup frequency is like a "dummy" field in modern HPUX operating systems but you still need a placeholder 0 over there.

soft on NFS would refer to a soft mount. You will also see options on NFS mounts that deal with the behaviour of the NFS substystem when the NFS server hangs. Don't forget to assign appropriate points. :)

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Dennis Handly
Acclaimed Contributor

Re: auto mount

If you want to mount them on each reboot, you list then in /etc/fstab. If you are using the automounter, you don't list there, you put them in the automounter maps.

>I don't quite sure who is the server and who is the client.

You better know this.

>ednop:/vol/vol0/scc /ednop nfs rw,suid,soft,bg 0 0

You are mounting it R/W, you allow SUID programs. Your retry is soft.
See mount_nfs(1M):
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264554/c02264554.pdf
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi,

Just adding to Mr. Dennis Handly's comments. Since your topic is "auto mount", if you remove that space the terminology typically relates to AutoFS. But I don't think you (Yarok) are talking about direct, special or indirect maps. In case you are, the NFS client side service involves one essential file called as AUTOFS master map. You don't mention it in /etc/fstab, it automatically mounts and unmounts depending on access and idle time respectively.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Yarok
Regular Advisor

Re: auto mount

Hello Ismail,
Sorry for the dalay with assigning points and answer.




The OS does not have the file /etc/dfs/dfstab
I dont know what is 11.31 and 11.23.
Do you prefer that I will attach the files: /etc/dfstab /etc/mnttab and /etc/exports.?

Please advice.



Dennis Handly
Acclaimed Contributor

Re: auto mount

>The OS does not have the file /etc/dfs/dfstab

It isn't likely to be there on 11.23, just a dummy one.

>I don't know what is 11.31 and 11.23.

This is scary, 11i v2 and 11i v3. Look at: uname -a

>Do you prefer that I will attach the files: /etc/dfstab /etc/mnttab and /etc/exports?

We mostly care about /etc/fstab.
Yarok
Regular Advisor

Re: auto mount

the version is 11.11;
uname -a shows:

B.11.11 U 9000/785

I attached the file.
Dennis Handly
Acclaimed Contributor

Re: auto mount

>the version is 11.11;

Ok, you have workstation on an even older version (and that isn't like 11.31 either). :-)

You fstab entry indicates NO NFS mounts at all. So you could have been using the automounter to mount NFS filesystem.

Is it running? ps -fu root | grep auto
Yarok
Regular Advisor

Re: auto mount

I dont think so...

it says:

root 19394 4268 0 13:56:16 pts/1 0:00 grep auto
Dennis Handly
Acclaimed Contributor

Re: auto mount

So you aren't using the automounter. You either need to start or you need to add entries in fstab for each NFS filesystem you want to mount.

Were you mounting these before by an explicit script/command?
Yarok
Regular Advisor

Re: auto mount

Dear Dennis and Ismail

I checked the command ps -fu root | grep auto
in OTHER HP machine and the results are:

autofs_proc
/usr/lib/netsvr/fs/auto/automount

I attach the fstab file of this machine as well. what is the difference between nfs and vxfs mount?

1. Does it mean the mount will be activated automatically when rebooting the system?
2. Should I do the same in the problematic machine? if so how?
3. What is the fanction of /etc/mnttab file? can i edit it?

BR,

Yaron
Dennis Handly
Acclaimed Contributor
Solution

Re: auto mount

>in OTHER HP machine and the results are:
autofs_proc
/usr/lib/netsvr/fs/auto/automount

This machine is running the automounter.
You could look at the differences in /etc/fstab and /etc/mnttab to see what is currently automounted.
(Or root explicitly invoked mount/umount.)

>I attach the fstab file of this machine as well. What is the difference between nfs and vxfs mount?

vxfs, like hfs is local. NFS is remote.

You have two NFS file systems that are mounted on each boot:
planet2:/vol/scc/scc /planet2 nfs defaults
ednop:/vol/vol0/scc /ednop nfs rw,suid,soft,bg

>1. Does it mean the mount will be activated automatically when rebooting the system?

Yes for every FS in /etc/fstab, unless it says ignore or noauto.

>2. Should I do the same in the problematic machine? if so how?

Just edit the file and do: mount -a

>3. What is the function of /etc/mnttab file? can I edit it?

To show you what is mounted now. No, this file is basically for display purposes only.
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi Yaron,

First please let us know if you are trying to do an "automount" with AutoFS or are you trying to permanently mount an NFS filesystem.

However, as of now I can answer some of the questions you asked which could prob clear some things.

> I attach the fstab file of this machine as well. what is the difference between nfs and vxfs mount?

A normal vxfs mount is on the local filesystem. It means the filesystem is the servers "own". An NFS filesystem is mounted from another server on the client side and the NFS subsystem is often referred to as a "diskless" based system.

1. Does it mean the mount will be activated automatically when rebooting the system?

Mount at rebooting for both local vxfs and NFS mounts should have an entry in /etc/fstab.
3. What is the fanction of /etc/mnttab file? can i edit it?

/etc/mnttab is your "local mount table". You cannot edit it. You can cat it but not vi. If you try to vi you will see a BLANK SCREEN. Hope this helps.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Yarok
Regular Advisor

Re: auto mount

thanks a lot Mr. Dennis and Mr. Ismail.

Now Iv entered into /etc/fstab the relevant automount clients. I will rebooted when possible to see if it holds :)

Thanks for the information as well.

Best regards,

Yaron.

Dennis Handly
Acclaimed Contributor

Re: auto mount

>I've entered into /etc/fstab the relevant automount clients.

Did you mount them with "mount -a"?

>Ismail: the NFS subsystem is often referred to as a "diskless" based system.

I've only seen diskless to indicate that there are no local disks at all and it boots over NFS.

>You cannot edit it. You can cat it but not vi. If you try to vi you will see a BLANK SCREEN.

You can attempt to edit it but it won't do you any good. In vi, I see all of the mounted filesystems.
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi,

> Dennis

I've only seen diskless to indicate that there are no local disks at all and it boots over NFS.

Yes let me rephrase : the NFS subsystem is "at times" referred to as a "diskless" based system and yes it's in only the scenario you mentioned {probably not apt terminology}. My mistake BUT

> Dennis

Let me point one striking thing. I CANNOT edit my /etc/mnttab file!! And I have never been able to do it. My server is an rp3410 runnning Feb 2007 11.31 O.S. Apparently that might be important. This is the output of ls -l /etc/mnttab

lrwxr-xr-x 1 root sys 11 Jan 5 16:38 /etc/mnttab -> /dev/mnttab


The file has a link to a device file. If I vi into this at the bottom of the editor I get character special file and I really think it is not edittable. Please tell me otherwise. And I have definitely not created that link. Looks like /etc/mnttab has progressed over the years and this is HPs way of not letting people mess with /etc/mnttab as syncer, mount and umount control the contents of this file. However, if you have any details on this, it would be nice sharing. :) It's actually good. But Dennis am I missing something here!. What O.S did you try a vi /etc/mnttab on?? Because this has always confused me because ppl keep saying never edit it and I know exactly why but it has never been edittable on my server! Eagerly awaiting your response.

> yaron

Please let us know if your filesystems are getting mounted and we have taken the right route because apparently your automounter was running and if it is you need another approach and the approach is to "just access" {if tha maps are set right}. :) And FYI this is a discussion based on YOUR question, can i edit /etc/mnttab! :)

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi,

> Dennis

And yes, I have always seen a blank screen "attempting" to vi into /etc/mnttab.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi,

Sorry for so many posts...

Let me make it clear. ON MY SERVER vi into /etc/mnttab gives me a blank screen. Writing into it is possible but has no effect the next time I cat it, Shows the previous mount table

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Dennis Handly
Acclaimed Contributor

Re: auto mount

>Ismail: My server is an rp3410 running 11.31
>lrwxr-xr-x 1 root sys /etc/mnttab -> /dev/mnttab

Hmm, I thought I checked 11.31. mnttab(4) doesn't indicate it is now special.

>bottom of the editor I get "Character special file"

So you don't really get a blank screen. :-)

>this is HP-UX's way of not letting people mess with /etc/mnttab as syncer, mount and umount control the contents of this file.

Yes.
Yarok
Regular Advisor

Re: auto mount

Hello,

First, let me apologize for the delay. I have just arrived to work.

The only way I know to check if the outomount is running fine is to reboot the system (anless ps -fu root | grep auto is what you meant. My automount is running). I cannot do it often, so I am waiting for an opportunity to take the action.

And NO, at this stage I would not try to edit /etc/mnttab :) thank you.
yaron
Dennis Handly
Acclaimed Contributor

Re: auto mount

>Unless ps -fu root | grep auto is what you meant. My automount is running.

Yes, that will show if it is running.
nijokj
Trusted Contributor

Re: auto mount

ps -fu root | grep auto

this will show you whether aoutomounter/autofs is running on your system.

autofs/automounter is a process which is using for mounting NFS file systems automatically.ie it will mount filesystems when you required it .that means you want to read some data on nfs file system mounted on your system using autofs , at the time you type "cd" to that dirctory and type "ls" the then only it will mount in your system.

another way to mount an NFS file system is hard mount which is put entries in your fstab file .
please refer the man page of autofs for further details of automount.