LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2012, 02:46 AM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Possible to online resize LVM root partition (/)?


Hi all,

So I setup a server with one huge (2TB) root partition, and some swap space on LVM, Also, there's one traditional /boot partition. No extra space remains on the drive.

So now I want to subdivide that root partition into several partitions (/, /home, /usr, etc., the usual.) Wish I'd done this originally, but well, I didn't.

Can I do this without taking down the system? If so, how?

If not (shucks), I guess the questions the same ... how? I guess I should use a Live CD to go in and repartition?

Here's the output of lvs:
Code:
jameson@hostname:~$ sudo lvs
  LV     VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  root   hostname -wi-ao   2.05t                                      
  swap_1 hostname -wi-ao 127.88g
Thanks,
J$

Last edited by jhwilliams; 01-04-2012 at 02:50 AM.
 
Old 01-04-2012, 03:56 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,999

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Let's suppose you actually want to reduce the lv - not a (real) partition. LVM2 is supposed to support the latter, but from my experience doesn't. At least not within normal definitions of "support".

So long as you use a filesystem that supports online resize (particularly reduction), you should be o.k. tldp.org has a good (if slightly dated) how-to.
I suspect you could also probably reclaim some space from that swap lv - does Debian even support (using all) that size ?.
 
Old 01-04-2012, 01:58 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Oh, man. I missed some key components of what LVM is. I should really read at least the Wikipedia before I blather on further here. (You're right, I don't think I actually want to mess with volumes, just the partitions on that "root" volume.)
 
  


Reply


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
Resize LVM and Extend root volume nileshdmore Linux - Newbie 3 10-31-2011 03:21 AM
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 08:21 AM
Partition resize for LVM mhouston100 Linux - Server 9 06-07-2010 11:07 PM
How To Resize LVM Partition sfo Linux - General 1 09-17-2006 12:39 PM
resize LVM partition bkesting Linux - General 3 06-17-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration