From owner-freebsd-geom@FreeBSD.ORG Mon Jan 19 11:06:58 2009 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B2241065678 for ; Mon, 19 Jan 2009 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 489338FC23 for ; Mon, 19 Jan 2009 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0JB6w5Q062963 for ; Mon, 19 Jan 2009 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0JB6vwW062959 for freebsd-geom@FreeBSD.org; Mon, 19 Jan 2009 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Jan 2009 11:06:57 GMT Message-Id: <200901191106.n0JB6vwW062959@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2009 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/130632 geom [patch] gpart(8) assert failure if used from FreeBSD L o kern/130528 geom gjournal fsck during boot o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid o bin/128398 geom [patch] glabel(8): teach geom_label to recognise gpt l f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/126902 geom [geom] [geom_label] Kernel panic during install boot o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/124294 geom [geom] gmirror(8) have inappropriate logic when workin o kern/124130 geom [gmirror] [usb] gmirror fails to start usb devices tha o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123630 geom [patch] [gmirror] gmirror doesnt allow the original dr o kern/123122 geom [geom] GEOM / gjournal kernel lock f kern/122415 geom [geom] UFS labels are being constantly created and rem o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121559 geom [patch] [geom] geom label class allows to create inacc o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120231 geom [geom] GEOM_CONCAT error adding second drive o kern/120044 geom [msdosfs] [geom] incorrect MSDOSFS label fries adminis o kern/120021 geom [geom] [panic] net-p2p/qbittorrent crashes system when o kern/119743 geom [geom] geom label for cds is keeped after dismount and f kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back p bin/110705 geom gmirror(8) control utility does not exit with correct o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry a kern/89660 geom [vinum] [patch] [panic] due to g_malloc returning null o kern/89546 geom [geom] GEOM error s kern/89102 geom [geom] [panic] panic when forced unmount FS from unplu o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. s kern/73177 geom kldload geom_* causes panic due to memory exhaustion 44 problems total. From owner-freebsd-geom@FreeBSD.ORG Tue Jan 20 17:08:32 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40A0106566C for ; Tue, 20 Jan 2009 17:08:32 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: from mail-gx0-f33.google.com (mail-gx0-f33.google.com [209.85.217.33]) by mx1.freebsd.org (Postfix) with ESMTP id 6F73C8FC12 for ; Tue, 20 Jan 2009 17:08:32 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: by gxk14 with SMTP id 14so1897652gxk.19 for ; Tue, 20 Jan 2009 09:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=kUyM6ob+G8eX87DkPvTCX6RFVPOYo4tlaZGWkIYc9w0=; b=nSDpSLEsSjRpRAa/97cnMAKE/WO6JSENVaPhaWtN+0cqZV4kQTmDP/DigD/EFUkjq+ PuBmSsSZ4D5S5YJA6qdMeokP0o7B0grBqYMSxWyk7hsb+5/cL2NCavjjGlicDxAxNOPH Lj6M/XS2Rw9U32w3lI66OUExyGWAhbV6r4P+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eSid4+I87o6hA396bPnP10oJpIZ59mnytg7SQFpINVhp5XuWsoTqon9cJ6xlDG+RIv cqV6Qy2wPHtkhecsypSOXGVCf1R8bfQbLYOE2nXK2mWaOFX6vTPf3i98Fg57tmaBn0Ij dMl78nESSksux0TkRuAH0jOByio+eH+0fvTtQ= MIME-Version: 1.0 Received: by 10.151.147.10 with SMTP id z10mr8931982ybn.102.1232470519051; Tue, 20 Jan 2009 08:55:19 -0800 (PST) Date: Tue, 20 Jan 2009 18:55:19 +0200 Message-ID: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> From: Alex Karpovic To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 17:08:33 -0000 Hello everyone, I am a long-time user of geli encryption, but just today I faced a problem, connected probably to some hardware malfunction, and I am in need of good advice now. I have a SATA drive, encrypted as whole with GELI. Booting is performed via usbflash drive. Today I tried to add an old IDE hdd, but when I turned my box on, loud clicking sound informed me that the hdd is physically broken. OK, turned computer off right after memory test, removed IDE hdd, and tried to boot as usual. However, GELI is unable to recognize my encrypted SATA now! I do bi-weekly backups, but in current situation it won't save me. I did a lot of work recently, and deadline is so near, that I cannot recreate all that is lost. Therefore, my first question is evident: taking into account the situation, is it possible that the damage is reversible? I know there's little hope, but maybe it is just a signature, which could be re-written? Second question is to feed my brain: what is the technical nature of my problem? Before that, I never expirienced a damaging of good SATA caused by attaching of bad IDE. Alex From owner-freebsd-geom@FreeBSD.ORG Tue Jan 20 21:20:53 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75EBB1065689 for ; Tue, 20 Jan 2009 21:20:53 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id 905C78FC1F for ; Tue, 20 Jan 2009 21:20:52 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id AD309456AB; Tue, 20 Jan 2009 21:58:32 +0100 (CET) Received: from localhost (chello087206045082.chello.pl [87.206.45.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id AA52E45683; Tue, 20 Jan 2009 21:58:27 +0100 (CET) Date: Tue, 20 Jan 2009 21:58:43 +0100 From: Pawel Jakub Dawidek To: Alex Karpovic Message-ID: <20090120205843.GB3819@garage.freebsd.pl> References: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 21:20:55 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 20, 2009 at 06:55:19PM +0200, Alex Karpovic wrote: > Hello everyone, >=20 > I am a long-time user of geli encryption, but just today I faced a proble= m, > connected probably to some hardware malfunction, and I am in need of good > advice now. >=20 > I have a SATA drive, encrypted as whole with GELI. Booting is performed v= ia > usbflash drive. >=20 > Today I tried to add an old IDE hdd, but when I turned my box on, loud > clicking sound informed me that the hdd is physically broken. OK, turned > computer off right after memory test, removed IDE hdd, and tried to boot = as > usual. However, GELI is unable to recognize my encrypted SATA now! Strange. Please send content of /var/run/dmesg.boot, output of geli dump , etc. Your previous /var/run/dmesg.boot would be also helpful if you can dig it up from your backups. > I do bi-weekly backups, but in current situation it won't save me. I did a > lot of work recently, and deadline is so near, that I cannot recreate all > that is lost. > Therefore, my first question is evident: taking into account the situatio= n, > is it possible that the damage is reversible? I know there's little hope, > but maybe it is just a signature, which could be re-written? > Second question is to feed my brain: what is the technical nature of my > problem? Before that, I never expirienced a damaging of good SATA caused = by > attaching of bad IDE. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFJdjsDForvXbEpPzQRAjstAKDZPHNz7sYRkf7LRvMtt8Gsy8OlQACfYxiS PALcJgHZ+UZpm0kbMYms8fo= =pGCk -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs-- From owner-freebsd-geom@FreeBSD.ORG Thu Jan 22 08:30:10 2009 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB635106567A for ; Thu, 22 Jan 2009 08:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4A5968FC0C for ; Thu, 22 Jan 2009 08:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0M8UAf9049639 for ; Thu, 22 Jan 2009 08:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0M8UApX049636; Thu, 22 Jan 2009 08:30:10 GMT (envelope-from gnats) Date: Thu, 22 Jan 2009 08:30:10 GMT Message-Id: <200901220830.n0M8UApX049636@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Yoshihiro Ota Cc: Subject: Re: kern/129245: [geom] gcache is more suitable for suffix based provider name X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yoshihiro Ota List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 08:30:11 -0000 The following reply was made to PR kern/129245; it has been noted by GNATS. From: Yoshihiro Ota To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/129245: [geom] gcache is more suitable for suffix based provider name Date: Thu, 22 Jan 2009 03:24:55 -0500 This is a multi-part message in MIME format. --Multipart=_Thu__22_Jan_2009_03_24_55_-0500_aV.gtuCgOo9pWE9w Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit This will create suffixes, i.e. md2.uzip.cache. Thanks, Hiro --Multipart=_Thu__22_Jan_2009_03_24_55_-0500_aV.gtuCgOo9pWE9w Content-Type: text/x-diff; name="gcache-naming-20090122.diff" Content-Disposition: attachment; filename="gcache-naming-20090122.diff" Content-Transfer-Encoding: 7bit Index: sys/geom/cache/g_cache.c =================================================================== RCS file: /home/ncvs/src/sys/geom/cache/g_cache.c,v retrieving revision 1.2.6.1 diff -u -r1.2.6.1 g_cache.c --- sys/geom/cache/g_cache.c 25 Nov 2008 02:59:29 -0000 1.2.6.1 +++ sys/geom/cache/g_cache.c 22 Jan 2009 08:17:38 -0000 @@ -475,11 +475,11 @@ newpp = NULL; cp = NULL; - G_CACHE_DEBUG(1, "Creating device %s.", md->md_name); + G_CACHE_DEBUG(1, "Creating device %s%s.", pp->name, G_CACHE_SUFFIX); /* Cache size is minimum 100. */ if (md->md_size < 100) { - G_CACHE_DEBUG(0, "Invalid size for device %s.", md->md_name); + G_CACHE_DEBUG(0, "Invalid size for device %s%s.", pp->name, G_CACHE_SUFFIX); return (NULL); } @@ -492,15 +492,9 @@ return (NULL); } - /* Check for duplicate unit. */ - if (g_cache_find_device(mp, (const char *)&md->md_name) != NULL) { - G_CACHE_DEBUG(0, "Provider %s already exists.", md->md_name); - return (NULL); - } - - gp = g_new_geomf(mp, md->md_name); + gp = g_new_geomf(mp, "%s%s", pp->name, G_CACHE_SUFFIX); if (gp == NULL) { - G_CACHE_DEBUG(0, "Cannot create geom %s.", md->md_name); + G_CACHE_DEBUG(0, "Cannot create geom %s%s.", pp->name, G_CACHE_SUFFIX); return (NULL); } gp->softc = NULL; /* for a moment */ @@ -524,9 +518,9 @@ gp->access = g_cache_access; gp->dumpconf = g_cache_dumpconf; - newpp = g_new_providerf(gp, "cache/%s", gp->name); + newpp = g_new_providerf(gp, "%s", gp->name); if (newpp == NULL) { - G_CACHE_DEBUG(0, "Cannot create provider cache/%s.", gp->name); + G_CACHE_DEBUG(0, "Cannot create provider %s.", gp->name); goto fail; } newpp->sectorsize = pp->sectorsize; @@ -709,7 +703,7 @@ gp = g_cache_create(mp, pp, &md, G_CACHE_TYPE_AUTOMATIC); if (gp == NULL) { - G_CACHE_DEBUG(0, "Can't create %s.", md.md_name); + G_CACHE_DEBUG(0, "Can't create %s%s.", pp->name, G_CACHE_SUFFIX); return (NULL); } return (gp); @@ -732,19 +726,13 @@ gctl_error(req, "No '%s' argument", "nargs"); return; } - if (*nargs != 2) { + if (*nargs != 1) { gctl_error(req, "Invalid number of arguments."); return; } strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); md.md_version = G_CACHE_VERSION; - name = gctl_get_asciiparam(req, "arg0"); - if (name == NULL) { - gctl_error(req, "No 'arg0' argument"); - return; - } - strlcpy(md.md_name, name, sizeof(md.md_name)); size = gctl_get_paraml(req, "size", sizeof(*size)); if (size == NULL) { @@ -771,9 +759,9 @@ /* This field is not important here. */ md.md_provsize = 0; - name = gctl_get_asciiparam(req, "arg1"); + name = gctl_get_asciiparam(req, "arg0"); if (name == NULL) { - gctl_error(req, "No 'arg1' argument"); + gctl_error(req, "No 'arg0' argument"); return; } if (strncmp(name, "/dev/", strlen("/dev/")) == 0) @@ -786,7 +774,7 @@ } gp = g_cache_create(mp, pp, &md, G_CACHE_TYPE_MANUAL); if (gp == NULL) { - gctl_error(req, "Can't create %s.", md.md_name); + gctl_error(req, "Can't create %s%s.", pp->name, G_CACHE_SUFFIX); return; } } @@ -818,13 +806,14 @@ gctl_error(req, "No 'arg0' argument"); return; } +#if 0 sc = g_cache_find_device(mp, name); if (sc == NULL) { G_CACHE_DEBUG(1, "Device %s is invalid.", name); gctl_error(req, "Device %s is invalid.", name); return; } - +#endif size = gctl_get_paraml(req, "size", sizeof(*size)); if (size == NULL) { gctl_error(req, "No '%s' argument", "size"); @@ -850,7 +839,6 @@ if (sc->sc_type != G_CACHE_TYPE_AUTOMATIC) return; - strlcpy(md.md_name, name, sizeof(md.md_name)); strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); md.md_version = G_CACHE_VERSION; if ((u_int)*size != 0) Index: sys/geom/cache/g_cache.h =================================================================== RCS file: /home/ncvs/src/sys/geom/cache/g_cache.h,v retrieving revision 1.1.6.1 diff -u -r1.1.6.1 g_cache.h --- sys/geom/cache/g_cache.h 25 Nov 2008 02:59:29 -0000 1.1.6.1 +++ sys/geom/cache/g_cache.h 22 Jan 2009 08:17:38 -0000 @@ -34,6 +34,7 @@ #define G_CACHE_CLASS_NAME "CACHE" #define G_CACHE_MAGIC "GEOM::CACHE" #define G_CACHE_VERSION 1 +#define G_CACHE_SUFFIX ".cache" #ifdef _KERNEL #define G_CACHE_TYPE_MANUAL 0 @@ -113,7 +114,6 @@ struct g_cache_metadata { char md_magic[16]; /* Magic value. */ uint32_t md_version; /* Version number. */ - char md_name[16]; /* Cache value. */ uint32_t md_bsize; /* Cache block size. */ uint32_t md_size; /* Cache size. */ uint64_t md_provsize; /* Provider's size. */ @@ -125,10 +125,9 @@ bcopy(md->md_magic, data, sizeof(md->md_magic)); le32enc(data + 16, md->md_version); - bcopy(md->md_name, data + 20, sizeof(md->md_name)); - le32enc(data + 36, md->md_bsize); - le32enc(data + 40, md->md_size); - le64enc(data + 44, md->md_provsize); + le32enc(data + 20, md->md_bsize); + le32enc(data + 24, md->md_size); + le64enc(data + 28, md->md_provsize); } static __inline void @@ -137,10 +136,9 @@ bcopy(data, md->md_magic, sizeof(md->md_magic)); md->md_version = le32dec(data + 16); - bcopy(data + 20, md->md_name, sizeof(md->md_name)); - md->md_bsize = le32dec(data + 36); - md->md_size = le16dec(data + 40); - md->md_provsize = le64dec(data + 44); + md->md_bsize = le32dec(data + 20); + md->md_size = le16dec(data + 24); + md->md_provsize = le64dec(data + 24); } #endif /* _G_CACHE_H_ */ Index: sbin/geom/class/cache/geom_cache.c =================================================================== RCS file: /home/ncvs/src/sbin/geom/class/cache/geom_cache.c,v retrieving revision 1.3.6.1 diff -u -r1.3.6.1 geom_cache.c --- sbin/geom/class/cache/geom_cache.c 25 Nov 2008 02:59:29 -0000 1.3.6.1 +++ sbin/geom/class/cache/geom_cache.c 22 Jan 2009 08:17:38 -0000 @@ -62,7 +62,7 @@ { 's', "size", &size_configure, G_TYPE_NUMBER }, G_OPT_SENTINEL }, - NULL, "[-v] [-b blocksize] [-s size] name" + NULL, "[-v] [-b blocksize] [-s size] prov" }, { "create", G_FLAG_VERBOSE | G_FLAG_LOADKLD, NULL, { @@ -70,14 +70,14 @@ { 's', "size", &size_label, G_TYPE_NUMBER }, G_OPT_SENTINEL }, - NULL, "[-v] [-b blocksize] [-s size] name prov" + NULL, "[-v] [-b blocksize] [-s size] prov" }, { "destroy", G_FLAG_VERBOSE, NULL, { { 'f', "force", NULL, G_TYPE_BOOL }, G_OPT_SENTINEL }, - NULL, "[-fv] name ..." + NULL, "[-fv] prov ..." }, { "dump", 0, cache_main, G_NULL_OPTS, NULL, "prov ..." @@ -88,17 +88,17 @@ { 's', "size", &size_label, G_TYPE_NUMBER }, G_OPT_SENTINEL }, - NULL, "[-v] [-b blocksize] [-s size] name prov" + NULL, "[-v] [-b blocksize] [-s size] prov" }, { "reset", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, NULL, - "[-v] name ..." + "[-v] prov ..." }, { "stop", G_FLAG_VERBOSE, NULL, { { 'f', "force", NULL, G_TYPE_BOOL }, G_OPT_SENTINEL }, - NULL, "[-fv] name ..." + NULL, "[-fv] prov ..." }, G_CMD_SENTINEL }; @@ -138,21 +138,19 @@ intmax_t val; nargs = gctl_get_int(req, "nargs"); - if (nargs != 2) { + if (nargs != 1) { gctl_error(req, "Invalid number of arguments."); return; } strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); md.md_version = G_CACHE_VERSION; - name = gctl_get_ascii(req, "arg0"); - strlcpy(md.md_name, name, sizeof(md.md_name)); val = gctl_get_intmax(req, "blocksize"); md.md_bsize = val; val = gctl_get_intmax(req, "size"); md.md_size = val; - name = gctl_get_ascii(req, "arg1"); + name = gctl_get_ascii(req, "arg0"); md.md_provsize = g_get_mediasize(name); if (md.md_provsize == 0) { fprintf(stderr, "Can't get mediasize of %s: %s.\n", @@ -204,7 +202,6 @@ printf(" Magic string: %s\n", md->md_magic); printf(" Metadata version: %u\n", (u_int)md->md_version); - printf(" Device name: %s\n", md->md_name); printf(" Block size: %u\n", (u_int)md->md_bsize); printf(" Cache size: %u\n", (u_int)md->md_size); printf(" Provider size: %ju\n", (uintmax_t)md->md_provsize); --Multipart=_Thu__22_Jan_2009_03_24_55_-0500_aV.gtuCgOo9pWE9w-- From owner-freebsd-geom@FreeBSD.ORG Thu Jan 22 15:01:15 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C12AA106564A for ; Thu, 22 Jan 2009 15:01:15 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: from mail-gx0-f33.google.com (mail-gx0-f33.google.com [209.85.217.33]) by mx1.freebsd.org (Postfix) with ESMTP id 26A328FC0C for ; Thu, 22 Jan 2009 15:01:15 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: by gxk14 with SMTP id 14so2359778gxk.19 for ; Thu, 22 Jan 2009 07:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=n3F8q589wk1wdN7xrYIFtVunCXuv09zCTcu7BiFPB2A=; b=CZXHz1tsHu2XSFxqe2T6aF5b4vlGaP6vijlhEvpN1a6j4sJ+lScotkLbibjsHA6EuE iuxNcKiZbsRU04AVUDy4KalJqFrfpSCLOsZ7UdjF7kcYy0ewuVIGmZtSkOGRAZ/xkqgp OIepCvUPYMxhO8197Ol8GpDBJAOSbOWcOLGmg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hQWugeKgNa3j2wVYcMjM2PmdDA+kFJlRx2IRANmfKxIP7oqxykATktK2C29slxnS7W gFEYul0JWAxJzwgk7cEFgfucciKQV1ibN2UMMoJRIG8WRauTwX/ExII3PT7+sH6dZ/9i tI58DycT1kNL/hrnbCf/YRaFdFSx9lNXTu1CU= MIME-Version: 1.0 Received: by 10.151.110.14 with SMTP id n14mr1461261ybm.175.1232636474466; Thu, 22 Jan 2009 07:01:14 -0800 (PST) In-Reply-To: <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> References: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> <20090120205843.GB3819@garage.freebsd.pl> <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> Date: Thu, 22 Jan 2009 17:01:14 +0200 Message-ID: <700ff07a0901220701p238b0a6epf3f8510c1757d1be@mail.gmail.com> From: Alex Karpovic To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 15:01:16 -0000 Witam Pawel! Thank you for response. Below are two dmesgs (current and one taken few months ago). Comparing them, one can see that the disk became smaller for about 2 megs, maybe, simply reports wrong size: 476940MB 476938MB Thus, it is quite natural, that GELI sees no metadata, and "geli dump" reports invalid metadata. I am still unable to understand what happened, but currently it doesn't look as software problem. New question: if I recover just last sector, but not others, than it should be possible to decipher all non-lost sectors - am I right? ==================== of September Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE #1: Wed Sep 24 03:32:46 EEST 2008 head@:/usr/obj/usr/src/sys/GIRAFFE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2712.37-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 real memory = 2146304000 (2046 MB) avail memory = 2092191744 (1995 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 hptrr: HPT RocketRAID controller driver v1.1 (Sep 24 2008 03:32:33) cryptosoft0: on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7fde0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xdf00-0xdf7f mem 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at device 0.0 on pci1 pcib2: at device 10.0 on pci0 pci2: on pcib2 re0: port 0xee00-0xeeff mem 0xfdfff000-0xfdffffff irq 18 at device 0.0 on pci2 re0: Using 2 MSI messages miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1f:d0:34:7e:c7 re0: [FILTER] re0: [FILTER] atapci0: port 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ohci0: mem 0xfe02e000-0xfe02efff irq 16 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at device 19.2 on pci0 ohci2: [GIANT-LOCKED] ohci2: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at device 19.3 on pci0 ohci3: [GIANT-LOCKED] ohci3: [ITHREAD] usb3: OHCI version 1.0, legacy support usb3: SMM does not respond, resetting usb3: on ohci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ohci4: mem 0xfe02a000-0xfe02afff irq 18 at device 19.4 on pci0 ohci4: [GIANT-LOCKED] ohci4: [ITHREAD] usb4: OHCI version 1.0, legacy support usb4: SMM does not respond, resetting usb4: on ohci4 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered ehci0: mem 0xfe029000-0xfe0290ff irq 19 at device 19.5 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb5: EHCI version 1.0 usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 usb5: on ehci0 usb5: USB revision 2.0 uhub5: on usb5 uhub5: 10 ports with 10 removable, self powered pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] pci0: at device 20.2 (no driver attached) isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 fwohci0: mem 0xfddff000-0xfddff7ff,0xfddf8000-0xfddfbfff irq 22 at device 14.0 on pci3 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:63:ec:1f:00:00:1d:7d fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:63:ec:00:1d:7d fwe0: Ethernet address: 02:63:ec:00:1d:7d dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x151c000 fwip0: on firewire0 fwip0: Firewire address: 00:63:ec:1f:00:00:1d:7d @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounters tick every 1.000 msec hptrr: no controller detected. firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR at ata0-master UDMA33 ad1: 76350MB at ata0-slave UDMA100 ad5: 476940MB at ata2-slave UDMA33 SMP: AP CPU #1 Launched! GEOM_LABEL: Label for provider acd0 is iso9660/CDROM. Enter passphrase for ad5: GEOM_ELI: Device ad5.eli created. GEOM_ELI: Encryption: AES-CBC 256 GEOM_ELI: Integrity: HMAC/SHA1 GEOM_ELI: Crypto: software Trying to mount root from ufs:/dev/ad1s1a WARNING: ZFS is considered to be an experimental feature in FreeBSD. ZFS filesystem version 6 ZFS storage pool version 6 ================================================= =================================================Today's Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE-p2 #2 r187533: Wed Jan 21 23:08:53 EET 2009 root@giraffe:/usr/obj/usr/src/sys/GIRAFFE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2712.83-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 real memory = 2146304000 (2046 MB) avail memory = 2083717120 (1987 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 cryptosoft0: on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7fde0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xdf00-0xdf7f mem 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at device 0.0 on pci1 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pcib2: at device 10.0 on pci0 pci2: on pcib2 re0: port 0xee00-0xeeff mem 0xfdfff000-0xfdffffff irq 18 at device 0.0 on pci2 re0: turning off MSI enable bit. re0: Chip rev. 0x38000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1f:d0:34:7e:c7 re0: [FILTER] atapci0: port 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ohci0: mem 0xfe02e000-0xfe02efff irq 16 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at device 19.2 on pci0 ohci2: [GIANT-LOCKED] ohci2: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at device 19.3 on pci0 ohci3: [GIANT-LOCKED] ohci3: [ITHREAD] usb3: OHCI version 1.0, legacy support usb3: SMM does not respond, resetting usb3: on ohci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ohci4: mem 0xfe02a000-0xfe02afff irq 18 at device 19.4 on pci0 ohci4: [GIANT-LOCKED] ohci4: [ITHREAD] usb4: OHCI version 1.0, legacy support usb4: SMM does not respond, resetting usb4: on ohci4 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered ehci0: mem 0xfe029000-0xfe0290ff irq 19 at device 19.5 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb5: EHCI version 1.0 usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 usb5: on ehci0 usb5: USB revision 2.0 uhub5: on usb5 uhub5: 10 ports with 10 removable, self powered pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] pcm0: mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 pcm0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 fwohci0: mem 0xfddff000-0xfddff7ff,0xfddf8000-0xfddfbfff irq 22 at device 14.0 on pci3 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:63:ec:1f:00:00:1d:7d fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwip0: on firewire0 fwip0: Firewire address: 00:63:ec:1f:00:00:1d:7d @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:63:ec:00:1d:7d fwe0: Ethernet address: 02:63:ec:00:1d:7d dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x194c000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 cpu0: on acpi0 powernow0: on cpu0 device_attach: powernow0 attach returned 6 cpu1: on acpi0 powernow1: on cpu1 device_attach: powernow1 attach returned 6 pmtimer0 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR at ata0-master UDMA33 ad1: 76350MB at ata0-slave UDMA100 ad6: 610480MB at ata3-master SATA300 ad8: 476938MB at ata4-master SATA300 pcm0: pcm0: SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad1s1a This module (opensolaris) contains code covered by the Common Development and Distribution License (CDDL) see http://opensolaris.org/os/licensing/opensolaris_license/ WARNING: ZFS is considered to be an experimental feature in FreeBSD. spa_config_load:90[1]: Cannot open /boot/zfs/zpool.cache. ZFS filesystem version 6 zvol_init:794[1]: ZVOL Initialized. ZFS storage pool version 6 WARNING: /old was not properly dismounted ================================ From owner-freebsd-geom@FreeBSD.ORG Thu Jan 22 16:35:31 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6AD4106566B; Thu, 22 Jan 2009 16:35:31 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.246]) by mx1.freebsd.org (Postfix) with ESMTP id 1EBF68FC1F; Thu, 22 Jan 2009 16:35:31 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: by ag-out-0708.google.com with SMTP id 33so595691agc.3 for ; Thu, 22 Jan 2009 08:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=2RBcCV/iRZvJYa9jkfubHRwGSaq6sXqErYtiwG+5cMY=; b=kNfAGhC4Lr3tKqk8Oa3pp/p6j8bdAx+w+cn7+soWTRKyWQq7kLrq220+aqqtcx193k lgwvpjDOBnZpHdSaH2w/L1DPGi9Njfv6tzgTUW9aws/teQV3uDDUHaGzUlwlGw6NrM1t HurHlyuh/NXTuMZumTzzuVIWm5X/J289KQZcQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xnBdBjK8YgUegAkygb6AbWCgq8cg0I6xPc6XlLAccNTsGb+voLchiPDIIktlbuggy0 Iex1c3oZ8lqljz58D9kPUkFkdCM38HLxwkkHAo4ByRkPrlnkbL18bX4lwKdf/AwG1+PX P0L2j7eqi4AoTjQcZ4pyVde0ZIO+HZihehyig= MIME-Version: 1.0 Received: by 10.150.137.8 with SMTP id k8mr1412765ybd.32.1232642130492; Thu, 22 Jan 2009 08:35:30 -0800 (PST) In-Reply-To: <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> References: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> <20090120205843.GB3819@garage.freebsd.pl> <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> Date: Thu, 22 Jan 2009 18:35:30 +0200 Message-ID: <700ff07a0901220835u59a2a965l6da1503d4dcea3fe@mail.gmail.com> From: Alex Karpovic To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 16:35:32 -0000 Subject line: "GELI problem" is denounced. Most likely, it is Host Protected Area was activated suddenly, for unknown reason, and there's nothing to blame on FreeBSD, nor GELI in particular. It should be something wrong with either my motherboard (GA-MA770-DS3) or HDD (or static electricity, cosmic rays and so on). The fate of data is now contained in question: whether it was written something to those sectors or it was just SET MAX ADDRESS ATA command. And the only question remains related to GELI is the one I asked in previous message: Is it possible to decipher non-destructed sectors, if last sector recovery will be successful? I believe it should, but everyone is welcomed to support my opinion :) On Thu, Jan 22, 2009 at 5:00 PM, Alex Karpovic wrote: > Witam Pawel! > > Thank you for response. Below are two dmesgs (current and one taken few > months ago). Comparing them, one can see that the disk became smaller for > about 2 megs, maybe, simply reports wrong size: > 476940MB > 476938MB > > Thus, it is quite natural, that GELI sees no metadata, and "geli dump" > reports invalid metadata. > > I am still unable to understand what happened, but currently it doesn't > look as software problem. > > New question: if I recover just last sector, but not others, than it should > be possible to decipher all non-lost sectors - am I right? > > > > ==================== of September > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-RELEASE #1: Wed Sep 24 03:32:46 EEST 2008 > head@:/usr/obj/usr/src/sys/GIRAFFE > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2712.37-MHz 686-class > CPU) > Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 > > Features=0x178bfbff > Features2=0x2001 > AMD Features=0xea500800 > AMD Features2=0x11f > Cores per package: 2 > real memory = 2146304000 (2046 MB) > avail memory = 2092191744 (1995 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > hptrr: HPT RocketRAID controller driver v1.1 (Sep 24 2008 03:32:33) > cryptosoft0: on motherboard > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7fde0000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > acpi_hpet0: iomem 0xfed00000-0xfed003ff on > acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 900 > cpu0: on acpi0 > powernow0: on cpu0 > cpu1: on acpi0 > powernow1: on cpu1 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 2.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xdf00-0xdf7f mem > 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at > device 0.0 on pci1 > pcib2: at device 10.0 on pci0 > pci2: on pcib2 > re0: port 0xee00-0xeeff mem > 0xfdfff000-0xfdffffff irq 18 at device 0.0 on pci2 > re0: Using 2 MSI messages > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > re0: Ethernet address: 00:1f:d0:34:7e:c7 > re0: [FILTER] > re0: [FILTER] > atapci0: port > 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem > 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > ohci0: mem 0xfe02e000-0xfe02efff irq 16 at > device 19.0 on pci0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0, legacy support > usb0: SMM does not respond, resetting > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at > device 19.1 on pci0 > ohci1: [GIANT-LOCKED] > ohci1: [ITHREAD] > usb1: OHCI version 1.0, legacy support > usb1: SMM does not respond, resetting > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at > device 19.2 on pci0 > ohci2: [GIANT-LOCKED] > ohci2: [ITHREAD] > usb2: OHCI version 1.0, legacy support > usb2: SMM does not respond, resetting > usb2: on ohci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at > device 19.3 on pci0 > ohci3: [GIANT-LOCKED] > ohci3: [ITHREAD] > usb3: OHCI version 1.0, legacy support > usb3: SMM does not respond, resetting > usb3: on ohci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ohci4: mem 0xfe02a000-0xfe02afff irq 18 at > device 19.4 on pci0 > ohci4: [GIANT-LOCKED] > ohci4: [ITHREAD] > usb4: OHCI version 1.0, legacy support > usb4: SMM does not respond, resetting > usb4: on ohci4 > usb4: USB revision 1.0 > uhub4: on usb4 > uhub4: 2 ports with 2 removable, self powered > ehci0: mem 0xfe029000-0xfe0290ff irq 19 > at device 19.5 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb5: EHCI version 1.0 > usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 > usb5: on ehci0 > usb5: USB revision 2.0 > uhub5: on usb5 > uhub5: 10 ports with 10 removable, self powered > pci0: at device 20.0 (no driver attached) > atapci1: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 > ata0: on atapci1 > ata0: [ITHREAD] > pci0: at device 20.2 (no driver attached) > isab0: at device 20.3 on pci0 > isa0: on isab0 > pcib3: at device 20.4 on pci0 > pci3: on pcib3 > fwohci0: mem > 0xfddff000-0xfddff7ff,0xfddf8000-0xfddfbfff irq 22 at device 14.0 on pci3 > fwohci0: [FILTER] > fwohci0: OHCI version 1.10 (ROM=0) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 00:63:ec:1f:00:00:1d:7d > fwohci0: Phy 1394a available S400, 3 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 02:63:ec:00:1d:7d > fwe0: Ethernet address: 02:63:ec:00:1d:7d > dcons_crom0: on firewire0 > dcons_crom0: bus_addr 0x151c000 > fwip0: on firewire0 > fwip0: Firewire address: 00:63:ec:1f:00:00:1d:7d @ 0xfffe00000000, S400, > maxrec 2048 > sbp0: on firewire0 > fwohci0: Initiate bus reset > fwohci0: BUS reset > fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > sio0: [FILTER] > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: [ITHREAD] > psm0: model IntelliMouse, device ID 3 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > ppbus0: on ppc0 > ppbus0: [ITHREAD] > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ppc0: [GIANT-LOCKED] > ppc0: [ITHREAD] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > Timecounters tick every 1.000 msec > hptrr: no controller detected. > firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) > firewire0: bus manager 0 (me) > acd0: DMA limited to UDMA33, device found non-ATA66 cable > acd0: DVDR at ata0-master UDMA33 > ad1: 76350MB at ata0-slave UDMA100 > ad5: 476940MB at ata2-slave UDMA33 > SMP: AP CPU #1 Launched! > GEOM_LABEL: Label for provider acd0 is iso9660/CDROM. > Enter passphrase for ad5: > GEOM_ELI: Device ad5.eli created. > GEOM_ELI: Encryption: AES-CBC 256 > GEOM_ELI: Integrity: HMAC/SHA1 > GEOM_ELI: Crypto: software > Trying to mount root from ufs:/dev/ad1s1a > WARNING: ZFS is considered to be an experimental feature in FreeBSD. > ZFS filesystem version 6 > ZFS storage pool version 6 > ================================================= > > > =================================================Today's > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.1-RELEASE-p2 #2 r187533: Wed Jan 21 23:08:53 EET 2009 > root@giraffe:/usr/obj/usr/src/sys/GIRAFFE > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2712.83-MHz 686-class > CPU) > Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 > > Features=0x178bfbff > Features2=0x2001 > AMD Features=0xea500800 > AMD Features2=0x11f > Cores per package: 2 > real memory = 2146304000 (2046 MB) > avail memory = 2083717120 (1987 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > cryptosoft0: on motherboard > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7fde0000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > acpi_hpet0: iomem 0xfed00000-0xfed003ff on > acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 900 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 2.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xdf00-0xdf7f mem > 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at > device 0.0 on pci1 > nvidia0: on vgapci0 > vgapci0: child nvidia0 requested pci_enable_busmaster > vgapci0: child nvidia0 requested pci_enable_io > nvidia0: [GIANT-LOCKED] > nvidia0: [ITHREAD] > pcib2: at device 10.0 on pci0 > pci2: on pcib2 > re0: Ethernet> port 0xee00-0xeeff mem 0xfdfff000-0xfdffffff irq 18 at device 0.0 > on pci2 > re0: turning off MSI enable bit. > re0: Chip rev. 0x38000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > re0: Ethernet address: 00:1f:d0:34:7e:c7 > re0: [FILTER] > atapci0: port > 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem > 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 > atapci0: [ITHREAD] > atapci0: AHCI Version 01.10 controller with 4 ports detected > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > ata4: on atapci0 > ata4: [ITHREAD] > ata5: on atapci0 > ata5: [ITHREAD] > ohci0: mem 0xfe02e000-0xfe02efff irq 16 at > device 19.0 on pci0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0, legacy support > usb0: SMM does not respond, resetting > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at > device 19.1 on pci0 > ohci1: [GIANT-LOCKED] > ohci1: [ITHREAD] > usb1: OHCI version 1.0, legacy support > usb1: SMM does not respond, resetting > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at > device 19.2 on pci0 > ohci2: [GIANT-LOCKED] > ohci2: [ITHREAD] > usb2: OHCI version 1.0, legacy support > usb2: SMM does not respond, resetting > usb2: on ohci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at > device 19.3 on pci0 > ohci3: [GIANT-LOCKED] > ohci3: [ITHREAD] > usb3: OHCI version 1.0, legacy support > usb3: SMM does not respond, resetting > usb3: on ohci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ohci4: mem 0xfe02a000-0xfe02afff irq 18 at > device 19.4 on pci0 > ohci4: [GIANT-LOCKED] > ohci4: [ITHREAD] > usb4: OHCI version 1.0, legacy support > usb4: SMM does not respond, resetting > usb4: on ohci4 > usb4: USB revision 1.0 > uhub4: on usb4 > uhub4: 2 ports with 2 removable, self powered > ehci0: mem 0xfe029000-0xfe0290ff irq 19 > at device 19.5 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb5: EHCI version 1.0 > usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 > usb5: on ehci0 > usb5: USB revision 2.0 > uhub5: on usb5 > uhub5: 10 ports with 10 removable, self powered > pci0: at device 20.0 (no driver attached) > atapci1: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 > ata0: on atapci1 > ata0: [ITHREAD] > pcm0: mem > 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 > pcm0: [ITHREAD] > isab0: at device 20.3 on pci0 > isa0: on isab0 > pcib3: at device 20.4 on pci0 > pci3: on pcib3 > fwohci0: mem > 0xfddff000-0xfddff7ff,0xfddf8000-0xfddfbfff irq 22 at device 14.0 on pci3 > fwohci0: [FILTER] > fwohci0: OHCI version 1.10 (ROM=0) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 00:63:ec:1f:00:00:1d:7d > fwohci0: Phy 1394a available S400, 3 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > fwip0: on firewire0 > fwip0: Firewire address: 00:63:ec:1f:00:00:1d:7d @ 0xfffe00000000, S400, > maxrec 2048 > sbp0: on firewire0 > fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 02:63:ec:00:1d:7d > fwe0: Ethernet address: 02:63:ec:00:1d:7d > dcons_crom0: on firewire0 > dcons_crom0: bus_addr 0x194c000 > fwohci0: Initiate bus reset > fwohci0: BUS reset > fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > sio0: [FILTER] > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: [ITHREAD] > psm0: model IntelliMouse, device ID 3 > cpu0: on acpi0 > powernow0: on cpu0 > device_attach: powernow0 attach returned 6 > cpu1: on acpi0 > powernow1: on cpu1 > device_attach: powernow1 attach returned 6 > pmtimer0 on isa0 > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > ppbus0: on ppc0 > ppbus0: [ITHREAD] > plip0: on ppbus0 > plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ppc0: [GIANT-LOCKED] > ppc0: [ITHREAD] > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) > firewire0: bus manager 0 (me) > acd0: DMA limited to UDMA33, device found non-ATA66 cable > acd0: DVDR at ata0-master UDMA33 > ad1: 76350MB at ata0-slave UDMA100 > ad6: 610480MB at ata3-master SATA300 > ad8: 476938MB at ata4-master SATA300 > pcm0: > pcm0: > SMP: AP CPU #1 Launched! > Trying to mount root from ufs:/dev/ad1s1a > This module (opensolaris) contains code covered by the > Common Development and Distribution License (CDDL) > see http://opensolaris.org/os/licensing/opensolaris_license/ > WARNING: ZFS is considered to be an experimental feature in FreeBSD. > spa_config_load:90[1]: Cannot open /boot/zfs/zpool.cache. > ZFS filesystem version 6 > zvol_init:794[1]: ZVOL Initialized. > ZFS storage pool version 6 > WARNING: /old was not properly dismounted > ================================ > > > From owner-freebsd-geom@FreeBSD.ORG Thu Jan 22 19:12:17 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5083106564A for ; Thu, 22 Jan 2009 19:12:17 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B9E188FC0C for ; Thu, 22 Jan 2009 19:12:16 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA08553; Thu, 22 Jan 2009 21:00:31 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4978C24D.9040706@icyb.net.ua> Date: Thu, 22 Jan 2009 21:00:29 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-geom@freebsd.org, Marcel Moolenaar Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: gpart bootcode and /boot/boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 19:12:18 -0000 Sorry for being lazy - what is "gpart bootcode" equivalent of bsdlabel -B [-b boot] ? -- Andriy Gapon From owner-freebsd-geom@FreeBSD.ORG Fri Jan 23 08:38:44 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8FAE106566B for ; Fri, 23 Jan 2009 08:38:44 +0000 (UTC) (envelope-from nobody@d-o-w.ru) Received: from d-o-w.ru (client135-178.cmk.ru [195.182.135.178]) by mx1.freebsd.org (Postfix) with ESMTP id 662CE8FC16 for ; Fri, 23 Jan 2009 08:38:44 +0000 (UTC) (envelope-from nobody@d-o-w.ru) Received: by d-o-w.ru (Postfix, from userid 65534) id 5505262588; Fri, 23 Jan 2009 11:20:34 +0300 (MSK) To: freebsd-geom@freebsd.org From: DIRECT Lmtd UK MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Message-Id: <20090123082034.5505262588@d-o-w.ru> Date: Fri, 23 Jan 2009 11:20:34 +0300 (MSK) Subject: SLASH SALES:Get Blackberry Storm/N95/E90/N93 or Apple iPhone 16GB X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gadgets.direct.lmtd@googlemail.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 08:38:44 -0000 SLASH SALES:Get Blackberry Storm/N95/E90/N93 or Apple iPhone 16GB Sony Ericsson X1 - $400 USD SONY PS3 (60GB) = $300 USD Apple iPhone 16GB............$250 USD Blackberry Bold..............$300 USD Blackberry Storm.............$350 USD Samsung Omnia i900 (16GB)....$470 USD HTC Touch Pro................$400 USD HTC Diamond .................$400 USD Nokia N96....................$350 USD Nokia N85....................$350 USD Nokia E71....................$300 USD Nokia E66....................$300 USD Nokia E90....................$350 USD Motorola V3i D&G......$250 USD Nokia N95......... ...$320 USD Nokia N93......... ...$260 USD Nokia N93i ...........$280 USD Nokia N70 ............$160 USD Nokia N72 ............$175 USD Nokia N73 ............$250 USD Nokia N80 ............$200 USD Nokia N90 ............$200 USD Nokia N91 ............$200 USD We are offering 2 free Units for Any 5 Units order Mixed or Single Model in our CLOSEOUT OFFER All Phones,Brand New,Tri- Band,Quadband with Complete Accessories plus Intl Warranty . Alan Pepple Gadgets DIRECT Lmtd UK 6 Greenhill Crescent, Watford Business Park,Watford,WD18 8RF.UNITED KINGDOM E-mail- gadgets.direct.lmtd@googlemail.com http://www.gadgetsukdirect.com From owner-freebsd-geom@FreeBSD.ORG Fri Jan 23 09:47:29 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 467DD106564A for ; Fri, 23 Jan 2009 09:47:29 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id 8FEA88FC12 for ; Fri, 23 Jan 2009 09:47:28 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 1116B456B1; Fri, 23 Jan 2009 10:47:26 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id E305545685; Fri, 23 Jan 2009 10:47:21 +0100 (CET) Date: Fri, 23 Jan 2009 10:47:39 +0100 From: Pawel Jakub Dawidek To: Alex Karpovic Message-ID: <20090123094739.GB3188@garage.freebsd.pl> References: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> <20090120205843.GB3819@garage.freebsd.pl> <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> <700ff07a0901220835u59a2a965l6da1503d4dcea3fe@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NDin8bjvE/0mNLFQ" Content-Disposition: inline In-Reply-To: <700ff07a0901220835u59a2a965l6da1503d4dcea3fe@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 09:47:29 -0000 --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 22, 2009 at 06:35:30PM +0200, Alex Karpovic wrote: > Subject line: "GELI problem" is denounced. > Most likely, it is Host Protected Area was activated suddenly, for unknown > reason, and there's nothing to blame on FreeBSD, nor GELI in particular. = It > should be something wrong with either my motherboard (GA-MA770-DS3) or HDD > (or static electricity, cosmic rays and so on). >=20 > The fate of data is now contained in question: whether it was written > something to those sectors or it was just SET MAX ADDRESS ATA command. >=20 > And the only question remains related to GELI is the one I asked in previ= ous > message: Is it possible to decipher non-destructed sectors, if last sect= or > recovery will be successful? I believe it should, but everyone is welcomed > to support my opinion :) Yes, it is. Sectors are chained together (using CBC) only within geli provider sector (-s option). --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFJeZI6ForvXbEpPzQRAui1AJkBTiPwqEUTzqi2Ug3Mdlv/inwVTQCg8d9H gIL+ejlRDkihRwizGIwefJ8= =xgzc -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ-- From owner-freebsd-geom@FreeBSD.ORG Fri Jan 23 16:52:55 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3111106564A; Fri, 23 Jan 2009 16:52:55 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: from mail-gx0-f33.google.com (mail-gx0-f33.google.com [209.85.217.33]) by mx1.freebsd.org (Postfix) with ESMTP id 4546C8FC23; Fri, 23 Jan 2009 16:52:55 +0000 (UTC) (envelope-from alekar2009@gmail.com) Received: by gxk14 with SMTP id 14so2562129gxk.19 for ; Fri, 23 Jan 2009 08:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4FuKLTWXSLJ03XMjhAt4YaO4fAPEmGatVH6sZch/8RU=; b=kCJTip0FI8/k3e0lAb7/Vq/ls/ZQnV/QtjO0DrLT1RF0sHN5UqVXx8k6kdPotAD66t qLzdKkJ9iI2VVtYWua+P6Md4soo246eNSqrHIRAJ61e/rUL4KhryyrW1WrzrtOOaBMXt fRGIoqIgnKiLtXSt8caRXL7oYoVCRmJdClg6c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LDAWmtWzEIw1H6NugKE8b7bWTZtyPiROz4MuEgPOzwQFN4uT+eUiQhsK7HCjYYbETh 2tOgAUaTDXlEEHX7Y9909ydXFCXUOUvPeBg6XHDcY3wCCqSfEUwLtfiVcVQLC4WuNe86 UF6qZ9o5Suil2lVh21kVoWFjbgw5Gyntqye7A= MIME-Version: 1.0 Received: by 10.150.138.8 with SMTP id l8mr3825234ybd.123.1232729574758; Fri, 23 Jan 2009 08:52:54 -0800 (PST) In-Reply-To: <20090123094608.GA3188@garage.freebsd.pl> References: <700ff07a0901200855oaf6eaccpf2693bcf791269e6@mail.gmail.com> <20090120205843.GB3819@garage.freebsd.pl> <700ff07a0901220700p34d01347vbd1f03cde519bd6b@mail.gmail.com> <20090123094608.GA3188@garage.freebsd.pl> Date: Fri, 23 Jan 2009 18:52:54 +0200 Message-ID: <700ff07a0901230852k796b38ak971886648b74cdb6@mail.gmail.com> From: Alex Karpovic To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: GELI problem... Oh, I mean disaster X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 16:52:55 -0000 > Verify that you connected disk back to the same contoller, to the same > port, etc. and that contoller configuration is the same as before. Why? GELI is hardware independent, isn't it?