This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:xenserver:xenserver_storage [2017/08/16 12:58] gcooper |
virtualization:xenserver:xenserver_storage [2020/05/14 09:48] (current) gcooper |
||
---|---|---|---|
Line 30: | Line 30: | ||
ll / | ll / | ||
</ | </ | ||
+ | |||
+ | ===== Move a Storage Repository ===== | ||
+ | |||
+ | https:// | ||
===== Add a USB disk as a local SR ===== | ===== Add a USB disk as a local SR ===== | ||
Line 45: | Line 49: | ||
===== Expose Unattached VDIs ===== | ===== Expose Unattached VDIs ===== | ||
- | :!: Careful! The last time I ran this, **all disks were detached besides running VMs!** | + | :!: **Be careful! The last time I ran this, all disks were detached besides running VMs!** |
Run this command then rescan the SR to see if it illuminates deletion candidates: | Run this command then rescan the SR to see if it illuminates deletion candidates: | ||
Line 63: | Line 67: | ||
:!: Creating a full copy of a VM will also have the effect of consolidating all its virtual disks (parent-child). | :!: Creating a full copy of a VM will also have the effect of consolidating all its virtual disks (parent-child). | ||
- | :!: To move a VHD to a new SR, copy then delete the original when you are sure the new copy is working well. | + | :!: To move a VHD to a new SR, copy, attach, |
< | < | ||
Line 143: | Line 147: | ||
</ | </ | ||
- | ===== Detach a VHD from the Control Domain ===== | ||
- | |||
- | List out the VBD (connector object between VM and VDI) based on the VDI UUID: | ||
- | |||
- | < | ||
- | xe vdi-list | grep -B1 -A5 -i " | ||
- | |||
- | xe vbd-list vdi-uuid=< | ||
- | </ | ||
- | |||
- | Once done, you want to first try to make VBD inactive (it may already be inactive), | ||
- | |||
- | < | ||
- | xe vbd-unplug uuid=< | ||
- | </ | ||
- | |||
- | Once done, you can then break the connection: | ||
- | |||
- | < | ||
- | xe vbd-destroy uuid=< | ||
- | </ | ||
- | |||
- | Done! |