zfs-discuss@opensolaris.org
[Top] [All Lists]

Re: [zfs-discuss] rpool gone after zpool detach

Subject: Re: [zfs-discuss] rpool gone after zpool detach
From: Jan Riechers
Date: Sun, 2 May 2010 06:51:17 -0700


On Sun, May 2, 2010 at 6:06 AM, Roy Sigurd Karlsbakk <roy@xxxxxxxxxxxxx> wrote:
----- "Jan Riechers" <jan.riechers@xxxxxxxxxxxxxx> skrev:
I am using a mirrored system pool on 2 80G drives - however I was only using 40G since I thought I might use the rest for something else. ZFS Time Slider was complaining the pool was filled for 90% and I decided to increase pool size.
What I did was a zpool detach of one of the mirrored hdds and increased the partition size to 100% with fdisk. When I wanted to reattach the hdd, system complained about an IO error and it hang.
Now the rpool is gone on both drives (I also tried to find it via zpool import booting from USB - without success). Is there any chance I can recover the lost rpool? And what did I do wrong (except for not having a backup first)?

_______________________________________________
zfs-discuss mailing list
zfs-discuss@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
What error messages do you get? Please give more info


Hi roy I'm not sure what the error message said in detail - however I cannot boot anymore since grub won't find the pool. However looking with zdb -l It finds at least on of the hdds 2 labels (the other which I didn't touch shows no label):
pfexec zdb -l /dev/dsk/c6t5d0s2
------------------------------
--------------
LABEL 0
--------------------------------------------
    version: 18
    name: 'rpool'
    state: 0
    txg: 0
    pool_guid: 17429073124083573908
    hostid: 13566520
    hostname: 'osol-nas'
    top_guid: 15021298441528940815
    guid: 15339324379626264985
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 15021298441528940815
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 27
        ashift: 9
        asize: 20994326528
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 15372633529864631274
            path: '/dev/dsk/c8d0s0'
            devid: 'id1,cmdk@AST9808211A=____________3LF2038R/a'
            phys_path: '/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0:a'
            whole_disk: 0
            DTL: 453
        children[1]:
            type: 'disk'
            id: 1
            guid: 15339324379626264985
            path: '/dev/dsk/c7t0d0p1'
            devid: 'id1,sd@f00cb418f4bac5b7c0002b60a0000/r'
            phys_path: '/pci@0,0/pci8086,27cc@1d,7/storage@8/disk@0,0:r'
            whole_disk: 0
            DTL: 451
    create_txg: 0
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 18
    name: 'rpool'
    state: 0
    txg: 0
    pool_guid: 17429073124083573908
    hostid: 13566520
    hostname: 'osol-nas'
    top_guid: 15021298441528940815
    guid: 15339324379626264985
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 15021298441528940815
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 27
        ashift: 9
        asize: 20994326528
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 15372633529864631274
            path: '/dev/dsk/c8d0s0'
            devid: 'id1,cmdk@AST9808211A=____________3LF2038R/a'
            phys_path: '/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0:a'
            whole_disk: 0
            DTL: 453
        children[1]:
            type: 'disk'
            id: 1
            guid: 15339324379626264985
            path: '/dev/dsk/c7t0d0p1'
            devid: 'id1,sd@f00cb418f4bac5b7c0002b60a0000/r'
            phys_path: '/pci@0,0/pci8086,27cc@1d,7/storage@8/disk@0,0:r'
            whole_disk: 0
            DTL: 451
    create_txg: 0
--------------------------------------------
LABEL 2
--------------------------------------------
failed to unpack label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3

Is there a chance to fix this pool?
 
_______________________________________________
zfs-discuss mailing list
zfs-discuss@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
<Prev in Thread] Current Thread [Next in Thread>