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: Richard Elling
Date: Sun, 2 May 2010 10:57:07 -0700
On May 2, 2010, at 10:27 AM, Jan Riechers wrote:

> On Sun, May 2, 2010 at 3:51 PM, Jan Riechers <jan.riechers@xxxxxxxxxxxxxx> 
> wrote:
> 
> 
> 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
> Is there a chance to fix this pool?
>  
> 
> I managed to put back the old partition table/slice setup - since zdb showed 
> some outdated pool on s2 - when I got back the correct slice setup - I could 
> simply use c6t5d0s0 as rpool root.
> The mirrored disk was never really bootable and the mirror somehow broken. Is 
> there an official howto for setting up a mirror for the rpool?

ZFS Administration Guide.
http://hub.opensolaris.org/bin/view/Community+Group+zfs/docs
 -- richard

ZFS storage and performance consulting at http://www.RichardElling.com





_______________________________________________
zfs-discuss mailing list
zfs-discuss@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

<Prev in Thread] Current Thread [Next in Thread>