Operating System - HP-UX
1830898 Members
2832 Online
110017 Solutions
New Discussion

Mount automatically not in fstab

 
Fadia Almarei
Super Advisor

Mount automatically not in fstab

i want to mount file systems automatically without adding it to /etc/fstab file in hp-ux v.2 , i need to add them to /sbin/init.d path ,but what is the exact way to do this
fadia.marei
17 REPLIES 17
Michael Steele_2
Honored Contributor

Re: Mount automatically not in fstab

Hi

Don't.

Don't.

Don't.

Support Fatherhood - Stop Family Law
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

why ?
why ?
why ?

As i need this to add my SAN partitions to be mounted automatically after making sure that every thing is OK
fadia.marei
Torsten.
Acclaimed Contributor

Re: Mount automatically not in fstab

Why do you want to do this?

All filesystems should be mounted via fstab, what in this world do you want to do in startup scripts?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: Mount automatically not in fstab

>> As i need this to add my SAN partitions to be mounted automatically after making sure that every thing is OK

What do you think you need to check _every_ time you boot? what needs to be checked???

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

the wole sory is as the following
i have two servers as failover to each other, the SAN paritions is mounted in one server and when it failed it will be mounted on the other manually,( i do not run serviceguard) , i need to do the mount automaticlly but not in the fstab file ,so when the system boot and i put these mount in fstab file for any problem on them they will go to single user mode so i will not have any remote access to the server , i want to add them to the mount so i can deal with them after the system boot if any problem occured.
fadia.marei
Torsten.
Acclaimed Contributor

Re: Mount automatically not in fstab

This is still not clear.

If you don't want them in fstab, don't put them in fstab. Why should the server go into single user mode? I cannot see a reason for that. If one of the servers should mount the file system but never both, you should not allow any of the servers to try to mount them automatically.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

i want this issue to be automated in the primay server , but in case of any failure in this SAN paritions i want to be able to connect to to the server.
fadia.marei
Torsten.
Acclaimed Contributor

Re: Mount automatically not in fstab

Imaging this:

Server A (primary) is booting and mounting automatically. Later serverA has a problem and needs a shutdown. You mount the fs on server B now. So far so good. Now Server A is starting again and mounts the fs while server B is still using it. What's now? You can be sure, this will happen some day.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

yes yes, so if this case happened i could access server A remotly and disable the startup script, or do any thing remotly, but in case of having them on fstab file the server will go to single user mode and i could not access it remotly.
fadia.marei
Torsten.
Acclaimed Contributor

Re: Mount automatically not in fstab

You can access each server my GSP/MP/iLO remotely regardless if it is up or not.

But why it should go into single user mode?
It won't.


BTW, everything will apply more or less to your other thread too

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1380301

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

what is the problem in having these mounts in startup scripts?
fadia.marei
Torsten.
Acclaimed Contributor

Re: Mount automatically not in fstab

If you want to simulate something like a cluster, you have to do the same like a cluster does - more or less.

Otherwise you can easily damage your data.

First question: Is the file system within a LVM logical volume?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Matti_Kurkela
Honored Contributor

Re: Mount automatically not in fstab

If you really want to mount the filesystems using a separate script, add them to /etc/fstab with the "noauto" mount option.

The "mount -a" command that is run at system startup will ignore any filesystems with the "noauto" option. Only specific "mount /filesystem" commands will cause these filesystems to be mounted.

To write your own startup script for mounting the filesystems later in the startup process, see "man rc" for the requirements and naming conventions for your script and the necessary symlink(s).

Older versions of HP-UX had some useful documentation about startup scripts in /usr/share/doc, but that documentation seems to have been removed in 11.23.

MK
MK
Dennis Handly
Acclaimed Contributor

Re: Mount automatically not in fstab

>MK: If you really want to mount the filesystems using a separate script, add them to /etc/fstab with the "noauto" mount option.

Or you can use the automounter to mount them "automatically".
F Verschuren
Esteemed Contributor

Re: Mount automatically not in fstab

this is not a unusual question, clustering does the same.
If you want to create special scritps for this more info is needen (os, filesystem type)
it con be verry usefull to just copy and change the normal mount scripts in /etc/rc1.d, but be aware that this scripts sometimes are changing to patches, so after patching always checks if you neet to change you scritps.
ps do not forget to umount the filesystems.

adding them to the /etc/fstab whit a # and some comments in there are verry usefull if somebody els in the future is going to manage this server....
Fadia Almarei
Super Advisor

Re: Mount automatically not in fstab

mount point are SAN paritions (EMC), could you give me more details .
fadia.marei
F Verschuren
Esteemed Contributor

Re: Mount automatically not in fstab

vgchange -a y
fsck your luns
mount your file systems

for a exact script please post you old /etc/fsbab line.
ps this script does it neets to have varables (like a config file) ore is a simple sript that just do the jop enauf?