- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scripting a fstab
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:12 AM
10-14-2004 04:12 AM
I have a batch script that creates a series of lvols and filesystems and then mounts them with specific options (largefiles, nosuid, etc)
I was asked to have the script create a "shadow" fstab and then cat it to my existing fstab. Once this is dont, i can umount fine, but mount always fails.
exemple of my file;
/dev/vgrestores/lvR69saparc /oracle/R69/saparch vxfs largefiles,detainlog 0 2
/dev/vgrestores/lvR69orasid /oracle/R69 vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2
/dev/vgrestores/lvR69saparc /oracle/R69/saparch vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2
/dev/vgrestores/lvR69saprg /oracle/R69/sapreorg vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2
/dev/vgrestores/lvR69817 /oracle/R69/817_64 vxfs rw,delaylog,largefiles,detainlog 0 2
/dev/vgrestores/lvR69mlogA /oracle/R69/mirrlogA vxfs rw,nosuid,delaylog,detainlog 0 2
/dev/vgrestores/lvR69mlogB /oracle/R69/mirrlogB vxfs rw,nosuid,delaylog,detainlog 0 2
/dev/vgrestores/lvR69ologA /oracle/R69/origlogA vxfs rw,nosuid,delaylog,detainlog 0 2
/dev/vgrestores/lvR69ologB /oracle/R69/origlogB vxfs rw,nosuid,delaylog,detainlog 0 2
however when i umount and try mounting with this script, i get errors from mount , stating;
vxfs mount: illegal -o suboption -- rw
vxfs mount: Usage: [....]
as a test i removed the rw, but it still errors regardless what options are there. as another test, i wrote the file manually (thinking of hidden characters) but it also fails. Any ideas are welcomed
Solved! Go to Solution.
- Tags:
- fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:23 AM
10-14-2004 04:23 AM
Re: Scripting a fstab
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:30 AM
10-14-2004 04:30 AM
Re: Scripting a fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:30 AM
10-14-2004 04:30 AM
Re: Scripting a fstab
man on the mount command will provide you the ability to modify your script. The command might not be formed correctly in the script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:54 AM
10-14-2004 04:54 AM
Re: Scripting a fstab
Clay was right on it. Just change 'detainlog' to 'datainlog' and everything will work fine.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 04:57 AM
10-14-2004 04:57 AM
Re: Scripting a fstab
i used vi and edited the current /etc/fstab and added the following manually
/dev/vgrestores/lvR69mlogA /oracle/R69/mirrlogA vxfs rw,nosuid,nolargefiles,delaylog,datainlog 0 2
# mount /oracle/R69/mirrlogA
vxfs mount: illegal -o suboption -- rw
vxfs mount: Usage:
mount [-l] [-v|-p]
mount [-F vxfs] [-eQ] -a
mount [-F vxfs] [-eQrV]
[-o [rw|ro] [suid|nosuid] [quota] [remount]
[log|delaylog|tmplog] [largefiles|nolargefiles]
[fsetname=fileset] [qio|noqio]
[mincache=direct|dsync|closesync|tmpcache|unbuffered]
[convosync=direct|dsync|closesync|delay|unbuffered]
[datainlog|nodatainlog] [blkclear] ] {special | mount_point}
mount [-F vxfs] [-eQrV]
[-o [rw|ro] [suid|nosuid] [quota] [remount]
[log|delaylog|tmplog] [largefiles|nolargefiles]
[fsetname=fileset] [qio|noqio]
[mincache=direct|dsync|closesync|tmpcache|unbuffered]
[convosync=direct|dsync|closesync|delay|unbuffered]
[datainlog|nodatainlog] [blkclear] ] special mount_point
mount [-F vxfs] [-eQrV]
[-o [ro] [suid|nosuid] [snapof=primary_special]
[snapsize=blocks] ] special mount_point
could there be a bigger issue going on? seems anything i add fails, even using vi and editing myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 05:13 AM
10-14-2004 05:13 AM
Re: Scripting a fstab
Restart mountd with the -l options to log errors, and the -t option set to 2. Then run your tests and you should get more specific info from mountd about what it doesn't like. Are you getting any sort of errors in your syslog?
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:08 AM
10-14-2004 06:08 AM
Re: Scripting a fstab
I don't separate the options with commas in my fstab files, I just use spaces. Also, the 'rw' option is the default so you shouldn't have to specify it.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 08:06 AM
10-14-2004 08:06 AM
Re: Scripting a fstab
/dev/vg01/lvpatch /var/software/patch vxfs rw,suid,largefiles,delaylog,datainlog 0 2
I do it like that - and it works fine - nothing wrong with commas nor rw....
Try it again - with /sbin/mount
Sounds like you may have corruption in your fstab file - illegal characters or something...
Check for tabs with vi, :set list
As tedious as it may be, recreate your fstab file - by hand - do NOT cut paste.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 08:46 AM
10-14-2004 08:46 AM
Solutionmark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 12:51 PM
10-14-2004 12:51 PM
Re: Scripting a fstab
JP
- Tags:
- mount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 05:06 AM
10-25-2004 05:06 AM
Re: Scripting a fstab
as usual, you guys offered quick and helpfull responses
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 05:06 AM
10-25-2004 05:06 AM