Skip to main content

Posts

Showing posts from October, 2012

Solaris mirroring

There is a lot of notes about the mirroring, but I always used this one: 4) Time to get our hands dirty!      The following steps should be done while in single usermode idealy.      4.1) Making both drives the same.           We start with slicing the second drive in the same way as our first drive, the master.           # prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2           No need to newfs the second drive slices here, that will automaticaly done by the mirror syncing later.      4.2) Metadbs      We can now setup our metadbs.           # metadb -a -f -c3 c1t0d0s7 c1t1d0s7           Since its the initial creation of the metadbs, we need to force it with -f -a adds the metadbs, and -c tells it how many to create.           You can see the results with metadb -i.      metadb -i is a very handy tool to determine the state of your metadb states.      4.3) Initializing the devices      Now we go to setup the initial metadevices.           # metainit -f d11 1 1 /dev/r