
openvz 컨테이너 실행의 스냅샷을 찍기 위해 다양한 방법을 시도하고 있습니다.
이 가이드를 따르십시오.http://openvz.org/Checkpointing_and_live_migration, 스냅샷을 복원할 때 항상 pid 파일이 누락되는 문제가 발생합니다. 내가 따르는 단계는 다음과 같습니다.
vzctl chkpnt 111 --suspend
vzctl chkpnt 111 --dump --dumpfile /vz/dump/testdump.111
vzctl chkpnt 111 --resume
그런 다음 VE를 중지하고 덤프 파일에서 복원하려고 합니다.
vzctl stop 111
vzctl restore 111 --undump --dumpfile /vz/dump/testdump.111
이 시점에서 항상 pid 파일 누락에 대한 오류가 발생합니다.
vzctl restore 111 --undump --dumpfile /vz/dump/Dump.111
Restoring container ...
Container is mounted
undump...
Adding IP address(es): 10.111.1.111
Setting CPU units: 1000
Restore error, undump failed: No such file or directory
Error: rst_open_file: failed to lookup path '/var/run/saslauthd/saslauthd.pid': -2
Error: can't open file /var/run/saslauthd/saslauthd.pid
Error: rst_file: -2 30505968
Error: rst_files: -2
Error: make_baby: -2
Error: rst_clone_children
Error: make_baby: -2
Error: rst_clone_children
Container restore failed
Container is unmounted
스냅샷을 찍기 전에 saslauthd를 중지하면 sendmail의 pid 파일에 대해 불평합니다. sendmail을 중지하면 crond에 대해 불평합니다. 등.
백업된 컨테이너를 복원하는 올바른 방법은 무엇입니까?
답변1
이 메시지는 버그인 것 같습니다. 최신 OpenVZ 커널과 사용자 공간으로 업그레이드한 후 이 작업을 다시 확인하세요. 다시 실패하면 dmesg 콘텐츠를 다음 주소로 보내주세요.http://bugzilla.openvz.org
답변2
이러한 작업 방식은 실제로 지원되지 않습니다. vzctl 4.7부터 모든 것이 ploop를 통해 수행됩니다.