재부팅 처리
재부팅 시 발생하는 일
섹션 제목: “재부팅 시 발생하는 일”워크스페이스 컨테이너는 호스트 재부팅 후 자동으로 재시작되지 않습니다.
재부팅 후 LabPod이 시작되면 조정자(reconciler)가 호스트 부팅 ID가 바뀐 것을 감지하고 다음과 같이 처리합니다:
- 재부팅 전에
running상태였던 워크스페이스를 모두 Stopped after host restart (stopped_by_host_restart) 상태로 표시합니다. 직접 중지했을 때의 일반 중지 상태와는 다른 상태입니다. - 워크스페이스마다
workspace.reconcile_stopped_by_host_restart감사 로그 항목을 남기고, 상세 정보에host_rebooted: true필드를 기록합니다. - 사용자 화면에는 워크스페이스가 Stopped after host restart로 표시되며 Resume 버튼을 누르면 다시 시작합니다.
메모리에 있던 상태는 사라집니다: Jupyter 커널, 실행 중인 학습 프로세스, 터미널 세션은 재부팅하면 남지 않습니다. 하지만 /work(~/work를 bind 마운트한 경로)에 저장한 작업은 모두 유지됩니다.
재부팅 후 검증
섹션 제목: “재부팅 후 검증”# 1. Confirm the service is runningsudo systemctl status labpod
# 2. Check the API is respondingcurl -s http://127.0.0.1:24680/api/version
# 3. In the UI: verify that previously-running workspaces show# "Stopped after host restart" with a matching audit entry.# Run these as root# 1. Confirm the service is runningsystemctl status labpod
# 2. Check the API is respondingcurl -s http://127.0.0.1:24680/api/version
# 3. In the UI: verify that previously-running workspaces show# "Stopped after host restart" with a matching audit entry.재부팅 후 시작이 실패하는 경우
섹션 제목: “재부팅 후 시작이 실패하는 경우”워크스페이스 소유자의 루트리스 Podman이 여전히 올바르게 설정되어 있는지 확인하세요:
# 1. Verify user linger is enabledsudo loginctl show-user <username> | grep Linger# Should show: Linger=yes
# 2. List the user's containerssudo runuser -u <username> -- podman ps -a --filter name=labpod-ws-<id>
# 3. Check container logs for the failed startsudo runuser -u <username> -- podman logs labpod-ws-<id># Run these as root# 1. Verify user linger is enabledloginctl show-user <username> | grep Linger# Should show: Linger=yes
# 2. List the user's containersrunuser -u <username> -- podman ps -a --filter name=labpod-ws-<id>
# 3. Check container logs for the failed startrunuser -u <username> -- podman logs labpod-ws-<id>재부팅 후 흔한 원인은 다음과 같습니다:
- Linger가 설정되지 않음:
sudo loginctl enable-linger <username>을 실행한 뒤 다시 시도하세요. - 이미지가 정리됨: Podman이 이미지를 찾지 못한 경우입니다. 이미지를 다시 pull할 때까지 워크스페이스 시작이 실패하며 오류는 워크스페이스 상세 페이지에 표시됩니다.
- 포트 충돌: LabPod이 관리하는 풀에서 포트를 할당하므로 드뭅니다.
재부팅한 뒤에는 sudo labpod admin doctor를 실행해 전체 상태를 점검하세요.