티스토리 뷰

출처 : http://www.xenlens.com/remove-hanging-vdi-s-in-xenserver-cli/


Remove hanging VDI-s in XenServer CLI

Sometimes a process involving VM vdi can be interrupted and the VDI is left hanging. It cannot be removed in XenCenter. If you select a SR and go under Storage tab you may see virtual disks that have XenServer host as vrtual machine. It usually says “Control domain on host …”. There is a way to manually remove this virtual disk on the CLI console.

Find out the uuid of your hanging vdi:

xe vdi-list name-label=<vm name label>

Now show all volume groups:

vgs

In the response you should identify your SR volume group that the vdi is in. You can do this by looking at the VSize and VFree fields.

Now scan the volume group for vhd-s:

vhd-util scan -m "VHD-*" -f -c -l VG_XenStorage-<volume group id> -p –v

If you see your vhd there then you can now remove it:

lvremove /dev/VG_XenStorage-<volume group id>/VHD-<vdi uuid>

Now re-scan the SR in XenCenter and the hanging virtual disk should be gone.


'xenserver' 카테고리의 다른 글

Xenserver NVMe mount  (0) 2017.09.11
Xenserver Dom0 파티션 풀  (0) 2017.08.07
xenserver local type SR 삭제하기  (0) 2016.07.25
Create virtual machine in XenServer from command line  (0) 2016.06.27
Citrix XenServer - Seri 1 (Storage)  (0) 2016.05.15
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/04   »
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
글 보관함