'데이터 엔지니어'로 성장하기

정리하는 걸 좋아하고, 남이 읽으면 더 좋아함

기타/Xen

xen) xcp_ng disk full 해결(orphan disk)

MightyTedKim 2022. 6. 2. 10:56
728x90
반응형

 

 

snapshot 마구 찍다가 storage 가 꽉차서, orphan disk를 xoa(UI)에서 삭제해줌

요약

  1. 상황
  2. 원인
  3. 조치

설정

상황

snapshot 마구 찍다가 storage repo가 꽉참

revert to snapshot 했는데 disk를 잡지 못해서 booting이 안됨

원인

k8s cluster 세팅하다가 뭔일 있을 때마다 snapshot 떠서 그런듯

 

기본적으로 VDI는 snapshot에 포함되는데 아래와 같음

- snapshot 뜨기 전에 base copy를 찍는데 이게 문제가 되는듯, metadata는 별로 안될테니까

Active VDI – As the name suggest it is the VDI which holds the current writes.  This VDI is set to read-write to hold the current writes.
Base Copy – The deflated size of your changes before snapshot.  This VDI is set to read-only.   If the active VDI needs data to be read prior snapshot it will read from the base copy.
Snapshot Metadata – This holds the snapshot metadata such as the time the snapshot was taken, the parent, etc. Default size is 8MB for LVM based SRs and few KBs in File based SRs.

일반적으로는 GC가 돌아서 삭제된 snapshot이 점유하고 있떤 디스크를 정리함

- GC starts in case of an SR scan, VDI activity like deletion, or snapshot delete etc. 

그런데 가끔 이게 꼬일 수 있음. 이게 내 경우였음

 

조치

xoa(web ui) 들어가서 storage -> orphaned disk를 삭제해주면 됨

검색 조건은 "type:!VDI-unmanaged"

 

CLI로 하려면 엄청 복잡함. 하지 않는 것을 추천

참고

 

cli로 orphan disk 삭제하기

- https://xcp-ng.org/forum/topic/2481/too-many-vdi-vhd-per-vm-how-to-get-rid-of-unused-ones/30?lang=en-GB 

 

too many VDI/VHD per VM, how to get rid of unused ones

Why? How it's related? Have you cleaned the maximum number of VDIs?

xcp-ng.org

Understanding Garbage Collection and Coalesce Process Troubleshooting

- https://support.citrix.com/article/CTX201296

 

Understanding Garbage Collection and Coalesce Process Troubleshooting

Summary In most cases, customers have experienced issues with coalescing snapshots after deleting snapshots.  At times we do not see the reclaimed space once a snapshot is deleted. Even with an SR rescan to manually get the Garbage Collection (GC) to kic

support.citrix.com

 

[Xen-API] XCP 1.5 VM images will not start

- https://lists.xenproject.org/archives/html/xen-api/2012-11/msg00095.html

 

Xen project Mailing List

How did you saw difference between snapshots from vdi's? The only (actual) difference is xapi opinion, for VHD there is base copy and leafs, any leaf can be a disk or a snapshot. If you done any snapshots (I think I see you done), you gonna have bunch of

lists.xenproject.org

 

728x90
반응형

'기타 > Xen' 카테고리의 다른 글

Xen) Run out of space while coalescing 조치  (0) 2022.08.21
xen) xcp-ng 설치  (0) 2022.07.10
xen) vg not available 해결_reboot,vgchange -ay,k8s  (0) 2022.03.29