Project

General

Profile

Bug #3639

zpool.cache should skip over readonly pools

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Normally we don't list pools that are imported read-only in the cache file, however you can accidentally get one into the cache file by importing and exporting a read-write pool while a read-only pool is imported:

$ zpool import -o readonly test1
$ zpool import test2
$ zpool export test2
$ zdb -C

This is a problem because if the machine reboots we import all pools in the cache file as read-write.

History

#1

Updated by Christopher Siden over 6 years ago

  • Status changed from In Progress to Closed
commit fb02ae0
Author: George Wilson <george.wilson@delphix.com>
Date:   Sun Mar 24 16:59:22 2013

    3639 zpool.cache should skip over readonly pools
    3640 want automatic devid updates
    Reviewed by: Eric Schrock <eric.schrock@delphix.com>
    Reviewed by: Adam Leventhal <ahl@delphix.com>
    Reviewed by: Basil Crow <basil.crow@delphix.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Also available in: Atom PDF