1

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 :-)

sysadmin1138
  • 131,083
  • 18
  • 173
  • 296
jfmessier
  • 163
  • 1
  • 8
  • Clarification — do you want to do this "live", while maintaining the contents of your existing disk? – mattdm Dec 26 '10 at 16:50

3 Answers3

2

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.

Martijn Heemels
  • 7,438
  • 6
  • 39
  • 62
1

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.

Allen
  • 1,315
  • 7
  • 12
0

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.

Nils
  • 7,657
  • 3
  • 31
  • 71