<?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: Filesystem extend on a mirrored VG in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973376#M604451</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This type of situation always twisted my brain.&lt;BR /&gt;&lt;BR /&gt;What I normally did was to break the mirror, extend the logical volume and re-mirror.&lt;BR /&gt;&lt;BR /&gt;That avoids headaches.&lt;BR /&gt;&lt;BR /&gt;Prior to doing this, I would run lvdisplay -v on the logical volume and plane hte space.&lt;BR /&gt;&lt;BR /&gt;So lvextend -m 0 /dev/vg00/lvol3&lt;BR /&gt;(don't think this will work may need lvsplit&lt;BR /&gt;lvextend /dev/vg00/lvol3 &lt;DISK device=""&gt;&lt;BR /&gt;lvextend -m 1 /dev/lvol3 &lt;DISK device=""&gt;&lt;BR /&gt;fsadm&lt;BR /&gt;&lt;BR /&gt;It gets more fun if you have to extend the mirror to a different disk than you were using for the original logical volume.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DISK&gt;&lt;/DISK&gt;</description>
    <pubDate>Sun, 01 Apr 2007 06:56:17 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-04-01T06:56:17Z</dc:date>
    <item>
      <title>Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973375#M604450</link>
      <description>Hi all,&lt;BR /&gt;   I have got a question while I am trying to extend a filesystem which is already mirrored.  &lt;BR /&gt;&lt;BR /&gt;For example, I have a file system /abc which is mounted on the following path: /dev/vg00/lvol3, and as far as I known, the vg00 is mirrored, should I perform the following steps in order to extend the filesystem /abc to 400MB??&lt;BR /&gt;&lt;BR /&gt; #lvextend -L 400 /dev/vg00/lvol3&lt;BR /&gt; #lvextend -m 1 /dev/vg00/lvol3&lt;BR /&gt; #fsadm -b 400M /abc&lt;BR /&gt;&lt;BR /&gt;Many thanks, I appreciate if anyone can answer my question.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Sun33</description>
      <pubDate>Sun, 01 Apr 2007 05:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973375#M604450</guid>
      <dc:creator>kcw</dc:creator>
      <dc:date>2007-04-01T05:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973376#M604451</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This type of situation always twisted my brain.&lt;BR /&gt;&lt;BR /&gt;What I normally did was to break the mirror, extend the logical volume and re-mirror.&lt;BR /&gt;&lt;BR /&gt;That avoids headaches.&lt;BR /&gt;&lt;BR /&gt;Prior to doing this, I would run lvdisplay -v on the logical volume and plane hte space.&lt;BR /&gt;&lt;BR /&gt;So lvextend -m 0 /dev/vg00/lvol3&lt;BR /&gt;(don't think this will work may need lvsplit&lt;BR /&gt;lvextend /dev/vg00/lvol3 &lt;DISK device=""&gt;&lt;BR /&gt;lvextend -m 1 /dev/lvol3 &lt;DISK device=""&gt;&lt;BR /&gt;fsadm&lt;BR /&gt;&lt;BR /&gt;It gets more fun if you have to extend the mirror to a different disk than you were using for the original logical volume.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DISK&gt;&lt;/DISK&gt;</description>
      <pubDate>Sun, 01 Apr 2007 06:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973376#M604451</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-04-01T06:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973377#M604452</link>
      <description>Hi Steven,&lt;BR /&gt;  Thanks for your kindly reply, according to your suggestion: 1) Break the mirror, 2) lvextend, 3) Re-mirror, and 4) filesystem extend, I have been thinking about the following commands.  Should the set of commands looks like this?? &lt;BR /&gt;(Assume that lvol3 is the LV that needed to be increased in size (to 400MB), /dev/dsk/c?t?d? is the mirror disk device, and /ora is mounted on lvol3, and finally, lvol3 and mirror disk are different PV)&lt;BR /&gt;&lt;BR /&gt;  #lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c?t?d?&lt;BR /&gt;  #lvextend -L 400 /dev/vg00/lvol3&lt;BR /&gt;  #lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c?t?d?&lt;BR /&gt;  #fsadm -b 400M /ora&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Sun33</description>
      <pubDate>Sun, 01 Apr 2007 10:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973377#M604452</guid>
      <dc:creator>kcw</dc:creator>
      <dc:date>2007-04-01T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973378#M604453</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;There is *no* need to break the mirror.  Simply 'lvextend' with the new size specification and target the physical devices that will hold the mirrored extents:&lt;BR /&gt;&lt;BR /&gt;# lvextend -L 400 /dev/vgNN/lvolN /dev/dsk/cXtYdZ /dev/dsk/cZtYdX&lt;BR /&gt;&lt;BR /&gt;Now, that said, in your case, extending the logical volume is probably going to fail anyway.  'lvol3' of 'vg00' is the root filesystem which *must* be 'strict' and 'contiguous'.  The 'contiguous' allocation requirement means that physical extents must exist without gaps.  Your 'lvol4' will likely lie next to 'lvol3' and will have used the contiguous physical extents that you seek to extend into.&lt;BR /&gt;&lt;BR /&gt;A better question is why you think you need to extend the root filesystem.  Unless you are upgrading an OS there is little need if you manage it correctly.  An Ignite restoration of 'vg00' and and re-specification of the logical volume sizes during that restoration is the safest and surest method to extend 'lvol3'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Apr 2007 11:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973378#M604453</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-01T11:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973379#M604454</link>
      <description>If ignite is not and option :-) or if you are just in for some LVM funn.&lt;BR /&gt;&lt;BR /&gt;Find a spare disk and move:&lt;BR /&gt;strings /etc/lvmtab |grep c7t0d6&lt;BR /&gt;pvcreate -f /dev/rdsk/c7t0d6&lt;BR /&gt;vgextend /dev/vg00 /dev/dsk/c7t0d6&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol4 |more&lt;BR /&gt;lvreduce -m 0 /dev/vg00/lvol4&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol4 |more&lt;BR /&gt;pvmove -n /dev/vg00/lvol4 /dev/dsk/c0t6d0 /dev/dsk/c7t0d6&lt;BR /&gt;&lt;BR /&gt;lvextend -L 1024 /dev/vg00/lvol3&lt;BR /&gt;fsadm -b 1024M /&lt;BR /&gt;&lt;BR /&gt;pvmove -n /dev/vg00/lvol4 /dev/dsk/c7t0d6 /dev/dsk/c0t6d0&lt;BR /&gt;vgreduce /dev/vg00 /dev/dsk/c7t0d6&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol4&lt;BR /&gt;&lt;BR /&gt;I have done it many times and it has never failed.&lt;BR /&gt;&lt;BR /&gt;If you don't have a spare disk, then you split away all you lvols on vg00 and use that as your spare disk :-). Remember to mirror your vg00 after the move.&lt;BR /&gt;&lt;BR /&gt;To be on the safe site make a ignite backup before you start.</description>
      <pubDate>Sun, 01 Apr 2007 14:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973379#M604454</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2007-04-01T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973380#M604455</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;no need to do anything with the mirror.&lt;BR /&gt;&lt;BR /&gt;I am taking that lvol3 is just an example and that you are not trying to extend / (which is actually quite possible and easy without any ignite/sparedisks ways, though as whole not supported) - nevertheless the only serious reason I can think of for needing / extend is to have new volumegroups with their lvm config files introduced to the system, which situation happens from time to time.&lt;BR /&gt;&lt;BR /&gt;First of all, check volumegroup PE size and logical volume extent distribution via:&lt;BR /&gt;# vgdisplay -v vg00&lt;BR /&gt;# lvdisplay -v /dev/vg00/lvol3&lt;BR /&gt;&lt;BR /&gt;see for the lines like:&lt;BR /&gt;&lt;BR /&gt;   LE        PV1                         PE1    Status 1 PV2                         PE2   Status 2&lt;BR /&gt;   00000 /dev/dsk/c2t4d0    00211 current  /dev/dsk/c5t4d0    00372 current&lt;BR /&gt;   00001 /dev/dsk/c2t4d0    00212 current  /dev/dsk/c5t4d0    00373 current&lt;BR /&gt;   00002 /dev/dsk/c2t4d0    00213 current  /dev/dsk/c5t4d0    00374 current&lt;BR /&gt;&lt;BR /&gt;PV1 (/dev/dsk/c2t4d0) is original and PV2 (/dev/dsk/c5t4d0) is the mirror.&lt;BR /&gt;&lt;BR /&gt;Then you can extend via:&lt;BR /&gt;# lvextend -l &lt;LE&gt; /dev/vg00/lvol3 &lt;PV1&gt; &lt;PV2&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LE&gt; - total number of extents&lt;BR /&gt;&lt;PV1&gt; - original physical volume&lt;BR /&gt;&lt;PV2&gt; - mirrored physical volume&lt;BR /&gt;&lt;BR /&gt;I use -l option and putting total number of logical extents (like PE has 4M and we want 400M logical volume, then we use -l 100). -L is not that good, it rounds up (might round in incorrect way while using pvg distribution, but that's another story).&lt;BR /&gt;&lt;BR /&gt;Recheck extend distribution via:&lt;BR /&gt;# lvdisplay -v /dev/vg00/lvol3&lt;BR /&gt;&lt;BR /&gt;There should be consistent distribution, like PV1 in first row and PV2 in second row etc.&lt;BR /&gt;&lt;BR /&gt;Extend the filesystem via:&lt;BR /&gt;# fsadm -F vxfs -b 400M /abc&lt;BR /&gt;&lt;BR /&gt;Martin&lt;/PV2&gt;&lt;/PV1&gt;&lt;/LE&gt;&lt;/PV2&gt;&lt;/PV1&gt;&lt;/LE&gt;</description>
      <pubDate>Tue, 03 Apr 2007 04:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973380#M604455</guid>
      <dc:creator>MHudec</dc:creator>
      <dc:date>2007-04-03T04:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973381#M604456</link>
      <description>I'm sure you have the idea from a few of the responses above, but no need to do anything with the mirrors.  &lt;BR /&gt;&lt;BR /&gt;Just simply lvextend, and fsadm to grow the filesystem.   &lt;BR /&gt;&lt;BR /&gt;-tjh</description>
      <pubDate>Tue, 03 Apr 2007 09:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973381#M604456</guid>
      <dc:creator>Thomas J. Harrold</dc:creator>
      <dc:date>2007-04-03T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem extend on a mirrored VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973382#M604457</link>
      <description>Sun33,&lt;BR /&gt;&lt;BR /&gt;It seemed like your emails have been erroneously forwarded to my Yahoo email account. Would you please take a look at the email address you registered with this HP support forum and see if there's any typo in it?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 03 Apr 2007 11:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-extend-on-a-mirrored-vg/m-p/3973382#M604457</guid>
      <dc:creator>Sunny Lo</dc:creator>
      <dc:date>2007-04-03T11:16:14Z</dc:date>
    </item>
  </channel>
</rss>

