Search This Blog

Wednesday, June 1, 2011

How to Extend Root partition using LVM?

In this article,I am using a virtual instance of linux machine hosted on SUN virtual box.

The linux machine is allocated a harddisk space of 5 gb .
The root partition itself occupied 4 GB of space and the rest was allocated to Swap.

It was all clear from a beginning that i m going to face space crunch on the newly created machine.

Thankfully root was partitioned with LVM.

So i added a new Hardisk of 8 GB and extended the / size.

I found following post very useful .

http://www.turnkeylinux.org/blog/extending-lvm

I described my problem on following forum and the reply was so informative.
http://www.unix.com/unix-dummies-questions-answers/160635-how-extend-root-partition.html#post302526559

http://www.linuxquestions.org/questions/showthread.php?p=4372596#post4372596

I learned not to grow the partition when it is mounted(Especially /) and rather use live CD to do the same.

No comments:

Post a Comment