|
Hi Gary,
Mirroring is actually pretty easy.
I'll use the / as an example.
So first you need to create some metadatabases's. Metadb hold all of the SVM info. The need to be put on their own empty slice. I would recommend creating 2 metadb on each disk. Each metadb is 4MB, so you'll want to create 3 slices one on each disk that are 8MB in size. Now you don't have to do this you could just run the whole SVM with just one metadb but that's not really a good idea. So lets say we created c0t0d0s7 c0t1d0s7 and c0t2d0s7 each 8MB.
To create the metadb's
metadb -f -a -c 2 c0t0d0s7 c0t1d0s7 c0t2d0s7
Now you're ready to start creating your mirrors. You'll need to make each slice into it's own stripe set..don't worry it won't destroy the data on any disks. Of course I alway recommend doing a back up before attempting anything like this. I'm assuming that you have already creating a slice on say c0t2d0 which is the same size of your / slice. Call it c0t2d0s0.
Then make the stripe sets.
metainit -f d11 1 1 c0t0d0s0
metainit d12 1 1 c0t2d0s0
metastat will show you the svm info.
Ok so now you'll want to mirror the two slices together. It's very important that add the / slice first, the one that has data on it, or things will turn out badly.
metainit d10 -m d11
This will start the mirror.
Then make it so you can now boot off the mirror with
metaroot d10
reboot
When the system comes back up add the second slice
metattach d10 d12
The mirror will sink up and you're ready to go.
Of course there is a bit more to it but that's the simple version. Good luck!
Last edited by shizzy-t; 11-09-2006 at 12:24 PM.
|