Operating System - HP-UX
1833718 Members
2481 Online
110063 Solutions
New Discussion

FS_MOUNT_OPT settings vs. /etc/fstab

 
SOLVED
Go to solution
Tom Bies
Occasional Advisor

FS_MOUNT_OPT settings vs. /etc/fstab

Hello,

I have a filesystem which is a member of a Service Guard package, and gets mounted at the start of the package. I have been looking for the flags that can be used for the FS_MOUNT_OPT option in the cntl file. I know about "-o rw" (read/write) or "-o ro" (read only). Is there any more options that can be specfied?

In the /etc/fstab file you can set options such as log, delaylog, and tmplog. How can I translate these fstab settings into the cntl file since this lvol is not called from the fstab?

Thanks, Tom
5 REPLIES 5
Jeff Schussele
Honored Contributor
Solution

Re: FS_MOUNT_OPT settings vs. /etc/fstab

Hi Tom,

Absolutely. That's what you must do because as you mentioned you don't use fstab for MC/SG LVs.
Just separate the options with commas - many as you want. I have some with > 6 - works fine.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Dave Olker
Neighborhood Moderator

Re: FS_MOUNT_OPT settings vs. /etc/fstab

Hi Tom,

You should be able to use any options that are applicable for the type of filesystem. So if you're talking about a VxFS filesystem, I would think most any option in the mount_vxfs(1M) man page should be allowed in the FS_MOUNT_OPT page.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Jeff Schussele
Honored Contributor

Re: FS_MOUNT_OPT settings vs. /etc/fstab

Sorry...should have listed ones I've used:

rw
suid
delaylog
datainlog
nodatainlog
mincache=direct
convosync=direct
tmplog

and more.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stephen Doud
Honored Contributor

Re: FS_MOUNT_OPT settings vs. /etc/fstab

You asked HOW to specify additional mount options in the package control script.

List them as the format the mount command expects to see them. The man page for mount_vxfs states:

-o specific_options
Specify options specific to the VxFS file system type.
specific_options is a list of comma separated suboptions
and/or keyword/attribute pairs intended for the VxFS-
specific module of the command. Unlike some file system
commands, multiple -o options do not accumulate; only the
last option is used.

Hence, the following would be acceptable:

FS_MOUNT_OPT[0]="-o rw,delaylog,largefiles"

-sd.

Tom Bies
Occasional Advisor

Re: FS_MOUNT_OPT settings vs. /etc/fstab

Thanks everyone. I was initially doing a man on just the mount command not mount_vxfs. This clears up the syntax for me.

Thanks again,
Tom