<?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: Reduce a FS with fsadm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033340#M610424</link>
    <description>&lt;BR /&gt;  Try a defragmentation first.&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -d -D -e -E /filesystem&lt;BR /&gt;&lt;BR /&gt;  When the defrag completes, try reducing the filesystem&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -b &lt;NEW-SIZE-IN-MB&gt;m /filesystem&lt;BR /&gt;&lt;BR /&gt;  Note the appix "m".&lt;BR /&gt;&lt;BR /&gt;  lvreduce the lv.&lt;BR /&gt;&lt;BR /&gt;  As always, it is a very important to have a good backup of the filesystem before you try to reduce. At times, it may not just go very well.&lt;/NEW-SIZE-IN-MB&gt;</description>
    <pubDate>Mon, 12 Mar 2007 12:05:26 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2007-03-12T12:05:26Z</dc:date>
    <item>
      <title>Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033339#M610423</link>
      <description>Hi, I need to reduce or redistribute an lvol that is using three different disks as I made a mistake when I increased the size of the lvol.&lt;BR /&gt;Now I am trying to reduce it with fsadm but always tells me that there is a block that is being used. I already tried to use fsadm on monouser mode but the system tells me that I have no license to operate the software (I am able to use it in multiuser mode).&lt;BR /&gt;How can I reduce the last block of the lvol for making the mirror to be right again in the same two disks as before?</description>
      <pubDate>Mon, 12 Mar 2007 11:44:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033339#M610423</guid>
      <dc:creator>catastro</dc:creator>
      <dc:date>2007-03-12T11:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033340#M610424</link>
      <description>&lt;BR /&gt;  Try a defragmentation first.&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -d -D -e -E /filesystem&lt;BR /&gt;&lt;BR /&gt;  When the defrag completes, try reducing the filesystem&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -b &lt;NEW-SIZE-IN-MB&gt;m /filesystem&lt;BR /&gt;&lt;BR /&gt;  Note the appix "m".&lt;BR /&gt;&lt;BR /&gt;  lvreduce the lv.&lt;BR /&gt;&lt;BR /&gt;  As always, it is a very important to have a good backup of the filesystem before you try to reduce. At times, it may not just go very well.&lt;/NEW-SIZE-IN-MB&gt;</description>
      <pubDate>Mon, 12 Mar 2007 12:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033340#M610424</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2007-03-12T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033341#M610425</link>
      <description>&lt;BR /&gt;Normally this message means that You are trying the filesystem below what is currently IN USE in that filesystem. This often happens to me if I mix up the numbers.&lt;BR /&gt;&lt;BR /&gt;Don't try to change the lvol size or mirroring config until You're done with the filesystem shrink.&lt;BR /&gt;&lt;BR /&gt;There is another possible reason: &lt;BR /&gt;- Filesystem fragmentation:&lt;BR /&gt;fsadm -Fvxfs -de /mountpoint should correct the filesystem block allocation so that you can reduce the filesystem.&lt;BR /&gt;&lt;BR /&gt;if you have vxfs version 4 or above, try to make it work in multiuser mode, this is easier to debug.&lt;BR /&gt;&lt;BR /&gt;steps (just for verification)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let's assume 17GB current size, and 8GB in use&lt;BR /&gt;fsadm -Fvxfs -de /fs&lt;BR /&gt;fsadm -Fvxfs -b 8192M /fs&lt;BR /&gt;lvreduce -L 8192 /dev/vgNN/lvolXX&lt;BR /&gt;lvreduce -m 0 /dev/vgNN/lvolXX&lt;BR /&gt;# use PVGs to simplify the next step&lt;BR /&gt;pvmove -n /dev/vgNN/lvolXX /dev/dsk/wrong_disk /dev/dsk/wrong_disk /dev/dsk/right_disk&lt;BR /&gt;&lt;BR /&gt;Then, ummm, redistribute, extend as wished&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Florian</description>
      <pubDate>Mon, 12 Mar 2007 12:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033341#M610425</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2007-03-12T12:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033342#M610426</link>
      <description>Thanks, it helped in the task, but finally what I did after reducinf the FS is that I broke the mirror and made it again under the disk I wanted it to be.&lt;BR /&gt;But the question now, I am trying to make the extend the lvol again, and it extends it always on the three first disks, and I have enough disk space for extending it on my two original disks. I use this command:&lt;BR /&gt;&lt;BR /&gt;# lvextend -L 1300 /dev/vg00/lvol6&lt;BR /&gt;My PE size is 16 Mb, and my lvol actually has 976 Mb (61 PE in each of the two disks).&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4374    &lt;BR /&gt;   Free PE                     3452    &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c1t0d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    1085    &lt;BR /&gt;   Free PE                     85      &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4374    &lt;BR /&gt;   Free PE                     3452    &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t0d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    1085    &lt;BR /&gt;   Free PE                     85      &lt;BR /&gt;   Autoswitch                  On</description>
      <pubDate>Mon, 12 Mar 2007 12:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033342#M610426</guid>
      <dc:creator>catastro</dc:creator>
      <dc:date>2007-03-12T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033343#M610427</link>
      <description>lvextend will always pick the PVs in the order they were added to the VG (with the default allocation policy).&lt;BR /&gt;&lt;BR /&gt;If you would like to extend the LV on specific disks, then you will need to specificy them in the lvextend command&lt;BR /&gt;&lt;BR /&gt;# lvextend -L 1300 /dev/vg04/lvol6 /dev/dsk/cXtYdZ /dev/dsk/c..... /dev/dsk/c.....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 12:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033343#M610427</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2007-03-12T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033344#M610428</link>
      <description>You should really look into using pvg's&lt;BR /&gt;&lt;BR /&gt;it looks like this in /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;VG /dev/vgname&lt;BR /&gt;PVG ORIG_PVG&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c1t3d0&lt;BR /&gt;PVG MIRR_PVG&lt;BR /&gt;/dev/dsk/c2t8d0&lt;BR /&gt;/dev/dsk/c2t9d0&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;lvreduce -A n -m 0 /dev/vgname/lvolname&lt;BR /&gt;lvchange -A n -s g /dev/vgname/lvolname&lt;BR /&gt;lvextend -m 1 /dev/vgname/lvolname&lt;BR /&gt;&lt;BR /&gt;and hp-ux will automatically distribute the mirrors accordingly, though it might be advisable to do this a bit more extensively.  like, first split all mirrors, then pvmove so no PE on the MIRR_PVG disks are allocated, then lvchange, remirror.&lt;BR /&gt;&lt;BR /&gt;After that you won't run into uneven mirrors ever again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2007 00:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033344#M610428</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2007-03-13T00:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033345#M610429</link>
      <description>Thanks sundar, it solved my issue definetly.&lt;BR /&gt;The of making the pvg I´ll have a look at it as soon as I have some more time, but is a good idea thou.&lt;BR /&gt;Thanks to all of you.</description>
      <pubDate>Tue, 13 Mar 2007 03:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033345#M610429</guid>
      <dc:creator>catastro</dc:creator>
      <dc:date>2007-03-13T03:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce a FS with fsadm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033346#M610430</link>
      <description>Note (I hope you have email updates on)&lt;BR /&gt;&lt;BR /&gt;I made a big typo: it's /etc/lvmpvg (manually created), not /etc/lvmtab (never to be edited)&lt;BR /&gt;&lt;BR /&gt;Florian</description>
      <pubDate>Tue, 13 Mar 2007 14:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-a-fs-with-fsadm/m-p/5033346#M610430</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2007-03-13T14:50:38Z</dc:date>
    </item>
  </channel>
</rss>

