Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 22:50:22 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Martin Ranne <martin.ranne@kockumsonics.com>
Cc:        "'freebsd-fs@freebsd.org'" <freebsd-fs@FreeBSD.org>
Subject:   Re: zpool import reboots computer
Message-ID:  <4F206B0E.90102@FreeBSD.org>
In-Reply-To: <39C592E81AEC0B418EAD826FC1BBB09B25CF08@mailgate>
References:  <39C592E81AEC0B418EAD826FC1BBB09B25031D@mailgate> <4F18459F.7040309@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B252444@mailgate> <4F1858FE.7020509@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25253F@mailgate> <4F1878AC.6060704@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25284B@mailgate> <4F1AC995.7050506@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B255E15@mailgate> <4F1D75CD.6050000@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25607F@mailgate> <4F1DC398.3050502@FreeBSD.org> <39C592E81AEC0B418EAD826FC1BBB09B25CF08@mailgate>

next in thread | previous in thread | raw e-mail | index | archive | help
on 25/01/2012 18:10 Martin Ranne said the following:
> Thank you everyone who have helped me with hacking zfs. We have now been able to do an import of the pool and transfered all the data to another computer. Next step is to see if we can quickly repair the pool or just delete it and make it new again.
> 
> We hacked the functions vdev_mirror_child_select() and vdev_mirror_io_start(). In vdev_mirror_io_start() we added the code below just after the mc pointer was set in both loops.

Great!
I think that it might be useful for you to track down where and why the NULL
value sneaks into mc_vd.  Perhaps the problem is only with vdev label.

> if (mc->mc_vd == NULL) {
>     (void) printf("mc->mc_vd is NULL. Child %i\n", c);
>     continue;
> }
> 
> In vdev_mirror_child_select(), we added the code below just after the mc pointer was set.
> 
> if (mc->mc_vd == NULL) {
>     (void) printf("mc->mc_vd is NULL. Child %i\n", c);
>     mc->mc_tried = 1;
>     mc->mc_skipped = 1;
>     continue;
> }

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F206B0E.90102>