From owner-freebsd-geom@FreeBSD.ORG Sun Apr 10 07:19:45 2011 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 B22F1106564A; Sun, 10 Apr 2011 07:19:45 +0000 (UTC) (envelope-from uncle@devio.us) Received: from wolfman.devio.us (devious-1-pt.tunnel.tserv12.mia1.ipv6.he.net [IPv6:2001:470:4:2a5::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6AE8FC08; Sun, 10 Apr 2011 07:19:45 +0000 (UTC) Received: by wolfman.devio.us (Postfix, from userid 3773) id 024641A90DB; Sun, 10 Apr 2011 03:19:45 -0400 (EDT) Date: Sun, 10 Apr 2011 03:19:44 -0400 From: Nick Ulen To: Pawel Jakub Dawidek Message-ID: <20110410071944.GA29223@wolfman.devio.us> References: <20110409082516.GA25384@wolfman.devio.us> <20110409192507.GB2330@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110409192507.GB2330@garage.freebsd.pl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-geom@freebsd.org Subject: Re: syntax for geli with using device's label(glabel) 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: Sun, 10 Apr 2011 07:19:45 -0000 On Sat, Apr 09, 2011 at 09:25:07PM +0200, Pawel Jakub Dawidek wrote: > On Sat, Apr 09, 2011 at 04:25:16AM -0400, Nick Ulen wrote: > > Greetings, > > The problem is that I can't configure provider which must be attached on > > boot with using key and device's label. > > > > glabel list da0s2 > > Geom name: da0s2 > > Providers: > > 1. Name: label/tank > > > > I got "syntax error",when I used strings as below in loader.conf: > > > > geli_label/tank_keyfile0_load="YES" > > geli_label/tank_keyfile0_type="label/tank:geli_keyfile0" > > geli_label/tank_keyfile0_name="/boot/keys/label_tank.key" > > > > Which is correct syntax for loader.conf? > > Variable name should be meaningless, it should work with: > > geli_label_tank_keyfile0_load="YES" > geli_label_tank_keyfile0_type="label/tank:geli_keyfile0" > geli_label_tank_keyfile0_name="/boot/keys/label_tank.key" > > -- > Pawel Jakub Dawidek http://www.wheelsystems.com > FreeBSD committer http://www.FreeBSD.org > Am I Evil? Yes, I Am! http://yomoli.com Now all work fine.Thanks. Regards. Nick. From owner-freebsd-geom@FreeBSD.ORG Mon Apr 11 11:07:01 2011 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 9C85F106566B for ; Mon, 11 Apr 2011 11:07:01 +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 8C5078FC12 for ; Mon, 11 Apr 2011 11:07:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3BB71PN025879 for ; Mon, 11 Apr 2011 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3BB70Av025876 for freebsd-geom@FreeBSD.org; Mon, 11 Apr 2011 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Apr 2011 11:07:00 GMT Message-Id: <201104111107.p3BB70Av025876@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, 11 Apr 2011 11:07:01 -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 kern/155994 geom [geom] Long "Suspend time" when reading large files fr o kern/154226 geom [geom] GEOM label does not change when you modify them o kern/152609 geom [geli] geli onetime on gzero panics o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/144905 geom [geom][geom_part] panic in gpart_ctlreq when unpluggin o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134922 geom [gmirror] [panic] kernel panic when use fdisk on disk o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o kern/132273 geom glabel(8): [patch] failing on journaled partition o kern/131353 geom [geom] gjournal(8) kernel lock 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 f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore 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/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o 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 f 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 o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to 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 f kern/88601 geom [geli] geli cause kernel panic under heavy disk usage o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o bin/86388 geom [geom] [geom_part] periodic(8) daily should backup gpa 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. 54 problems total. From owner-freebsd-geom@FreeBSD.ORG Tue Apr 12 21:33:12 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 9C7EA106566C; Tue, 12 Apr 2011 21:33:12 +0000 (UTC) Date: Tue, 12 Apr 2011 21:33:12 +0000 From: Alexander Best To: freebsd-geom@freebsd.org Message-ID: <20110412213312.GA56078@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: partition not accessible via UFS label (/dev/ufs/*) 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, 12 Apr 2011 21:33:12 -0000 hi there, i've mailed freebsd-geom@ once beforehand about this issue, but didn't get an answer. so i'm trying it again. could somebody help me fix the following situation? otaku% tunefs -p / tunefs: POSIX.1e ACLs: (-a) disabled tunefs: NFSv4 ACLs: (-N) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) disabled tunefs: soft update journaling: (-j) disabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) disabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) rootfs otaku% gpart show => 34 488394988 ada0 GPT (232G) 34 128 1 freebsd-boot (64K) 162 16777216 2 freebsd-swap (8.0G) 16777378 471617644 3 freebsd-ufs (224G) => 34 1953525101 ada1 GPT (931G) 34 20971520 1 freebsd-swap (10G) 20971554 4194304 2 freebsd-ufs (2.0G) 25165858 1928359277 3 freebsd-ufs (919G) otaku% glabel status Name Status Components label/boot N/A ada0p1 gptid/e52df583-e446-11de-bb92-000fb58207c8 N/A ada0p1 label/swap N/A ada0p2 iso9660/Akte X Staffel 5/6 DVD 11 N/A cd0 label/swapfs N/A ada1p1 ufs/varfs N/A ada1p2 ufs/usrfs N/A ada1p3 otaku% gpart status Name Status Components ada0p1 OK ada0 ada1p1 OK ada1 i can access my root fs only via /dev/ada0p3 and not via its UFS label (dev/ufs/rootfs). since gpart reports my partition layout is fine and i'm not getting any warnings during boot up i'm a bit lost here. thanks in advance. alex ps: i'm running a very recent HEAD on ARCH=amd64. -- a13x From owner-freebsd-geom@FreeBSD.ORG Tue Apr 12 21:48:26 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id B0000106566B; Tue, 12 Apr 2011 21:48:26 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 1136A14E09A; Tue, 12 Apr 2011 21:48:25 +0000 (UTC) Message-ID: <4DA4C8A4.30900@FreeBSD.org> Date: Wed, 13 Apr 2011 01:48:20 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alexander Best References: <20110412213312.GA56078@freebsd.org> In-Reply-To: <20110412213312.GA56078@freebsd.org> X-Enigmail-Version: 1.1.2 OpenPGP: id=10C8A17A Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1A3C769FA8CD023BBB8AAA2B" Cc: freebsd-geom@freebsd.org Subject: Re: partition not accessible via UFS label (/dev/ufs/*) 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, 12 Apr 2011 21:48:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1A3C769FA8CD023BBB8AAA2B Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 13.04.2011 01:33, Alexander Best wrote: > i can access my root fs only via /dev/ada0p3 and not via its UFS label > (dev/ufs/rootfs). since gpart reports my partition layout is fine and i= 'm not > getting any warnings during boot up i'm a bit lost here. When you open ada0p3 provider for writing GEOM does spoiling and all attached to it consumers will self-destruct. --=20 WBR, Andrey V. Elsukov --------------enig1A3C769FA8CD023BBB8AAA2B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNpMipAAoJEAHF6gQQyKF6wzYH/3p/OiOJkKJK1xQ28IeMblZT fmfTSwGaz5KOy6gxtJtNbKyB/pyW+rKdICjEM03a5yCu4581EkNRKMOp3GOntLki 8QAYrqopLV61OOWDAO2/h+8PSgY6pzcyU06RFJr+Vt8EMUC/UAaM90c85q2SWrEA AfkH/zaarsfpfzGhGb8kXtRD8AZwoT+mQbtkDICxC+SRUh7V5zlRC6AZCQ8mx6Ji 22joXljQVWB+TwT4EhnIfPaGB3QSY9RhxwrrD2+GPwROy3kGDnQZLhAh1LFJBoyH 2znnfnEHND0tRf2G26wBpPpEKwK/m2UofA1fvgkBqrliYjno7nLNzU0qZ3lWuTg= =8S7E -----END PGP SIGNATURE----- --------------enig1A3C769FA8CD023BBB8AAA2B-- From owner-freebsd-geom@FreeBSD.ORG Tue Apr 12 22:47:41 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B11E81065675; Tue, 12 Apr 2011 22:47:41 +0000 (UTC) Date: Tue, 12 Apr 2011 22:47:41 +0000 From: Alexander Best To: "Andrey V. Elsukov" Message-ID: <20110412224741.GA65548@freebsd.org> References: <20110412213312.GA56078@freebsd.org> <4DA4C8A4.30900@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DA4C8A4.30900@FreeBSD.org> Cc: freebsd-geom@freebsd.org Subject: Re: partition not accessible via UFS label (/dev/ufs/*) 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, 12 Apr 2011 22:47:41 -0000 On Wed Apr 13 11, Andrey V. Elsukov wrote: > On 13.04.2011 01:33, Alexander Best wrote: > > i can access my root fs only via /dev/ada0p3 and not via its UFS label > > (dev/ufs/rootfs). since gpart reports my partition layout is fine and i'm not > > getting any warnings during boot up i'm a bit lost here. > > When you open ada0p3 provider for writing GEOM does spoiling and all > attached to it consumers will self-destruct. thank you very much. when i posted this issue a few weeks ago i was defenately hitting a bug in geom, because the ufs label wouldn't even show up in single- user mode with / mounted ro. the problem occured after i booted ubuntu from a dvd and was then getting a corrupted gpt entry. i used 'gpart recover' which then showed up some extra space available. after doing 'gpart resize', mounting /dev/ufs/rootf did no longer work and i had to switch to mounting /dev/ada0p3. it seems the issue has been fixed since then. mounting /dev/ufs/rootfs now works again and GEOM doesn't destroy the comsumers. thanks for pointing out the obvious. ;) cheers. alex > > -- > WBR, Andrey V. Elsukov > -- a13x From owner-freebsd-geom@FreeBSD.ORG Wed Apr 13 11:59:02 2011 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 28C0F1065672 for ; Wed, 13 Apr 2011 11:59:02 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id D2B0C8FC17 for ; Wed, 13 Apr 2011 11:59:01 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q9yUH-0006Oi-Ai for freebsd-geom@freebsd.org; Wed, 13 Apr 2011 13:43:57 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2011 13:43:57 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2011 13:43:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Wed, 13 Apr 2011 13:43:43 +0200 Lines: 30 Message-ID: References: <20110412213312.GA56078@freebsd.org> <4DA4C8A4.30900@FreeBSD.org> <20110412224741.GA65548@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <20110412224741.GA65548@freebsd.org> X-Enigmail-Version: 1.1.2 Subject: Re: partition not accessible via UFS label (/dev/ufs/*) 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: Wed, 13 Apr 2011 11:59:02 -0000 On 13/04/2011 00:47, Alexander Best wrote: > thank you very much. when i posted this issue a few weeks ago i was defenately > hitting a bug in geom, because the ufs label wouldn't even show up in single- > user mode with / mounted ro. the problem occured after i booted ubuntu from a > dvd and was then getting a corrupted gpt entry. i used 'gpart recover' which > then showed up some extra space available. after doing 'gpart resize', mounting > /dev/ufs/rootf did no longer work and i had to switch to mounting /dev/ada0p3. This also happens when using growfs(8) or anything which can make the size of the file system not equal the size of the media (geom) on which it is located. This is a side-effect of checking for file system corruption, I'm not sure that removing the check would be a good thing to do. 84 /* Check for magic and make sure things are the right size */ 85 if (fs->fs_magic == FS_UFS1_MAGIC && fs->fs_fsize > 0 && 86 pp->mediasize / fs->fs_fsize == fs->fs_old_size) { 87 /* Valid UFS1. */ 88 } else if (fs->fs_magic == FS_UFS2_MAGIC && fs->fs_fsize > 0 && 89 pp->mediasize / fs->fs_fsize == fs->fs_size) { 90 /* Valid UFS2. */ 91 } else { 92 g_free(fs); 93 continue; 94 }