Bug #3659

zdb -R causes assertion failure for raidz vdev

Added by Max Bruning about 1 year ago. Updated about 1 year ago.

Status:New Start date:2013-03-26
Priority:Normal Due date:
Assignee:sham pavman % Done:

20%

Category:zfs - Zettabyte File System Spent time: -
Target version:-
Difficulty:Medium Tags:needs-triage

Description

This is on SmartOS, joyent_20130307T214308Z.

Here is failure:

  1. zdb -R rzpool 0.4:20e00:8000:r
    Found vdev: /var/tmp/f5
    assertion failed for thread 0xfffffd7fff162a40, thread-id 1: vd->vdev_parent == (pio->io_vd ? pio->io_vd : pio->io_spa->spa_root_vdev), file ../../../uts/common/fs/zfs/zio.c, line 851
    Abort (core dumped) #

To reproduce:

  1. mkfile 100m /var/tmp/f1 /var/tmp/f2 /var/tmp/f3 /var/tmp/f4 /var/tmp/f5 #
  2. zpool create rzpool raidz /var/tmp/f1 /var/tmp/f2 /var/tmp/f3 /var/tmp/f4 /var/tmp/f5 #

Run the attached DTrace script. It will show vdev:offset:size returns from vdev_raidz_map_alloc().

  1. ./raidz.d

In another window:

  1. dd if=/usr/dict/words of=/rzpool/foo bs=128k count=1
    1+0 records in
    1+0 records out #

In the window running the raidz script, you'll see something like:

cols = 5, firstdatacol = 1
3:20e00:8000
4:20e00:8000
0:21000:8000
1:21000:8000
2:21000:8000

So the 128k block is striped across 4 of the "drives", with parity at 3:20e00:8000.

I used the first data column in the above output to get the bug.

On Solaris 11.1, this works fine. The output should be the first 32k of /rzpool/foo,
which should be identical to the first 32k of /usr/dict/words.

raidz.d (1.2 kB) Max Bruning, 03/26/2013 08:31 pm

History

Updated by sham pavman about 1 year ago

  • Assignee set to sham pavman
  • % Done changed from 0 to 20

Updated by sham pavman about 1 year ago

I'm not able to reproduce this issue.
I am running on OI-151a7

Updated by Max Bruning about 1 year ago

Hi Sham Pavman,

Any chance you can try something newer than the ancient OI-151a7?
The bug is reproducible on both SmartOS and on Omnios

Regards,
max

Also available in: Atom PDF