Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using SuSE Linux (10) and I am considering expanding the available disk, without resizing an existing partition (which is not easy to do on a VM). Instead, I want to create another virtual disk, and add it in a new LVM volume, which would include the existing disk, and this new one, in a seamless single mount point.

We are using VMware vServer 4, under Lab Manager and Virtual Centre. Does SuSE support LVM in version 10 ?

Thanks :-)

share|improve this question

migrated from superuser.com May 3 '10 at 18:08

This question came from our site for computer enthusiasts and power users.

    
Clarification — do you want to do this "live", while maintaining the contents of your existing disk? –  mattdm Dec 26 '10 at 16:50

3 Answers 3

up vote 0 down vote accepted

Why is it not easy to resize a partition?

You can alway resize the last partiton of a disk: Resize the disk, delete the last partiton and recreate it with the same starting cylinder. Then put the new end cylinder to the end of disk.

If you have a PV on that partition: pvresize If you have a direct FS on that partion: resize the filesystem afterwards.

But what you want to do is even simpler to accomplish. It sounds as if you already got an LV located in a VG consisting of a PV which in turn is a partion.

So create your new disk, partition it with one lvm-partition, use that partiton as new PV (pvcreate) and add that PV to your existing VG (vgetend). After that you can resize your LV using the addidional PV.

share|improve this answer

If the current virtual disk is not on LVM than you cannot do this easily. In this case I would create the new desired situation (including LVM) next to the current disk and move the current data over during planned downtime. There is no easy way to do this live.

For scenarios just like this I always put LVM on my virtual disks, even if I don't expect future growth.

share|improve this answer

Yes.

SuSE 10 should have support for LVM. Install the appropriate packages.

You should always use LVM, even if you only have one disk. It makes scenarios like this one trivial.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.