LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Extend LVM partition (http://www.linuxquestions.org/questions/linux-software-2/extend-lvm-partition-360056/)

rconan 09-04-2005 07:51 AM

Extend LVM partition
 
I want to extend my LVM partition with some free space that is just before it on the drive..

I am aware this takes four steps:

1. Extend underlying LVM partition
2. Extend VolGroup00
3. Extend LogVol00
4. Extend ext3 filesystem

But how to do each of these steps I don't know.

If i simply delete the partition then remake one the right size (for step 1) then the beginning of the partition will be in the wrong place (which will cause problems wont it?)

cmisip 09-05-2005 11:25 AM

I dont know if it will help but

http://home.mchsi.com/~cmisip/mythtv.htm

There is a section on LVM. It doesn't seem to work all the time and haven't figured this out yet.

I cant be responsible if you mess up your system. At least the commands are there for your reference.

I think you need to :

create a physical volume on that free partition with pvcreate
extend your lvm group with vgextend
extend your logical volume with lvextend
resize your fs

Good luck

chandramani_yadav 01-21-2009 02:46 AM

To extend a LVM partition for Eg. say /usr

follow the below given steps

boot the system using a live cd

umount/mnt/lvm/localvg-usrlv
lvextend --size +2G -n /dev/localvg/usrlv
e2fsck -f /dev/localvg/usrlv
resize2fs /dev/localvg/usrlv
e2fsck -f /dev/localvg/usrlv

and it is done.

apple20121314 08-23-2010 12:52 AM

Efficient way to extend partition
 
Your problem--extend LVM partition also can be realized by the Extend Partition Assistant Professional Edition, I promise. This can really help you finish the work that you want to do flawlessly. I used to extend partition through it. The users all spoke highly of it. You can have a try ignore the complex procedures you lined.

sem007 08-23-2010 02:51 AM

Hi rconan,

If your volume gorup has free space then simply you can run lvextend.

if your volume-gorup has no space and you have free space on you HDD then you can follow steps suggested by cmisip.

http://www.howtoforge.com/logical-vo...a-volume-group

A link provide how to extend VG. after that you can extend LV.

HTH

@ cmisip
link provided by you is not working for me.

@ apple20121314
The forum is for linux and open source and OP want to extend LVM in linux.

Link provide by you is for windwos. So it related to LVM.

abcmei 08-31-2010 02:32 AM

I had the same problem you did, but under the help of Partition Assistant I overcome the problem.


All times are GMT -5. The time now is 01:42 AM.