VMWare Move VMs over to another drive on the same server is going to take FOREVER!

Wayne Barron
Wayne Barron used Ask the Experts™
on
Hello All;

I have a 1TB drive of which has 11 VMs on it.
Taking up about 95% of the space.
I purchased some 500GB driver, I am in the process of moving the VMs over.

What I have done.
#1:
Using the datastore, I chose the VMs and I "Moved" them.
It is going to take a few days to move the ones I selected over, about 426GB.

#2: I tried the OpenSSH
Just to move one of the VMs over that is 60GB, will take over 24-hours.

Code for the SSH

[root@localhost:/vmfs/volumes/5b005dd5-2ce20e85-e704-001517fcd2e8] scp -r "00 - DNS Server" root@192.168.2.101:/vmfs/volumes/Date-2016/"00\\-\\DNS\\Server"

Open in new window


How can I make this go faster?
It is only going from one drive to another drive, on the same server.

Thanks
Carrzkiss
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
it will take time to move them if you have slow datastores.

A single drive does not produce many IOPS.
johnsoneSenior Oracle DBA

Commented:
Am I reading this correctly?

You have a server with a physical 1 TB drive.  You added a second physical drive to the same server that is 500 GB.  You now have a server with 2 physical drives (1 TB and 500 GB).

If that is the case, why are you using scp?  cp would do the job, and it should be faster because it wouldn't get the network and encryption involved.

You could also look into using dd.  That may be actually faster, but a little more complicated to get the command correct.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Yes, you will need to power off the VM to move it.

Unless you have vCenter Server and the licenses and you can then move in real time with zero downtime.

SCP will be slow, you may find it better to use vmkfstools to move a VM, of simply cutting and pasting between datastores.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
All the VMs that are being moved are already shut down.
I will check in on the vmkfstools.
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
vCenter server is expensive! $7,472.00
Maybe one day, I will be big enough to have something like that.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Much cheaper deal, Essentials - approx $700!

Licenses for 3 Hosts (2 CPU) and vCenter Server license - $700!

But a single disk, moving to another single disk is going to be slow...
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
Yes, johnsone.
I have multiple 500GB drives connected to replace the single 1TB drive.
All on the same machine.

trying to find commands for the CP and DD
I am searching Google right now, but with no luck.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Remember that ESXi is NOT Linux!
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
I am also looking in on vmkfstools
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
I am assuming that the comment has something to do with the CP and DD commands being Linux based
And will not work with esxi?

What would be the best way of doing it with vmkfstools
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
That is a VMware vSphere ESXi command, and is faster than cp and scp. (cp, scp and dd are Linux commands)

--clonevirtualdisk | -i <src_file> <dest_file> --diskformat | -d <format> --adaptertype | -a <type>

Open in new window


Creates a copy of a virtual disk or raw disk. The copy will be in the specified disk format. Takes source disk and destination disk as arguments

but it's still slow......

https://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html
Wayne BarronAuthor, Web Developer
Top Expert 2009
Commented:
this is what I used.
I had to CD into the directory, and create my folder. (removing the spaces in the original folder name, to relieve the hassle of all the \\ for spaces, in the future)
mkdir 00-DNS-Server

Open in new window


Then I was able to start the coping process.
vmkfstools -i "/vmfs/volumes/Date-2016/00 - DNS Server/00 - DNS Server.vmdk" -d thin "/vmfs/volumes/DES Lessons/00-DNS-Serve
r/00 - DNS Server.vmdk"

Open in new window


It is at 13% right now, and the file is 50GB.
So, we will wait and see how long it will take.

Thanks, Andrew.
Love learning new things.
The sharing of Knowledge is power, my friend.

Wayne
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
Andrew put me on the right path, to get started.
It is at 14% right now.
This is a LOT faster than the other methods I tried.

Thanks, Andrew.
Wayne
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
cut and paste takes the same amount of time!! if you use the gui!
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
How do you use the GUI?
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
New question, if you can assist.
vmkfstools not Cloning the full size of the VMDK
Wayne BarronAuthor, Web Developer
Top Expert 2009

Author

Commented:
The other issue is resolved.
Files are made smaller during the cloning process.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Because you created a THIN disk!

There are three types of disk, thin, thick (eager zero) etc

to be expected when you created a thin disk!
johnsoneSenior Oracle DBA

Commented:
Seems strange to me that there would be access to a low level command like scp, but no access to cp.  I guess that's the way it goes.  I'm sure that if you could find the *IX distribution that created the OS, you could get the commands there.  But, that seems to be making is more complicated.

I also got confused.  I used to work with a *IX variant called ESIX.  Slightly different spelling and it caught me.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial