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)? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100502/db19e06e/attachment.html>
----- "Jan Riechers" <jan.riechers at googlemail.com> 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 at opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss What error messages do you get? Please give more info roy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100502/51ad723a/attachment.html>
On Sun, May 2, 2010 at 6:06 AM, Roy Sigurd Karlsbakk <roy at karlsbakk.net>wrote:> ----- "Jan Riechers" <jan.riechers at googlemail.com> 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 at opensolaris.org > 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 Icannot 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 at AST9808211A=____________3LF2038R/a'' phys_path: ''/pci at 0,0/pci-ide at 1f,1/ide at 0/cmdk at 0,0:a'' whole_disk: 0 DTL: 453 children[1]: type: ''disk'' id: 1 guid: 15339324379626264985 path: ''/dev/dsk/c7t0d0p1'' devid: ''id1,sd at f00cb418f4bac5b7c0002b60a0000/r'' phys_path: ''/pci at 0,0/pci8086,27cc at 1d,7/storage at 8/disk at 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 at AST9808211A=____________3LF2038R/a'' phys_path: ''/pci at 0,0/pci-ide at 1f,1/ide at 0/cmdk at 0,0:a'' whole_disk: 0 DTL: 453 children[1]: type: ''disk'' id: 1 guid: 15339324379626264985 path: ''/dev/dsk/c7t0d0p1'' devid: ''id1,sd at f00cb418f4bac5b7c0002b60a0000/r'' phys_path: ''/pci at 0,0/pci8086,27cc at 1d,7/storage at 8/disk at 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100502/589a2f6a/attachment.html>
On Sun, May 2, 2010 at 3:51 PM, Jan Riechers <jan.riechers at googlemail.com>wrote:> > > On Sun, May 2, 2010 at 6:06 AM, Roy Sigurd Karlsbakk <roy at karlsbakk.net>wrote: > >> ----- "Jan Riechers" <jan.riechers at googlemail.com> 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 at opensolaris.org >> 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? -- Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100502/c443816e/attachment.html>
On May 2, 2010, at 10:27 AM, Jan Riechers wrote:> On Sun, May 2, 2010 at 3:51 PM, Jan Riechers <jan.riechers at googlemail.com> wrote: > > > On Sun, May 2, 2010 at 6:06 AM, Roy Sigurd Karlsbakk <roy at karlsbakk.net> wrote: > ----- "Jan Riechers" <jan.riechers at googlemail.com> 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 at opensolaris.org > 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