VMware Cloud Community
BhushanP
Contributor
Contributor

Retain logical volumes while performing upgrade of Guest VMs

Hi,

I am using ESXi 4.1 & 5.0 servers. Assume that I have a Guest VM running CentOS with a certain app running deployed in a webserver. I have created 2 or more Logical Volumes & have them mounted on this GuestVM.

Now, I wish to upgrade this VM with a new Image/OVA provided to me, but wish to retain the extra Logcal Volumes that I had created & mounted on the original VM. Is there an API available for that?

I am using vSphere to manage the VMs.

Thanks

Bhushan

Thanks Bhushan Pathak
0 Kudos
2 Replies
AndreTheGiant
Immortal
Immortal

Manually you can simple deploy the new appliance and then attach the existing disk (and then edit the /etc/fstab in the guest).

To make in scripted way you may look at some PowerCLI scripts.

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
BhushanP
Contributor
Contributor

How do I do that from within the Guest VM? I have, say centOS installed with my App running on it. I have 2 disks mounted on my VM.

Now, as part of upgrade of the VM, I wish to provide a new OVA which has the new centOS image with the upgraded app.

The question is -

As part of upgrading the VM, how do I mount the 2 disks on the upgraded VM?

Assuming that one would upgrade using Upgrade Manager or just deploy the new OVA as a new VM with vSphere Client.

Thanks

Bhushan

Thanks Bhushan Pathak
0 Kudos