SLV 리눅스 - Quickstart
🚚 SLV 리눅스
전체 Linux 디스크를 rsync를 사용하여 SSH 이상의 새로운 서버로 마이그레이션하십시오. 이것은 소스 서버의 모든 것이 사용자 데이터, 구성, 설치 패키지 및 포함 대상에 복사됩니다. SLV 노드 설정.
** 참고:** 이것은 다른것에서 입니다slv v switch(유효한 정체성 마이그레이션).slv migrate linux전체 파일시스템을 복사하고,slv v switch이미 실행 노드 사이에 유효성 검사를 묶습니다.
관련 상품
- SLV 소스 노드에 설치된 CLI
sudo/ 소스와 목적지 모두에 루트 액세스- 소스에서 목적지까지 SSH 액세스 (password 또는 키 기반)
- Destination 서버는 신선한 설치가되어야 합니다 (SLV 기존 데이터를 감지하면 경고합니다.
기본 사용
source 서버에서 실행:
bash
sudo slv migrate linux --to root@new-server-ipsudo slv migrate linux --to root@new-server-iptext
🚚 SLV Linux Migration
Source: ubuntu (this machine)
Destination: [email protected]
📋 Exclude list:
• /dev/*
• /proc/*
• /sys/*
• /tmp/*
• /run/*
• /mnt/*
• /media/*
• /lost+found
• /swapfile
• /snap/*
• /var/log/*
? Start migration? This will overwrite data on the destination. › Yes
Syncing... (this may take a while depending on disk size)
√ Migration complete
Rebooting destination...🚚 SLV Linux Migration
Source: ubuntu (this machine)
Destination: [email protected]
📋 Exclude list:
• /dev/*
• /proc/*
• /sys/*
• /tmp/*
• /run/*
• /mnt/*
• /media/*
• /lost+found
• /swapfile
• /snap/*
• /var/log/*
? Start migration? This will overwrite data on the destination. › Yes
Syncing... (this may take a while depending on disk size)
√ Migration complete
Rebooting destination...* 이름
| 옵션 정보 | 제품 설명 |
|---|---|
-t, --to <ssh> | SSH 대상 (예: root@new-server) |
-p, --port <port> | SSH 포트 (과태: 22) |
--skip-reboot | 자동 재부팅 후 |
--exclude <path> | 추가 rsync exclude 패턴 (repeatable) |
--include <path> | 기본 제외에서 제거 (repeatable) |
--list-excludes | 현재 목록 및 출구를 제외하고 |
-y, --yes | Skip 확인 |
관례 SSH 항구
대상이 비표준 SSH 포트를 사용하는 경우:
bash
sudo slv migrate linux --to root@new-server-ip --port 2222sudo slv migrate linux --to root@new-server-ip --port 2222사용자 정의 제외
제외 될 것:
bash
slv migrate linux --list-excludesslv migrate linux --list-excludes추가 경로 제외 (예를 들어, 빠른 마이그레이션을위한 원장 데이터를 건너):
bash
sudo slv migrate linux --to root@new-server-ip --exclude /home/solv/ledgersudo slv migrate linux --to root@new-server-ip --exclude /home/solv/ledger비동기 모드
스크립트:
bash
sudo slv migrate linux --to root@new-server-ip --skip-reboot --yessudo slv migrate linux --to root@new-server-ip --skip-reboot --yes어떻게 작동하나요?
- Pre-flight check - SSH 연결성을 검증하고, 대상이 기존 데이터가 있는 경우 경고
- rsync - SSH에 전체 파일시스템 (시스템 의사 파일시스템 제외)
- Post-migration — 자동으로 대상 서버를 재부팅합니다 (무무무한)
--skip-reboot)
마이그레이션은 rsync를 사용합니다.
--archive --hard-links --acls --xattrs 모든 파일 속성, 권한 및 특수 파일을 보존하기 위해.⚠️ 중요 메모
- ** 루트로 룬 ** (또는 함께
sudo). 비 루트 마이그레이션은 시스템 파일을 놓을 것입니다. - 대상은 ** 프리시 서버 **이어야 합니다. 기존 데이터는 과잉될 것입니다.
- rsync 종료 코드 23/24 (partial transfer) 경고로 처리, 오류가 없습니다. 일부 파일 (활성 로그와 같은) 완벽하게 전송할 수 없습니다.
- 마이그레이션 후 노드가 소스를 분해하기 전에 올바르게 작동해야합니다.
- ** 유효성분 이전** (zero-downtime swap between two running validators), 사용
slv v switch대신. 보기 Mainnet Validator 마이그레이션.