HOWTO:XenserverLostSpace

Da Helpedia.

Indice

To delete a lost VHD

vhd-util scan -f -m "VHD-*" -l "VG_XenStorage-<uuid_of_SR>" -p | grep uuid_of_vdi_you_don't _need

then do

lvremove /dev/VG_Xenstorage--<uuid_of_SR>/VHD-uuid-<uuid_of_SR>

and now do SR-scan you'll be able to reclaim the space.

List all VDI on SR

xe vdi-list sr-uuid=<uuid_of_SR>

Read Status of a VDI

xe diagnostic-vdi-status uuid=<uuid_of_vdi>

Copy a VDI

xe vdi-copy uuid=<uuid_of_vdi> sr-uuid=<uuid_of_SR>

then check transfer

xe task-list


Coalesce Snapshots

xe host-call-plugin host-uuid=<uuid_of_poolmaster> plugin=coalesce-leaf fn=leaf-coalesce args:vm_uuid=<uuid_ofv_m>

Simple Proc to delete lv

Identify base copy

xe vdi-list sr-uuid=1a49c94b-ca6f-0620-4f0a-0242da3f6f15 name-label="base copy"

Check if used (es. 9c2ddf96-356f-4e03-98ac-df9363507296)

xe diagnostic-vdi-status uuid=9c2ddf96-356f-4e03-98ac-df9363507296

Check Chain

vhd-util scan -f -m "VHD-*" -l "VG_XenStorage-1a49c94b-ca6f-0620-4f0a-0242da3f6f15" -p | grep 9c2ddf96-356f-4e03-98ac-df9363507296 

If chain has hidden=0 childs then is visible and maybe used! check all childs

vhd=VHD-9c2ddf96-356f-4e03-98ac-df9363507296 capacity=146783862784 size=147073269760 hidden=1 parent=none
   vhd=VHD-461ad81d-2eae-4e1e-abd9-08bba362217f capacity=146783862784 size=147077464064 hidden=0 parent=VHD-9c2ddf96-356f-4e03-98ac-df9363507296
   vhd=VHD-08c2f6f1-3bd0-437b-9ffa-4bee89715f8b capacity=146783862784 size=8388608 hidden=1 parent=VHD-9c2ddf96-356f-4e03-98ac-df9363507296
Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti