서버실에 가지 않고도 서버를 원하는 시점으로 복구하다
안녕하세요, 주인장입니다.
이전 게시글의 내용과 같이, GPU 서버의 초기 설정을 잘 마쳤는데요.
이 설정을 모든 서버에 직접 하는 게 말도 안 돼서 원격으로 파티션을 복사하도록 구성했습니다.
구성을 먼저 살펴보자면,
PXE 서버를 하나 둘건데 저는 iVentoy를 사용했습니다.
파티션 백업/복구 솔루션으로 rescuezilla를 채택했습니다.
Supermicro와 AsrockRack의 메인보드에 존재하는 IPMI(BMC) 기능을 이용해 원격지에서 작업했습니다.
iVentoy란?
iVentoy is an enhanced version of the PXE server.
With iVentoy you can boot and install OS on multiple machines at the same time through the network.
iVentoy is extremely easy to use, without complicated configuration, just put the ISO file in the specified location and select PXE boot in the client machine.
iVentoy supports x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI and ARM64 UEFI mode at the same time.
src: https://www.iventoy.com/en/index.html
왜 썼을까?
새로 구매한 PC에 윈도우를 설치하신 경험이 있으실 겁니다.
보통 USB 메모리에 윈도우 이미지를 입혀 컴퓨터에 꽂아 부팅하셨을텐데요.
PXE 서버를 이용하면 USB 없이 같은 작업을 할 수 있습니다.
rescuezilla란?
Rescuezilla is an open-source easy-to-use disk imaging app that's fully compatible with Clonezilla — the industry-standard trusted by tens of millions.
Yes, Rescuezilla is the Clonezilla GUI (graphical user interface) that you might have been looking for. But Rescuezilla is more than a Clonezilla GUI!
왜 썼을까?
파티션을 백업하기 위해서: 윈도우 진영에서 저는 Macrium Reflect를 사용해왔는데, 이를 대체할 수 있는 리눅스 계열의 파티션 백업 솔루션을 알아보다 알게 되었습니다.
foxclone과 rescuezilla를 테스트하였는데, foxclone은 물리 디스크에만 이미지를 저장할 수 있는 데 반해 rescuezilla는 원격지에 이미지를 저장할 수 있었기 때문입니다.
시행착오 정리
* rescuezilla로 부팅해 언어 선택 후 Load USB into RAM을 선택해야 모든 기능을 사용할 수 있었음
만약 그렇지 않을 경우 IO에러가 발생했으며, iVentoy쪽 문제로 보임
* 백업시에 "Rescue: Ignore filesystem inconsistencies and bad sectors"를 체크해야 했으나, 복구시에는 불필요함
* SMB 마운트는 끝까지 말썽이었고, SSH(아마 SFTP인 듯함) 연결로 원격지에 백업하였음