metadb question

From: Yura Pismerov (ypismerov@tucows.com)
Date: Wed Jul 02 2003 - 21:31:55 EDT


I've made a mistake and initially create just on metadb replica on a
metadb slice (on each mirrored disk).
man metadb says "All replicas that are located on the same slice must
be created at the same time." So I figured I can not just add one more
replica to the same slice.
So the question is, if I can just delete the metadb from one of the
submirrors and re-create it with more replicas ? Can it be done on the
fly ? Will the system survive with just one replica for the time I
re-create them ? Theoretically it should because it is the point of
having redundant metadb, but I want to make sure.
Second question. If I do it (re-creating the metadb with more slices)
successfully on one of the submirrors, I guess I can repeat it on the
second one, right ? In this case, do I have to do anything else in
between the procedures so the newly created replicas would get in sync
with the existing (old one) before I destroy the old one ? Or they get
in sync instantly upon the creation ?

Just to clarify, here is what I currently have:

# metadb
        flags first blk block count
     a m p luo 16 8192
/dev/dsk/c1t0d0s6
     a p luo 16 8192
/dev/dsk/c1t1d0s6

I want to destroy all the replicas on the 2nd partition (2nd disk) using
metadb -d c1t1d0s6.
Then I want to re-create 2 or 3 replicas on that slice (metadb -a -c2
c1t1d0s6).
Would it work without a problem ? If yes, can I just do the same for the
first drive or I need to do something else before that ?

TIA.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:42 EDT