Sun Cluster 3.0 U1 安裝手冊

範例-鏡像全域名稱空間

下列範例顯示建立的 d101 鏡像,是由分割區 c0t0d0s3 上的子鏡像 d111 和分割區 c2t2d0s3 上的子鏡像 d121 所組成。/global/.devices/node@1/etc/vfstab 檔案項目會更新為使用鏡像名稱 d101。磁碟 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           t
ype    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