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:
- Should i create the state database replica on c0t0d0s7 or c0t1d0s7?
- 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:
- Does the above command means that d11(c0t0d0s1) is two-way mirrored to d12(c0t1d0s1)?
- Should i create mirror and volumes on all the 8 slices (s0-s7)?
- 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.