VMware Communities
noname212
Enthusiast
Enthusiast
Jump to solution

ask - what is the best method to merge multiple vmdk with snapshot

hi there,

kindly help me.

I created guest system with vmware workstation 9, with split vmdk, and contain snapshots.

I want to apply last snapshot onto virtual disk as a permanent modified, then I want convert this virtual disk into single virtual disk.

is this possible? if yes. kindly guide me how-to with detail. thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
rcporto
Leadership
Leadership
Jump to solution

Look for the file myguest.vmdk and run one of the following command;

vmware-diskmanager -r myguest.vmdk -t 0 myguestmerged.vmdk (for single thin disk)

vmware-diskmanager -r myguest.vmdk -t 2 myguestmerged.vmdk (for single thick disk)

Check a example here: Merging VMware Fusion/Workstation Virtual Split Disk into a Single VMDK | artykul8

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
14 Replies
abhilashhb
VMware Employee
VMware Employee
Jump to solution

At first you will have to consolidate the snapshots you have. You can ado this be Right-clicking the VM> Snapshot manager > Delete All.

If there are no snapshots showing up there but you still have them you can take a manual snapshot and delete all again. That should work. Or there are command that can be used.

Now coming to the Multiple VMDK's

Can you give one big disk and move all the data into this? If its possible you can do it and then remove the smaller VMDK's once the data is taken off them.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

rcporto
Leadership
Leadership
Jump to solution

You can convert the split this into a single disk using the follow command line: vmware-diskmanager -r originalSplitDisk.vmdk -t X targetSingleDisk.vmdk

Where X is:

0: A growable virtual disk contained in a single file (called "monolithic sparse").

1: A growable virtual disk split into 2GB files (called "split sparse").

2: A preallocated virtual disk contained in a single file (called "monolithic flat").

3: A preallocated virtual disk split into 2GB files (called "split flat").

VMware KB: Changing a monolithic disk to a split disk in VMware Workstation

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

Hi,

thanks for reply.

I don't understand about your instruction:

Can you give one big disk and move all the data into this? If its possible you can do it and then remove the smaller VMDK's once the data is taken off them

do you mean I just copy / move the vmdk files to another disk? then delete the vmdk files with small size?

0 Kudos
abhilashhb
VMware Employee
VMware Employee
Jump to solution

Richardson,

The point here is to merge the disks which are already split.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

Abhilashhb, are you saying that VM from noname212 has two independent .vmdk ?

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

hi,

thanks for reply.

so assume the file name is myguest.vmdk, and the child:

myguest-0001.vmdk with myguest-0001-s001.vmdk, myguest-0001-s002.vmdk....myguest-0001-s011.vmdk

myguest-0002.vmdk with myguest-0002-s001.vmdk, myguest-0002-s002.vmdk....myguest-0002-s011.vmdk

and so on.

then I need to run the command:

vmware-diskmanager -r myguest.vmdk -t myguest-0001.vmdk newsingledisk.vmdk

vmware-diskmanager -r myguest.vmdk -t myguest-0002.vmdk newsingledisk.vmdk

and so on

?

am I correct?


0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

Hi,

nope, only 1 single independent disk. thanks

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

Look for the file myguest.vmdk and run one of the following command;

vmware-diskmanager -r myguest.vmdk -t 0 myguestmerged.vmdk (for single thin disk)

vmware-diskmanager -r myguest.vmdk -t 2 myguestmerged.vmdk (for single thick disk)

Check a example here: Merging VMware Fusion/Workstation Virtual Split Disk into a Single VMDK | artykul8

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
abhilashhb
VMware Employee
VMware Employee
Jump to solution

before you do anything, Can you provide a screen shot of your VM's files?

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

sure.

attached files are the screenshotss-disk-pg-01.JPGss-disk-pg-02.JPG

attached files are the screenshot. thanks.

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

Ok... after remove all snapshots and ensure you have sufficient space for the new disk, you can merge the files into a single vmdk file using one of the following:

vmware-vdiskmanager.exe -r "filepath of original disk\Windows XP Professional.vmdk" -t 0 "filepath of new disk\Windows XP Professional Merged.vmdk"

vmware-vdiskmanager.exe -r "filepath of original disk\Windows XP Professional.vmdk" -t 2 "filepath of new disk\Windows XP Professional Merged.vmdk"

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

Hi,

what is the difference between "-t 0" and "-t 2"?

thanks

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

Both will create a single merged vmdk the difference is the method of allocation:

0: A growable virtual disk contained in a single file (called "monolithic sparse").

2: A preallocated virtual disk contained in a single file (called "monolithic flat").

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
noname212
Enthusiast
Enthusiast
Jump to solution

thanks all.

it's work.

0 Kudos