metainit: hostname: stale databases

metainit: hostname: stale databases

Post by Sverre Larsso » Fri, 21 Feb 2003 00:17:58



Hi all ....

I have a problem wich I'm quite unsurtain how to fix atm.
On a Sol7 machine - running mirror of OS disks - one of the main disks got
corrupted. In fact I didnt notice this at first - so by a remote restart it
simply would not boot. I then went to the machine and realized what had
happened - uh ..... I know - I know :-)

But - ok - since I had no replacement disk avail - I swapped the corrupt
disk from the corrupt one (no - I had'nt made dual boot alternatives) -
booted by cdrom into signle-user - commented out the loading of metadisk
from /etc/system and edited the vfstab to use the single disk again. This
went fine - even though I forgot some small things like those files
controlling the metadatabase (mddb.cf, md.tab etc)

Ok - now - I'm in the situation that I've put in the replacement disk - and
have partitioned it like the working one. So - well - since I now have a
more or less "clean" /etc/system file - I thought - well - lets create these
metadb again as if this was the initial setup. Did the "metadb -a -f -c 3
c0t0d0s7" and "metadb -a -c 3 c0t8d0s7". metadb command runs without
hitches. Fine ! - well - not quite. I then started to try to setup the
mirroring ..... and get this error: "metainit: {hostname}: stale databases"

Darn. I'm almost lost from ideas. The only one I'm now considering - but I
feel declined to try since I dont have any test-equip avail atm. is to do
the process ... kind of reversed.

boot single on cdrom.
rename the "backup" of /etc/system so all metadata info is back.
edit /etc/vfstab file to point to /dev/md/xxxx as before .....

But - well - I'm very unsurtain - since I obviously didnt do everything "by
the book" when I needed that system back up fast. (mddb.cf etc....)

Any suggestions ?

Yours, Sverre Larsson

 
 
 

metainit: hostname: stale databases

Post by Ben Taylo » Fri, 21 Feb 2003 03:52:30



> Ok - now - I'm in the situation that I've put in the replacement disk - and
> have partitioned it like the working one. So - well - since I now have a
> more or less "clean" /etc/system file - I thought - well - lets create these
> metadb again as if this was the initial setup. Did the "metadb -a -f -c 3
> c0t0d0s7" and "metadb -a -c 3 c0t8d0s7". metadb command runs without
> hitches. Fine ! - well - not quite. I then started to try to setup the
> mirroring ..... and get this error: "metainit: {hostname}: stale databases"

Unfortunately, the state database remains in the state database whether
or not it's valid.  I've been bitten by this enough times, that anytime
I do what you did, I zap all the state replicas on the root disk and
mirror. Since you basically have to start fresh with everything anyway,
I find this just another part of the procedure.

You may be able to remove the old metadb, but if not. Fix it to boot
back off the single slice, and
'dd if=/dev/null bs=1024k of=/dev/rdsk/<metadb slice>'
for all the metadb slices.

Once you start again, it should be good.  BTW, do you have any shared
disks or other data disks that you're using SDS on?

If you don't understand this, then please don't do it. :-)

Ben

 
 
 

metainit: hostname: stale databases

Post by Sverre Larsso » Fri, 21 Feb 2003 20:47:42



Quote:> You may be able to remove the old metadb, but if not. Fix it to boot
> back off the single slice, and
> 'dd if=/dev/null bs=1024k of=/dev/rdsk/<metadb slice>'
> for all the metadb slices.

Hehe .. I believe at least I do ..... :-)

What I believe you are telling me - is that I should do that for those disks
that I tried to setup - target 0 and 8 from previous thread. Sure - sounds
like a good idea. But, still - I'm a bit unsurtain about the file mddb.cf
.... should I maybe move it so that disksuite dont find it at all - and
simply recreates it ?

Quote:> Once you start again, it should be good.  BTW, do you have any shared
> disks or other data disks that you're using SDS on?

> If you don't understand this, then please don't do it. :-)

About the disks ... yeah - well - only 5 slices. /, /var, swap and /free
(and ofcourse a slice for the metadb of about 17mb) - rest is on a A1000
controller - wich will not be affected at all - if that was your Q :-)
 
 
 

1. metainit: hostname: c0t1d0s3: No such file or directory

Hi,
For some reason I am getting this error message:
metainit: sirens: c0t1d0s3: No such file or directory

I've formatted the second drive, but when I issue:
#metainit d5 1 1 c0t1d0s3 I am getting the above error.
However I can metainit d8 1 1 c0t1d0s6 ....

I've check the device path:
hostname# ls -ld /dev/dsk/c0t1d0s3
lrwxrwxrwx   1 root     root          46 May 23
12:37 /dev/dsk/c0t1d0s3 -

I really have no idea why it tells me that c0t1d0s3 doesn't exist...???

I've checked the format, verify, print and the slice is there...
3 unassigned    wm    1626 - 14608        6.24GB    (12983/0/0) 13086864

I can metainit d8 1 1 c0t1d0s6 without any problems....

Any hints?
Magda

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Not enough low memory buffers

3. Disk sets: databases always stale after reboot?

4. Solaris 7 + Ethernet Card

5. more raid fun: stale database

6. FTP Setup | Documentation ?

7. Q: metainit -a error

8. NIC problem

9. Problem with metainit

10. metainit question

11. Solstice Disksuite metainit problem

12. metainit error at bootup

13. Slow metainit operations on disksets with only 1 host