<?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 pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952504#M27199</link>
    <description>we have just added this disk from emc...&lt;BR /&gt;&lt;BR /&gt;1. fdisk /dev/sdb&lt;BR /&gt;2. created primary partition /dev/sdb1&lt;BR /&gt;3. change type to 8e&lt;BR /&gt;4. pvcreate /dev/sdb1&lt;BR /&gt;then i get this error "can't open /dev/sdb1 exclusively. mounted filesystem?"&lt;BR /&gt;&lt;BR /&gt;/dev/sdb1 /dev/sdb is not mounted as this is a new disk.&lt;BR /&gt;&lt;BR /&gt;has anybody experienced this before? any additional config that i need to do?&lt;BR /&gt;&lt;BR /&gt;also, we are using multipath.. so from system-config-lvm i can /dev/sdb and /dev/sdi belong to /dev/dm-0..</description>
    <pubDate>Tue, 27 Feb 2007 20:38:51 GMT</pubDate>
    <dc:creator>Alvin_14</dc:creator>
    <dc:date>2007-02-27T20:38:51Z</dc:date>
    <item>
      <title>pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952504#M27199</link>
      <description>we have just added this disk from emc...&lt;BR /&gt;&lt;BR /&gt;1. fdisk /dev/sdb&lt;BR /&gt;2. created primary partition /dev/sdb1&lt;BR /&gt;3. change type to 8e&lt;BR /&gt;4. pvcreate /dev/sdb1&lt;BR /&gt;then i get this error "can't open /dev/sdb1 exclusively. mounted filesystem?"&lt;BR /&gt;&lt;BR /&gt;/dev/sdb1 /dev/sdb is not mounted as this is a new disk.&lt;BR /&gt;&lt;BR /&gt;has anybody experienced this before? any additional config that i need to do?&lt;BR /&gt;&lt;BR /&gt;also, we are using multipath.. so from system-config-lvm i can /dev/sdb and /dev/sdi belong to /dev/dm-0..</description>
      <pubDate>Tue, 27 Feb 2007 20:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952504#M27199</guid>
      <dc:creator>Alvin_14</dc:creator>
      <dc:date>2007-02-27T20:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952505#M27200</link>
      <description>Alvin,&lt;BR /&gt;&lt;BR /&gt;I think you've answered your own question here. If you can see the same disk down both paths, then you must refer to it as "dm0", hence "pvcreate/dev/dm-0".</description>
      <pubDate>Thu, 01 Mar 2007 15:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952505#M27200</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2007-03-01T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952506#M27201</link>
      <description>Hi Alvin,&lt;BR /&gt;&lt;BR /&gt;I agree with Andrew,please click this link.&lt;BR /&gt;&lt;A href="http://www.linuxquestions.org/questions/showthread.php?t=527940" target="_blank"&gt;http://www.linuxquestions.org/questions/showthread.php?t=527940&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Asif Sharif</description>
      <pubDate>Fri, 02 Mar 2007 06:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/3952506#M27201</guid>
      <dc:creator>Asif Sharif</dc:creator>
      <dc:date>2007-03-02T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6811006#M54804</link>
      <description>&lt;P&gt;Look like the&amp;nbsp;disk&amp;nbsp;&lt;SPAN&gt;/dev/sdb1 was earlier mounted. And the file does exists in /proc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try the restarting the host, that could be one of the easy solution.&lt;BR /&gt;This genrally happens if you dont export your volumn group(s) before recreating the drive.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 10:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6811006#M54804</guid>
      <dc:creator>Himadri_Mandal</dc:creator>
      <dc:date>2015-11-13T10:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6978986#M55040</link>
      <description>&lt;P&gt;&lt;STRONG&gt;You can surely solve this error by a reboot however&amp;nbsp; the below commands can be used to resolve this online.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I havent faced any Issues so far with these commands hence I believe they are safe to run in a production enviornment.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;------------------------------------------------------------------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;ERROR:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The error that I get on a new disk while creating physical volume:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@isaacvm01 ~]# pvcreate /dev/sdd1&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Can't open /dev/sdd1 exclusively. Mounted filesystem?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;List&amp;nbsp; device names first to see if the disk is present:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@isaacvm01 ~]# &lt;STRONG&gt;dmsetup ls | grep sdd&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sdd1 (253:14)&lt;FONT color="#FF0000"&gt; --&amp;gt; yes it is present.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next remove the disk:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@isaacvm01 ~]# &lt;STRONG&gt;dmsetup remove sdd1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check it again:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@isaacvm01 ~]# &lt;STRONG&gt;dmsetup ls | grep sdd&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@isaacvm01 ~]#&lt;/SPAN&gt; &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-&amp;gt; yes its gone.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now try the pvcreate command again:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@isaacvm01 ~]# &lt;STRONG&gt;pvcreate /dev/sdd1&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Physical volume "/dev/sdd1" successfully created&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;[root@isaacvm01 ~]#&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I hope this helps. Thanks&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 08:50:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6978986#M55040</guid>
      <dc:creator>isaac_mathew</dc:creator>
      <dc:date>2017-10-04T08:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6979039#M55041</link>
      <description>&lt;P&gt;When you are using multipathing, it means a single physical disk/LUN can show up as multiple devices: one /dev/sd* device per available path. Using these /dev/sd* devices means you're using that LUN using that one specific path only. This is not what you normally want, so you'll want to use a multipathing solution in this case.&lt;/P&gt;&lt;P&gt;Device-mapper-multipathing won't hide the individual /dev/sd* paths for multipathed devices: you might sometimes need them for e.g. diagnosing failures on a specific path. Instead, it creates a multipathed mapping device /dev/dm-* and a link to it with a persistent name: /dev/mapper/mpath* if you have the multipath.conf "friendly names" option enabled (RedHat default), or /dev/mapper/&amp;lt;WWID of the LUN&amp;gt; if the "friendly names" option is disabled (SuSE default).&lt;/P&gt;&lt;P&gt;Dm-multipath attempts to prevent you from accessing the multipathed LUN using both the multipathed device (/dev/dm-* or /dev/mapper/*) and the individual path device(s) /dev/sd* simultaneously: as soon as something is accessing the multipathed device, dm-multipath sets up an exclusive lock to the corresponding /dev/sd* devices.&lt;/P&gt;&lt;P&gt;Note that the /dev/dm-* device names are created from scratch each time the system starts up, so their numbering may vary between one bootup and the next. So you should always use the /dev/mapper/* names instead: those names are guaranteed to be persistent.&lt;/P&gt;&lt;P&gt;Also note that the /dev/dm-* names are not used only for dm-multipath, but also all the other purposes the device-mapper kernel subsystem is used: LVM, cryptsetup and dmraid all use the /dev/dm-* device names. If you're curious, you can use "dmsetup ls --tree" to see a single list of all the things device-mapper subsystem is currently handling on your system.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/6979039#M55041</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2017-10-04T14:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate error: can't open /dev/sdb1 exclusively. mounted filesystem?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/7051091#M55187</link>
      <description>&lt;P&gt;Thanks, it worked for me. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 13:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pvcreate-error-can-t-open-dev-sdb1-exclusively-mounted/m-p/7051091#M55187</guid>
      <dc:creator>EmamBasha</dc:creator>
      <dc:date>2019-06-18T13:29:03Z</dc:date>
    </item>
  </channel>
</rss>

