<?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: I still don't get it (moving drives) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789077#M784274</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vgxx/lvol$ /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;#Vgreduce /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;Remove the drive if its hotspare &amp;amp; connect it to other controller&lt;BR /&gt;&lt;BR /&gt;#insf -H &lt;H&gt;&lt;BR /&gt;#pvcreate /dev/rdsk/cxtydz&lt;BR /&gt;#vgextend /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;#lvextend -m 1 /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;&lt;/H&gt;</description>
    <pubDate>Tue, 16 May 2006 11:09:20 GMT</pubDate>
    <dc:creator>Arunkumar.B</dc:creator>
    <dc:date>2006-05-16T11:09:20Z</dc:date>
    <item>
      <title>I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789076#M784273</link>
      <description>I am trying to move mirrored drives around so they are on different controllers.&lt;BR /&gt;I understand the hardware part and which slots the drive belong so the mirrored drives will be using different controllers. I can always backup up the system and do this the hard way. I am looking for another way.&lt;BR /&gt;&lt;BR /&gt;Here is what I still am stuck on.&lt;BR /&gt;Each pair of drives are one VG, one LV, and one mount point. &lt;BR /&gt;How do break the mirror and/or remove the drive from the VG. &lt;BR /&gt;I think I should break the mirror and remove one drive from the system with our losing data or downing the system. &lt;BR /&gt;I am looking at "When Good Drives go bad." I stll don't get it.&lt;BR /&gt;Marty&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 10:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789076#M784273</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-05-16T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789077#M784274</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vgxx/lvol$ /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;#Vgreduce /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;Remove the drive if its hotspare &amp;amp; connect it to other controller&lt;BR /&gt;&lt;BR /&gt;#insf -H &lt;H&gt;&lt;BR /&gt;#pvcreate /dev/rdsk/cxtydz&lt;BR /&gt;#vgextend /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;#lvextend -m 1 /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;&lt;/H&gt;</description>
      <pubDate>Tue, 16 May 2006 11:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789077#M784274</guid>
      <dc:creator>Arunkumar.B</dc:creator>
      <dc:date>2006-05-16T11:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789078#M784275</link>
      <description>Shalom Marty,&lt;BR /&gt;&lt;BR /&gt;Two ways I know to break softwar mirrors.&lt;BR /&gt;&lt;BR /&gt;lvextend -m 0 &lt;LVOL name=""&gt;&lt;BR /&gt;&lt;BR /&gt;lvsplit &lt;LVOL name=""&gt;&lt;BR /&gt;&lt;BR /&gt;There are probably others.&lt;BR /&gt;&lt;BR /&gt;I recommend splitting all the mirrors and removing the second copy with lvremove.&lt;BR /&gt;&lt;BR /&gt;Then recreate the mirrors specifying which disk the mirror is going to.&lt;BR /&gt;&lt;BR /&gt;Example the lvol name ls /vg01/lvol1&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /vg01/lvol1 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;Never extend a mirror onto the same controller.&lt;BR /&gt;&lt;BR /&gt;c1 should be extended to c0 or c2 etc.&lt;BR /&gt;&lt;BR /&gt;The nice thing about mirror/ux is you can do this all on the fly.&lt;BR /&gt;&lt;BR /&gt;Letting sam decide where to make the mirror is the normal cause of mirror copies landing on the same disk or controller.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/LVOL&gt;&lt;/LVOL&gt;</description>
      <pubDate>Tue, 16 May 2006 11:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789078#M784275</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-16T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789079#M784276</link>
      <description>If you have a spare disk you could create a 3-way mirror by adding the new disk (that is on the other controller) to your volume group, mirroring all the logical volumes onto it with lvextend -m 2 ... for each logical volume, then &lt;BR /&gt;lvreduce -m 1 /dev/vgxx/lvyy /dev/dsk/[one of the disks on the old controller]&lt;BR /&gt;&lt;BR /&gt;That will mean that you never go without a mirrored pair.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 11:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789079#M784276</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-05-16T11:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789080#M784277</link>
      <description>If I am understand this correctly I could do this something like this with out moving any moving the drives. Just wait for the mirrod to resync. And use the right hardware addresses.&lt;BR /&gt;&lt;BR /&gt;Break the mirror: &lt;BR /&gt;lvreduce -m 0 /dev/vg12/lvol12 /dev/dsk/c10t13d0&lt;BR /&gt;Drive is available?&lt;BR /&gt;&lt;BR /&gt;Add another Mirror to vg11 (from above)&lt;BR /&gt;lvextend -m 2 /dev/vg11 /dev/dsk/c10t13d0&lt;BR /&gt;Now vg11 has a 3 drive mirror?&lt;BR /&gt;&lt;BR /&gt;Remove the unwanter drive from mirror&lt;BR /&gt;lvreduce -m 1 /dev/vg11 /dev/dsk/c10t11d0&lt;BR /&gt;now vg11 has a 2 drive mirror again?&lt;BR /&gt;&lt;BR /&gt;Marty&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 11:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789080#M784277</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-05-16T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789081#M784278</link>
      <description>If you want to have mirrors accross different controllers you might use PVG-strict allocation policy.&lt;BR /&gt;&lt;BR /&gt;First, you have to create /etc/lvmpvg file that should look like this:&lt;BR /&gt;&lt;BR /&gt;VG /dev/vg01&lt;BR /&gt;PVG controller0&lt;BR /&gt;/dev/dsk/c0t1d0&lt;BR /&gt;/dev/dsk/c0t2d0&lt;BR /&gt;PVG controller1&lt;BR /&gt;/dev/dsk/c1t1d0&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;at this point you might want to run vgdisplay -v on your volume group to verify that you PVG are correctly displayed.&lt;BR /&gt;then, reduce a mirror with &lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vgXX/lvolXX&lt;BR /&gt;&lt;BR /&gt;change the lvol allocation policy to PVG-strict with &lt;BR /&gt;&lt;BR /&gt;lvchange -s g /dev/vgXX/lvolXX&lt;BR /&gt;&lt;BR /&gt;and add a mirror with&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vgXX/lvolXX&lt;BR /&gt;&lt;BR /&gt;that's all, now you have your lvol mirrored accross different controllers.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 12:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789081#M784278</guid>
      <dc:creator>Andrey Tumanov</dc:creator>
      <dc:date>2006-05-16T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: I still don't get it (moving drives)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789082#M784279</link>
      <description>Yes you should mirror across controllers - that normally means a different c number cXtYdZ , so don't put more than one disk on c10.  I thought that was why you wanted to move a disk elsewhere.&lt;BR /&gt;&lt;BR /&gt;When you have dropped whichever mirror disk you want to remove from the volume group, you can add it to another volume group instead, where it may be used as a mirror for a disk elsewhere.&lt;BR /&gt;&lt;BR /&gt;For example, suppose you have 8 disks on c10 and 10 disks on c11, you should include some disks from both controllers in each volume group.  Just make sure that the disks are the same size, or else things would get more complicated, but not impossible.  Something like this:&lt;BR /&gt;c10t0d0, c11t0d0, c10t1d0, c11t1d0 in vg01&lt;BR /&gt;c10t2d0, c11t2d0, c10t3d0, c11t3d0 in vg02&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 May 2006 14:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-still-don-t-get-it-moving-drives/m-p/3789082#M784279</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-05-16T14:34:11Z</dc:date>
    </item>
  </channel>
</rss>

