Project

General

Profile

Bug #4080

zpool clear fails to clear pool

Added by Christopher Siden over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2013-08-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Analysis by George Wilson:

Yesterday I hit an issue that caused the pool to suspend. After fixing the
issue I tried to resume the I/Os by issuing a 'spool clear' on the pool. This
failed indicating the pool was suspended. It never even tried to resume the
I/Os. Investigating this failure I found this:

static void
zfs_ioctl_init(void)
{
<snip>
        zfs_ioctl_register_pool(ZFS_IOC_CLEAR, zfs_ioc_clear,
            zfs_secpolicy_config, B_TRUE, POOL_CHECK_SUSPENDED);

The fact that the clear action is checking to see if the pool is suspended is
wrong.


Related issues

Related to illumos gate - Bug #8477: Assertion failed in vdev_state_dirty(): spa_writeable(spa)ClosedEzomori Nozomu2017-07-10

Actions

Also available in: Atom PDF