<?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: diff b/w /dev/dm-0 and /dev/mapper/36005....... in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421200#M36588</link>
    <description>thanks Matti Kurkela for help/reply.&lt;BR /&gt;&lt;BR /&gt;OK, I got you.&lt;BR /&gt;now please explain me one more thing... &lt;BR /&gt;&lt;BR /&gt;on this machine when I ran the GUI tool(YaST) for managing storage device and file systems, I found this FC LUN as  "/dev/mapper/&lt;LONG string=""&gt;", the GUI tool does not shows the /dev/dm-*.&lt;BR /&gt;&lt;BR /&gt;but fdisk only shows the /dev/dm-*.&lt;BR /&gt;&lt;BR /&gt;Now my question is that, if I try to create a file system on this FC connected LUN from command line, then how do I know the  /dev/mapper/&lt;LONG series="" of="" numbers=""&gt; of the LUN ? because fdisk only shows the /dev/dm-*. I mean without using the GUI tool how can I know the  /dev/mapper/&lt;LONG series="" of="" numbers=""&gt; ?&lt;BR /&gt;&lt;BR /&gt;how to know the "/dev/mapper/&lt;LONG series="" of="" numbers=""&gt;" of /dev/dm-0 ?&lt;BR /&gt;&lt;BR /&gt;say I want to make a file system, and fdisk reports me /dev/dm-0, now on command line&lt;BR /&gt;# mkfs.ext3 /dev/mapper/&lt;LONG series="" of="" numbers=""&gt;&lt;BR /&gt;so how do I know the long series of number related to this /dev/dm-0&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;</description>
    <pubDate>Sun, 17 May 2009 17:00:53 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2009-05-17T17:00:53Z</dc:date>
    <item>
      <title>diff b/w /dev/dm-0 and /dev/mapper/36005.......</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421198#M36586</link>
      <description>this machine is connected to a FC LUN via multiple paths. /dev/sd{a,b,c,d} are the same/one LUN. The Linux Multipath daemon is working on this machine.&lt;BR /&gt;&lt;BR /&gt;fdisk shows the /dev/dm-0, while  'df -hT' shows /dev/mapper/3600508b40006e2cc0000c000005d0000 , likewise /etc/fstab also contains /dev/mapper/3600508b40006e2cc0000c000005d0000, instead of /dev/dm-0.&lt;BR /&gt;&lt;BR /&gt;why the difference ? I mean if I have a disk '/dev/cciss/c0d0p1, then 'fdisk' and 'df' both shows this disk without any difference.&lt;BR /&gt;&lt;BR /&gt;but in case of multipathing fdisk and df shows different names of the same disk .. why ?&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;# fdisk -l&lt;BR /&gt;&lt;BR /&gt;Disk /dev/cciss/c0d0: 73.3 GB, 73369497600 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 8920 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;           Device Boot      Start         End      Blocks   Id  System&lt;BR /&gt;/dev/cciss/c0d0p1               1         262     2104483+  82  Linux swap / Solaris&lt;BR /&gt;/dev/cciss/c0d0p2   *         263         288      208845   83  Linux&lt;BR /&gt;/dev/cciss/c0d0p3             289        8920    69336540   83  Linux&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sda: 300.6 GB, 300647710720 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36551 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sda doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdb: 300.6 GB, 300647710720 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36551 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdb doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdc: 300.6 GB, 300647710720 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36551 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdc doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdd: 300.6 GB, 300647710720 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36551 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/sdd doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;Disk /dev/dm-0: 300.6 GB, 300647710720 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 36551 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;BR /&gt;&lt;BR /&gt;Disk /dev/dm-0 doesn't contain a valid partition table&lt;BR /&gt;&lt;BR /&gt;virtual:~</description>
      <pubDate>Sat, 16 May 2009 11:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421198#M36586</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-05-16T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w /dev/dm-0 and /dev/mapper/36005.......</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421199#M36587</link>
      <description>/dev/dm-* devices belong to the "device-mapper" subsystem, which is used to implement LVM, dm-multipath and software RAID in Linux 2.6.* kernel series.&lt;BR /&gt;&lt;BR /&gt;The /dev/dm-* names are not persistent: they are allocated ascending order to whatever disk device-mapper is used with. There is no guarantee that /dev/dm-0 will still be /dev/dm-0 after a reboot. These device names should only be used for device-mapper debugging.&lt;BR /&gt;&lt;BR /&gt;The /dev/mapper/&lt;LONG series="" of="" numbers=""&gt; is the WWID reported by the disk, so it is guaranteed to always refer to that particular disk and nothing else.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/LONG&gt;</description>
      <pubDate>Sat, 16 May 2009 17:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421199#M36587</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-16T17:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w /dev/dm-0 and /dev/mapper/36005.......</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421200#M36588</link>
      <description>thanks Matti Kurkela for help/reply.&lt;BR /&gt;&lt;BR /&gt;OK, I got you.&lt;BR /&gt;now please explain me one more thing... &lt;BR /&gt;&lt;BR /&gt;on this machine when I ran the GUI tool(YaST) for managing storage device and file systems, I found this FC LUN as  "/dev/mapper/&lt;LONG string=""&gt;", the GUI tool does not shows the /dev/dm-*.&lt;BR /&gt;&lt;BR /&gt;but fdisk only shows the /dev/dm-*.&lt;BR /&gt;&lt;BR /&gt;Now my question is that, if I try to create a file system on this FC connected LUN from command line, then how do I know the  /dev/mapper/&lt;LONG series="" of="" numbers=""&gt; of the LUN ? because fdisk only shows the /dev/dm-*. I mean without using the GUI tool how can I know the  /dev/mapper/&lt;LONG series="" of="" numbers=""&gt; ?&lt;BR /&gt;&lt;BR /&gt;how to know the "/dev/mapper/&lt;LONG series="" of="" numbers=""&gt;" of /dev/dm-0 ?&lt;BR /&gt;&lt;BR /&gt;say I want to make a file system, and fdisk reports me /dev/dm-0, now on command line&lt;BR /&gt;# mkfs.ext3 /dev/mapper/&lt;LONG series="" of="" numbers=""&gt;&lt;BR /&gt;so how do I know the long series of number related to this /dev/dm-0&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;&lt;/LONG&gt;</description>
      <pubDate>Sun, 17 May 2009 17:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421200#M36588</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-05-17T17:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w /dev/dm-0 and /dev/mapper/36005.......</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421201#M36589</link>
      <description>Apparently fdisk is missing the programming to automatically detect multipath devices. But if you use "fdisk /dev/mapper/&lt;LONG_STRING_OF_NUMBERS&gt;", it should work.&lt;BR /&gt;&lt;BR /&gt;The /dev/dm-* devices can be used for many purposes: LVM, software RAID, and multipathing for example. For some reason fdisk lists the dm-* devices, although they are not useful for permanent configurations of any kind.&lt;BR /&gt;&lt;BR /&gt;If you need to know the current mapping between /dev/dm-* devices and /dev/mapper/* devices, use "ls -l /dev/dm-*" and "ls -l /dev/mapper". If a /dev/dm-* device has the same major and minor device number than the /dev/mapper/* device, it refers to the same disk.&lt;BR /&gt;&lt;BR /&gt;If you are using a complex device-mapper setup (e.g. multipathing + LVM), try "dmsetup ls --tree" to get a quick view of how the various mappings interact.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/LONG_STRING_OF_NUMBERS&gt;</description>
      <pubDate>Thu, 28 May 2009 09:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421201#M36589</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-28T09:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w /dev/dm-0 and /dev/mapper/36005.......</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421202#M36590</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The /dev/dm## devices are the result of the built in multi-pathing detecting a second path.&lt;BR /&gt;&lt;BR /&gt;These devices probably should not be used unless you have intentionally provided multi pathing confdiguration.&lt;BR /&gt;&lt;BR /&gt;Ways this can happen:&lt;BR /&gt;* Two HBA cards providing two paths to the same disk.&lt;BR /&gt;&lt;BR /&gt;You can use these devices if you complete configuration of multi pathing.&lt;BR /&gt;&lt;BR /&gt;Or you can ignore them.&lt;BR /&gt;&lt;BR /&gt;The choice is yours.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 May 2009 09:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-dev-dm-0-and-dev-mapper-36005/m-p/4421202#M36590</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-28T09:53:04Z</dc:date>
    </item>
  </channel>
</rss>

