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/04/11 13:46] gcooper |
virtualization:xenserver:xenserver_storage [2020/05/14 09:48] (current) gcooper |
||
---|---|---|---|
Line 10: | Line 10: | ||
xe vdi-list | grep -B1 -A5 -i < | xe vdi-list | grep -B1 -A5 -i < | ||
- | xe vdi-list uuid=< | + | xe vdi-list |
</ | </ | ||
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! 8-o | + | :!: **Be careful! The last time I ran this, all disks were detached besides running VMs!** 8-o |
- | Run this command | + | Run this command |
< | < | ||
- | for uuid in $(xe vdi-list sr-uuid=< | + | for uuid in $(xe vdi-list sr-uuid=< |
xe sr-scan uuid=< | xe sr-scan uuid=< | ||
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). | ||
- | Copy: | + | :!: To move a VHD to a new SR, copy, attach, then delete the original when you are sure the new copy is working well. |
< | < | ||
Line 73: | Line 77: | ||
xe vdi-list sr-uuid=< | xe vdi-list sr-uuid=< | ||
</ | </ | ||
- | |||
- | To move, copy then delete the original when you are sure the new copy is working well. | ||
===== Reset Disk Names ===== | ===== Reset Disk Names ===== | ||
Line 145: | Line 147: | ||
</ | </ | ||
- | ===== Detach a VHD from the Control Domain ===== | ||
- | |||
- | < | ||
- | 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! |