Geekdom

Geeks of the World Unite!

 

7

Jul

Extend the root LVM with a live system

Posted by Rich  Published in Linux, Technical

Linux has made great strides in recent years.  One of the main pains was when the root volume needs to be extended because so many steps are needed in order to make it work properly and the system is off-line during the entire time.  Not any longer.  With ext3, it is not only possible to extend the volume live, it is easy, but typical GUI’s, like system-config-lvm under Fedora, won’t let you.

This is not the recommended procedure, but it is safe to run.  If something gets hosed, you are on your own.  You have been warned.

The commands are:

  • Run pvdisplay to determine the number of Free extents that are available.
  • Run lvextend -l <extents> /dev/VolGroup00/LogVol00 to extend the volume.
  • And, finally, run resize2fs /dev/VolGroup00/LogVol00 to resize the ext3 filesystem out over the new space.  This will take a very long time to complete, depending on, of course, the size of the old filesystem and the size of the newly available space.
lvextend -L +10G /dev/VolGroup00/LogVol00

Related Articles

  • Squid + NTLM authentication failing in a Windows 2008 Domain Environment (August 17th, 2010)
  • Generating self signed SSL certificates (August 14th, 2010)
  • Renew Self-Signed SSL Certificate on Linux (August 14th, 2010)
  • Windows 7 and Squid via NTLM authentication via Samba (July 16th, 2010)
  • Adding LDAP authentication to ESX (July 25th, 2009)

No user responded in this post

Subscribe to this post comment rss or trackback url

Search

Categories

  • Fun
  • Games
  • Linux
  • Movies
  • Rants
  • Solaris
  • Technical
  • Uncategorized
  • Windows

Archives

  • August 2010
  • July 2010
  • January 2010
  • July 2009
  • June 2009
  • May 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • July 2008
  • June 2008
  • March 2008
  • February 2008
  • December 2007
  • August 2007
  • July 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • August 2005

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
July 2009
S M T W T F S
« Jun   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Blogroll

  • Brian Jones - Musings of an Anonymous Geek
  • Steve Elgersma - Random uploaded bits of Steve’s mind
  • WesMo Projects - Necessity Is The Mother Of Invention

Recent Post

  • Squid + NTLM authentication failing in a Windows 2008 Domain Environment
  • Generating self signed SSL certificates
  • Renew Self-Signed SSL Certificate on Linux
  • Windows 7 and Squid via NTLM authentication via Samba
  • iPhone SMS Archiving
  • Adding LDAP authentication to ESX
  • Extend the root LVM with a live system
  • Majordomo to Mailman migration
  • ESX/ESXi and the AMD Phenom X4 9500
  • Enabling SSH on ESXi

Recent Comments

  • VMware Workstation 6.5.0 + fedora 1… in Fedora 10 + VMware Workstation 6.5.0
  • Ben in Openvpn + Windows = One Awesome VPN Setup (Quick a…
  • Geekdom » Post Topic in Fedora (with Gnome) and VMWare Workstation 6.5 = k…
  • stephen01 in Fedora (with Gnome) and VMWare Workstation 6.5 = k…
  • Avoid One Thing » Blog Archiv… in MythTV Tweaks
  • I Organize » Blog Archive &ra… in Playing an iPod (or other music player) on a lapto…
  • iPod: Apple iPod Music Downloads, F… in Playing an iPod (or other music player) on a lapto…
  • Apple Ipod, Ipod Nano and Ipod Vide… in Playing an iPod (or other music player) on a lapto…
  • Rich in BIOS updates to a Mach Speed Viper K8M8MS rev 2 mo…
  • Rich in BIOS updates to a Mach Speed Viper K8M8MS rev 2 mo…
© 2007 Geekdom
Theme based upon one created by Wired Studios
Valid XHTML | Valid CSS 3.0
Powered by Wordpress