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 damaged devices or data.
> > ?? see: http://www.sun.com/msg/ZFS-8000-5E
> > config:
> >
> > ?? ?? ?? ??ZP-8T-RZ1-01 ?? ?? ?? ?? ?? ?? ??FAULTED ??corrupted data
> > ?? ?? ?? ?? ??raidz1-0 ?? ?? ?? ?? ?? ?? ?? ??ONLINE
> > ?? ?? ?? ?? ?? ??12339070507640025002 ??UNAVAIL ??corrupted data
> > ?? ?? ?? ?? ?? ??/dev/lofi/5 ?? ?? ?? ?? ?? ONLINE
> > ?? ?? ?? ?? ?? ??/dev/lofi/4 ?? ?? ?? ?? ?? ONLINE
> > ?? ?? ?? ?? ?? ??/dev/lofi/3 ?? ?? ?? ?? ?? ONLINE
> > ?? ?? ?? ?? ?? ??/dev/lofi/1 ?? ?? ?? ?? ?? ONLINE
> 
> Have you also mounted the broken image as /dev/lofi/2?


Yep.  I first ran:

for foo in WCAZA1217278 WCAZA1262989 WCAZA1447179 WCAZA1583652 WCAZA1589216 ; \
do lofiadm -a $foo ; done 

(the WC* are the file names of each disk image).

root@solaris-01:/# ls -al /dev/lofi
total 21
drwxr-xr-x   7 root     root           7 Jun 14 22:06 .
drwxr-xr-x 246 root     sys          246 Jun 14 21:49 ..
lrwxrwxrwx   1 root     root          29 Jun 14 22:06 1 -> 
../../devices/pseudo/lofi@0:1
lrwxrwxrwx   1 root     root          29 Jun 14 22:06 2 -> 
../../devices/pseudo/lofi@0:2
lrwxrwxrwx   1 root     root          29 Jun 14 22:06 3 -> 
../../devices/pseudo/lofi@0:3
lrwxrwxrwx   1 root     root          29 Jun 14 22:06 4 -> 
../../devices/pseudo/lofi@0:4
lrwxrwxrwx   1 root     root          29 Jun 14 22:06 5 -> 
../../devices/pseudo/lofi@0:5

Clearly there's a disk with an incorrect label.  But how I can reconstruct
that label is a problem.

Also, there are four drives of the five-drive RAIDZ available.  Based on what
criteria does ZFS decide that it is FAULTED and not DEGRADED?  Odd.

Thanks,
Scott

ps I'm downloading OpenIndiana now.

> 
> When I try to recreate your situation, it looks like this (as
> expected), where /dev/lofi/2 is just not present:
> 
> $ lofiadm
> Block Device             File                           Options
> /dev/lofi/1              /dpool/dump/temp/watched/raid1 -
> /dev/lofi/3              /dpool/dump/temp/watched/raid3 -
> /dev/lofi/4              /dpool/dump/temp/watched/raid4 -
> 
> $ sudo zpool import -d /dev/lofi
>    pool: lpool
>      id: 12540294359519404167
>   state: DEGRADED
>  status: One or more devices are missing from the system.
>  action: The pool can be imported despite missing or damaged devices.  The
>         fault tolerance of the pool may be compromised if imported.
>    see: http://illumos.org/msg/ZFS-8000-2Q
>  config:
> 
>         lpool            DEGRADED
>           raidz1-0       DEGRADED
>             /dev/lofi/1  ONLINE
>             /dev/lofi/2  UNAVAIL  cannot open
>             /dev/lofi/3  ONLINE
>             /dev/lofi/4  ONLINE
> 
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to