<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Dear All:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I apologize if this has been asked before, but I can't find a way to search the list archives:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>How do you safely resize an ext3 filesystem after extending a logical volume?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am adding a new hard drive to increase the size of my logical volume "home1" in logical volume group "home" with LVM2 under Ubuntu 6.10.1 LTS.  The instructions in the LVM Howto are pretty straightforward; the only part that spooks me is the resizing of the ext3 filesystem.  This is what I have done so far:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>(installed new hardware & partitioned with fdisk; shows up as /dev/sdb1)</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>(backed up the existing logical volume in case something bad happens)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN># pvcreate /dev/sdb1</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">         </SPAN>  Physical volume "/dev/sdb1" successfully created<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN># vgextend home /dev/sdb1</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">            </SPAN>  Volume group "home" successfully extended<SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN># lvextend -l 357700 /dev/home/home1</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">         </SPAN>  Extending logical volume home1 to 1.36 TB</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">          </SPAN>  Logical volume home1 successfully resized</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>From what I googled, the next steps are a bit more involved for LVM2 than the Howto lets on.  Does the following look o.k. to the experts:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>' use a root login, not su or sudo, because /home will be unmounted</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN># umount /dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN>' the next steps should be done off-line</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN># e2fsck -C 0 -v dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">             </SPAN>' make sure the file system is ok</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN># tune2fs -O ^has_journal /dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>'disable journaling on the logical volume</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN># resize2fs /dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">         </SPAN>'do the resizing</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN># e2fsck -C 0 -v dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">             </SPAN>' make sure the file system is still ok</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN># tune2fs -O has_journal /dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">            </SPAN>'re-enable journaling</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN># e2fsck -C 0 -v dev/home/home1<SPAN class="Apple-tab-span" style="white-space:pre">             </SPAN>' yes, I am a first-timer and somewhat paranoid</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN># mount /dev/home/home1 /home<SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>' back on-line</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks in advance for any help,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>microscope</DIV></SPAN></SPAN></SPAN></SPAN></DIV><BR></DIV></BODY></HTML>