<?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: Removing logical volume in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703090#M42479</link>
    <description>Since you found them in the multipath listing showing "0:0:0:7" and "0:0:0:8", try "cat /proc/scsi/scsi" and see if the Vendor and Model shown for Lun 7 and 8 give you an idea whether they are SAN connections or something else.  How you should remove them depends somewhat on what they are.&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Oct 2010 23:57:01 GMT</pubDate>
    <dc:creator>Randy Jones_3</dc:creator>
    <dc:date>2010-10-21T23:57:01Z</dc:date>
    <item>
      <title>Removing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703089#M42478</link>
      <description>Hi,&lt;BR /&gt;Need to remove the following LV. I cannot drill down to the level of which disks it's made up with. Please validate my response. &lt;BR /&gt;PS: Server was not built and managed by me and there is a lack of documentation.&lt;BR /&gt;&lt;BR /&gt;Please refer : &lt;A href="http://paste.org/pastebin/view/23848" target="_blank"&gt;http://paste.org/pastebin/view/23848&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Now the question.&lt;BR /&gt;&lt;BR /&gt;I get to see the lv is made up of dm-7 and dm-9. On the partition table dm-7 has the mjor:minor as :&lt;BR /&gt;253     7   23068672 dm-7&lt;BR /&gt;and dm-9 is:&lt;BR /&gt;253     9   23068672 dm-9&lt;BR /&gt;&lt;BR /&gt;now the problem is finding what these 2 devices  are, luckily i see the same major:minor numbers in  /dev/mapper directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;brw-rw----  1 root disk 253,  9 Oct 13 15:49 temp&lt;BR /&gt;brw-rw----  1 root disk 253,  7 Oct 13 15:49 temp_1&lt;BR /&gt;&lt;BR /&gt;QUESTION 1&lt;BR /&gt;is &lt;BR /&gt;dm-7 --&amp;gt; temp_1&lt;BR /&gt;dm-9 --&amp;gt; temp&lt;BR /&gt;&lt;BR /&gt;Now i did another guess to find out what these 2 were. This is a guess, there was no science and methodology behind my guess. I need to know if my approach was right, if not what is the right way of doing it.&lt;BR /&gt;&lt;BR /&gt;Here are the 2&lt;BR /&gt;temp (360060e8005b24f000000b24f00007500)&lt;BR /&gt;[size=22 GB][features="1 queue_if_no_path"][hwhandler="0"]&lt;BR /&gt;\_ round-robin 0 [prio=2][active]&lt;BR /&gt; \_ 0:0:0:7  sdd 8:48  [active][ready]&lt;BR /&gt; \_ 1:0:0:7  sdk 8:160 [active][ready]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;temp_1 (360060e8005b24f000000b24f00007501)&lt;BR /&gt;[size=22 GB][features="1 queue_if_no_path"][hwhandler="0"]&lt;BR /&gt;\_ round-robin 0 [prio=2][active]&lt;BR /&gt; \_ 0:0:0:8  sde 8:64  [active][ready]&lt;BR /&gt; \_ 1:0:0:8  sdl 8:176 [active][ready]&lt;BR /&gt;&lt;BR /&gt;now i see multipathd is not configured to run&lt;BR /&gt;chkconfig --list | grep multi&lt;BR /&gt;multipathd      0:off   1:off   2:off   3:off   4:off   5:off   6:off&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -i multi&lt;BR /&gt;root     24365 17927  0 08:21 pts/7    00:00:00 grep -i multi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again the question is how to drill down and find where my devices are coming from which make up the temp_lv.&lt;BR /&gt;&lt;BR /&gt;Part 2 &lt;BR /&gt;-------&lt;BR /&gt;How do i get rid of these devices the proper way if they are the correct devices.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2010 21:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703089#M42478</guid>
      <dc:creator>ossupport55</dc:creator>
      <dc:date>2010-10-21T21:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703090#M42479</link>
      <description>Since you found them in the multipath listing showing "0:0:0:7" and "0:0:0:8", try "cat /proc/scsi/scsi" and see if the Vendor and Model shown for Lun 7 and 8 give you an idea whether they are SAN connections or something else.  How you should remove them depends somewhat on what they are.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2010 23:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703090#M42479</guid>
      <dc:creator>Randy Jones_3</dc:creator>
      <dc:date>2010-10-21T23:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703091#M42480</link>
      <description>The VG is no longer active, so if you want to delete it, go ahead:&lt;BR /&gt;&lt;BR /&gt;vgremove temp_vg&lt;BR /&gt;pvremove /dev/dm-7&lt;BR /&gt;pvremove /dev/dm-9&lt;BR /&gt;&lt;BR /&gt;After this they will no longer be associated with LVM at all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;QUESTION 1&lt;BR /&gt;&amp;gt;is&lt;BR /&gt;&amp;gt;dm-7 --&amp;gt; temp_1&lt;BR /&gt;&amp;gt;dm-9 --&amp;gt; temp&lt;BR /&gt;&lt;BR /&gt;Yes. They are both block devices, and have the same major&amp;amp;minor numbers, so they are accessing the same thing in the kernel.&lt;BR /&gt;&lt;BR /&gt;"dm-7" and "dm-9" are kernel's default names for the device-mapper devices: these are assigned automatically in ascending order, and are not guaranteed to be persistent across reboots. /dev/mapper/* are names created by userspace utilities: these are usually persistent and informative.&lt;BR /&gt;&lt;BR /&gt;It's pretty obvious that block devices with major number 253 are associated with the device-mapper subsystem in your server, but if you need to confirm it, you can look into /proc/devices. There you'll find a list of major device numbers and the drivers/subsystems they're associated with.&lt;BR /&gt;&lt;BR /&gt;To get more information, please run "dmsetup ls --tree". This will list all the device-mapper mappings in tree format. It makes no difference whether your mystery devices are LVM, software RAID, disk encryption, multipathing or custom tests: this *will* get them all.&lt;BR /&gt;&lt;BR /&gt;In your case, the dm-7 and dm-9 (aka temp_1 and temp) appear to be multipath devices. The system will automatically clean them up when you remove their component disk devices (/dev/sdd, /dev/sdk, /dev/sde and /dev/sdl respectively). If you're going to disconnect those disks from your system, then here's a way to clean them up:&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;To tell the system /dev/sdd will be intentionally removed and won't come back:&lt;BR /&gt;&lt;BR /&gt;echo 1 &amp;gt;/sys/block/sdd/device/delete&lt;BR /&gt;&lt;BR /&gt;The fact that multipathd is not running does not mean multipathing is disabled: dm-multipath also has a kernel module, and your "multipath -l" output indicates it's still active. &lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 22 Oct 2010 06:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-logical-volume/m-p/4703091#M42480</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-22T06:33:29Z</dc:date>
    </item>
  </channel>
</rss>

