다음 예에서는 c0t0d0s1에 있는 /usr을 이중화하는 d1 미러를 phys-schost-1 노드에 만듭니다. d1 미러는 c0t0d0s1 파티션에 있는 d11 하위 미러와 c2t2d0s1 파티션에 있는 d21 하위 미러로 구성됩니다. d1을 미러 이름으로 사용하도록 /usr에 대한 /etc/vfstab 파일 항목이 갱신됩니다. c2t2d0 디스크는 멀티 포트 디스크이므로 localonly 특성이 활성화됩니다.
(Create the mirror) # metainit -f d111 1 1 c0t0d0s3 d111: Concat/Stripe is setup # metainit -f d121 1 1 c2t2d0s3 d121: Concat/Stripe is setup # metainit d101 -m d111 d101: Mirror is setup # metattach d101 d121 d101: Submirror d121 is attached (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/d101 /dev/md/rdsk/d101 /global/.devices/node@1 ufs 2 no global (View the sync status) # metastat d101 d101: Mirror Submirror 0: d111 State: Okay Submirror 1: d121 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 |