From owner-freebsd-geom@FreeBSD.ORG Tue Dec 7 21:05:28 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 469B516A4CE for ; Tue, 7 Dec 2004 21:05:28 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 222B343D62 for ; Tue, 7 Dec 2004 21:05:27 +0000 (GMT) (envelope-from dot@data.pl) Received: from localhost (dot.data@home@127.0.0.1) by matrix01.home.net.pl with SMTP; 7 Dec 2004 21:05:21 -0000 Date: Tue, 7 Dec 2004 22:04:28 +0100 From: dot@data.pl To: freebsd-geom@freebsd.org Message-Id: <20041207220428.2d3eed53.dot@data.pl> X-Mailer: Sylpheed version 1.0.0beta4 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: gbde and fsync X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 21:05:28 -0000 Hello, When I try to unmount my bde device i get: umount: unmount of /usr/home/PRV failed: Resource temporarily unavailable and (for example): fsync: giving up on dirty: 0xc1c8ee70: tag devfs, type VCHR, usecount 1151, writecount 0, refcount 31, flags (VV_OBJBUF), lock type devfs: EXCL (count 1) by thread 0xc1a3ce10 (pid 1608) dev ad0s3d.bde I belive that drive isn't physically damaged and it worked fine for months. But now it happens almost always when I work with large (megabytes) amounts of data. My system is: FreeBSD 5.3-STABLE #13: Fri Dec 3 20:20:36 CET 2004 root@ALEPH:/usr/obj/usr/src/sys/ALEPH i386 but problem occured circa three updates ago. I really don't know which informations could be important to diagnose. Please let me know if You have any idea how to safe my data (beside backup) and cleanly shutdown system or where my problem lies. Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Fri Dec 10 02:17:19 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C386116A4CF for ; Fri, 10 Dec 2004 02:17:19 +0000 (GMT) Received: from mail.agala.net (I868b.i.pppool.de [85.73.134.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B68843D5F for ; Fri, 10 Dec 2004 02:17:15 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (mail.agala.net [192.168.20.1]) by mail.agala.net (8.13.1/8.13.1) with ESMTP id iBA2FUZK053687 for ; Fri, 10 Dec 2004 03:15:32 +0100 (CET) (envelope-from frank@barda.agala.net) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-geom@freebsd.org Date: Fri, 10 Dec 2004 03:14:59 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412100315.11436.frank@barda.agala.net> X-Scanned-By: MIMEDefang 2.44 Subject: How do I change the password of a gbde lock? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 02:17:20 -0000 Hi, now that I'm using FreeBSD 5.3 I decided to play with gbde. I hab a spare=20 partition (/dev/ad4s4h) and setting gbde up was easy. # gbde init /dev/ad4s4h -i -L /etc/gbde/ad4s4h.lock # gbde attach ad4s4h -l /etc/gbde/ad4s4h.lock # newfs -U /dev/ad4s4h.bde # mount /dev/ad4s4h.bde /secure =2E.. # umount /secure # gbde detach ad4s4h That was easy. Then I tried: # gbde setkey ad4s4h -l /etc/gbde/ad4s4h.lock -L /etc/gbde/ad4s4h.lock gbde: Error 22 decrypting lock Ofcourse I typed the password, when ist asked me. =2D-=20 Tsch=FCss =46rank From owner-freebsd-geom@FreeBSD.ORG Sat Dec 11 02:25:27 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0763F16A4CE for ; Sat, 11 Dec 2004 02:25:27 +0000 (GMT) Received: from koyukuk.teamcool.net (koyukuk.teamcool.net [208.39.216.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8915F43D64 for ; Sat, 11 Dec 2004 02:25:24 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from localhost (localhost [127.0.0.1]) by localhost.teamcool.net (TeamCool Rocks) with SMTP id D124E17093 for ; Fri, 10 Dec 2004 19:33:51 -0700 (MST) Received: from cochise.teamcool.net (unknown [192.168.1.57]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id 818FC15B7B for ; Fri, 10 Dec 2004 19:33:51 -0700 (MST) Content-Type: text/plain; charset="us-ascii" From: Ken Gunderson To: freebsd-geom@freebsd.org Date: Fri, 10 Dec 2004 19:47:52 -0700 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200412101947.52728.kgunders@teamcool.net> Subject: gmirror confusion X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2004 02:25:27 -0000 Hello: Been fighting gmirror for longer than I want to admit and going to have to break down and ask for help on what at first blush seems should be trivial... Would somebody please elaborate upon Pawel's post in the gmirror problmes thread: The safest way to do what you want is to: # gmirror label ad1 create slices and partitions on /dev/mirror/ create file system copy data from ad0 to change /etc/fstab to boot from /dev/mirror/s1a or something reboot # gmirror insert ad0 I have two disks, ad0 and ad2 that I'd like to mirror. In the past would have just bootstrapped vinum. Gmirror seems like a better way to go for this type of application but I'm only recently using 5.3 on production machines so haven't had the chance to become as familiar with geom as I probably should be. I can get the mirror configured with the live files system trick, but not the above, which Pawel mentions as the "safest" way to handle this. For example, I've searched archives and seen references to both 1) "create slices and partitions on /dev/mirror/" as well as 2) "create slices and partitions on provider" As well as confusion about whether the mirror's label should have the 16 sector offset thrown at it by bsdlabel, or whether I should just clone the label from the drive I did the install on. I'm also curious whether anyone has done any performance testing of the different balance options. For booting from 2 mirrored drives, I assume either "load" or "round-robin" would be the options of choice? TIA-- -- Best regards, Ken Gunderson GPG Key-- 9F5179FD "Freedom begins between the ears." -- Edward Abbey