<?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: how can get major and minor number in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699891#M552170</link>
    <description>hi Abu,&lt;BR /&gt;&lt;BR /&gt;Pls make a correction in command that is not mknode, is mknod.&lt;BR /&gt;For an example,&lt;BR /&gt;# mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;"C" denotes group file is a character device file. The major number is always 64 for LVM.&lt;BR /&gt;&lt;BR /&gt;Where â  hhâ   represents the hexadecimal representation of the volume group number. Minor number will be unique for each volume group. It starts with 0x010000 (for first volume group) and goes on 0x020000, 0x030000 for succeeding volume groups. E.g. 0x020000 for vg02, 0x030000 for vg03 etc.&lt;BR /&gt;&lt;BR /&gt;You will find the used minor numbers for current available volume groups from below directory:&lt;BR /&gt;#ll /dev/*/group&lt;BR /&gt;&lt;BR /&gt;Regds \ vel</description>
    <pubDate>Fri, 15 Oct 2010 08:23:04 GMT</pubDate>
    <dc:creator>P Arumugavel</dc:creator>
    <dc:date>2010-10-15T08:23:04Z</dc:date>
    <item>
      <title>how can get major and minor number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699890#M552169</link>
      <description>hi,&lt;BR /&gt;I want to create  mknode /dev/vg01/group c, for that how can i get the major and mior number.</description>
      <pubDate>Fri, 15 Oct 2010 08:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699890#M552169</guid>
      <dc:creator>Abubakkar</dc:creator>
      <dc:date>2010-10-15T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can get major and minor number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699891#M552170</link>
      <description>hi Abu,&lt;BR /&gt;&lt;BR /&gt;Pls make a correction in command that is not mknode, is mknod.&lt;BR /&gt;For an example,&lt;BR /&gt;# mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;"C" denotes group file is a character device file. The major number is always 64 for LVM.&lt;BR /&gt;&lt;BR /&gt;Where â  hhâ   represents the hexadecimal representation of the volume group number. Minor number will be unique for each volume group. It starts with 0x010000 (for first volume group) and goes on 0x020000, 0x030000 for succeeding volume groups. E.g. 0x020000 for vg02, 0x030000 for vg03 etc.&lt;BR /&gt;&lt;BR /&gt;You will find the used minor numbers for current available volume groups from below directory:&lt;BR /&gt;#ll /dev/*/group&lt;BR /&gt;&lt;BR /&gt;Regds \ vel</description>
      <pubDate>Fri, 15 Oct 2010 08:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699891#M552170</guid>
      <dc:creator>P Arumugavel</dc:creator>
      <dc:date>2010-10-15T08:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: how can get major and minor number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699892#M552171</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; For Version 2.x volume groups,(with hpux 11.31) the major number for LVM device files is 128.</description>
      <pubDate>Fri, 15 Oct 2010 08:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699892#M552171</guid>
      <dc:creator>Bijeesh</dc:creator>
      <dc:date>2010-10-15T08:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: how can get major and minor number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699893#M552172</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As others wrote it, you should choose either 64 or 128 for the major number, this tells the system that it will be a device file related to LVM.&lt;BR /&gt;&lt;BR /&gt;As for a minor number, you should choose a unique hex number between 00 and ff. To list the existing minor numbers, run:&lt;BR /&gt;&lt;BR /&gt;# ll /dev/vg*/group | awk '{print $6}' | sort -n&lt;BR /&gt;0x000000&lt;BR /&gt;0x010000&lt;BR /&gt;0x020000&lt;BR /&gt;0x030000&lt;BR /&gt;0x050000&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;So, choose a minor number which isn't already used on the system. And a note: if you are using the machine as a serviceguard node and you want to configure the volumegroup as a switchable volume, use the same minor on both systems. This means, the chosen minor must be free on both systems.&lt;BR /&gt;&lt;BR /&gt;And finally, here comes the mknod command:&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vgnew/group c 64 0x${MINOR}&lt;BR /&gt;&lt;BR /&gt;where ${MINOR} is the free, system-wide unique minor number. (00--&amp;gt;FF)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
      <pubDate>Sat, 16 Oct 2010 10:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-get-major-and-minor-number/m-p/4699893#M552172</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-10-16T10:47:54Z</dc:date>
    </item>
  </channel>
</rss>

