<?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 LVM Mirror like in HPUX in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584506#M39771</link>
    <description>HI,&lt;BR /&gt;&lt;BR /&gt;I wanted to make a mirror copy for  LV with different Physical volume in redhat linux 4.7 but it seems bit cofusion.&lt;BR /&gt;&lt;BR /&gt;I have one VG=vg01&lt;BR /&gt;Two PV = sdb1,sdc1 each 1 gb.&lt;BR /&gt;I have one LV=mylv with the size of 512mb.&lt;BR /&gt;&lt;BR /&gt;Now i needs to mirror mylv with physical volume sdc1 as below&lt;BR /&gt;&lt;BR /&gt;#lvconvert -m1 /dev/vg01/mylv /dev/sdc1 but it givs error&lt;BR /&gt;Not enough PVs with free space available for parallel allocation.&lt;BR /&gt;  Consider --alloc anywhere if desperate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;seems its looking for same phyiscal volume for mirror.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Feb 2010 08:56:46 GMT</pubDate>
    <dc:creator>UVA</dc:creator>
    <dc:date>2010-02-16T08:56:46Z</dc:date>
    <item>
      <title>LVM Mirror like in HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584506#M39771</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;I wanted to make a mirror copy for  LV with different Physical volume in redhat linux 4.7 but it seems bit cofusion.&lt;BR /&gt;&lt;BR /&gt;I have one VG=vg01&lt;BR /&gt;Two PV = sdb1,sdc1 each 1 gb.&lt;BR /&gt;I have one LV=mylv with the size of 512mb.&lt;BR /&gt;&lt;BR /&gt;Now i needs to mirror mylv with physical volume sdc1 as below&lt;BR /&gt;&lt;BR /&gt;#lvconvert -m1 /dev/vg01/mylv /dev/sdc1 but it givs error&lt;BR /&gt;Not enough PVs with free space available for parallel allocation.&lt;BR /&gt;  Consider --alloc anywhere if desperate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;seems its looking for same phyiscal volume for mirror.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Feb 2010 08:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584506#M39771</guid>
      <dc:creator>UVA</dc:creator>
      <dc:date>2010-02-16T08:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Mirror like in HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584507#M39772</link>
      <description>&lt;!--!*#--&gt;&amp;gt;&amp;gt; Consider --alloc anywhere if desperate.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;seems its looking for same phyiscal volume for mirror.&lt;BR /&gt;&lt;BR /&gt;Yes, your assumption seems right.&lt;BR /&gt;You ought to be pretty desperate before you resorted to the "--alloc anywhere" option ;-)&lt;BR /&gt;&lt;BR /&gt;You can look up how many free PEs there are in each PV.&lt;BR /&gt;Either issue&lt;BR /&gt;&lt;BR /&gt;# vgdisplay -v vgrh|egrep 'PV Name|Total PE|PE Size'&lt;BR /&gt;&lt;BR /&gt;or use this command&lt;BR /&gt;&lt;BR /&gt;# pvs -o name,pe_count,pe_alloc_count,free /dev/sd[bc]1&lt;BR /&gt;&lt;BR /&gt;You can also have a look at how those allocated PEs are mapped on the PVs by&lt;BR /&gt;&lt;BR /&gt;# pvdisplay -m /dev/sd[bc]1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Besides, before there was introduced the mirroring option in Linux LVM2 the usual way to mirror accross different HDDs an their partitions was to build an MD RAID1 device beneath LVM and use that as a PV to create your mirrored VG.&lt;BR /&gt;&lt;BR /&gt;One would do this by first marking same sized partitions on different HDDs of type 0xfd (i.e. autoraid) (e.g. by using fdisk /dev/sdb and fdisk /dev/sdc) and then run something like such:&lt;BR /&gt;&lt;BR /&gt;# mdadm -C /dev/md0 -a md -l 1 -n 2 /dev/sd[bc]1&lt;BR /&gt;&lt;BR /&gt;# mdadm -Dsv | grep -A1 md0 &amp;gt;&amp;gt;/etc/mdadm.cfg&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/md0&lt;BR /&gt;&lt;BR /&gt;# vgcreate -s 16m vgbla /dev/md0&lt;BR /&gt;&lt;BR /&gt;# lvcreate -L 2g -n lv_bla vgbla&lt;BR /&gt;&lt;BR /&gt;# mke2fs -j /dev/vgbla/lv_bla&lt;BR /&gt;&lt;BR /&gt;etc.</description>
      <pubDate>Tue, 16 Feb 2010 13:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584507#M39772</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2010-02-16T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Mirror like in HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584508#M39773</link>
      <description>The LVM-level mirroring functionality seems to be a bit rough in RHEL 4.x, and apparently still is in RHEL 5. &lt;BR /&gt;&lt;BR /&gt;The error may be because lvconvert wants to allocate a small amount of disk space for the mirror log, which ideally should be not on the same disks as the mirror halves (i.e. you would need a small *third* PV in your VG for the mirror log).&lt;BR /&gt;&lt;BR /&gt;If you're mirroring for short term only (e.g. you're performing a SAN migration, and will remove the "old" side of the mirror as soon as the mirroring to the "new" side is complete), you might use the "--corelog" option:&lt;BR /&gt;&lt;BR /&gt;lvconvert -m1 --corelog dev/vg01/mylv /dev/sdc1&lt;BR /&gt;&lt;BR /&gt;If you use the --corelog option and the system is rebooted while the mirror exists, the mirror must be fully resynchronized from the original. So it is *not suitable* for long-term use.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 16 Feb 2010 14:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584508#M39773</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-02-16T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Mirror like in HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584509#M39774</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;For proper mirror, I would use lvmove to get the data on to one physical volume and then run the mirror configuration posted above, not what you originally tried.&lt;BR /&gt;&lt;BR /&gt;I am guessing your mylv logical volume is spread across two disks. To have mirror have any use, you need to get all the data to one disk and THEN mirror.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 16 Feb 2010 14:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584509#M39774</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-02-16T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: LVM Mirror like in HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584510#M39775</link>
      <description>Hi UVA,&lt;BR /&gt;&lt;BR /&gt;Yeah, as Matti said, you need three PVs for a two-way mirroring on Linux. This was strange also to me, but got used to it.&lt;BR /&gt;Altough the --corelog option isn't recommended.</description>
      <pubDate>Wed, 17 Feb 2010 13:24:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvm-mirror-like-in-hpux/m-p/4584510#M39775</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-02-17T13:24:22Z</dc:date>
    </item>
  </channel>
</rss>

