다음 예에서는 테이프 장치 /dev/rmt/0에서 노드 phys-schost-1로 복원된 루트(/) 파일 시스템을 보여줍니다. metaset 명령은 제거된 후 나중에 메타 세트 schost-1에 노드 phys-schost-1을 추가하기 위해 클러스터 phys-schost-2에 있는 또다른 노드에서 실행됩니다. 다른 모든 명령은 phys-schost-1에서 실행됩니다. 하나의 새 부트 블록이 /dev/rdsk/c0t0d0s0에 생성되고 /dev/rdsk/c0t0d0s4에는 세 개의 상태 데이터베이스 복제본이 만들어집니다.
[복원하려는 노드를 제외한 노드 중에서 메타 세트에 액세스할 수 있는 클러스터 노드에서 수퍼유저가 됩니다.] [메타 세트에서 노드 제거] phys-schost-2# metaset -s schost-1 -f -d -h phys-schost-1 [장애가 발생한 디스크 교체 및 노드 부트] |
Solaris CD에서 노드를 부트합니다.
SPARC: OpenBoot PROM ok 프롬프트에서 다음 명령을 입력합니다.
ok boot cdrom -s |
x86: CD를 시스템의 CD 드라이브에 넣고 시스템을 종료한 다음 전원을 껐다가 켜서 부트합니다. Current Boot Parameters 화면에서 다음 명령을 입력합니다.
<<< Current Boot Parameters >>> Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/ sd@0,0:a Boot args: Type b [file-name] [boot-flags] <ENTER> to boot with options or i <ENTER> to enter boot interpreter or <ENTER> to boot with defaults <<< timeout in 5 seconds >>> Select (b)oot or (i)nterpreter: b -s |
[format 및 newfs 명령을 사용하여 분할 영역 및 파일 시스템 다시 만들기.] [임시 마운트 지점에 루트 파일 시스템 마운트] # mount /dev/dsk/c0t0d0s0 /a [Restore the root file system] # cd /a # ufsrestore rvf /dev/rmt/0 # rm restoresymtable [새 부트 블록 설치] # /usr/sbin/installboot /usr/platform/`uname \ -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0 [/temp-mountpoint/etc/system 파일의 MDD 루트 정보 행 제거] * Begin MDD root info (do not edit) forceload: misc/md_trans forceload: misc/md_raid forceload: misc/md_mirror forceload: misc/md_hotspares forceload: misc/md_stripe forceload: drv/pcipsy forceload: drv/glm forceload: drv/sd rootdev:/pseudo/md@0:0,10,blk * End MDD root info (do not edit) [/temp-mountpoint/etc/vfstab파일편집 ] Example: Change from— /dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no - Change to— /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 /usr ufs 1 no - [임시 파일 시스템 마운트 해제 및 원시 디스크 장치 확인] # cd / # umount /a # fsck /dev/rdsk/c0t0d0s0 [단일 사용자 모드로 재부트] # reboot -- "-s" [디스크 ID 변경] # scdidadm -R /dev/dsk/c0t0d0 [상태 데이터베이스 복제본 다시 만들기] # metadb -c 3 -af /dev/rdsk/c0t0d0s4 # reboot Type Control-d to boot into multiuser mode. [메타 세트에 노드 다시 추가] phys-schost-2# metaset -s schost-1 -a -h phys-schost-1 |