what does metaroot in detail?

I have a problem with a submirror of the root filesystem,
in the procedure in order to unmirror the FS say:
metadetach -f d0 d20
metaroot c0t0d0s0

but, in my system the metaroot cause a segmentation fault coredump. I knew that the command modify the /etc/system and
the /etc/vfstab.

I try to modify both manually, commenting the lines with
bootlist (/etc/system) and modifying then line in vfstab to a traditional / fs.

But I want to know more about metaroot.

Thanks. Hugo.

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....

greetings Pre�y

I was looking to demirroring nor to mirroring.

Thanks.

Note: I was solved de problem.

read to fast....
sorry
but I also know this answer.... :wink:

follow the purple rabbit:

bye bye