Project

General

Profile

Actions

Bug #4932

open

vdev incorrectly expanding when last mirror child promoted to top-level vdev

Added by Andrew Barnes over 9 years ago. Updated over 9 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2014-06-20
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

With ZFS, if the smaller of 2 different sized child vdev's of a mirrored vdev is detached, and the pool has the autoexpand=off, as the remaining larger vdev is promoted to a top level vdev, it fails to retain the asize of the original top level mirror vdev and therefore partially autoexpands.

This partially autoexpanded state leaves the new vdev too large to re-mirror by adding the smaller vdev back in, and the pool fails to utilize the space until next imported.

If the autoexpand property is set to on, the child vdev grows in size after it has been promoted to a top level vdev as expected.

This was identified on zfsonlinux and found to be present on Illumos ( looks to effect all OpenZFS implementations ).

Details and test case against different platforms can be found here:

[[https://github.com/zfsonlinux/zfs/pull/2386]]

Have created a fix which has been reviewed by George Wilson, working on a testrunner script to test for the issue so will email both out for review shortly.


Files

test-1208.omnios.txt (3.76 KB) test-1208.omnios.txt Test results detailing problem Andrew Barnes, 2014-06-20 12:04 PM
Actions

Also available in: Atom PDF