1834166 Members
2860 Online
110064 Solutions
New Discussion

file system mount order

 
Carl Fry
Occasional Contributor

file system mount order

I would like to force a specific mount order
for file systems on a N-Class, running HP-UX 11.00.

I've tried using fsck order, hoping it would mount after the filesystems have been fsck'ed but I get the same results regardless of how I configure the fstab. (This may be a really dumb question...)

Thanks.
(Originally miss-posted in the Servers forum) Opps...

8 REPLIES 8
RAC_1
Honored Contributor

Re: file system mount order

As far as I can understand HP-UX you can not have control over mounting oreder at least for /stand-lvol1,swap and lvol3-root, other file systems it should be how you specify in /etc/fstab
There is no substitute to HARDWORK
James R. Ferguson
Acclaimed Contributor

Re: file system mount order

Hi Carl:

The 'pass number' field of '/etc/fstab' can be used to determine the order in which 'fsck's are done. See the man pages for 'fstab(4).

Regards!

...JRF...
Pramod_4
Trusted Contributor

Re: file system mount order

I do not think that there is way to control the FS mount sequence if the file systems are mounted from /etc/fstab.

You can do it if you have service guard configured and your file systems are mounted by the package control script of the MC/SG.

Thanks,

Pramod
Marco Santerre
Honored Contributor

Re: file system mount order

The pass number should do it as James mentionned. The mountall command used to mount all your file systems at the reboot will go through your /etc/fstab and will perform an fsck and based on the pass number will give priority to some file systems.
Cooperation is doing with a smile what you have to do anyhow.
Manju Kampli
Trusted Contributor

Re: file system mount order

The order of entries /etc/fstab is important only for entries without a pass number field.Entries without a pass number are sequentially checked by fsck after the entries with a pass number have been checked.

Never stop "LEARNING"
fg_1
Trusted Contributor

Re: file system mount order

Just assign a sequence of pass numbers in the sequence that you want the filesystems checked, it wont control which one's get mounted 1st, 2nd, 3rd, etc... all this will ensure is that 1st done is 1st mounted and so on.

Gl

Frank G.
paul courry
Honored Contributor

Re: file system mount order

Ah! Lunch time for the pirahnas! Told ya they'd chew the meat off the bones in under an hour Carl.
Ravi_8
Honored Contributor

Re: file system mount order

Hi,

You can't force mount order. Mounting order is based on pass number as in /etc/fstab.
/stand, / and swap and HFS file systems will be having pass number as 1 which will be checked(fsck) and mounted first before mounting other file systems
never give up