<?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: Extendfs failed! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679145#M382415</link>
    <description>are you sure about lvreduce command without backup &amp;amp; restore the data?&lt;BR /&gt;i am confuse about it.</description>
    <pubDate>Wed, 25 Aug 2010 08:46:25 GMT</pubDate>
    <dc:creator>yulianto piyut</dc:creator>
    <dc:date>2010-08-25T08:46:25Z</dc:date>
    <item>
      <title>Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679143#M382413</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;We have a problem when extendfs logical volume.&lt;BR /&gt;We have extend my VG with 3 LUN @500GB, existing LV have 1 TB size and we want to extend this LV to 2.5 TB. &lt;BR /&gt;# vgextend /dev/vgappsproddb /dev/dsk/c16t3d6 /dev/dsk/c16t3d7 /dev/dsk/c16t4d0&lt;BR /&gt;# lvextend -L 2622336 /dev/vgappsproddb/lvdb11i&lt;BR /&gt;# umount /data&lt;BR /&gt;# extendfs -F vxfs /dev/vgappsproddb/rlvdb11i&lt;BR /&gt;vxfs fsck: file system needs checking&lt;BR /&gt;vxfs fsck: cannot extend aggregate&lt;BR /&gt;vxfs extendfs: Invocation of the fsck program terminated abnormally.&lt;BR /&gt;The file system is marked bad. Run full fsck manually.&lt;BR /&gt;&lt;BR /&gt;is it due to the limitation of hp-ux 11.11? version of the disk layout is 4. We have no online JFS installed at server. &lt;BR /&gt;In the manual of extendfs, there is an option -s, how to use it?</description>
      <pubDate>Wed, 25 Aug 2010 01:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679143#M382413</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-25T01:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679144#M382414</link>
      <description>Yes, it's a HP-UX 11.11 kernel limitation.&lt;BR /&gt;&lt;BR /&gt;You cannot extend to 2.5 TB: the maximum supported by 11.11 (with any supported disk layout level) is 2.0 TB.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5971-2383/5971-2383.pdf" target="_blank"&gt;http://docs.hp.com/en/5971-2383/5971-2383.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To use the -s option of extendfs, find the block size used by the filesystem and use it to calculate the new size. But the -s option is not normally necessary. (I think it would be a bad practice to have filesystem sizes different from the underlying LV: if the LV is larger than the filesystem, the space betweeen the end of the filesystem and the end of the LV is unusable and wasted.)&lt;BR /&gt;&lt;BR /&gt;Since the extendfs could not run the fsck command, the filesystem may contain errors. Fix them first before attempting to change filesystem size.&lt;BR /&gt;&lt;BR /&gt;umount /data #(if it has been mounted)&lt;BR /&gt;fsck -F vxfs -o full /dev/vgappsproddb/rlvdb11i&lt;BR /&gt;&lt;BR /&gt;After the filesystem check has been completed, try to mount the filesystem and verify it's OK and it's size is less than 2 TB. Then unmount it again.&lt;BR /&gt;&lt;BR /&gt;lvreduce -L 2097152 /dev/vgappsproddb/lvdb11i&lt;BR /&gt;extendfs -F vxfs /dev/vgappsproddb/rlvdb11i&lt;BR /&gt;&lt;BR /&gt;After these commands, the filesystem should be extended to exactly 2.0 terabytes and the extra 500 GB or so should be allocatable as another LV if you wish to use it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 25 Aug 2010 06:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679144#M382414</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-08-25T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679145#M382415</link>
      <description>are you sure about lvreduce command without backup &amp;amp; restore the data?&lt;BR /&gt;i am confuse about it.</description>
      <pubDate>Wed, 25 Aug 2010 08:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679145#M382415</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-25T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679146#M382416</link>
      <description>Making a backup before changes is always a smart thing to do, *especially* as your extendfs indicated your filesystem may contain errors.&lt;BR /&gt;&lt;BR /&gt;If your original extendfs did not extend the filesystem from its original 1 TB size, reducing the LV from 2.5 TB to 2.0 TB should be safe.&lt;BR /&gt;&lt;BR /&gt;The lvextend command will always add new disk space to the "tail" end of the LV; the lvreduce command will always reduce the LV by cutting off extra extents at the tail end.&lt;BR /&gt;&lt;BR /&gt;A filesystem starts at the beginning of the LV and is "contiguous" as regards to the LV: if you have a 1 TB filesystem on a 2.5 TB LV, you'll know that the filesystem is located on the LV at the first TB, and that the 1.5 TB at the end is completely unused. So it will be safe to cut 0.5 TB off from the unused tail end, to make the new size of the LV exactly 2.0 TB.&lt;BR /&gt;&lt;BR /&gt;The LV can be non-contiguous on the PVs, but the LVM hides that from the filesystem.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 25 Aug 2010 09:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679146#M382416</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-08-25T09:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679147#M382417</link>
      <description>Matti,&lt;BR /&gt;&lt;BR /&gt;I just tried in another server:&lt;BR /&gt;&lt;BR /&gt;# lvreduce -L 40000 /dev/vg00/lvol9&lt;BR /&gt;Warning: The Logical Volume has a file system larger than the reduced size.&lt;BR /&gt;Reducing the Logical Volume will cause filesystem corruption.&lt;BR /&gt;When a logical volume is reduced useful data might get lost;&lt;BR /&gt;do you really want the command to proceed (y/n) : y&lt;BR /&gt;Logical volume "/dev/vg00/lvol9" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;# extendfs -F vxfs /dev/vg00/rlvol9&lt;BR /&gt;vxfs extendfs: V-3-20139: Only expansion allowed.&lt;BR /&gt;# mount /apps&lt;BR /&gt;vxfs mount: V-3-24706: /dev/vg00/lvol9 no such device or filesystem on it missing one or more devices&lt;BR /&gt;&lt;BR /&gt;is it?&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679147#M382417</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-25T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679148#M382418</link>
      <description>sorry, this is the old configuration of the system i have tried to make lvreduce&lt;BR /&gt;&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    10485760  181288 10224080    2% /&lt;BR /&gt;/dev/vg00/lvol1    2097152  454224 1630176   22% /stand&lt;BR /&gt;/dev/vg00/lvol8    12582912 7858832 4687792   63% /var&lt;BR /&gt;/dev/vg00/lvol7    16777216 2868072 13800520   17% /usr&lt;BR /&gt;/dev/vg00/lvol4    8388608   31696 8291704    0% /tmp&lt;BR /&gt;/dev/vg00/lvol6    12582912 5228528 7296936   42% /opt&lt;BR /&gt;/dev/vg00/lvol5    8388608  315808 8009784    4% /home&lt;BR /&gt;/dev/vg00/lvol9    52428800 2798161 46528753    6% /apps&lt;BR /&gt;# ls /apps&lt;BR /&gt;lost+found  patch&lt;BR /&gt;# umount /apps&lt;BR /&gt;# lvreduce -L 40000 /dev/vg00/lvol9&lt;BR /&gt;Warning: The Logical Volume has a file system larger than the reduced size.&lt;BR /&gt;Reducing the Logical Volume will cause filesystem corruption.&lt;BR /&gt;When a logical volume is reduced useful data might get lost;&lt;BR /&gt;do you really want the command to proceed (y/n) : y&lt;BR /&gt;Logical volume "/dev/vg00/lvol9" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;# extendfs -F vxfs /dev/vg00/rlvol9&lt;BR /&gt;vxfs extendfs: V-3-20139: Only expansion allowed.&lt;BR /&gt;# mount /apps&lt;BR /&gt;vxfs mount: V-3-24706: /dev/vg00/lvol9 no such device or filesystem on it missing one or more devices&lt;BR /&gt;&lt;BR /&gt;after reduced, new lv size is below:&lt;BR /&gt;   LV Name                     /dev/vg00/lvol9&lt;BR /&gt;   LV Status                   available/syncd&lt;BR /&gt;   LV Size (Mbytes)            40000&lt;BR /&gt;   Current LE                  625&lt;BR /&gt;   Allocated PE                1250&lt;BR /&gt;   Used PV                     2&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679148#M382418</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-25T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679149#M382419</link>
      <description>If you lvreduce a filesystem to a size that is smaller than the size of the filesystem inside it, of course your filesystem will be damaged.&lt;BR /&gt;&lt;BR /&gt;In the case of your lvol9, the lvreduce command even warned you about it:&lt;BR /&gt;----&lt;BR /&gt;Warning: The Logical Volume has a file system larger than the reduced size.&lt;BR /&gt;Reducing the Logical Volume will cause filesystem corruption.&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;Normally the filesystem is exactly the same size as the LV, unless there is an extension/reduction operation going on.&lt;BR /&gt;&lt;BR /&gt;But I understood your vgappsproddb/lvdb11i was in that special state: the original lvextend had been successful, but the extendfs had failed.&lt;BR /&gt;&lt;BR /&gt;That means the filesystem size on lvdb11i may still be 1 TB, while the LV is 2.5 TB, i.e. the LV is bigger than the filesystem.&lt;BR /&gt;&lt;BR /&gt;If the filesystem size is still 1 TB, it's still safe to reduce the LV to 2.0 TB (because you won't be able to use the space beyond 2.0 TB in a single filesystem anyway).&lt;BR /&gt;&lt;BR /&gt;You can verify the VxFS filesystem size (as a separate entity from the LV size) by running "fstyp -v /dev/vgappsproddb/lvdb11i". The value "f_blocks" lists the number of blocks contained by the filesystem, and the value "f_frsize" indicates the size of each block. Multiply them together and you'll get the total size of the filesystem in bytes. Divide by 1024 to get the size in kilobytes, by 1024^2 to get the size in megabytes, etc.&lt;BR /&gt;&lt;BR /&gt;If (filesystem size) &amp;lt; (LV size), then you can freely reduce the filesystem to the point that (new LV size) == (filesystem size) without any filesystem reduction operations. &lt;BR /&gt;&lt;BR /&gt;However, it would be a good practice to leave the reduced LV slightly larger than the filesystem size, and then extend the filesystem to completely fill the LV. This should minimize the danger of accidentally reducing the LV too much. In the case of your lvdb11i filesystem this is not an issue: if the current filesystem size is 1.0 TB and the LV size changes from 2.5 TB to 2.0 TB, there's plenty of safety margin.&lt;BR /&gt;&lt;BR /&gt;If (filesystem size) &amp;gt; (LV size), you're in trouble and may already have lost/corrupted some data. &lt;BR /&gt;&lt;BR /&gt;And in HP-UX 11.11, if the filesystem size is larger than 2.0 TB, it may be effectively corrupted/unusable because the kernel won't be able to access any data beyond the 2.0 TB point. The filesystem management tools should stop you from exceeding that limit, but depending on your patch level, this protection may not be perfect: don't blindly rely on it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 25 Aug 2010 21:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679149#M382419</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-08-25T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679150#M382420</link>
      <description>Hi Matti,&lt;BR /&gt;&lt;BR /&gt;very very nice information to us, many thanks for all. &lt;BR /&gt;We want to make a testing before going to do at production server. The scenario of testing belows:&lt;BR /&gt;&lt;BR /&gt;1. I want to extend existing LV (/dev/vg01/lvol1) with size 512064 Mbytes.&lt;BR /&gt;2. add new lun at the vg01 (500 GB)&lt;BR /&gt;3. extend lv to 1 TB&lt;BR /&gt;4. reduce lv to 700 GB&lt;BR /&gt;&lt;BR /&gt;i'll inform u soon!</description>
      <pubDate>Thu, 26 Aug 2010 03:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679150#M382420</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-26T03:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extendfs failed!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679151#M382421</link>
      <description>this is it!&lt;BR /&gt;&lt;BR /&gt;# lvextend -L 1024128 /dev/vg01/lvol1&lt;BR /&gt;Logical volume "/dev/vg01/lvol1" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf&lt;BR /&gt;# lvreduce -L 921600 /dev/vg01/lvol1&lt;BR /&gt;When a logical volume is reduced useful data might get lost;&lt;BR /&gt;do you really want the command to proceed (y/n) : y&lt;BR /&gt;Logical volume "/dev/vg01/lvol1" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf&lt;BR /&gt;# extendfs -F vxfs /dev/vg01/rlvol1&lt;BR /&gt;# mount /dev/vg01/lvol1 /var/opt/ignite/recovery/archives&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    10485760  437320 9969984    4% /&lt;BR /&gt;/dev/vg00/lvol1    1776056   50128 1548320    3% /stand&lt;BR /&gt;/dev/vg00/lvol8    12582912 2390376 10113016   19% /var&lt;BR /&gt;/dev/vg00/lvol7    12582912 2227368 10274752   18% /usr&lt;BR /&gt;/dev/vg00/lvol6    4194304  227816 3935568    5% /tmp&lt;BR /&gt;/dev/vg00/lvol5    10485760 4463968 5974816   43% /opt&lt;BR /&gt;/dev/vg00/lvol10   40894464 6926978 31844525   18% /old_archives&lt;BR /&gt;/dev/vg00/lvol4    10485760   21224 10382784    0% /home&lt;BR /&gt;/dev/vg00/lvol9    20971520   71784 19593510    0% /apps&lt;BR /&gt;DevFS                    3       3       0  100% /dev/deviceFileSystem&lt;BR /&gt;/dev/vg01/lvol1    943718400 496926492 418867515   54% /var/opt/ignite/recovery/archives&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extendfs-failed/m-p/4679151#M382421</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2010-08-26T06:06:59Z</dc:date>
    </item>
  </channel>
</rss>

