<?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: mknods with volume with another name besides vg0? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886228#M401462</link>
    <description>I would do have a file with the vg name and the minor number as separate fields.&lt;BR /&gt;&lt;BR /&gt;# cat vgnames&lt;BR /&gt;vg01 0x010000&lt;BR /&gt;vg02 0x020000&lt;BR /&gt;vgemc 0x030000&lt;BR /&gt;&lt;BR /&gt;And then do the script like&lt;BR /&gt;&lt;BR /&gt;while read VGNAME MINOR&lt;BR /&gt;do&lt;BR /&gt;cd /dev&lt;BR /&gt;rm -rf ${VGNAME}&lt;BR /&gt;mkdir ${VGNAME}&lt;BR /&gt;mknod /dev/${VGNAME}/group c 64 ${MINOR}&lt;BR /&gt;ll /dev/${VGNAME}/group&lt;BR /&gt;echo ""&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This way it will work no matter what your VG names are.</description>
    <pubDate>Wed, 16 Feb 2005 10:28:07 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-02-16T10:28:07Z</dc:date>
    <item>
      <title>mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886227#M401461</link>
      <description>I have this script file that creates device nodes for volume groups:&lt;BR /&gt;&lt;BR /&gt;for i in `cat $source_dir/vg_nums`&lt;BR /&gt;do&lt;BR /&gt; cd /dev&lt;BR /&gt; rm -r $i&lt;BR /&gt; mkdir $i&lt;BR /&gt; mknod /dev/$i/group c 64 0x`grep $i $source_dir/vg_nums|cut -c 3-4`0000&lt;BR /&gt; echo&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;vg_nums contains the following: vg02 vg03 vg04.&lt;BR /&gt;&lt;BR /&gt;But, if vg_nums contains EMC or something other than vg01-09, how would I use a script file to create the major number for these volume groups. I am using this as part of a DR recreation..</description>
      <pubDate>Wed, 16 Feb 2005 10:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886227#M401461</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-16T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886228#M401462</link>
      <description>I would do have a file with the vg name and the minor number as separate fields.&lt;BR /&gt;&lt;BR /&gt;# cat vgnames&lt;BR /&gt;vg01 0x010000&lt;BR /&gt;vg02 0x020000&lt;BR /&gt;vgemc 0x030000&lt;BR /&gt;&lt;BR /&gt;And then do the script like&lt;BR /&gt;&lt;BR /&gt;while read VGNAME MINOR&lt;BR /&gt;do&lt;BR /&gt;cd /dev&lt;BR /&gt;rm -rf ${VGNAME}&lt;BR /&gt;mkdir ${VGNAME}&lt;BR /&gt;mknod /dev/${VGNAME}/group c 64 ${MINOR}&lt;BR /&gt;ll /dev/${VGNAME}/group&lt;BR /&gt;echo ""&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This way it will work no matter what your VG names are.</description>
      <pubDate>Wed, 16 Feb 2005 10:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886228#M401462</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-16T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886229#M401463</link>
      <description>I forgot a part of my script.&lt;BR /&gt;&lt;BR /&gt;The very last line of the script should be:&lt;BR /&gt;&lt;BR /&gt;done &amp;lt; vgnames&lt;BR /&gt;&lt;BR /&gt;so that it can read in the vgnames file.</description>
      <pubDate>Wed, 16 Feb 2005 10:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886229#M401463</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-16T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886230#M401464</link>
      <description>/dev/vg10 would be 0x0a0000 so You will have to push grep $i $source_dir/vg_nums|cut -c 3-4 through a hex calculator.&lt;BR /&gt;Usually it's called ox, but I didn't find it on hp-ux, so either You include a function for the conversion (better), or You have to ensure it's made available on every system.</description>
      <pubDate>Wed, 16 Feb 2005 10:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886230#M401464</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-16T10:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886231#M401465</link>
      <description>Uh, Patricks way is a lot easier and more reasonable, especially when I think of our SAP-boxes, where the volumegroup names are not numerical at all :)</description>
      <pubDate>Wed, 16 Feb 2005 10:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886231#M401465</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-16T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: mknods with volume with another name besides vg0?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886232#M401466</link>
      <description>Thanks Patrick, your method will work for me.</description>
      <pubDate>Wed, 16 Feb 2005 10:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknods-with-volume-with-another-name-besides-vg0/m-p/4886232#M401466</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-16T10:37:57Z</dc:date>
    </item>
  </channel>
</rss>

