Sun Cluster 3.0 설치 안내서

예-루트(/) 파일 시스템 미러링

다음 예는 노드 phys-schost-1d0 미러를 작성하는 것을 보여주며, c0t0d0s0 파티션의 d10 서브미러, c2t2d0s0 파티션의 d20 서브미러로 구성됩니다. 디스크 c2t2d0은 멀티포트 디스크이므로, localonly 등록정보가 사용 가능합니다.


(Create the mirror:)
# metainit -f d10 1 1 c0t0d0s0
d11: Concat/Stripe is setup
# metainit -f d20 1 1 c2t2d0s0
d12: Concat/Stripe is setup
# metainit d0 -m d10
d10: Mirror is setup
# metaroot d0
# lockfs -fa
 
(Reboot the node:)
# scswitch -S -h phys-schost-1
# shutdown -g 0 -y -i 6
 
(Attach the second submirror:)
# metattach d0 d20
d0: Submirror d20 is attached
 
(Enable the localonly property of the mirrored disk's raw disk device group:)
# scconf -c -D name=dsk/d2,localonly=true
 
(Record the alternate boot path:)
# ls -l /dev/rdsk/c2t2d0s0
lrwxrwxrwx  1root     root          57 Apr 25 20:11 /dev/rdsk/c2t2d0s0 ->
../../devices/node@1/pci@1f,0/pci@1/scsi@3,1/disk@2,0:a,raw