ios_mx
Contributor
Contributor

How to transfer data from one virtualdisk to the other

We have two virtual harddisks on VM (/dev/sda1 & /dev/sdb). Harddisk (/dev/sda1/) is only 36 GB and out of space. Whereas hardisk (/dev/sdb) has 1 TB of space. How can we move data from /dev/sda1 to /dev/sdb?

Labels (2)
0 Kudos
7 Replies
Kahonu84
Hot Shot
Hot Shot

Copy within the OS???

0 Kudos
Hasaranga007
Contributor
Contributor

Yes , You can move files from one disk to another withing OS .

However, you might need to reclaim the space to reflect it in the datastore.

If you find this answer useful please give a Kudo.
Don't forget to follow me on Twitter @hasaranga007 |
LinkedIn : https://www.linkedin.com/in/hasaranga/
0 Kudos
ios_mx
Contributor
Contributor

Yeap. Within OS.

0 Kudos
ios_mx
Contributor
Contributor

Are there any documentation/video pointers?

0 Kudos
Hasaranga007
Contributor
Contributor

Hi ,

It just moving files , if it's a Linux OS

mv (source location) (destination location)

obviously destination should be in a folder in  "/dev/sdb" , as per your case.

If you find this answer useful please give a Kudo.
Don't forget to follow me on Twitter @hasaranga007 |
LinkedIn : https://www.linkedin.com/in/hasaranga/
0 Kudos
scott28tt
VMware Employee
VMware Employee

The same way as you would if the guest OS was installed on a physical machine rather than it being in a VM.

(This isn't a VMware-related question)

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMTN voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
ios_mx
Contributor
Contributor

Looks like I didn't describe it properly. We want to copy everything from 'dev/sda1' to '/dev/sdb' and also make sure that when VM comes up it boots up using '/dev/sdb'. Also, after little bit of investigation, I found it that '/dev/sdb' is just inserted and not mounted. Wondering if there is any easier way through ESXi to perform these tasks.

0 Kudos