HP BL680c XenServer Administrator's Guide 4.1.0 - Page 33

Moving Virtual Disk Images VDIs between SRs

Page 33 highlights

Storage 1. Upgrade all hosts in the resource pool to XenServer 4.1. 2. Ensure all hosts in the pool have the SR's LUN zoned appropriately. See Section 3.3.2, "Probing an SR " for details on using sr-probe to verify the LUN is present on each host. 3. Convert the SR to shared: xe sr-param-set shared=true uuid= 4. Within XenCenter the SR will be move from the host level to the pool level, indicating it is now shared. The SR will be marked with a red ! to indicate it is not currently plugged on all hosts in the pool. 5. Select the SR and then select the Storage ... Repair Storage Repository menu option. 6. Click Repair to create and plug a PBD for each host in the pool. 3.4.4. Moving Virtual Disk Images (VDIs) between SRs The set of VDIs associated with a VM can be copied from one SR to another to accommodate maintenance requirements or tiered storage configurations. XenCenter provides the ability to copy a VM and all of its VDIs to the same or a different SR, and a combination of XenCenter and the xe CLI can be used to copy individual VDIs. 3.4.4.1. Copying all of a VM's VDIs to a different SR The XenCenter Copy VM function will create copies of all VDIs for a selected VM on the same or a different SR. The source VM and VDIs are not affected by default. To move the VM to the selected SR rather than creating a copy, select the "Remove original VM" option in the Copy Virtual Machine dialog box. 1. Shutdown the VM. 2. Within XenCenter select the VM and then select the VM ... Copy VM menu option. 3. Select the desired target SR. 3.4.4.2. Copying individual VDIs to a different SR A combination of the xe CLI and XenCenter can be used to copy individual VDIs between SRs. 1. Shutdown the VM. 2. Use the xe CLI to identify the VDI UUIDs for the VDIs to be moved. If the VM has a DVD drive it's vdi- uuid will be listed as and can be ignored. xe vbd-list vm-uuid= Note The vbd-list command will display both the VBD and VDI UUIDs. Be sure to record the VDI UUIDs rather than the VBD UUIDs. 3. Within XenCenter select the VM's storage tab. For each VDI to be moved, select the VDI and click on the Detach button. This step can also be done using the vbd-destroy CLI command. 4. Use the vdi-copy command to copy each of the VM's VDIs to be moved to the desired SR. xe vdi-copy uuid= sr-uuid= 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

Storage
27
1.
Upgrade all hosts in the resource pool to XenServer 4.1.
2.
Ensure all hosts in the pool have the SR's LUN zoned appropriately. See Section 3.3.2, “Probing an SR
” for details on using sr-probe to verify the LUN is present on each host.
3.
Convert the SR to shared:
xe sr-param-set shared=true uuid=<local FC SR>
4. Within XenCenter the SR will be move from the host level to the pool level, indicating it is now shared.
The SR will be marked with a red ! to indicate it is not currently plugged on all hosts in the pool.
5.
Select the SR and then select the Storage ... Repair Storage Repository menu option.
6.
Click Repair to create and plug a PBD for each host in the pool.
3.4.4. Moving Virtual Disk Images (VDIs) between SRs
The set of VDIs associated with a VM can be copied from one SR to another to accommodate maintenance
requirements or tiered storage configurations. XenCenter provides the ability to copy a VM and all of its
VDIs to the same or a different SR, and a combination of XenCenter and the xe CLI can be used to copy
individual VDIs.
3.4.4.1. Copying all of a VM's VDIs to a different SR
The XenCenter Copy VM function will create copies of all VDIs for a selected VM on the same or a different
SR. The source VM and VDIs are not affected by default. To move the VM to the selected SR rather than
creating a copy, select the "Remove original VM" option in the Copy Virtual Machine dialog box.
1.
Shutdown the VM.
2.
Within XenCenter select the VM and then select the VM ... Copy VM menu option.
3.
Select the desired target SR.
3.4.4.2. Copying individual VDIs to a different SR
A combination of the xe CLI and XenCenter can be used to copy individual VDIs between SRs.
1.
Shutdown the VM.
2.
Use the xe CLI to identify the VDI UUIDs for the VDIs to be moved. If the VM has a DVD drive it's
vdi-
uuid
will be listed as
<not in database>
and can be ignored.
xe vbd-list vm-uuid=<VALID_VM_UUID>
Note
The
vbd-list
command will display both the VBD and VDI UUIDs. Be sure to record the VDI
UUIDs rather than the VBD UUIDs.
3. Within XenCenter select the VM's storage tab. For each VDI to be moved, select the VDI and click on
the Detach button. This step can also be done using the vbd-destroy CLI command.
4.
Use the
vdi-copy
command to copy each of the VM's VDIs to be moved to the desired SR.
xe vdi-copy uuid=<VALID_VDI_UUID> sr-uuid=<VALID_SR_UUID>