Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Gregg Wonderly
On Jun 16, 2012, at 10:13 AM, Scott Aitken wrote: > On Sat, Jun 16, 2012 at 09:58:40AM -0500, Gregg Wonderly wrote: >> >> On Jun 16, 2012, at 9:49 AM, Scott Aitken wrote: >> >>> On Sat, Jun 16, 2012 at 09:09:53AM -0500, Gregg Wonderly wrote: Use 'dd' to replicate as much of lofi/2 as you c

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Gregg Wonderly
On Jun 16, 2012, at 9:49 AM, Scott Aitken wrote: > On Sat, Jun 16, 2012 at 09:09:53AM -0500, Gregg Wonderly wrote: >> Use 'dd' to replicate as much of lofi/2 as you can onto another device, and >> then >> cable that into place? >> >> It looks like you just need to put a functioning, working, b

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Jim Klimov
2012-06-16 19:13, Scott Aitken wrote: Given I am working with images, it's hard to put just anything "in place" of lofi/2. ZFS scans all of the files in the directory for ZFS labels, so just replacing lofi/2 with an empty file (for example) just means ZFS skips it, which is the same result as de

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Scott Aitken
On Sat, Jun 16, 2012 at 09:58:40AM -0500, Gregg Wonderly wrote: > > On Jun 16, 2012, at 9:49 AM, Scott Aitken wrote: > > > On Sat, Jun 16, 2012 at 09:09:53AM -0500, Gregg Wonderly wrote: > >> Use 'dd' to replicate as much of lofi/2 as you can onto another device, > >> and then > >> cable that i

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Scott Aitken
On Sat, Jun 16, 2012 at 09:09:53AM -0500, Gregg Wonderly wrote: > Use 'dd' to replicate as much of lofi/2 as you can onto another device, and > then > cable that into place? > > It looks like you just need to put a functioning, working, but not correct > device, in that slot so that it will imp

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Gregg Wonderly
Use 'dd' to replicate as much of lofi/2 as you can onto another device, and then cable that into place? It looks like you just need to put a functioning, working, but not correct device, in that slot so that it will import and then you can 'zpool replace' the new disk into the pool perhaps?

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-16 Thread Scott Aitken
On Sat, Jun 16, 2012 at 08:54:05AM +0200, Stefan Ring wrote: > > when you say remove the device, I assume you mean simply make it unavailable > > for import (I can't remove it from the vdev). > > Yes, that's what I meant. > > > root@openindiana-01:/mnt# zpool import -d /dev/lofi > > ??pool: ZP-8T

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-15 Thread Stefan Ring
> when you say remove the device, I assume you mean simply make it unavailable > for import (I can't remove it from the vdev). Yes, that's what I meant. > root@openindiana-01:/mnt# zpool import -d /dev/lofi >  pool: ZP-8T-RZ1-01 >    id: 9952605666247778346 >  state: FAULTED > status: One or more

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-15 Thread Scott Aitken
On Fri, Jun 15, 2012 at 10:54:34AM +0200, Stefan Ring wrote: > >> Have you also mounted the broken image as /dev/lofi/2? > > > > Yep. > > Wouldn't it be better to just remove the corrupted device? This worked > just fine in my case. > Hi Stefan, when you say remove the device, I assume you mean

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-15 Thread Stefan Ring
>> Have you also mounted the broken image as /dev/lofi/2? > > Yep. Wouldn't it be better to just remove the corrupted device? This worked just fine in my case. ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/l

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-15 Thread Scott Aitken
On Fri, Jun 15, 2012 at 07:37:50AM +0200, Stefan Ring wrote: > > root@solaris-01:/mnt# ??zpool import -d /dev/lofi > > ??pool: ZP-8T-RZ1-01 > > ?? ??id: 9952605666247778346 > > ??state: FAULTED > > status: One or more devices contains corrupted data. > > action: The pool cannot be imported due to d

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-14 Thread Stefan Ring
> The situation now is I have dd'd the drives onto a NAS.  These images are > shared via NFS to a VM running Oracle Solaris 11 11/11 X86. You should probably also try to use a current OpenIndiana or some other Illumos distribution. ___ zfs-discuss mailin

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-14 Thread Stefan Ring
> root@solaris-01:/mnt#  zpool import -d /dev/lofi >  pool: ZP-8T-RZ1-01 >    id: 9952605666247778346 >  state: FAULTED > status: One or more devices contains corrupted data. > action: The pool cannot be imported due to damaged devices or data. >   see: http://www.sun.com/msg/ZFS-8000-5E > config:

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-14 Thread Scott Aitken
On Thu, Jun 14, 2012 at 09:56:43AM +1000, Daniel Carosone wrote: > On Tue, Jun 12, 2012 at 03:46:00PM +1000, Scott Aitken wrote: > > Hi all, > > Hi Scott. :-) > > > I have a 5 drive RAIDZ volume with data that I'd like to recover. > > Yeah, still.. > > > I tried using Jeff Bonwick's labelfix bi

Re: [zfs-discuss] Recovery of RAIDZ with broken label(s)

2012-06-13 Thread Daniel Carosone
On Tue, Jun 12, 2012 at 03:46:00PM +1000, Scott Aitken wrote: > Hi all, Hi Scott. :-) > I have a 5 drive RAIDZ volume with data that I'd like to recover. Yeah, still.. > I tried using Jeff Bonwick's labelfix binary to create new labels but it > carps because the txg is not zero. Can you provid