문제가 있는 루트 디스크를 교체한 경우처럼 루트(/) 파일 시스템을 새 디스크에 복원하려면 이 절차를 사용하십시오 . 복원하고 있는 노드를 부트하면 안됩니다. 복원 절차를 수행하기 전에 클러스터가 문제 없이 실행되는지 확인하십시오.
장애가 발생한 디스크와 동일한 형식을 사용하여 새 디스크를 분할해야 하기 때문에 이 절차를 시작하기 전에 파티션 구조를 확인 하고 필요한 파일 시스템을 다시 만드십시오.
복원하려는 노드를 제외한 노드 중에서 메타 세트에 액세스할 수 있는 클러스터 노드에 대하여 수퍼유저가 되십시오.
모든 메타 세트에서 복원되는 노드의 호스트 이름을 제거하십시오.
제거하는 노드가 아닌 메타 세트의 노드에서 이 명령을 실행하십시오.
# metaset -s setname -f -d -h nodelist |
디스크 세트 이름을 지정합니다.
강제 실행.
디스크 세트에서 삭제합니다.
디스크 세트에서 삭제할 노드의 이름을 지정합니다.
루트(/) 파일 시스템을 복원할 노드에서 장애가 발생한 디스크를 교체하십시오.
서버와 함께 제공되는 문서에서 디스크를 교체하는 절차를 참조하십시오.
복원되고 있는 노드를 부트하십시오.
Solaris CD-ROM을 사용할 경우에는 다음 명령을 실행하십시오.
ok boot cdrom -s |
JumpStartTM 서버를 사용하는 경우에는 다음 명령을 실행하십시오.
ok boot net -s |
format(1M) 명령을 사용하여 루트 디스크에 모든 파티션과 스왑 공간을 만드십시오.
장애가 발생한 디스크와 동일한 파티션 구조를 다시 만드십시오.
newfs(1M) 명령을 사용하여 루트(/) 파일 시스템과 필요한 다른 파일 시스템을 만드십시오.
장애가 발생한 디스크와 동일한 파일 시스템을 다시 만드십시오.
/global/.devices/node@nodeid 파일 시스템을 만들어야 합니다.
임시 마운트 포인트에 루트(/) 파일 시스템을 마운트하십시오.
# mount device temp-mount-point |
다음 명령을 사용하여 루트(/) 파일 시스템을 복원하십시오.
# cd temp-mount-point # ufsrestore rvf dump-device # rm restoresymtable # cd / # umount temp-mount-point # fsck raw-disk-device |
이제 파일 시스템이 복원되었습니다.
새 디스크에 새 부트 블록을 설치하십시오.
# /usr/sbin/installboot /usr/platform/`uname-i`/lib/fs/ufs/bootblk raw-disk-device |
단일 사용자 모드로 노드를 다시 부트하십시오.
# reboot -- "-s" |
scdidadm 명령을 사용하여 디스크 ID를 교체하십시오.
# scdidadm -R rootdisk |
metadb(1M) 명령을 사용하여 상태 데이터베이스 복제를 다시 만드십시오.
# metadb -c copies -af raw-disk-device |
만들 복제 수를 지정합니다.
복제를 만들 원시 디스크 장치.
복제를 추가합니다.
클러스터 모드로 노드를 다시 부트하십시오.
복원된 노드가 아닌 다른 클러스터 노드에서 metaset(1M) 명령을 사용하여 복원된 노드를 모든 메타 세트에 추가하십시오.
phys-schost-2# metaset -s setname -a -h nodelist |
호스트를 만들어 디스크 세트에 추가합니다.
노드가 클러스터 모드로 다시 부트됩니다. 이제 클러스터를 사용할 준비가 되었습니다.
다음 예는 테이프 장치 /dev/rmt/0에서 노드 phys-schost-1로 복원되는 루트(/) 파일 시스템입니다. 노드 phys-schost-1을 제거하고 나중에 다시 디스크 세트 schost-1에 추가하기 위해 클러스터의 다른 노드 phys-schost-2에서 metaset 명령이 실행됩니다. 다른 명령은 모두 phys-schost-1에서 실행됩니다. 새 부트 블록은 /dev/rdsk/c0t0d0s0에 만들어지고 상태 데이터베이스 복제 세 개는 /dev/rdsk/c0t0d0s4에 만들어집니다.
[Become superuser on a cluster node other than the node to berestored.] [Remove the node from the metaset:] phys-schost-2# metaset -s schost-1 -f -d -h phys-schost-1 [Replace the failed disk and boot the node:] ok boot cdrom -s [Use format and newfs to recreate partitions and file systems.] [Mount the root file system on a temporary mount point:] # mount /dev/dsk/c0t0d0s0 /a [Restore the root file system:] # cd /a # ufsrestore rvf /dev/rmt/0 # rm restoresymtable # cd / # umount /a # fsck /dev/rdsk/c0t0d0s0 [Install a new boot block:] # /usr/sbin/installboot /usr/platform/`uname \ -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0 [Reboot in single-user mode:] # reboot -- "-s" [Replace the disk ID:] # scdidadm -R /dev/dsk/c0t0d0 [Recreate state database replicas:] # metadb -c 3 -af /dev/rdsk/c0t0d0s4 # reboot Press CTL-d to boot into multiuser mode. [Add the node back to the metaset:] phys-schost-2# metaset -s schost-1 -a -h phys-schost-1 |