the metaroot command edits the /etc/vfstab and /etc/system files so that the system may booted with the root file system (/) on an appropriate metadevice. The only metadevices that support the root file system are a stripe with only a single disk or a mirror on a single-disk stripe.
you should initialise the metadevices first!
You have to edit your /etc/lvm/md.tab
d10 1 1 /dev/dsk/c0t0d0s0
d20 1 1 /dev/dsk/c0t1d0s0
d0 -m d10
d11 1 1 /dev/dsk/c0t0d0s1
d21 1 1 /dev/dsk/c0t1d0s1
d1 -m d11
.
.and so on...
.
now initialise:
metainit -f d11
metainit -f d21
metainit -f d1
.
.and so on ..... (also d10,d20,d0!!)
.
after that type:
metaroot d0
this edit your /etc/vfstab an set the / to a metadevice
now edit your vfstab by yourselft and set the other device to metadevice:
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t1d0s4 ------>
dev/md/dsk/d4 /dev/md/rdsk/d4
.
. and so on
.
now you have to REBOOT!!!!!
after the reboot you can set up the mirror
metattach d0 d20
metattach d1 d21
.
.and so on
.
with metastat you see how far he is....