PowerVC 확인~ snaptShot 획득, 복구 상태 확인~
PowerVC에서 기능을 저장하는 VM, 음량의 스냅샷을 얻을 수 있으며 목록은 PowerVC에서 진행할 수 있습니다.
snaptShot에서 얻은, 목록의 로그를 기록합니다.
컨디션
・PowerVC2.0.1(RHEL8.4(ppc64le)on PowerSystems)
・스토리지: V7000
· 실행 대상 서버: AIX7.2TL4
[확인1] snaptShot, 확인 목록 가져오기
시험 전 준비
대상 서버는 2개의 디스크, 루트 vg, 파워vctest와 같은 데이터 vg로 구성되어 있습니다.
powervctest의 디스크를 snaptShot으로 가져옵니다.
# lspv
hdisk0 00f98db55d0f32e1 rootvg active
hdisk1 00f98db56863ddd6 powervctest active
powervctest는/powervctest에 설치되어 있습니다.# lsvg -l powervctest
powervctest:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv01 jfs2log 1 1 1 open/syncd N/A
fslv04 jfs2 720 720 1 open/syncd /powervctest
・ 테스트 디렉토리, 파일 만들기/powervctest/test 디렉터리에서 파일test1,test2,test3을 만들고 있습니다.
# mkdir /powervctest/test
# cd /powervctest/test
# pwd
/powervctest/test
# echo test1test1 > test1
# echo test2test2 > test2
# echo test3test3 > test3
# ls -l
total 24
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:08 test2
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
# cksum *
2730784181 11 test1
1280304482 11 test2
372675887 11 test3
이 상태에서 snaptShot을 가져옵니다.파일을 삭제하고 snapShot을 복원할 때 원래 상태를 복원했는지 확인합니다.
snaptShot 가져오기
powervctest 볼륨을 가져오는 snaptShot을 실행합니다.
PowerVC GUI에 로그인하여 개체 VM을 확인합니다.

・개체 음량: "powervctest"
・snaptshot name:test1107powervctest_snapshot

순조롭게 얻었다.
확인 파일 삭제 및 생성
snasshot을 얻은 후 서버에서/powervctest/test2를 삭제하고 파워vctest/test4를 추가했습니다.
# pwd
/powervctest/test
# rm test2
# echo test4test4 > test4
# ls -l
total 24
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
-rw-r--r-- 1 root system 11 Dec 5 19:16 test4
# cksum *
2730784181 11 test1
372675887 11 test3
2509887867 11 test4
snapshot restore원래 상태로 복원하기 위해 VM을 중지합니다.

PowerVC에서 객체 VM의 Stop을 구현하고 State Stopped를 확인합니다.

대상 VM의 snaptshots 탭으로 이동하여 방금 획득한 "test1107 powervctest snamhot"를 복원합니다.


Restore 확인 화면이 나타납니다.Restore 를 누릅니다.
재부팅 자체가 곧 완성될 것이다.(뒷면에 플래시 복사본이 있을 수 있음)
PowerVC 메시지도 snaptShot restore 출력에 성공했습니다.

(죄송합니다. 인터럽트 표시...)
snaptShot restore 확인
대상 서버를 시작하여 파일 상태를 확인합니다.
# ls -l /powervctest/test
total 24
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:08 test2
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
#
# cd /powervctest/test
# cksum *
2730784181 11 test1
1280304482 11 test2
372675887 11 test3
#
->snaptShot "test1107 powervctest snamhot"반환 획득 시점.[확인2] 여러 개의 snaptShot 가져오기 확인
스냅샷 하나 더 확인해 볼게요.
서버 디렉토리에 첫 번째 상태에서 다른 파일이 추가되었습니다.
# echo snapshot2test > snapshot2
# ls -l
total 32
-rw-r--r-- 1 root system 14 Dec 5 19:26 snapshot2
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:08 test2
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
# cksum *
812814413 14 snapshot2
2730784181 11 test1
1280304482 11 test2
372675887 11 test3
snaptShot 가져오기powervctest 볼륨을 가져오는 snaptShot을 실행합니다.
PowerVC GUI에 로그인하여 개체 VM을 확인합니다.
최초의 SnaptShot 상태가 있습니다.

'test1107 snaptshot test2'라는 이름의 snaptShot을 취득했다.

성공을 거두다.

확인 파일 삭제 및 생성
테스트 1, 테스트 2, 테스트 3을 삭제합니다.
# cd /powervctest/test
# pwd
/powervctest/test
# ls -l
total 32
-rw-r--r-- 1 root system 14 Dec 5 19:26 snapshot2
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:08 test2
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
# rm test*
# ls -l
total 8
-rw-r--r-- 1 root system 14 Dec 5 19:26 snapshot2
#
snapShot2 파일만 남았어요.snapshot restore
원래 상태로 복원하기 위해 VM을 중지합니다.

PowerVC에서 구현 대상 VM의 Stop을 확인한 후 State Stopped가 됩니다.

대상 VM으로 이동한 snaptshots 탭을 복원한 후 방금 획득한 "test1107 snaptshot test2"입니다.

PowerVC 메시지에서도 복구 성공 메시지가 출력됩니다.

snaptShot restore 확인
대상 서버를 시작하여 파일 상태를 확인합니다.
# cd /powervctest/test
# ls -l
total 32
-rw-r--r-- 1 root system 14 Dec 5 19:26 snapshot2
-rw-r--r-- 1 root system 11 Dec 5 19:08 test1
-rw-r--r-- 1 root system 11 Dec 5 19:08 test2
-rw-r--r-- 1 root system 11 Dec 5 19:09 test3
#
"test1107 snapShot test2"가져오기 상태를 복원합니다.스토리지 상태 확인
스토리지 V7000 측에서 두 개의 snapShot을 가져올 때 다음 상태입니다.
① snaptShot의 볼륨은 호스트가 "아니오"로 매핑됨

② 원래 볼륨 파워vctest의 FlashCopy 매핑 수는 2

PowerVC의 구현 내용이 올바르게 반영되었습니다.
그게 다야.
Reference
이 문제에 관하여(PowerVC 확인~ snaptShot 획득, 복구 상태 확인~), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/c_u/items/ce692bc2fc852b3839f2텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)