Xen Server node 점검 가이드

XenServer/XCP-ng 노드 점검 가이드입니다. xe host/vm/sr/pbd/pif 명령, 리소스와 로그 확인, pool/VM/storage/network 점검 루틴을 정리했습니다.

XenServer, Citrix Hypervisor, XCP-ng 계열 노드는 xe CLI로 host, VM, storage, network 상태를 점검할 수 있습니다. 단순히 host-list 한 줄만 보는 것보다 pool, management interface, storage repository, VM 상태, tool 설치 여부를 함께 봐야 합니다.

Host 기본 정보

xe host-list params=uuid,name-label,enabled
xe host-list params=name-label,software-version,memory-total,memory-free
xe host-cpu-list
xe host-param-list uuid=HOST_UUID | head -n 80

HOST_UUIDxe host-list에서 확인한 UUID로 교체합니다. pool 환경에서는 명령을 pool master에서 실행하는지, 특정 host에서 실행하는지 구분합니다.

VM 상태

xe vm-list is-control-domain=false params=uuid,name-label,power-state
xe vm-list resident-on=HOST_UUID is-control-domain=false params=name-label,power-state
xe vm-param-list uuid=VM_UUID | head -n 80

host 장애나 유지보수 전에는 해당 host에 상주하는 VM 목록을 먼저 확인합니다. shared storage와 HA 설정 여부에 따라 migration 가능성이 달라집니다.

스토리지 점검

xe sr-list params=uuid,name-label,type,content-type,shared
xe pbd-list params=uuid,host-uuid,sr-uuid,currently-attached
xe vdi-list sr-uuid=SR_UUID params=name-label,virtual-size,physical-utilisation
df -h

SR이 shared인지, PBD가 attached인지, 실제 dom0 디스크가 가득 차지 않았는지 함께 봅니다. 스토리지 문제는 VM I/O 지연이나 tapdisk 관련 장애로 나타날 수 있습니다.

네트워크 점검

xe network-list params=uuid,name-label,bridge
xe pif-list params=uuid,device,management,currently-attached,IP,netmask,gateway
ip -br a
ip r

management PIF가 잘못 바뀌면 XenCenter/Xen Orchestra/API 접속이 끊길 수 있습니다. 원격에서 네트워크 변경 전에는 out-of-band console을 확보합니다.

리소스와 로그

xentop -b -i 1
free -h
uptime
tail -n 100 /var/log/xensource.log
tail -n 100 /var/log/SMlog
tail -n 100 /var/log/messages

운영 점검 루틴

  • pool master와 slave host 상태를 구분합니다.
  • VM power-state와 resident host를 기록합니다.
  • SR/PBD attach 상태와 여유 용량을 확인합니다.
  • PIF, bond, VLAN, management interface 변경 이력을 관리합니다.
  • host reboot 전 VM migration 가능 여부와 HA 정책을 확인합니다.

공식 문서

BGM EVER