hast: can't restore after disk failure

Dmitry Morozovsky marck at rinet.ru
Wed Jun 12 09:07:46 UTC 2013


On Wed, 12 Jun 2013, Mikolaj Golub wrote:

[snip a bit]

> > nope, it does:
> > 
> > root at cthulhu3:/# diskinfo /dev/ada1p1
> > /dev/ada1p1     512     999654686720    1952450560      0       1048576 1936954 16      63
> > root at cthulhu3:/# diskinfo /dev/ada0p1
> > /dev/ada0p1     512     999653638144    1952448512      0       1048576 1936952 16      63

Argh! Somehow ada1p1 got created in slightly different size (though bigger than 
necessary, and it was the source of the problem.

recreating it with gpart fixes the problem.

> Hm, looking in the source where this error is generated:
> 
>   cthulhu3 hastd[14379]: [d1] (secondary) Unable to read metadata from /dev/ada1p1: No such file or directory.
> 
> it looks like hastd successfully read metadata from disk but failed to
> parse it (did not found an entry). This usually happens when metadata
> is not initialized by `hastctl create`.

Well, error messages definitely could be improved :)

-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-fs mailing list