For the complete documentation index, see llms.txt. This page is also available as Markdown.

Move a volume between virtual machines

Before moving a volume to a new virtual machine, make sure to unmount it from the current virtual machine first.


Moving a volume between VMs is just a matter of unmounting it from the operating system, detaching it from the current VM, attaching it to another VM, and mounting it.

Start by detaching the volume from the current VM by following the guide Detach a volume from a virtual machine. Make sure you unmount the volume first, as described in the guide.

Then, attach the volume to the new VM by following the guide Attach a volume to a virtual machine.

The final step is to mount the volume in the new VM so it becomes accessible.

Follow the section Mount the volume in Linux in the guide Format and mount a volume. But make sure to only follow the mount section. Don't format the volume or create partitions or a partition table! If you format the volume or create a new partition table, you'll lose all data on it!

If the volume doesn't show up automatically under This PC, start a PowerShell terminal and run the following command (search for Terminal or PowerShell in the Start menu).

Execute Get-Disk and look for the WWN shown in the control panel and match it to a disk.

Command and output. Command is highlighted.
Get-Disk | Select-Object Number, FriendlyName, UniqueId

Number FriendlyName       UniqueId
------ ------------       --------
     0 GLESYS LOCAL DISK  34CE12CC9399D6F5
     1 GLESYS REMOTE DISK 3DD0446B90C484F1

In this example, disk number 1 matches the WWN from the control panel.

Open Computer Management by searching for it in the Start menu.

Once inside Computer Management, select Disk Management under Storage. Right-click on the disk number that corresponds to the WWN from the previous step (in this case, Disk 1). Select Online.

If the volume doesn't show up automatically under This PC, start a PowerShell terminal and run the following command (search for Terminal or PowerShell in the Start menu).

Execute Get-Disk and look for the WWN shown in the control panel and match it to a disk.

In this example, disk number 1 matches the WWN from the control panel.

Use Set-Disk to take the volume online. Use the disk number from the above step.

Last updated

Was this helpful?