<?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: mirror, and stripe the pvg in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445363#M656863</link>
    <description>&lt;BR /&gt;Its difficult to find a really indepth book on mirroring/striping etc. on HP-UX, the best ive seen is the more general admin book;&lt;BR /&gt;HP-UX 11.X System Administration (Marty Poniatowski)&lt;BR /&gt;&lt;BR /&gt;Now, your disk mirroring plan looks good. &lt;BR /&gt;1. Yes, when you use the mknod command the 0x0?0000 value must be unique across all your VG's. do an ll -d /dev/vg*/group to see all your existing ones so you dont use an existing one.&lt;BR /&gt;&lt;BR /&gt;2. All your commands to setup your distributed VG01 look good. &lt;BR /&gt;&lt;BR /&gt;However, the whole purpose of use the -D (distributed) option with PVG's is so that you can mix striping with mirroring. This you cant do normally, have to use -D option (or manual extent based striping+mirroring but thats a long story).&lt;BR /&gt;So, if you want to stripe your filesystems across your 2 controllers and mirror them for optimal performance then yes, go ahead, but change the disks in each PVG to rotate amongst your controllers, eg; &lt;BR /&gt;PVG0 c0t9d0 c1t11d0 c0t13d0 c1t15d0&lt;BR /&gt;PVG1 c1t9d0 c0t11d0 c1t13d0 c0t15d0&lt;BR /&gt;Then when you create an lvol across all of them (say 1 60+GB lvol) then you can use the lvcreate -I 64 -i 4 command to stripe them across PVG0, then afterwards use the lvextend -m 1 command to mirror to PVG1. This way your performance will be much better than if you dont stripe them or only stripe on 1 controller.&lt;BR /&gt;&lt;BR /&gt;If you dont want to stripe+mirror then stick to your existing plan, its good.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Sep 2000 14:07:15 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2000-09-14T14:07:15Z</dc:date>
    <item>
      <title>mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445361#M656861</link>
      <description>Two questions, &lt;BR /&gt;first -- I would like reccomendatations on a good book on the subject of lvm, pvg, mirroring etc...&lt;BR /&gt;&lt;BR /&gt;second --  &lt;BR /&gt;&lt;BR /&gt;I was wondering if someone would comment on this procedure that I composed. I have had limited exposure to the HP/UX system and was seeking some feedback.&lt;BR /&gt;  &lt;BR /&gt;*** introduction ****&lt;BR /&gt;I have an application on HPUX-10.20 that I wish to store data on in a &lt;BR /&gt;large volume group. &lt;BR /&gt;&lt;BR /&gt;I have 8x 18 gig drives spread accross two controllers, 4 each, in two separate enclosures. c[0,1]t[9,11,13,15]d0&lt;BR /&gt;&lt;BR /&gt;I plan on making two pvg from the redundant hardware and mirroring these. &lt;BR /&gt;&lt;BR /&gt;primary pvg1 (c0t9d0 c0t11d0 c0t13d0 c0t15d0)#physical volume group 1&lt;BR /&gt;&lt;BR /&gt;mirror pvg2 (c1t9d0 c1t11d0 c1t13d0 c1t15d0)#physical volume group 2&lt;BR /&gt;&lt;BR /&gt;these volume groups will contain one 60M logical volume, lvol1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*** procedure ***&lt;BR /&gt;&lt;BR /&gt;         #create/initialize physical drives &lt;BR /&gt; pvcreate -f /dev/rdsk/c0t9d0 &lt;BR /&gt; pvcreate -f /dev/rdsk/c0t11d0&lt;BR /&gt; pvcreate -f /dev/rdsk/c0t13d0&lt;BR /&gt; pvcreate -f /dev/rdsk/c0t15d0&lt;BR /&gt;&lt;BR /&gt; pvcreate -f /dev/rdsk/c1t9d0&lt;BR /&gt; pvcreate -f /dev/rdsk/c1t11d0&lt;BR /&gt; pvcreate -f /dev/rdsk/c1t13d0&lt;BR /&gt; pvcreate -f /dev/rdsk/c1t15d0&lt;BR /&gt;&lt;BR /&gt; mkdir /dev/vg01      &lt;BR /&gt; mknod /dev/vg01/group c 64 0x010000  &lt;BR /&gt;&lt;BR /&gt;question: &lt;BR /&gt;   the identifier 0x010000 has to be unique -- across the system or vg01?&lt;BR /&gt;&lt;BR /&gt;question: &lt;BR /&gt;   this seems like a DANGEROUS command?&lt;BR /&gt;     #create the physical volume groups.&lt;BR /&gt;&lt;BR /&gt;vgcreate -g pvg1 /dev/vg01 /dev/dsk/c0t9d0 /dev/dsk/c0t11d0 /dev/dsk/c0t13d0 /dev/dsk/c0t15d0&lt;BR /&gt;&lt;BR /&gt;vgcreate -g pvg2 /dev/vg01 /dev/dsk/c1t9d0 /dev/dsk/c1t11d0 /dev/dsk/c1t13d0 /dev/dsk/c1t15d0&lt;BR /&gt;&lt;BR /&gt;     #create a distributed logical volume  &lt;BR /&gt;#with group restrictions and mirror  &lt;BR /&gt;lvcreate -s g -D y -m 1 -L60000 /dev/vg01   &lt;BR /&gt;question: this command seems VERY different then the standard drive mirroring commands, &lt;BR /&gt;am I missing something??? &lt;BR /&gt;  &lt;BR /&gt;Use sam to format and mount /dev/vg01/lvol1</description>
      <pubDate>Thu, 14 Sep 2000 13:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445361#M656861</guid>
      <dc:creator>David Figgins</dc:creator>
      <dc:date>2000-09-14T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445362#M656862</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;sounds to me good.&lt;BR /&gt;The identifier 0x010000 has to be          unique over the whole system.&lt;BR /&gt;Check this with:&lt;BR /&gt;ls -l /dev/vg*/group&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Thu, 14 Sep 2000 14:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445362#M656862</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-14T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445363#M656863</link>
      <description>&lt;BR /&gt;Its difficult to find a really indepth book on mirroring/striping etc. on HP-UX, the best ive seen is the more general admin book;&lt;BR /&gt;HP-UX 11.X System Administration (Marty Poniatowski)&lt;BR /&gt;&lt;BR /&gt;Now, your disk mirroring plan looks good. &lt;BR /&gt;1. Yes, when you use the mknod command the 0x0?0000 value must be unique across all your VG's. do an ll -d /dev/vg*/group to see all your existing ones so you dont use an existing one.&lt;BR /&gt;&lt;BR /&gt;2. All your commands to setup your distributed VG01 look good. &lt;BR /&gt;&lt;BR /&gt;However, the whole purpose of use the -D (distributed) option with PVG's is so that you can mix striping with mirroring. This you cant do normally, have to use -D option (or manual extent based striping+mirroring but thats a long story).&lt;BR /&gt;So, if you want to stripe your filesystems across your 2 controllers and mirror them for optimal performance then yes, go ahead, but change the disks in each PVG to rotate amongst your controllers, eg; &lt;BR /&gt;PVG0 c0t9d0 c1t11d0 c0t13d0 c1t15d0&lt;BR /&gt;PVG1 c1t9d0 c0t11d0 c1t13d0 c0t15d0&lt;BR /&gt;Then when you create an lvol across all of them (say 1 60+GB lvol) then you can use the lvcreate -I 64 -i 4 command to stripe them across PVG0, then afterwards use the lvextend -m 1 command to mirror to PVG1. This way your performance will be much better than if you dont stripe them or only stripe on 1 controller.&lt;BR /&gt;&lt;BR /&gt;If you dont want to stripe+mirror then stick to your existing plan, its good.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2000 14:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445363#M656863</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-14T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445364#M656864</link>
      <description>I usually do not create the mirror when I create the lvol.  I'm more of a control freak and do not like to leave it to the system to decide too many things.&lt;BR /&gt;When you do your lvcreate you do not tell it where to create the lvol and the mirror.  My preference would be to take out the "-m 1" and add "pvg1" at the end.  This way your lvol gets created using extent based stripping on the disks on your first controller.&lt;BR /&gt;Next I would do an "lvextend -m 1 /dev/vg01/lvol1 pvg2".  This will force the mirror to be on the disks on your second controller.&lt;BR /&gt;The result is that if you lose a disk on either controller your are protected.  If you lose a controller or disk enclosure you still have a full mirror on the other controller and enclosure.&lt;BR /&gt;Maybe lvm is smart enough to handle this.  I would be concerned that you could have your primary and mirror for an extent on the same controller.  I like more control.&lt;BR /&gt;Another result is you will balance I/O a little better.  When using mirroring a write has to go to the primary, in this case down your first controller.  When that completes the second write to the mirror goes down your second controller.  Evenly balanced.&lt;BR /&gt;A read is satisfied from the controller with the least pending requests, either the mirror or the primary.  Again balanced and the system does a pretty good job of balancing reads.&lt;BR /&gt;Maybe lvm will handle this OK.  I just prefer to make more of the decisions.&lt;BR /&gt;&lt;BR /&gt;As for a good book.  I like Poniatowski's books, but, I think they lack detail.  In another shop I worked at someone before me had taken the "Hands on with LVM and MirrorDisk/UX" at HP.  I made a copy and it has been my best reference.  I have not taken it, but, I suggest taking the course.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2000 15:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445364#M656864</guid>
      <dc:creator>Dave Wherry</dc:creator>
      <dc:date>2000-09-14T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445365#M656865</link>
      <description>Regarding Dave's concern:&lt;BR /&gt;&lt;BR /&gt;Setting the logical volume to a pvg-strict allocation policy (-s g in lvcreate) will tell LVM to allocate mirror extents only from a distinct pvg.  If you have only 2 pvg's in the VG, then this will set up your striped, mirrored lvols appropriately.  The advantage of establishing mirrors at creation time is speed.  Because each extent need not be physically synced (the lvol is brand new, after all) the command returns much faster than extending a mirror after creation for large lvols.</description>
      <pubDate>Thu, 14 Sep 2000 15:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445365#M656865</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-09-14T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445366#M656866</link>
      <description>Alan,&lt;BR /&gt;Thanks for clearing it up.  I had not done it that way before.  I guess I was still in the mindset of having to be more in controll.  Comes from the days before the distributed option.&lt;BR /&gt;The end result is the same and the physical volume group method is faster.  Go with it.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 14 Sep 2000 15:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445366#M656866</guid>
      <dc:creator>Dave Wherry</dc:creator>
      <dc:date>2000-09-14T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: mirror, and stripe the pvg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445367#M656867</link>
      <description>thanks for the help... &lt;BR /&gt;  the feed back from those with &lt;BR /&gt;experience with the system is great!&lt;BR /&gt;&lt;BR /&gt;I am going to go forward with the plan.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks again.&lt;BR /&gt;&lt;BR /&gt;david</description>
      <pubDate>Thu, 14 Sep 2000 18:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-and-stripe-the-pvg/m-p/2445367#M656867</guid>
      <dc:creator>David Figgins</dc:creator>
      <dc:date>2000-09-14T18:50:42Z</dc:date>
    </item>
  </channel>
</rss>

