VM을 운영하다보면 동일한 서비스의 스케일 인 & 아웃으로 인해 스냅샷을 활용하는 부분이 많다
보통 UI로 진행하는게 편한데 스냅샷은 command가 더 편한것 같기도?
0.스냅샷 만들기
# xe vm-snapshot vm=[uuid] new-name-lavel=[snapshot name]
1. 스냅샷 리스트 확인
# xe snapshot-list
2. 스냅샷 파일로 내보내기
# xe snapshot-export-to-template snapshot-uuid= [UUID] filename=[/경로/원파는파일명.xva]
3. 스냅샷 파일로 가져오기
원하는 hypervisor의 storage의 localstorage 명 확인 명령어
# xe sr-list
# xe vm-import filename= [/경로/원파는파일명.xva] sr-uuid=b8...
4. VM 기동하기
UI에서 New VM Wizard 로 스냅샷 시작
5. 스냅샷 파일 삭제
# xe snapshot-uninstall snapshot-uuid=[snapshot-uuid]
'SE' 카테고리의 다른 글
openssh 버전 업그레이드 (보안 취약점 조치) (0) | 2024.06.19 |
---|---|
연도별 로그 이동 shell script (1) | 2024.01.02 |
1분내로 리눅스서버 점검하기 (1) | 2023.12.05 |
XCPng 파티션 추가 (1) | 2023.12.04 |
xcp-ng 란 (0) | 2023.12.02 |
댓글