<?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: Major and minor numbers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176889#M162189</link>
    <description>Ah true Jeff, I just happened to have a prompt sitting there and figured I would shoot out an example.&lt;BR /&gt;&lt;BR /&gt;I do like A. Clay's suggestion.  As you can see in my example I didn't do it that way.  Even though I don't foresee ever having a whole lot of vg's on this server.  (Never say never I guess)&lt;BR /&gt;&lt;BR /&gt;Where I've seen this get ugly sometimes is with service guarded vg's.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Jan 2004 16:28:38 GMT</pubDate>
    <dc:creator>Dave Hutton</dc:creator>
    <dc:date>2004-01-28T16:28:38Z</dc:date>
    <item>
      <title>Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176883#M162183</link>
      <description>How do you get the Major and minor numbers of a volume group?  (vg00, vg01, vg02...)</description>
      <pubDate>Wed, 28 Jan 2004 16:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176883#M162183</guid>
      <dc:creator>ROSS HANSON</dc:creator>
      <dc:date>2004-01-28T16:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176884#M162184</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ll /dev/*/group will list all the group device files. A VG is pointed to by it's group file.&lt;BR /&gt;&lt;BR /&gt;5 th field is the major number.&lt;BR /&gt;6 th field is the minor number&lt;BR /&gt;10th or last field contains the volume group.&lt;BR /&gt;&lt;BR /&gt;Note that minor number is limited by the 'maxvgs' kernel parameter.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 16:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176884#M162184</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-01-28T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176885#M162185</link>
      <description>Like Sri said, heres an example:&lt;BR /&gt;# ll /dev/vg*/group*&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000000 Sep 30 13:53 /dev/vg00/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x030000 Oct  1 08:51 /dev/vg01/group&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 28 Jan 2004 16:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176885#M162185</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-01-28T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176886#M162186</link>
      <description>The major number will always be the same, 64.  The minor number is unique to each VGs group file.&lt;BR /&gt;&lt;BR /&gt;When doing the mknod command as a part of creating a VG it is of the syntax:&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vg%%/group c 64 0x0?0000&lt;BR /&gt;&lt;BR /&gt;Where %% is the name of your VG, normally like VG01, VG02, etc and the ? is a unique HEXADECIMAL number for the minor number.&lt;BR /&gt;&lt;BR /&gt;To see what minor numbers are currently in use do:&lt;BR /&gt;&lt;BR /&gt;# ll /dev/vg*/group&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 16:17:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176886#M162186</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-01-28T16:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176887#M162187</link>
      <description>Do an ls -l /dev/vgXX. The major device number is always 64. The minor device number&lt;BR /&gt;are 0xVG0001 for the first lvol, 0xVG0002 for the 2nd, ... . By convention VG for vg00 is 00, VG for vg01 is 01, VG for vg12 is 0c and so on but that is simply a convention. vg01 could easily use 0x060000 but life is a bit easier when you follow the rules. You do need to make absolutely certain than whatever you choose for the VG hex digits that they be unique on that system.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 16:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176887#M162187</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-01-28T16:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176888#M162188</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;Sri's approach is better because you can't assume that all VG names start with "vg"&lt;BR /&gt;&lt;BR /&gt;And the default out of the box maxvgs value is 10. So any VG minor number (assuming they've been assigned completely AND in order) larger than 0x090000 (they're in HEX - so for EX 0x0a0000) will not be allowed until maxvgs is bumped up &amp;amp; a new kernel rebooted.&lt;BR /&gt;&lt;BR /&gt;Personally, I think this parm is a *prime* candidate for being dynamic.&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 28 Jan 2004 16:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176888#M162188</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-01-28T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176889#M162189</link>
      <description>Ah true Jeff, I just happened to have a prompt sitting there and figured I would shoot out an example.&lt;BR /&gt;&lt;BR /&gt;I do like A. Clay's suggestion.  As you can see in my example I didn't do it that way.  Even though I don't foresee ever having a whole lot of vg's on this server.  (Never say never I guess)&lt;BR /&gt;&lt;BR /&gt;Where I've seen this get ugly sometimes is with service guarded vg's.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 16:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176889#M162189</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-01-28T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Major and minor numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176890#M162190</link>
      <description>Just a further note to this:&lt;BR /&gt;&lt;BR /&gt;You can use 'lsdev' to get all major numbers of drivers.&lt;BR /&gt;&lt;BR /&gt;When creating a volume group after using:&lt;BR /&gt;# mkdir /dev/vgxx&lt;BR /&gt;# mknod /dev/vgxx/group c 64 0x020000&lt;BR /&gt;&lt;BR /&gt;The 'vgcreate' command will check for a duplicate number prior to creating the volume group. If it finds one, the command fails.&lt;BR /&gt;We rarely use /dev/vgNN, but more likely to use names like /dev/psdata so the numbering convention is out the window.&lt;BR /&gt;&lt;BR /&gt;(just my 2 cents worth)</description>
      <pubDate>Wed, 28 Jan 2004 17:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/major-and-minor-numbers/m-p/3176890#M162190</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-01-28T17:01:19Z</dc:date>
    </item>
  </channel>
</rss>

