<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scripting a fstab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865422#M706491</link>
    <description>closing thread</description>
    <pubDate>Mon, 25 Oct 2004 12:06:42 GMT</pubDate>
    <dc:creator>Richard Pereira_1</dc:creator>
    <dc:date>2004-10-25T12:06:42Z</dc:date>
    <item>
      <title>Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865410#M706472</link>
      <description>Hi, &lt;BR /&gt;I have a batch script that creates a series of lvols and filesystems and then mounts them with specific options (largefiles, nosuid, etc)&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;exemple of my file;&lt;BR /&gt;/dev/vgrestores/lvR69saparc /oracle/R69/saparch vxfs largefiles,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69orasid /oracle/R69 vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69saparc /oracle/R69/saparch vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69saprg /oracle/R69/sapreorg vxfs rw,nosuid,delaylog,largefiles,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69817 /oracle/R69/817_64 vxfs rw,delaylog,largefiles,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69mlogA /oracle/R69/mirrlogA vxfs rw,nosuid,delaylog,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69mlogB /oracle/R69/mirrlogB vxfs rw,nosuid,delaylog,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69ologA /oracle/R69/origlogA vxfs rw,nosuid,delaylog,detainlog 0 2&lt;BR /&gt;/dev/vgrestores/lvR69ologB /oracle/R69/origlogB vxfs rw,nosuid,delaylog,detainlog 0 2&lt;BR /&gt;&lt;BR /&gt;however when i umount and try mounting with this script, i get errors from mount , stating;&lt;BR /&gt;vxfs mount: illegal -o suboption -- rw&lt;BR /&gt;vxfs mount: Usage: [....]&lt;BR /&gt;&lt;BR /&gt;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</description>
      <pubDate>Thu, 14 Oct 2004 11:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865410#M706472</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2004-10-14T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865411#M706473</link>
      <description>How are you doing the cat?  as &amp;gt;/etc/fstab or as &amp;gt;&amp;gt;/etc/fstab?  If you are doing the former and it results in the file getting a new inode, and if some other process (like mountd) has an active lock on the file prior to the cat, you've got a timing problem.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Thu, 14 Oct 2004 11:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865411#M706473</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-14T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865412#M706476</link>
      <description>first thing I see is that "detainlog" should be "datainlog"&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 11:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865412#M706476</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-14T11:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865413#M706480</link>
      <description>Be nice to see the script.&lt;BR /&gt;&lt;BR /&gt;man on the mount command will provide you the ability to modify your script. The command might not be formed correctly in the script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 14 Oct 2004 11:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865413#M706480</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-14T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865414#M706482</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;Clay was right on it. Just change 'detainlog' to 'datainlog' and everything will work fine.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 14 Oct 2004 11:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865414#M706482</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-14T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865415#M706484</link>
      <description>oops, your right about the datainlog, still fails hoever. heres the weirdest part. i just did a more simple test.&lt;BR /&gt;&lt;BR /&gt;i used vi and edited the current /etc/fstab and added the following manually&lt;BR /&gt;&lt;BR /&gt;/dev/vgrestores/lvR69mlogA /oracle/R69/mirrlogA vxfs rw,nosuid,nolargefiles,delaylog,datainlog 0 2&lt;BR /&gt;&lt;BR /&gt;# mount /oracle/R69/mirrlogA&lt;BR /&gt;vxfs mount: illegal -o suboption -- rw&lt;BR /&gt;vxfs mount: Usage:&lt;BR /&gt;    mount [-l] [-v|-p]&lt;BR /&gt;    mount [-F vxfs] [-eQ] -a&lt;BR /&gt;    mount [-F vxfs] [-eQrV]&lt;BR /&gt;          [-o [rw|ro] [suid|nosuid] [quota] [remount]&lt;BR /&gt;              [log|delaylog|tmplog] [largefiles|nolargefiles]&lt;BR /&gt;              [fsetname=fileset] [qio|noqio]&lt;BR /&gt;              [mincache=direct|dsync|closesync|tmpcache|unbuffered]&lt;BR /&gt;              [convosync=direct|dsync|closesync|delay|unbuffered]&lt;BR /&gt;              [datainlog|nodatainlog] [blkclear] ] {special | mount_point}&lt;BR /&gt;    mount [-F vxfs] [-eQrV]&lt;BR /&gt;          [-o [rw|ro] [suid|nosuid] [quota] [remount]&lt;BR /&gt;              [log|delaylog|tmplog] [largefiles|nolargefiles]&lt;BR /&gt;              [fsetname=fileset] [qio|noqio]&lt;BR /&gt;              [mincache=direct|dsync|closesync|tmpcache|unbuffered]&lt;BR /&gt;              [convosync=direct|dsync|closesync|delay|unbuffered]&lt;BR /&gt;              [datainlog|nodatainlog] [blkclear] ] special mount_point&lt;BR /&gt;    mount [-F vxfs] [-eQrV]&lt;BR /&gt;          [-o [ro] [suid|nosuid] [snapof=primary_special]&lt;BR /&gt;              [snapsize=blocks] ] special mount_point&lt;BR /&gt;&lt;BR /&gt;could there be a bigger issue going on? seems anything i add fails, even using vi and editing myself.</description>
      <pubDate>Thu, 14 Oct 2004 11:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865415#M706484</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2004-10-14T11:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865416#M706485</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Thu, 14 Oct 2004 12:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865416#M706485</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-14T12:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865417#M706486</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 13:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865417#M706486</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-10-14T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865418#M706487</link>
      <description>That is wacked...&lt;BR /&gt;&lt;BR /&gt;/dev/vg01/lvpatch /var/software/patch vxfs rw,suid,largefiles,delaylog,datainlog 0 2&lt;BR /&gt;&lt;BR /&gt;I do it like that - and it works fine - nothing wrong with commas nor rw....&lt;BR /&gt;&lt;BR /&gt;Try it again - with /sbin/mount&lt;BR /&gt;&lt;BR /&gt;Sounds like you may have corruption in your fstab file - illegal characters or something...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check for tabs with vi, :set list&lt;BR /&gt;&lt;BR /&gt;As tedious as it may be, recreate your fstab file - by hand - do NOT cut paste.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 15:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865418#M706487</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-14T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865419#M706488</link>
      <description>If the concern is really about bogus characters, cat -v will reveal more than vi will, but the true test is od -c /etc/fstab|pg.  It's tedious, but there's nothing to be missed as long as you are thorough in your review.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Thu, 14 Oct 2004 15:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865419#M706488</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-14T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865420#M706489</link>
      <description>Another trick you can use is the 'mount -p' command which reports the list of mounted filesystems in /etc/fstab format.  Get the filesystems mounted manually, do a 'mount -p &amp;gt;fstab.new' and then rename the fstab files around.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 19:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865420#M706489</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-10-14T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865421#M706490</link>
      <description>thanks for the great suggestions, somehow a garbage char was getting inserted. But what i ended up doing anyways was avoiding touching the systems /etc/fstab and just built a seporte file called fstab.app and then had a routine go through the list and mount what was defined in there.&lt;BR /&gt;&lt;BR /&gt;as usual, you guys offered quick and helpfull responses</description>
      <pubDate>Mon, 25 Oct 2004 12:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865421#M706490</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2004-10-25T12:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting a fstab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865422#M706491</link>
      <description>closing thread</description>
      <pubDate>Mon, 25 Oct 2004 12:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-a-fstab/m-p/4865422#M706491</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2004-10-25T12:06:42Z</dc:date>
    </item>
  </channel>
</rss>

