<?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: mounting file systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194787#M680428</link>
    <description>..... remove only the word "echo" to run the mount commands.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 21 Aug 2009 21:24:20 GMT</pubDate>
    <dc:creator>Vijaya Kumar_3</dc:creator>
    <dc:date>2009-08-21T21:24:20Z</dc:date>
    <item>
      <title>mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194785#M680426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  i am doing a DR activity. and i have built 80 lvols in it. Now, i have to mount all of them using &lt;BR /&gt;&lt;BR /&gt;  mount -F vxfs &lt;LVOLNAME&gt; &lt;MOUNTPOINT&gt;&lt;BR /&gt;&lt;BR /&gt;   Please help me in writing a script doing this for all 80 lvols.&lt;BR /&gt;&lt;BR /&gt;  lvols have their specific names like /dev/vg01/dbdata, /dev/vg01/dbhome, /dev/vg02/oracle etc. &lt;BR /&gt;&lt;BR /&gt;  and mount points also has the names like /home1, /home2, /data1, /tempdbdev, etc. Just writing these as you won't consider the lv names as standard like lvol1,2,3, and so on.&lt;BR /&gt;&lt;BR /&gt;  i have noted down all the LVs in a file and tried making for loop, but no luck.&lt;BR /&gt;&lt;BR /&gt;Please suggest.&lt;/MOUNTPOINT&gt;&lt;/LVOLNAME&gt;</description>
      <pubDate>Fri, 21 Aug 2009 19:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194785#M680426</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-08-21T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194786#M680427</link>
      <description>Create a file like this /tmp/mountdata&lt;BR /&gt;&lt;BR /&gt;# cat mountdata&lt;BR /&gt;/dev/vg01/dbdata:/home1&lt;BR /&gt;/dev/vg01/dbhome:/data1&lt;BR /&gt;/dev/vg02/oracle:/temp&lt;BR /&gt;# for i in `cat mountdata`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; lvol=$(echo $i|cut -d":" -f1)&lt;BR /&gt;&amp;gt; mpoint=$(echo $i|cut -d":" -f2)&lt;BR /&gt;&amp;gt; echo mount -F vxfs $lvol $mpoint&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;mount -F vxfs /dev/vg01/dbdata /home1&lt;BR /&gt;mount -F vxfs /dev/vg01/dbhome /data1&lt;BR /&gt;mount -F vxfs /dev/vg02/oracle /temp&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please remove the echo command once you review the output.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Vijay Chinnasamy</description>
      <pubDate>Fri, 21 Aug 2009 21:22:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194786#M680427</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2009-08-21T21:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194787#M680428</link>
      <description>..... remove only the word "echo" to run the mount commands.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Aug 2009 21:24:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194787#M680428</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2009-08-21T21:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194788#M680429</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You have two choices.  The first is to add your required mounts to '/etc/fstab' and to simply issue:&lt;BR /&gt;&lt;BR /&gt;# mount -a&lt;BR /&gt;&lt;BR /&gt;This is the simplest way and means that any time you reboot, everything will be automatically mounted again.&lt;BR /&gt;&lt;BR /&gt;The second choice is to create a text file with the logical volume name followed by whitespace followed by the mountpoint, like:&lt;BR /&gt;&lt;BR /&gt;# cat ./mountpts&lt;BR /&gt;/dev/vg01/dbdata /data1&lt;BR /&gt;/dev/vg01/dbhome /home1&lt;BR /&gt;/dev/vg02/oracle /home2&lt;BR /&gt;&lt;BR /&gt;The script to use is simply:&lt;BR /&gt;&lt;BR /&gt;# cat ./mymounts&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read MNTPT DIR X&lt;BR /&gt;do&lt;BR /&gt;    mount ${MNTPT} ${DIR} &lt;BR /&gt;done &amp;lt; ./mymounts&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Add any mount options you need to the 'mount' command.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 21 Aug 2009 21:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194788#M680429</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-08-21T21:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194789#M680430</link>
      <description>Thanks !!!&lt;BR /&gt;&lt;BR /&gt;   I got the solution from your replies. Closing the thread.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Aug 2009 21:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194789#M680430</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-08-21T21:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: mounting file systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194790#M680431</link>
      <description>You can also use the output from "mount -v" or copy your /etc/fstab entries.</description>
      <pubDate>Sat, 22 Aug 2009 00:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-file-systems/m-p/5194790#M680431</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-22T00:15:23Z</dc:date>
    </item>
  </channel>
</rss>

