LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-09-2005, 02:09 AM   #1
fulat2k
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Rep: Reputation: 15
Question LVM: Resizing the root partition


Hi folks,

I've got my root LV created too small and I'm currently running out of space. Although I know the steps on how to extend an LV, extending the root LV is rather different since I'm using ext3 FS and it requires mounting and unmounting. Can someone recommend me the proper way to perform this task?


Thanks!
 
Old 09-09-2005, 03:31 AM   #2
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Solution #1: Download a live distribution like Knoppix, boot it and resize your partition.
Solution #2: Create a new partition, move everything from a large directory into it and mount that partition under the same (now empty) directory. Be careful not to do this with a system directory (like /bin, /sbin, /lib, /usr/bin, etc.) because while moving, it might turn out that you need something from there (like mount).
 
Old 09-09-2005, 03:41 AM   #3
fulat2k
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by addy86
Solution #1: Download a live distribution like Knoppix, boot it and resize your partition.
Solution #2: Create a new partition, move everything from a large directory into it and mount that partition under the same (now empty) directory. Be careful not to do this with a system directory (like /bin, /sbin, /lib, /usr/bin, etc.) because while moving, it might turn out that you need something from there (like mount).
Thanks for the solutions. I feel much more comfortable with Solution #1.

Thanks!
 
Old 07-21-2009, 09:22 PM   #4
rajeshkahara
LQ Newbie
 
Registered: Nov 2003
Distribution: red hat
Posts: 18

Rep: Reputation: 1
http://forums.fedoraforum.org/showthread.php?t=154625. You can do it without unmounting.
 
1 members found this post helpful.
Old 07-21-2009, 09:37 PM   #5
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
This thread is from 2005!
 
Old 07-22-2009, 01:23 AM   #6
swapnshukla
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 3
You can resize your "/" root without mounting/umounting the filesystem by following

#fdisk -l
ensure your disk partition to add
#pvcreate /dev/<your drive>
#vgextend <Your volume group> /dev/<your drive>
#vgdisply
check the Free PE value and note it.
#lvextend -l +Free PE /dev/<Your volume group>/<Your logical volume>
#lvdisplay
to ensure disk is added.
#resize2fs /
to resize the file system
 
2 members found this post helpful.
Old 01-08-2012, 04:35 PM   #7
cardinal35
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
LVM2 logical volume /root full, Thanks

Debian Squeeze AMD64 with LVM2 on ext3 /root partiton that was full. Thanks for your suggestions and links. I used this link as well, http://www.radioprosciutto.com/node/7, but did not unmount my root partition after reading the replies. No problems were encountered increasing the /root partition size while it was mounted. I followed the steps below, but did not perform steps 4, 5, and 7.

1. Extend logical volume: root
#lvextend -L +5G /dev/MU/root

2. Verify
#lvdisplay /dev/MU/root

3. Compare filesystem
#df -h /root

4. Unmount not needed
/* #exportfs -u 127.0.0.1:/root */
/* #umount /root */

5. Check filesystem not needed
/* #e2fsck -f /dev/mapper/MU-root */

6. Resize filesystem
#resize2fs -p /dev/mapper/MU/root

7. Mount not needed
/* #mount /root */

8. Verify filesystem
#df -h /root

Thanks for the help!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a root LVM filesystem eigoteacher Linux - Newbie 7 08-23-2007 09:36 AM
Resizing Root Partition dudeman41465 Linux - Software 5 10-09-2005 04:36 AM
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 02:34 AM
Resizing root partition?! black hole sun Mandriva 6 07-16-2004 12:00 AM
Resizing root partition bitpicker Linux - Newbie 10 09-12-2003 07:26 AM


All times are GMT -5. The time now is 12:55 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