From owner-freebsd-geom@FreeBSD.ORG Sun Nov 29 21:44:52 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 5F7BC1065693 for ; Sun, 29 Nov 2009 21:44:52 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id E05C28FC14 for ; Sun, 29 Nov 2009 21:44:51 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4BDFE456B1; Sat, 28 Nov 2009 09:58:05 +0100 (CET) Received: from localhost (pdawidek.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 8878945CDC; Sat, 28 Nov 2009 09:58:00 +0100 (CET) Date: Sat, 28 Nov 2009 09:57:59 +0100 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20091128085759.GW1567@garage.freebsd.pl> References: <4B106C51.7070905@jrv.org> <1785.1259398314@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HFNNDGBA8bk+zEXz" Content-Disposition: inline In-Reply-To: <1785.1259398314@critter.freebsd.dk> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.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=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: "James R. Van Artsdalen" , freebsd-geom@freebsd.org Subject: Re: help adding device serial numbers to /dev namespace? 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, 29 Nov 2009 21:44:52 -0000 --HFNNDGBA8bk+zEXz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 28, 2009 at 08:51:54AM +0000, Poul-Henning Kamp wrote: > In message <4B106C51.7070905@jrv.org>, "James R. Van Artsdalen" writes: >=20 > >Can anyone give me suggestions on how to implement putting disk driver > >serial numbers in the /dev namespace, much as UFS ID's are put there now? >=20 > Something like, or possibly g_label. This should be very simple to do, I think I even done that in the past, but before we do it, I want trasz@ to commit his patch to selectively turn on and off submodules in glabel. Way too much stuff is created by glabel these days. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --HFNNDGBA8bk+zEXz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFLEOYXForvXbEpPzQRAjEyAKDvEuuEEa6H5QjbGB/2gUu7eaaDbQCgzd24 VcFkTBAMsRUe0Ye5I9a3d5U= =zUyM -----END PGP SIGNATURE----- --HFNNDGBA8bk+zEXz-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 04:43:08 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 1E9CA106568D; Mon, 30 Nov 2009 04:43:08 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E9DEA8FC12; Mon, 30 Nov 2009 04:43:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAU4h7rR078538; Mon, 30 Nov 2009 04:43:07 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAU4h7Dk078534; Mon, 30 Nov 2009 04:43:07 GMT (envelope-from linimon) Date: Mon, 30 Nov 2009 04:43:07 GMT Message-Id: <200911300443.nAU4h7Dk078534@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/141011: [geli] Encrypted root, geli password at boot; enter key never released 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, 30 Nov 2009 04:43:08 -0000 Old Synopsis: Encrypted root, geli password at boot; enter key never released New Synopsis: [geli] Encrypted root, geli password at boot; enter key never released Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Mon Nov 30 04:42:32 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=141011 From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 11:06: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 4825C106568F for ; Mon, 30 Nov 2009 11:06:53 +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 355848FC1A for ; Mon, 30 Nov 2009 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAUB6rwO043427 for ; Mon, 30 Nov 2009 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAUB6qOO043425 for freebsd-geom@FreeBSD.org; Mon, 30 Nov 2009 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Nov 2009 11:06:52 GMT Message-Id: <200911301106.nAUB6qOO043425@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, 30 Nov 2009 11:06:53 -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/141011 geom [geli] Encrypted root, geli password at boot; enter ke o kern/140352 geom [geom] gjournal + glabel not working o kern/139847 geom [geom_mbr] load/unload causes system to hang 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/134044 geom [geom] gmirror(8) overwrites fs with stale data from r 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 f kern/132242 geom [gmirror] gmirror.ko fails to fully initialize o kern/131353 geom [geom] gjournal(8) kernel lock p docs/130548 geom [patch] gjournal(8) man page is missing sysctls 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 f 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 f kern/124294 geom [geom] gmirror(8) have inappropriate logic when workin 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 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/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass 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 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 o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113885 geom [gmirror] [patch] improved gmirror balance algorithm 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 o 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 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 54 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 12:33:16 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 8C904106566C for ; Mon, 30 Nov 2009 12:33:16 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id C06BE8FC1A for ; Mon, 30 Nov 2009 12:33:15 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 4B50B39824; Mon, 30 Nov 2009 14:33:12 +0200 (SAST) Date: Mon, 30 Nov 2009 14:33:12 +0200 From: John Hay To: freebsd-geom@freebsd.org Message-ID: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: strange geom interaction on 8.0? 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, 30 Nov 2009 12:33:16 -0000 Hi, On our Avila (arm) boxes we use a compact flash with 2 FreeBSD partitions made with fdisk. When we upgrade, we prepare the non active partition, change the active bit and reboot into the new partition. This worked well on FreeBSD 7.2-stable. But on 8.0 it does not want to work. I get something like this: ############################# agter:~ # fdisk -s ad0 /dev/ad0: 1966 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 989793 0xa5 0x80 2: 990864 990864 0xa5 0x00 agter:~ # echo "a 2" | fdisk -f - ad0 ******* Working on device /dev/ad0 ******* fdisk: Class not found agter:~ # fdisk -s ad0 /dev/ad0: 1966 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 989793 0xa5 0x00 2: 990864 990864 0xa5 0x80 agter:~ # reboot /sbin/reboot: Device not configured. agter:~ # ############################# Basically it looks like non of the commands that has not been executed want to execute. Just changing the active bit back does not help. Can it be some interaction of the geom modules that are now standard in 8.0? "kldstat -v | grep g_part" show these two: 74 g_part_mbr 73 g_part_bsd John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 12:45:28 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 EC401106566C for ; Mon, 30 Nov 2009 12:45:28 +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 A7AB28FC12 for ; Mon, 30 Nov 2009 12:45:28 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NF5d9-0002Vx-Lz for freebsd-geom@freebsd.org; Mon, 30 Nov 2009 13:45:27 +0100 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 ; Mon, 30 Nov 2009 13:45:27 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2009 13:45:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Mon, 30 Nov 2009 13:45:18 +0100 Lines: 40 Message-ID: References: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20090928) In-Reply-To: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Sender: news Subject: Re: strange geom interaction on 8.0? 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, 30 Nov 2009 12:45:29 -0000 John Hay wrote: > Hi, > > On our Avila (arm) boxes we use a compact flash with 2 FreeBSD partitions > made with fdisk. When we upgrade, we prepare the non active partition, > change the active bit and reboot into the new partition. This worked well > on FreeBSD 7.2-stable. But on 8.0 it does not want to work. I get > something like this: > > ############################# > agter:~ # fdisk -s ad0 > /dev/ad0: 1966 cyl 16 hd 63 sec > Part Start Size Type Flags > 1: 63 989793 0xa5 0x80 > 2: 990864 990864 0xa5 0x00 > agter:~ # echo "a 2" | fdisk -f - ad0 > ******* Working on device /dev/ad0 ******* > fdisk: Class not found > agter:~ # fdisk -s ad0 > /dev/ad0: 1966 cyl 16 hd 63 sec > Part Start Size Type Flags > 1: 63 989793 0xa5 0x00 > 2: 990864 990864 0xa5 0x80 > agter:~ # reboot > /sbin/reboot: Device not configured. > agter:~ # > ############################# > > Basically it looks like non of the commands that has not been executed > want to execute. Just changing the active bit back does not help. > > Can it be some interaction of the geom modules that are now standard > in 8.0? > > "kldstat -v | grep g_part" show these two: > 74 g_part_mbr > 73 g_part_bsd Basically, fdisk and disklabel should not be used on 8.x anymore, try using gpart instead. From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 13:48:05 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 553981065697; Mon, 30 Nov 2009 13:48:05 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 844B48FC21; Mon, 30 Nov 2009 13:48:04 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id B086539824; Mon, 30 Nov 2009 15:48:02 +0200 (SAST) Date: Mon, 30 Nov 2009 15:48:02 +0200 From: John Hay To: Ivan Voras Message-ID: <20091130134802.GA37994@zibbi.meraka.csir.co.za> References: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-geom@freebsd.org Subject: Re: strange geom interaction on 8.0? 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, 30 Nov 2009 13:48:05 -0000 On Mon, Nov 30, 2009 at 01:45:18PM +0100, Ivan Voras wrote: > John Hay wrote: > >Hi, > > > >On our Avila (arm) boxes we use a compact flash with 2 FreeBSD partitions > >made with fdisk. When we upgrade, we prepare the non active partition, > >change the active bit and reboot into the new partition. This worked well > >on FreeBSD 7.2-stable. But on 8.0 it does not want to work. I get > >something like this: > > > >############################# > >agter:~ # fdisk -s ad0 > >/dev/ad0: 1966 cyl 16 hd 63 sec > >Part Start Size Type Flags > > 1: 63 989793 0xa5 0x80 > > 2: 990864 990864 0xa5 0x00 > >agter:~ # echo "a 2" | fdisk -f - ad0 > >******* Working on device /dev/ad0 ******* > >fdisk: Class not found > >agter:~ # fdisk -s ad0 > >/dev/ad0: 1966 cyl 16 hd 63 sec > >Part Start Size Type Flags > > 1: 63 989793 0xa5 0x00 > > 2: 990864 990864 0xa5 0x80 > >agter:~ # reboot > >/sbin/reboot: Device not configured. > >agter:~ # > >############################# > > > >Basically it looks like non of the commands that has not been executed > >want to execute. Just changing the active bit back does not help. > > > >Can it be some interaction of the geom modules that are now standard > >in 8.0? > > > >"kldstat -v | grep g_part" show these two: > > 74 g_part_mbr > > 73 g_part_bsd > > Basically, fdisk and disklabel should not be used on 8.x anymore, try > using gpart instead. You were right. I assumed setting a bit is just setting a bit and wanted to keep my stuff between 7.x and 8.x the same. But I added gpart and its /lib/geom/ bits and then did "gpart set -a active -i 1 ad0" and then reboot did work. Thanks. John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 10:35:19 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 9CA73106568D for ; Wed, 2 Dec 2009 10:35:19 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 29C958FC20 for ; Wed, 2 Dec 2009 10:35:18 +0000 (UTC) Received: by fxm10 with SMTP id 10so50281fxm.34 for ; Wed, 02 Dec 2009 02:35:18 -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:cc:content-type; bh=buA7JNIGfLOrnpt30ATDUA3xFE57kdoKoDGwTASAzDk=; b=aHPKdPCfejj+1d5v9zm9BrP1LC3MA7Vl58cAVQ1w3GH0Uu9sKikJo6s+jpazhWwWeV 6tAAMS6JBG+UmgTb838vPK5vip/O2W7bIKFfGAx2flz+Y/46CmjbIT6SE9fPNCHSL99a IwKQi61/9RkSIXH9RO0OG0fZ6wUDFc4S8v/R0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=dUeiqwpttm2nGO+YX+TZnm3xAN3rgkPvpp+m5GmYLr/Y1jHrlKoJl67EjAGQ8fsZ0n VtpoFypIlMsFbtZCinJYJU4TZ4ymFnftxIjOOenFLa8vUG8ujdJX3qW8SktCaP40GIxO 2c35/9VqfJBScjw+Uei/VQut9Yd8Ki9jJ4YaU= MIME-Version: 1.0 Received: by 10.223.110.32 with SMTP id l32mr752357fap.90.1259750117824; Wed, 02 Dec 2009 02:35:17 -0800 (PST) Date: Wed, 2 Dec 2009 12:35:17 +0200 Message-ID: <717f7a3e0912020235g7d8f4a1ey65831a2bba6c637a@mail.gmail.com> From: Marin Atanasov To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: FreeBSD 8.0: RAID-1 using gpart, gvinum and gmirror 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, 02 Dec 2009 10:35:19 -0000 Hello, I'm going to make my partition mirrored using the geom utilities, but however I've noticed that I cannot use the same way I used to do it under 7.2 and 8.0-RC1. Here's the situation - I tried a lot of times to make my root partition mirrored using gvinum, but each time when I boot in the new partition I'm unable to boot from it.. So instead of using gvinum for the root partition I've decided to use gmirror - and it works! I did it the following way - two NOT identical disks are added to the system. - 1 slices on the first disk - 2 slices on the second one (the 1st slice is the size of the root partition which is on the 1st slice on the 1st disk) Right after a fresh minimal install, I go to single-user mode and create the mirror: # gmirror label -vb round-robin gm0 /dev/ad0s1a Installing bootstap code on the second disk (in case I need to boot later from it): # fdisk -BI /dev/ad4s1 # bsdlabel -wB /dev/ad4s1 # newfs -O2 /dev/ad4s1 # newfs -O2 -U /dev/ad4s2 And then inserting the second component of the mirror: # gmirror insert gm0 /dev/ad4s1 And this is how I was doing a mirror for the root partition. For the other partitions - /usr, /var, /tmp, swap I used gvinum following a different articles, howtos and eventually it worked. The complete scenario of how I did the mirror for the other partitions is here (sorry, it's too long to just copy/paste it in the lists): http://www.daemonforums.org/showpost.php?p=27010&postcount=3 If I can say it with little words - the way mirroring works for the other partitions was to overlap all the other partitions with one big vinum partition. My problem now is that I cannot do this anymore, because I need to use gpart instead for creating the partitions, and using gpart I cannot create a vinum partition that will overlap the other partitions, so I cannot make any mirror for the other partitions. Is there any other way of doing this? I'm out of ideas now, perhaps you could help me out with this :) Thanks and regards, Marin -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 13:39:12 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 3F2D5106566B for ; Wed, 2 Dec 2009 13:39:12 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (unknown [IPv6:2001:470:1f15:1531:224:e8ff:fe3d:60a5]) by mx1.freebsd.org (Postfix) with ESMTP id 0344A8FC15 for ; Wed, 2 Dec 2009 13:39:12 +0000 (UTC) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id 4D0832059; Wed, 2 Dec 2009 14:39:11 +0100 (CET) Date: Wed, 2 Dec 2009 14:39:11 +0100 From: Thomas Quinot To: freebsd-geom@freebsd.org Message-ID: <20091202133911.GA96216@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Forcing preferred path in geom_multipath 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, 02 Dec 2009 13:39:12 -0000 I am in the process of setting up access to an iSCSI array with redundant network connections, and I'm a bit lost as to how to properly set things up with gmultipath. The disk array exposes several LUNs, and I have two active iSCSI sessions, each of which making all LUNs available, and using a distinct network path. Thus for example: LUN 0 is seen as da0 through session 0, and as da24 through session 1 LUN 2 is seen as da2 through session 0, and as da26 through session 1 so I need one multipath geom lun0 with providers da0 and da24, and another multipath geom lun2 with providers da2 and da26. Now for load balancing purposes it is desirable to force lun0 to use da0 by default, but lun2 to use da26 by default (da24 and da2 being the respective fail-overs). However it is not clear to me how this can currently be achieved, since the preferred path will always be the first tasted one for each geom, if using automatic configuration. Any suggestions as to how to achieve the desired ordering of preferred paths for each multipath geom? Thanks! Thomas. From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 17:35:50 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 A200C106566B for ; Wed, 2 Dec 2009 17:35:50 +0000 (UTC) (envelope-from peter@simons-rock.edu) Received: from hedwig.simons-rock.edu (hedwig.simons-rock.edu [208.81.88.14]) by mx1.freebsd.org (Postfix) with ESMTP id 67B1E8FC1A for ; Wed, 2 Dec 2009 17:35:50 +0000 (UTC) Received: from cesium.hyperfine.info (c2.8d.5646.static.theplanet.com [70.86.141.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hedwig.simons-rock.edu (Postfix) with ESMTP id 8D3042BB343; Wed, 2 Dec 2009 12:16:19 -0500 (EST) Date: Wed, 2 Dec 2009 12:16:17 -0500 From: "Peter C. Lai" To: Marin Atanasov Message-ID: <20091202171617.GT60409@cesium.hyperfine.info> References: <717f7a3e0912020235g7d8f4a1ey65831a2bba6c637a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <717f7a3e0912020235g7d8f4a1ey65831a2bba6c637a@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org, freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.0: RAID-1 using gpart, gvinum and gmirror 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, 02 Dec 2009 17:35:50 -0000 Why are you using gvinum for RAID 1 instead of gmirror? The gmirror method for mirroring the boot partition is already well documented... On 2009-12-02 12:35:17PM +0200, Marin Atanasov wrote: > Hello, > > I'm going to make my partition mirrored using the geom utilities, but > however I've noticed that I cannot use the same way I used to do it under > 7.2 and 8.0-RC1. > > Here's the situation - I tried a lot of times to make my root partition > mirrored using gvinum, but each time when I boot in the new partition I'm > unable to boot from it.. So instead of using gvinum for the root partition > I've decided to use gmirror - and it works! > > I did it the following way - two NOT identical disks are added to the > system. > > - 1 slices on the first disk > - 2 slices on the second one (the 1st slice is the size of the root > partition which is on the 1st slice on the 1st disk) > > Right after a fresh minimal install, I go to single-user mode and create the > mirror: > > # gmirror label -vb round-robin gm0 /dev/ad0s1a > > Installing bootstap code on the second disk (in case I need to boot later > from it): > # fdisk -BI /dev/ad4s1 > # bsdlabel -wB /dev/ad4s1 > # newfs -O2 /dev/ad4s1 > # newfs -O2 -U /dev/ad4s2 > > And then inserting the second component of the mirror: > # gmirror insert gm0 /dev/ad4s1 > > And this is how I was doing a mirror for the root partition. For the other > partitions - /usr, /var, /tmp, swap I used gvinum following a different > articles, howtos and eventually it worked. The complete scenario of how I > did the mirror for the other partitions is here (sorry, it's too long to > just copy/paste it in the lists): > http://www.daemonforums.org/showpost.php?p=27010&postcount=3 > > If I can say it with little words - the way mirroring works for the other > partitions was to overlap all the other partitions with one big vinum > partition. > > My problem now is that I cannot do this anymore, because I need to use gpart > instead for creating the partitions, and using gpart I cannot create a vinum > partition that will overlap the other partitions, so I cannot make any > mirror for the other partitions. > > Is there any other way of doing this? > > I'm out of ideas now, perhaps you could help me out with this :) > > Thanks and regards, > Marin > > -- > Marin Atanasov Nikolov > dnaeon AT gmail DOT com > daemon AT unix-heaven DOT org > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- =========================================================== Peter C. Lai | Bard College at Simon's Rock Systems Administrator | 84 Alford Rd. Information Technology Svcs. | Gt. Barrington, MA 01230 USA peter AT simons-rock.edu | (413) 528-7428 =========================================================== From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 18:32:33 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 42F2A106566C for ; Wed, 2 Dec 2009 18:32:33 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (unknown [IPv6:2001:470:1f15:1531:224:e8ff:fe3d:60a5]) by mx1.freebsd.org (Postfix) with ESMTP id 941AE8FC16 for ; Wed, 2 Dec 2009 18:32:32 +0000 (UTC) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id DE84E2288; Wed, 2 Dec 2009 19:32:31 +0100 (CET) Date: Wed, 2 Dec 2009 19:32:31 +0100 From: Thomas Quinot To: freebsd-geom@freebsd.org Message-ID: <20091202183231.GA4362@melamine.cuivre.fr.eu.org> References: <20091202133911.GA96216@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091202133911.GA96216@melamine.cuivre.fr.eu.org> X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PATCH] Forcing preferred path in geom_multipath 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, 02 Dec 2009 18:32:33 -0000 * Thomas Quinot, 2009-12-02 : > Any suggestions as to how to achieve the desired ordering of preferred > paths for each multipath geom? OK, here's a simple solution, add a new verb to gmultipath to allow the user to switch to a new preferred provider. Review/comments welcome. Thomas. Index: sbin/geom/class/multipath/geom_multipath.c =================================================================== --- sbin/geom/class/multipath/geom_multipath.c (révision 200035) +++ sbin/geom/class/multipath/geom_multipath.c (copie de travail) @@ -48,6 +48,7 @@ static void mp_main(struct gctl_req *, unsigned int); static void mp_label(struct gctl_req *); static void mp_clear(struct gctl_req *); +static void mp_prefer(struct gctl_req *); struct g_command class_commands[] = { { @@ -58,6 +59,10 @@ "clear", G_FLAG_VERBOSE, mp_main, G_NULL_OPTS, NULL, "[-v] prov ..." }, + { + "prefer", G_FLAG_VERBOSE, mp_main, G_NULL_OPTS, + NULL, "[-v] prov ..." + }, G_CMD_SENTINEL }; @@ -75,6 +80,8 @@ mp_label(req); } else if (strcmp(name, "clear") == 0) { mp_clear(req); + } else if (strcmp(name, "prefer") == 0) { + mp_prefer(req); } else { gctl_error(req, "Unknown command: %s.", name); } @@ -228,3 +235,23 @@ } } } + +static void +mp_prefer(struct gctl_req *req) +{ + const char *name, *comp, *errstr; + int nargs; + + nargs = gctl_get_int(req, "nargs"); + if (nargs != 2) { + gctl_error(req, "Usage: prefer GEOM PROVIDER"); + return; + } + name = gctl_get_ascii(req, "arg0"); + comp = gctl_get_ascii(req, "arg1"); + errstr = gctl_issue (req); + if (errstr != NULL) { + fprintf(stderr, "Can't set %s preferred provider to %s: %s.\n", + name, comp, errstr); + } +} Index: sys/geom/geom_subr.c =================================================================== --- sys/geom/geom_subr.c (révision 200035) +++ sys/geom/geom_subr.c (copie de travail) @@ -647,7 +647,7 @@ * can't risk that on the kernel stack. */ -static int +int redo_rank(struct g_geom *gp) { struct g_consumer *cp; Index: sys/geom/multipath/g_multipath.c =================================================================== --- sys/geom/multipath/g_multipath.c (révision 200035) +++ sys/geom/multipath/g_multipath.c (copie de travail) @@ -67,6 +67,8 @@ static void g_multipath_kt(void *); static int g_multipath_destroy(struct g_geom *); +static struct g_geom * +g_multipath_find_geom(struct g_class *, const char *); static int g_multipath_destroy_geom(struct gctl_req *, struct g_class *, struct g_geom *); @@ -706,6 +708,77 @@ } } +static void +g_multipath_ctl_prefer(struct gctl_req *req, struct g_class *mp) +{ + struct g_geom *gp; + struct g_multipath_softc *sc; + struct g_consumer *cp; + struct g_provider *pp; + const char *name, *mpname; + static const char devpf[6] = "/dev/"; + int *nargs; + + g_topology_assert(); + + mpname = gctl_get_asciiparam(req, "arg0"); + if (mpname == NULL) { + gctl_error(req, "No 'arg0' argument"); + return; + } + gp = g_multipath_find_geom(mp, mpname); + if (gp == NULL) { + gctl_error(req, "Device %s is invalid", mpname); + return; + } + sc = gp->softc; + + nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs)); + if (nargs == NULL) { + gctl_error(req, "No 'nargs' argument"); + return; + } + if (*nargs != 2) { + gctl_error(req, "missing device"); + return; + } + + name = gctl_get_asciiparam(req, "arg1"); + if (name == NULL) { + gctl_error(req, "No 'arg1' argument"); + return; + } + if (strncmp(name, devpf, 5) == 0) { + name += 5; + } + pp = g_provider_by_name(name); + if (pp == NULL) { + gctl_error(req, "Provider %s is invalid", name); + return; + } + g_topology_lock (); + LIST_FOREACH(cp, &gp->consumer, consumer) { + if (cp->provider == pp) { + /* Move cp to head of consumers list */ + LIST_REMOVE(cp, consumers); + LIST_INSERT_HEAD(&pp->consumers, cp, consumers); + redo_rank (cp->geom); + + /* Make it the active path */ + sc->cp_active = cp; + printf("GEOM_MULTIPATH: %s now active path in %s\n", + sc->cp_active->provider->name, sc->sc_name); + break; + } + } + g_topology_unlock (); + if (cp == NULL) { + gctl_error(req, "No consumer for %s", name); + return; + } + +} + static struct g_geom * g_multipath_find_geom(struct g_class *mp, const char *name) { @@ -756,6 +829,8 @@ gctl_error(req, "Userland and kernel parts are out of sync"); } else if (strcmp(verb, "create") == 0) { g_multipath_ctl_create(req, mp); + } else if (strcmp(verb, "prefer") == 0) { + g_multipath_ctl_prefer(req, mp); } else if (strcmp(verb, "destroy") == 0) { g_multipath_ctl_destroy(req, mp); } else { Index: sys/geom/geom.h =================================================================== --- sys/geom/geom.h (révision 200035) +++ sys/geom/geom.h (copie de travail) @@ -276,6 +276,7 @@ #endif int g_modevent(module_t, int, void *); +int redo_rank(struct g_geom *gp); /* geom_io.c */ struct bio * g_clone_bio(struct bio *); From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 21:21:36 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 ACF701065672 for ; Wed, 2 Dec 2009 21:21:36 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from smtpfb2-g21.free.fr (smtpfb2-g21.free.fr [212.27.42.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1EB5D8FC17 for ; Wed, 2 Dec 2009 21:21:34 +0000 (UTC) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by smtpfb2-g21.free.fr (Postfix) with ESMTP id 3B368D1AFF3 for ; Wed, 2 Dec 2009 22:05:30 +0100 (CET) Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id F0F23E0800E for ; Wed, 2 Dec 2009 22:05:24 +0100 (CET) Received: from coruscant.dnsalias.net (coruscant.dnsalias.net [88.169.125.217]) by smtp6-g21.free.fr (Postfix) with ESMTP id 041CAE0803A for ; Wed, 2 Dec 2009 22:05:21 +0100 (CET) Date: Wed, 2 Dec 2009 22:06:14 +0100 From: Frederic Praca To: freebsd-geom@freebsd.org Message-ID: <20091202220614.663d1c44@coruscant.dnsalias.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Problem after upgrading from 7 to 8 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, 02 Dec 2009 21:21:36 -0000 Hello guys, I decided to upgrade from 7.2 to 8.0 last week. Since that day, I get the following message on boot and must go to single-user mode to fix it up : GEOM: ad0s3: geometry does not match label (255h,63s !=3D 16h,63s). GEOM: ad1: partition 1 does not start on a track boundary. GEOM: ad1: partition 1 does not end on a track boundary. GEOM: ad1s1: geometry does not match label (16h,63s !=3D 16h,255s). I use gmirror to mirror a 80Gb partition on a 160Gb disk with a 80Gb disk. I did not have any problem on 7.x but now, I must type=20 gmirror load in single-user mode to go on booting. Do you have any idea of what happened ? Thanks a lot in advance Fred --=20 par l'op=E9ration du Saint Esprit et par un red=E9marrage de X, les ^ peuvent =E0 nouveau se poser sur les lettres: =EA =E2 =EE =EF. -+- CG sur debian-french : "le vilain petit tr=E9ma" -+- ou -+- CG sur debian-french : "attention, atterrissage d'accents" -+- From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 22:20:16 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 5E7FE106566C for ; Wed, 2 Dec 2009 22:20:16 +0000 (UTC) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by mx1.freebsd.org (Postfix) with ESMTP id 31AFB8FC16 for ; Wed, 2 Dec 2009 22:20:16 +0000 (UTC) Received: from zoraida.natserv.net (zoraida.natserv.net [66.114.65.147]) by zoraida.natserv.net (Postfix) with ESMTP id BEC801704F; Wed, 2 Dec 2009 17:01:45 -0500 (EST) References: <20091202220614.663d1c44@coruscant.dnsalias.net> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Francisco Reyes To: Frederic Praca Date: Wed, 02 Dec 2009 17:01:45 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: Problem after upgrading from 7 to 8 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, 02 Dec 2009 22:20:16 -0000 Frederic Praca writes: > disk. I did not have any problem on 7.x but now, I must type > gmirror load > in single-user mode to go on booting. Perhaps you had it compiled on kernel or setup in /boot/loader.conf. You likely just need to set it up in /boot/loader.conf or re-build kernel with it. From owner-freebsd-geom@FreeBSD.ORG Thu Dec 3 00:40:02 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 EA0C6106568F for ; Thu, 3 Dec 2009 00:40:02 +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 D9DA78FC0A for ; Thu, 3 Dec 2009 00:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB30e2Pq094456 for ; Thu, 3 Dec 2009 00:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB30e2UT094455; Thu, 3 Dec 2009 00:40:02 GMT (envelope-from gnats) Date: Thu, 3 Dec 2009 00:40:02 GMT Message-Id: <200912030040.nB30e2UT094455@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Maxim Sobolev Cc: Subject: Re: kern/113885: [gmirror] [patch] improved gmirror balance algorithm X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Sobolev List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 00:40:03 -0000 The following reply was made to PR kern/113885; it has been noted by GNATS. From: Maxim Sobolev To: bug-followup@FreeBSD.org, zuborg@advancedhosters.com Cc: Subject: Re: kern/113885: [gmirror] [patch] improved gmirror balance algorithm Date: Wed, 02 Dec 2009 16:03:52 -0800 Here is another patch, which implements different approach. Basically it looks at the recently served requests and also the queue length to decide where to send the next request to. http://sobomax.sippysoft.com/~sobomax/geom_mirror.diff Regards, -- Maksym Sobolyev Sippy Software, Inc. Internet Telephony (VoIP) Experts T/F: +1-646-651-1110 Web: http://www.sippysoft.com MSN: sales@sippysoft.com Skype: SippySoft From owner-freebsd-geom@FreeBSD.ORG Thu Dec 3 05:35:07 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 5A4D7106566B; Thu, 3 Dec 2009 05:35:07 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 89A3D8FC1B; Thu, 3 Dec 2009 05:35:06 +0000 (UTC) Received: by fxm10 with SMTP id 10so1021035fxm.34 for ; Wed, 02 Dec 2009 21:35:05 -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=8ha+N4msp+fur4pSoILtUS2oxgkJJYQRX92CmtchR7w=; b=Th9n6poCZ2BUvGN4O+OIygoyru+E/SqHdls4uosa41jv7OAFHrM2YNvoAw7I+6zRa5 wnCS49p1WHAJbw5Q7AExAGEgi3w0w8hje3YCClzSBc969Cy0/rP6I8iW9mQLKefL2uty olBBpTaN5q8YQfYq2P/I3HA+eFrnfys8ji4aY= 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=WdX3poSkmobnNi7OhhieDOyTDhAUcBTrsee6xgqjXDppS2lnNak/TRPg05EIfSuWUs iU3foGmKV+lTFMBIeQTSn0dle8InhLPgN1TrgvFWvO2OaPpkJB8wvfkBMgseOTb9nWRu yrDu0x6rqcz8TbzwExiBPh8at1BR5t8JlR8+Q= MIME-Version: 1.0 Received: by 10.223.5.25 with SMTP id 25mr177169fat.38.1259818505107; Wed, 02 Dec 2009 21:35:05 -0800 (PST) In-Reply-To: <20091202171617.GT60409@cesium.hyperfine.info> References: <717f7a3e0912020235g7d8f4a1ey65831a2bba6c637a@mail.gmail.com> <20091202171617.GT60409@cesium.hyperfine.info> Date: Thu, 3 Dec 2009 07:35:05 +0200 Message-ID: <717f7a3e0912022135o37bab7d5qd58efb8c335a426@mail.gmail.com> From: Marin Atanasov To: "Peter C. Lai" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.0: RAID-1 using gpart, gvinum and gmirror 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, 03 Dec 2009 05:35:07 -0000 Hi, Well, as I said before I'm using gmirror for the root partition - that's the easiest part, but... The reason that I don't want to use gmirror for the other partitions is that I'm using two not identical disks, so I want to mirror them using gvinum instead, which will give me also possibility to extend the volumes if I need so - adding/removing plexes from it, etc, which I think is more flexible than just using gmirror. I've done this setup on 8.0-RC1, and I must say it works very well - root is mirrored via gmirror and /usr, /var, /tmp, swap are mirrored via gvinum. When I need more space I just extend the volumes. But as I pointed the way gpart is working I'm not able to create a partition that overlaps the other partitions. Do you know how this can be done? Thanks and regards, Marin On Wed, Dec 2, 2009 at 7:16 PM, Peter C. Lai wrote: > Why are you using gvinum for RAID 1 instead of gmirror? The gmirror method > for mirroring the boot partition is already well documented... > > On 2009-12-02 12:35:17PM +0200, Marin Atanasov wrote: > > Hello, > > > > I'm going to make my partition mirrored using the geom utilities, but > > however I've noticed that I cannot use the same way I used to do it under > > 7.2 and 8.0-RC1. > > > > Here's the situation - I tried a lot of times to make my root partition > > mirrored using gvinum, but each time when I boot in the new partition I'm > > unable to boot from it.. So instead of using gvinum for the root > partition > > I've decided to use gmirror - and it works! > > > > I did it the following way - two NOT identical disks are added to the > > system. > > > > - 1 slices on the first disk > > - 2 slices on the second one (the 1st slice is the size of the root > > partition which is on the 1st slice on the 1st disk) > > > > Right after a fresh minimal install, I go to single-user mode and create > the > > mirror: > > > > # gmirror label -vb round-robin gm0 /dev/ad0s1a > > > > Installing bootstap code on the second disk (in case I need to boot later > > from it): > > # fdisk -BI /dev/ad4s1 > > # bsdlabel -wB /dev/ad4s1 > > # newfs -O2 /dev/ad4s1 > > # newfs -O2 -U /dev/ad4s2 > > > > And then inserting the second component of the mirror: > > # gmirror insert gm0 /dev/ad4s1 > > > > And this is how I was doing a mirror for the root partition. For the > other > > partitions - /usr, /var, /tmp, swap I used gvinum following a different > > articles, howtos and eventually it worked. The complete scenario of how I > > did the mirror for the other partitions is here (sorry, it's too long to > > just copy/paste it in the lists): > > http://www.daemonforums.org/showpost.php?p=27010&postcount=3 > > > > If I can say it with little words - the way mirroring works for the other > > partitions was to overlap all the other partitions with one big vinum > > partition. > > > > My problem now is that I cannot do this anymore, because I need to use > gpart > > instead for creating the partitions, and using gpart I cannot create a > vinum > > partition that will overlap the other partitions, so I cannot make any > > mirror for the other partitions. > > > > Is there any other way of doing this? > > > > I'm out of ideas now, perhaps you could help me out with this :) > > > > Thanks and regards, > > Marin > > > > -- > > Marin Atanasov Nikolov > > dnaeon AT gmail DOT com > > daemon AT unix-heaven DOT org > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org > " > > -- > =========================================================== > Peter C. Lai | Bard College at Simon's Rock > Systems Administrator | 84 Alford Rd. > Information Technology Svcs. | Gt. Barrington, MA 01230 USA > peter AT simons-rock.edu | (413) 528-7428 > =========================================================== > > -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org From owner-freebsd-geom@FreeBSD.ORG Thu Dec 3 19:31:21 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 9824D106566B for ; Thu, 3 Dec 2009 19:31:20 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by mx1.freebsd.org (Postfix) with ESMTP id 248838FC15 for ; Thu, 3 Dec 2009 19:31:17 +0000 (UTC) Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id 0071EE080BE; Thu, 3 Dec 2009 20:31:13 +0100 (CET) Received: from coruscant.dnsalias.net (coruscant.dnsalias.net [88.169.125.217]) by smtp6-g21.free.fr (Postfix) with ESMTP id ED443E080A5; Thu, 3 Dec 2009 20:31:10 +0100 (CET) Date: Thu, 3 Dec 2009 20:32:06 +0100 From: Frederic Praca To: Francisco Reyes Message-ID: <20091203203206.3d9e2524@coruscant.dnsalias.net> In-Reply-To: References: <20091202220614.663d1c44@coruscant.dnsalias.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: Problem after upgrading from 7 to 8 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, 03 Dec 2009 19:31:21 -0000 Le Wed, 02 Dec 2009 17:01:45 -0500, Francisco Reyes a =E9crit : > Frederic Praca writes: >=20 > > disk. I did not have any problem on 7.x but now, I must type=20 > > gmirror load > > in single-user mode to go on booting. >=20 > Perhaps you had it compiled on kernel or setup in /boot/loader.conf. > You likely just need to set it up in /boot/loader.conf or re-build > kernel with it. Well... Hum... I think I could get a pointy hat on that :D Now, with GEOM_MIRROR option in the kernel, it's a lot better even if I get these logs in dmesg GEOM: ad0s3: geometry does not match label (255h,63s !=3D16h,63s).=20 WARNING: ad0s3 expected rawoffset 0, found 20964825 WARNING: ad0s4 expected rawoffset 0, found 104840190 GEOM: ad0s3: geometry does not match label (255h,63s !=3D 16h,63s). WARNING: ad0s3a expected rawoffset 0, found 20964825 GEOM: ad0s3a: geometry does not match label (255h,63s !=3D 16h,63s). GEOM: ad0s3c: geometry does not match label (255h,63s !=3D 16h,63s). WARNING: ad0s4d expected rawoffset 0, found 104840190 GEOM: ad1: partition 1 does not start on a track boundary. GEOM: ad1: partition 1 does not end on a track boundary. GEOM: ad0s3a: geometry does not match label (255h,63s !=3D 16h,63s). GEOM: ad0s3c: geometry does not match label (255h,63s !=3D 16h,63s). WARNING: ufsid/48bd9effc035bcd5 expected rawoffset 0, found 20964825 WARNING: label/raid1-160 expected rawoffset 0, found 104840190 GEOM: ad1s1: geometry does not match label (16h,63s !=3D 16h,255s). GEOM: ad1s1: geometry does not match label (16h,63s !=3D 16h,255s). GEOM_MIRROR: Force device raid1 start due to timeout. GEOM_MIRROR: Device mirror/raid1 launched (1/2). WARNING: ad1s1a expected rawoffset 0, found 104840190 WARNING: mirror/raid1 expected rawoffset 0, found 104840190 WARNING: mirror/raid1d expected rawoffset 0, found 104840190 WARNING: ufsid/494d7ced39133ede expected rawoffset 0, found 104840190 WARNING: ufsid/494d7ced39133eded expected rawoffset 0, found 104840190 Trying to mount root from ufs:/dev/ad0s3a WARNING: ad0s3a expected rawoffset 0, found 20964825 WARNING: ufsid/48bd9effc035bcd5 expected rawoffset 0, found 20964825 WARNING: mirror/raid1 expected rawoffset 0, found 104840190 WARNING: mirror/raid1d expected rawoffset 0, found 104840190 WARNING: ufsid/494d7ced39133ede expected rawoffset 0, found 104840190 WARNING: ufsid/494d7ced39133eded expected rawoffset 0, found 104840190 Any idea about the fact that geometry is seen as wrong whereas it was not in v7.x ? Fred --=20 Quand les =E9v=E9nements nous d=E9passent, feignons d'en =EAtre les=20 organisateurs. -+- Pierre Desproges -+- From owner-freebsd-geom@FreeBSD.ORG Thu Dec 3 21:50:03 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 75145106566C for ; Thu, 3 Dec 2009 21:50:03 +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 637F78FC13 for ; Thu, 3 Dec 2009 21:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB3Lo3Ye013860 for ; Thu, 3 Dec 2009 21:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB3Lo3lG013858; Thu, 3 Dec 2009 21:50:03 GMT (envelope-from gnats) Date: Thu, 3 Dec 2009 21:50:03 GMT Message-Id: <200912032150.nB3Lo3lG013858@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/113885: commit references a PR X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 21:50:03 -0000 The following reply was made to PR kern/113885; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/113885: commit references a PR Date: Thu, 3 Dec 2009 21:48:01 +0000 (UTC) Author: mav Date: Thu Dec 3 21:47:51 2009 New Revision: 200086 URL: http://svn.freebsd.org/changeset/base/200086 Log: Change 'load' balancing mode algorithm: - Instead of measuring last request execution time for each drive and choosing one with smallest time, use averaged number of requests, running on each drive. This information is more accurate and timely. It allows to distribute load between drives in more even and predictable way. - For each drive track offset of the last submitted request. If new request offset matches previous one or close for some drive, prefer that drive. It allows to significantly speedup simultaneous sequential reads. PR: kern/113885 Reviewed by: sobomax Modified: head/sys/geom/mirror/g_mirror.c head/sys/geom/mirror/g_mirror.h Modified: head/sys/geom/mirror/g_mirror.c ============================================================================== --- head/sys/geom/mirror/g_mirror.c Thu Dec 3 21:44:41 2009 (r200085) +++ head/sys/geom/mirror/g_mirror.c Thu Dec 3 21:47:51 2009 (r200086) @@ -451,9 +451,6 @@ g_mirror_init_disk(struct g_mirror_softc disk->d_id = md->md_did; disk->d_state = G_MIRROR_DISK_STATE_NONE; disk->d_priority = md->md_priority; - disk->d_delay.sec = 0; - disk->d_delay.frac = 0; - binuptime(&disk->d_last_used); disk->d_flags = md->md_dflags; if (md->md_provider[0] != '\0') disk->d_flags |= G_MIRROR_DISK_FLAG_HARDCODED; @@ -863,16 +860,6 @@ bintime_cmp(struct bintime *bt1, struct } static void -g_mirror_update_delay(struct g_mirror_disk *disk, struct bio *bp) -{ - - if (disk->d_softc->sc_balance != G_MIRROR_BALANCE_LOAD) - return; - binuptime(&disk->d_delay); - bintime_sub(&disk->d_delay, &bp->bio_t0); -} - -static void g_mirror_done(struct bio *bp) { struct g_mirror_softc *sc; @@ -904,8 +891,6 @@ g_mirror_regular_request(struct bio *bp) g_topology_lock(); g_mirror_kill_consumer(sc, bp->bio_from); g_topology_unlock(); - } else { - g_mirror_update_delay(disk, bp); } pbp->bio_inbed++; @@ -1465,30 +1450,35 @@ g_mirror_request_round_robin(struct g_mi g_io_request(cbp, cp); } +#define TRACK_SIZE (1 * 1024 * 1024) +#define LOAD_SCALE 256 +#define ABS(x) (((x) >= 0) ? (x) : (-(x))) + static void g_mirror_request_load(struct g_mirror_softc *sc, struct bio *bp) { struct g_mirror_disk *disk, *dp; struct g_consumer *cp; struct bio *cbp; - struct bintime curtime; + int prio, best; - binuptime(&curtime); - /* - * Find a disk which the smallest load. - */ + /* Find a disk with the smallest load. */ disk = NULL; + best = INT_MAX; LIST_FOREACH(dp, &sc->sc_disks, d_next) { if (dp->d_state != G_MIRROR_DISK_STATE_ACTIVE) continue; - /* If disk wasn't used for more than 2 sec, use it. */ - if (curtime.sec - dp->d_last_used.sec >= 2) { - disk = dp; - break; - } - if (disk == NULL || - bintime_cmp(&dp->d_delay, &disk->d_delay) < 0) { + prio = dp->load; + /* If disk head is precisely in position - highly prefer it. */ + if (dp->d_last_offset == bp->bio_offset) + prio -= 2 * LOAD_SCALE; + else + /* If disk head is close to position - prefer it. */ + if (ABS(dp->d_last_offset - bp->bio_offset) < TRACK_SIZE) + prio -= 1 * LOAD_SCALE; + if (prio <= best) { disk = dp; + best = prio; } } KASSERT(disk != NULL, ("NULL disk for %s.", sc->sc_name)); @@ -1505,12 +1495,18 @@ g_mirror_request_load(struct g_mirror_so cp = disk->d_consumer; cbp->bio_done = g_mirror_done; cbp->bio_to = cp->provider; - binuptime(&disk->d_last_used); G_MIRROR_LOGREQ(3, cbp, "Sending request."); KASSERT(cp->acr >= 1 && cp->acw >= 1 && cp->ace >= 1, ("Consumer %s not opened (r%dw%de%d).", cp->provider->name, cp->acr, cp->acw, cp->ace)); cp->index++; + /* Remember last head position */ + disk->d_last_offset = bp->bio_offset + bp->bio_length; + /* Update loads. */ + LIST_FOREACH(dp, &sc->sc_disks, d_next) { + dp->load = (dp->d_consumer->index * LOAD_SCALE + + dp->load * 7) / 8; + } g_io_request(cbp, cp); } Modified: head/sys/geom/mirror/g_mirror.h ============================================================================== --- head/sys/geom/mirror/g_mirror.h Thu Dec 3 21:44:41 2009 (r200085) +++ head/sys/geom/mirror/g_mirror.h Thu Dec 3 21:47:51 2009 (r200086) @@ -133,8 +133,8 @@ struct g_mirror_disk { struct g_mirror_softc *d_softc; /* Back-pointer to softc. */ int d_state; /* Disk state. */ u_int d_priority; /* Disk priority. */ - struct bintime d_delay; /* Disk delay. */ - struct bintime d_last_used; /* When disk was last used. */ + u_int load; /* Averaged queue length */ + off_t d_last_offset; /* Last read offset */ uint64_t d_flags; /* Additional flags. */ u_int d_genid; /* Disk's generation ID. */ struct g_mirror_disk_sync d_sync;/* Sync information. */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Thu Dec 3 21:51:59 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 41F4B1065670; Thu, 3 Dec 2009 21:51:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 185BE8FC12; Thu, 3 Dec 2009 21:51:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB3Lpw8F021941; Thu, 3 Dec 2009 21:51:58 GMT (envelope-from mav@freefall.freebsd.org) Received: (from mav@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB3LpwEg021937; Thu, 3 Dec 2009 21:51:58 GMT (envelope-from mav) Date: Thu, 3 Dec 2009 21:51:58 GMT Message-Id: <200912032151.nB3LpwEg021937@freefall.freebsd.org> To: zuborg@advancedhosters.com, mav@FreeBSD.org, freebsd-geom@FreeBSD.org, mav@FreeBSD.org From: mav@FreeBSD.org Cc: Subject: Re: kern/113885: [gmirror] [patch] improved gmirror balance algorithm 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, 03 Dec 2009 21:51:59 -0000 Synopsis: [gmirror] [patch] improved gmirror balance algorithm State-Changed-From-To: open->patched State-Changed-By: mav State-Changed-When: Thu Dec 3 21:51:12 UTC 2009 State-Changed-Why: Patch committed to the HEAD. Responsible-Changed-From-To: freebsd-geom->mav Responsible-Changed-By: mav Responsible-Changed-When: Thu Dec 3 21:51:12 UTC 2009 Responsible-Changed-Why: Patch committed to the HEAD. http://www.freebsd.org/cgi/query-pr.cgi?pr=113885 From owner-freebsd-geom@FreeBSD.ORG Fri Dec 4 08:26:01 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 033061065676 for ; Fri, 4 Dec 2009 08:26:01 +0000 (UTC) (envelope-from nveeser@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id D303B8FC17 for ; Fri, 4 Dec 2009 08:26:00 +0000 (UTC) Received: by pwj15 with SMTP id 15so2042343pwj.3 for ; Fri, 04 Dec 2009 00:26:00 -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=TPFL4PuZoW8CsEdsm9g2Vbp5OSnuR65ujrNJ6pPOw0Q=; b=IZMDnMSkofplvUSl5Kw+mIQV8Gj1PvJPEmcqVgeqAtGfiqzuwgm5KLVeY6zVl2+X3a vOxsIvS5kg6plG8qXqM3HN/DWMAReUqE4yKhKU1U1H9rFnmzYpaRm2NOX2Qa0/dPAIn5 uZOYRcXKC13ETYrPIJzTpZ7Bc7k6E1H7B9Zng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kfbT+hMKCcrhJEMcHC32x2/2kqH/yD3gtqfYPpz5/ZaWArvhE6pNTet+ax5CnFItB/ 7VH0d2O3TCADqCl20omPe6mYY1uIQ0ni6z8paktC/Td1orqk7zkWD/26uGrh72UGQnmt lDK+bAiD8D/mpxGBRhUU/eHBbzZnQ16TFw2A4= MIME-Version: 1.0 Received: by 10.140.226.13 with SMTP id y13mr186206rvg.70.1259913622668; Fri, 04 Dec 2009 00:00:22 -0800 (PST) Date: Fri, 4 Dec 2009 00:00:22 -0800 Message-ID: <674b92e90912040000o293fdf26hdf1af9e8d9ba9a87@mail.gmail.com> From: Nicholas Veeser To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Trouble making a mirror of a slice. 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, 04 Dec 2009 08:26:01 -0000 I have two 250GB disks I want to have a 20G Slice on each (with root and swap) and have a mirror. Then I want the rest to be used in a ZFS pool. I have ad4 and ad6 root is currently on ad6s1a So I was going to try to create a mirror on ad4 and copy over to the mirror and reboot from there. So I tried... # fdisk -p /dev/ad6 | fdisk -u /dev/ad4 # gmirror label -v -b round-robin gm0 /dev/ad4s1 Assertion failed: (md.md_provsize != 0), function mirror_label, file /usr/src/sbin/geom/class/mirror/geom_mirror.c, line 245. Any idea why this is not working? Or why the assertion is coming up? I suspect that there is something odd about my disk (data or hardware) but I have no idea what it is. n From owner-freebsd-geom@FreeBSD.ORG Sat Dec 5 15:52:09 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 34E371065707 for ; Sat, 5 Dec 2009 15:52:09 +0000 (UTC) (envelope-from google@vink.pl) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id C76CE8FC15 for ; Sat, 5 Dec 2009 15:52:08 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so230048fgg.13 for ; Sat, 05 Dec 2009 07:52:08 -0800 (PST) Received: by 10.87.70.37 with SMTP id x37mr3678293fgk.36.1260026669114; Sat, 05 Dec 2009 07:24:29 -0800 (PST) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx.google.com with ESMTPS id e11sm12639828fga.24.2009.12.05.07.24.28 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Dec 2009 07:24:28 -0800 (PST) Received: by fxm2 with SMTP id 2so916720fxm.13 for ; Sat, 05 Dec 2009 07:24:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.54.15 with SMTP id o15mr677456fag.96.1260026665375; Sat, 05 Dec 2009 07:24:25 -0800 (PST) Date: Sat, 5 Dec 2009 16:24:25 +0100 Message-ID: <2ae8edf30912050724i6f196e53y40ccd06970d59a7a@mail.gmail.com> From: Wiktor Niesiobedzki To: freebsd-geom Content-Type: text/plain; charset=UTF-8 Subject: geli freezing 8.0 RELEASE and 7.2-STABLE 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: Sat, 05 Dec 2009 15:52:09 -0000 Hi, I'm currently configuring new box with 8.0-RELEASE. I'm setting it up together with geli. From time to time I notice some small freezes (for 2-5 seconds) of the system. I'm doing a small test. In one shell I'm running: % while true ; do ; sleep 1; date ;done sob 5 gru 2009 16:02:48 CET sob 5 gru 2009 16:02:49 CET sob 5 gru 2009 16:02:50 CET sob 5 gru 2009 16:03:15 CET sob 5 gru 2009 16:03:16 CET sob 5 gru 2009 16:03:17 CET sob 5 gru 2009 16:03:18 CET sob 5 gru 2009 16:03:19 CET (Note the gap between 16:02:50 and 16:03:15) In mean time I'm runnig following in the second terminal: # dd if=/dev/gzero.eli of=/dev/null bs=1M ^C3955+0 records in 3955+0 records out 4147118080 bytes transferred in 23.919693 secs (173376727 bytes/sec) As I've noticed, for the time, when dd is working, top reports, that all CPU is used by system by g_eli[0] gzero process. Until I interrupt the dd process, it is +/- fully busy with encryption. I've setup the geli as following: # kldload geom_zero # geli onetime -s 4096 -l 256 gzero GEOM_ELI: Device gzero.eli created. GEOM_ELI: Encryption: AES-CBC 256 GEOM_ELI: Crypto: hardware # sysctl kern.geom.zero.clear=0 (setting the last one to 1 doesn't make any change). On this system I have VIA Padlock device as crypto hardware. I've tried the same on 7.2-STABLE and got similiar result (though the interrupt signal wasn't delivered to dd process so I need to do a hard reset). Is this a problem within GEOM, or is this related to scheduler? On 8.0-Release I'm still running GENERIC kernel (with SCHED_ULE). Cheers, Wiktor Niesiobedzki