Sun Cluster 3.0 설치 안내서

예-사용자 정의 파일 시스템 미러링

다음 예는 c0t0d0s4에 있는 /home을 미러링하기 위해 d4 미러를 작성하는 것을 보여줍니다. d4 미러는 c0t0d0s4 파티션의 d14 서브미러와 c2t2d0s4 파티션의 d24 서브미러로 구성됩니다. /home/etc/vfstab 파일 항목은 d4 미러 이름을 사용하도록 갱신됩니다. c2t2d0 디스크는 멀티포트 디스크이므로 localonly 등록 정보를 사용할 수 있습니다.


(Create the mirror:)
# metainit -f d14 1 1 c0t0d0s4
d14: Concat/Stripe is setup
# metainit -f d24 1 1 c2t2d0s4
d24: Concat/Stripe is setup
# metainit d4 -m d14
d4: Mirror is setup
 
(Edit the /etc/vfstab file:)
# vi /etc/vfstab
#device        device          mount           FS      fsck    mount   mount
#to mount      to fsck         point           type    pass    at boot options
#
/dev/md/dsk/d4 /dev/md/rdsk/d4 /home           ufs     2       no      global
 
(Attach the second submirror:)
# metattach d4 d24
d4: Submirror d24 is attached
 
(View the sync status:)
# metastat d4
d4: Mirror
      Submirror 0: d14
         State: Okay
      Submirror 1: d24
         State: Resyncing
      Resync in progress: 15 % done
...
 
(Identify the DID name of the mirrored disk's raw disk device group:)
# scdidadm -L
...
1         phys-schost-3:/dev/rdsk/c2t2d0     /dev/did/rdsk/d2
 
(Enable the localonly property of the mirrored disk's raw disk device group:)
# scconf -c -D name=dsk/d2,localonly=true