Dmitry Sorokin wrote:
Thanks for the update Robert.
Currently I have failed zpool with slog missing, which I was unable to
recover, although I was able to find out what the GUID was for the slog
device (below is the uotput of zpool import command).
I couldn’t compile logfix binary either, so I ran out of any ideas of
how I can recover this zpool.
So for now it just sits there untouched.
This proposed improvement to zfs is definetely a hope for me.
When do you think it’ll be implemented (roughly – this year, early next
year….) and would I be able to import this pool at it’s current version
22 (snv_129)?
Dmitry,
I can't comment on when this will be available but I can tell you that
it will work with version 22. This requires that you have a pool that is
running a minimum of version 19.
Thanks,
George
[r...@storage ~]# zpool import
pool: tank
id: 1346464136813319526
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: http://www.sun.com/msg/ZFS-8000-EY
config:
tank UNAVAIL missing device
raidz2-0 ONLINE
c4t0d0 ONLINE
c4t1d0 ONLINE
c4t2d0 ONLINE
c4t3d0 ONLINE
c4t4d0 ONLINE
c4t5d0 ONLINE
c4t6d0 ONLINE
c4t7d0 ONLINE
[r...@storage ~]#
Bets regards,
Dmitry
*From:* zfs-discuss-boun...@opensolaris.org
[mailto:zfs-discuss-boun...@opensolaris.org] *On Behalf Of *Robert Milkowski
*Sent:* Wednesday, July 28, 2010 7:12 PM
*To:* ZFS Discussions
*Subject:* [zfs-discuss] Fwd: zpool import despite missing log
[PSARC/2010/292Self Review]
fyi
--
Robert Milkowski
http://milek.blogspot.com
-------- Original Message --------
*Subject: *
zpool import despite missing log [PSARC/2010/292 Self Review]
*Date: *
Mon, 26 Jul 2010 08:38:22 -0600
*From: *
Tim Haley <tim.ha...@oracle.com> <mailto:tim.ha...@oracle.com>
*To: *
psarc-...@sun.com <mailto:psarc-...@sun.com>
*CC: *
zfs-t...@sun.com <mailto:zfs-t...@sun.com>
I am sponsoring the following case for George Wilson. Requested binding
is micro/patch. Since this is a straight-forward addition of a command
line option, I think itqualifies for self review. If an ARC member
disagrees, let me know and I'll convert to a fast-track.
Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI
This information is Copyright (c) 2010, Oracle and/or its affiliates.
All rights reserved.
1. Introduction
1.1. Project/Component Working Name:
zpool import despite missing log
1.2. Name of Document Author/Supplier:
Author: George Wilson
1.3 Date of This Document:
26 July, 2010
4. Technical Description
OVERVIEW:
ZFS maintains a GUID (global unique identifier) on each device and
the sum of all GUIDs of a pool are stored into the ZFS uberblock.
This sum is used to determine the availability of all vdevs
within a pool when a pool is imported or opened. Pools which
contain a separate intent log device (e.g. a slog) will fail to
import when that device is removed or is otherwise unavailable.
This proposal aims to address this particular issue.
PROPOSED SOLUTION:
This fast-track introduce a new command line flag to the
'zpool import' sub-command. This new option, '-m', allows
pools to import even when a log device is missing. The contents
of that log device are obviously discarded and the pool will
operate as if the log device were offlined.
MANPAGE DIFFS:
zpool import [-o mntopts] [-p property=value] ... [-d dir | -c
cachefile]
- [-D] [-f] [-R root] [-n] [-F] -a
+ [-D] [-f] [-m] [-R root] [-n] [-F] -a
zpool import [-o mntopts] [-o property=value] ... [-d dir | -c
cachefile]
- [-D] [-f] [-R root] [-n] [-F] pool |id [newpool]
+ [-D] [-f] [-m] [-R root] [-n] [-F] pool |id [newpool]
zpool import [-o mntopts] [ -o property=value] ... [-d dir |
- -c cachefile] [-D] [-f] [-n] [-F] [-R root] -a
+ -c cachefile] [-D] [-f] [-m] [-n] [-F] [-R root] -a
Imports all pools found in the search directories.
Identical to the previous command, except that all pools
+ -m
+
+ Allows a pool to import when there is a missing log device
EXAMPLES:
1). Configuration with a single intent log device:
# zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
c7t0d0 ONLINE 0 0 0
logs
c5t0d0 ONLINE 0 0 0
errors: No known data errors
# zpool import tank
The devices below are missing, use '-m' to import the pool anyway:
c5t0d0 [log]
cannot import 'tank': one or more devices is currently unavailable
# zpool import -m tank
# zpool status tank
pool: tank
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas
exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-2Q
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
c7t0d0 ONLINE 0 0 0
logs
1693927398582730352 UNAVAIL 0 0 0 was
/dev/dsk/c5t0d0
errors: No known data errors
2). Configuration with mirrored intent log device:
# zpool add tank log mirror c5t0d0 c5t1d0
zr...@diskmonster:/dev/dsk# zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
c7t0d0 ONLINE 0 0 0
logs
mirror-1 ONLINE 0 0 0
c5t0d0 ONLINE 0 0 0
c5t1d0 ONLINE 0 0 0
errors: No known data errors
# zpool import 429789444028972405
The devices below are missing, use '-m' to import the pool anyway:
mirror-1 [log]
c5t0d0
c5t1d0
# zpool import -m tank
# zpool status tank
pool: tank
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas
exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-2Q
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
c7t0d0 ONLINE 0 0 0
logs
mirror-1 UNAVAIL 0 0 0
insufficient replicas
46385995713041169 UNAVAIL 0 0 0 was
/dev/dsk/c5t0d0
13821442324672734438 UNAVAIL 0 0 0 was
/dev/dsk/c5t1d0
errors: No known data errors
6. Resources and Schedule
6.4. Steering Committee requested information
6.4.1. Consolidation C-team Name:
ON
6.5. ARC review type: Automatic
6.6. ARC Exposure: open
_______________________________________________
opensolaris-arc mailing list
opensolaris-...@opensolaris.org <mailto:opensolaris-...@opensolaris.org>
------------------------------------------------------------------------
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss