> >> > I am trying to create a new raid1 to replace the one that failed. I
> >> > want to do it from scratch, but the old one seem not to want to die:
> >> > # metadb
> >> > # metaclear -a
> >> > metaclear: biostat: d6: stale databases
> >> > #
> >> > Why am I getting this stala database error if there are no databases
> >> > left (AFAIK)?
> >> I would presume becuase the configuration is stored in the
> >> meta state database. If you try to remove items w/o the
> >> configuration, how would metaclear know what to kill? Someone
> >> please correct me if I am wrong.
> > Idf that is the case, what could I do? I could try creating new
> > database replicas, but that does not seem to take me very far:
> > # metadb -a -f -c2 c2t0d0s0 c2t0d0s1
> > # metadb
> > flags first blk block count
> > a u 16 1034 /dev/dsk/c2t0d0s0
> > a u 1050 1034 /dev/dsk/c2t0d0s0
> > a u 16 1034 /dev/dsk/c2t0d0s1
> > a u 1050 1034 /dev/dsk/c2t0d0s1
> > # metaclear -a
> > metaclear: biostat: d6: stale databases
> > #
> If I was required to restore from this situation, I
> would do the following:
> 1) Save the configuration
I just tarred/gzipped the entire /etc directory ;)
Quote:> 2) Mount the devices as c0t0d0sX and reboot
c0t0d0sX? I am confused here; isn't that the first (boot for me)
disk?
Quote:> 3) Create a new set of state databases
I thought that was what I tried to do above.
Quote:> 4) Mirror the devices from scratch
Well, as soon as I start building the mirrors, it was nagging me
about d6. So, I have been, since then, trying to make it forget about
the old databases so I can start fresh. =(
Quote:> There may be an easier method depending on how things
> are currently oriented, but this will allow you to
> start fresh. You might want to save the output of
> "metastat -p" in case this happens again.
--
Mauricio raub-kudria-com
(if you need to email me, use this address =)