다음 예는 c0t0d0s1에 있는 /usr를 미러하기 위해 노드 phys-schost-1에서 미러 d1 작성을 보여줍니다. d1 미러는 c0t0d0s1 파티션에 있는 d11 서브미러와 c2t2d0s1 파티션에 있는 d21 서브미러로 구성됩니다. /usr의 /etc/vfstab 파일 항목이 d1 미러 이름을 사용하도록 갱신됩니다. c2t2d0 디스크는 멀티포트 디스크이므로 localonly 등록 정보를 사용할 수 있습니다.
(Create the mirror:) # metainit -f d11 1 1 c0t0d0s1 d11: Concat/Stripe is setup # metainit -f d21 1 1 c2t2d0s1 d21: Concat/Stripe is setup # metainit d1 -m d11 d1: 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/d1 /dev/md/rdsk/d1 /usr ufs 2 no global (Reboot the node:) # scswitch -S -h phys-schost-1 # shutdown -g 0 -y -i 6 (Attach the second submirror:) # metattach d1 d21 d1: Submirror d21 is attached (View the sync status:) # metastat d1 d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d21 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 |