This content has been marked as final. Show 6 replies
As I understand, you want to mirror (RAID1) the root disk using SVM? If yes, you need a spare disk with the same size of the root disk.
If you assume that all below file systems should be mirrored follow this procedure:
1. Prepare the spare disk by having the same VTOC as your current root disk:
#prtvtoc /dev/dsk/c0t1d0s2 > /tmp/c0t1d0s2.txt
#fmthard -s /tmp/c0t1d0s2.txt /dev/dsk/<sparedisk>
2. Create state database replicas (if they do not exist):
#metadb -f -a <slice> //creates 1 state replica, at least 3 must exist
#metadb //print state database replicas
3. Create metadevices:
mirror /var filesystem
#metainit -f d11 1 1 c0t1d0s3
#metainit -f d12 1 1 <slice on spare disk>
#metainit d10 -m d11
edit the /etc/vfstab by replacing the /var line to use metadevices:
4. Repeat step 3 for each non root filesystem by creating new metadevices.
6. After reboot issue:
#metattach d10 d12 //create a mirror volume
For the root file system you should use the metaroot command so the system uses metadevices to boot.
There is also useful guide on Solaris library on how to do it, but basically this is the procedure for full mirroring the root disk using SVM.
Edited by: Reidod on May 17, 2013 1:24 PM
Thanks - so these are just the standard steps, I was more concerned with the fact that the server was previously mirrored using SVM. Has been patched but failed so I've had to boot from "disk1" after splitting the disk mirrors. And now are there any additional or special steps I need to carry out to get this setup again? Basically I want to get the server back to the state it was in prior to the prior failure.
799786 wrote:So, is this new thread a new issue or is it a continuation of your original thread?
Hi - I have a T2000 server that failed to boot after patching, I booted from "disk1" so it's running again
T2000 won't boot after patching
If it is a continuation, you should have kept all your communication in the same original thread.
As time passes, future readers will lose all sense of what you've been experiencing as the forum threads become separated and the relevance of their content "lost" by that separation.
At least be polite and compose references to this new thread and post it to your earlier one, so that people can understand what you've done. You were given assistance there and those forum contributors need to know whether their efforts were of any value.