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/02/11 16:19] gcooper |
virtualization:xenserver:xenserver_storage [2020/05/14 09:48] (current) gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
===== Examine ===== | ===== Examine ===== | ||
- | Show VDIs for a VM: | + | Show VDIs for a VM, then VDI details: |
< | < | ||
xe vdi-list | grep -B1 -A5 -i < | xe vdi-list | grep -B1 -A5 -i < | ||
+ | |||
+ | xe vdi-list params=all uuid=< | ||
</ | </ | ||
+ | |||
+ | Show VBDs for a VDI: | ||
+ | |||
+ | < | ||
+ | xe vbd-list vdi-uuid=< | ||
+ | </ | ||
+ | |||
+ | Examine a VHD file: | ||
+ | |||
+ | |||
Show SRs: | Show SRs: | ||
Line 18: | 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 33: | 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 51: | 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 61: | 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 132: | Line 146: | ||
grep ' | grep ' | ||
</ | </ | ||
- | |||
- | ===== Coalesce a VHD ===== | ||
- | |||