LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-29-2008, 03:04 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
LVM only lets me extend online but not reduce with ext3


Hi Everyone,

I have an encrpted LVM install with debian testing and ext3. I was running out of space yesterday on / so I reduced my /home/ and was able to extend my root partition.

It would not let me do the reduce online but would let me to lvextend online. I had to log on as root, unmount /home/ reduce it and extend /.

It said that this is not supported when I have read that LVM does support online reduce with ext3.

Thanks
 
Old 05-29-2008, 10:52 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
There are two issues: Resizing the ext3 filesystem and resizing the logical volume

The one you bumped into was resize2fs, which cannot reduce a mounted ext3 filesystem.

From the resize2fs manpage:

Quote:
...resize2fs... can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem...
 
Old 05-29-2008, 11:16 AM   #3
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
Hi WhatsHisName,

Thanks for your concise reply I guess I didnt think it though enough! Now I am going to try and find a way to online resize the FS

Thanks again
 
  


Reply

Tags
extend, howto, logical, lvm, management, shrink, volume


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extend LVM partition rconan Linux - Software 5 08-31-2010 02:32 AM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 05:01 AM
How to extend an existing partition without LVM james.reid Linux - Software 14 06-02-2006 12:48 AM
How do I extend an ext3 partition? chrislev Linux - Hardware 2 01-27-2006 10:35 AM
howto extend ext3 partition compfriend Linux - Hardware 1 09-16-2003 10:42 AM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration