The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




Thread: SVM, mirroring
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-02-2009
beginningDBA beginningDBA is offline
Registered User
  
 

Join Date: May 2009
Posts: 30
Question SVM, mirroring

Really sorry for the long posting. But i would really want to clear all the doubts.

I have 2 disk c0t0d0 & c0t1d0, i wanted to mirror c0t1d0 (mirror) to c0t0d0 (main).

Creating state database replica:
metadb -a -c3 -f c0t0d0s7

------------------------------------------------------------------
Question:
1. Should i create the state database replica on c0t0d0s7 or c0t1d0s7?
2. Should i create all the replicas on the same slice?
------------------------------------------------------------------

Creating volumes:
metainit -f d11 1 1 c0t0d0s1
metainit -f d12 1 1 c0t1d0s1

Creating one-way mirror:
metainit d10 -m d11

Creating two-way mirror:
metattach d10 d12

------------------------------------------------------------------
Question:
1. Does the above command means that d11(c0t0d0s1) is two-way mirrored to d12(c0t1d0s1)?
2. Should i create mirror and volumes on all the 8 slices (s0-s7)?
3. Is it creating two-way mirror means that when i delete something on the main/mirror volume, the other volume will also do the same?
------------------------------------------------------------------

This is my understanding from reading through the webs. If i get it all wrong, please kindly point out my mistake.

Thanks in advance for reading or solving the thread.