From owner-freebsd-geom@FreeBSD.ORG Mon Sep 1 13:16:52 2008 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 B9B02106568E for ; Mon, 1 Sep 2008 13:16:52 +0000 (UTC) (envelope-from syhpoon@syhpoon.name) Received: from syhpoon.name (colo25-72.users.colocall.net [62.149.25.72]) by mx1.freebsd.org (Postfix) with ESMTP id 7BD948FC0A for ; Mon, 1 Sep 2008 13:16:52 +0000 (UTC) (envelope-from syhpoon@syhpoon.name) Received: from localhost (k3-gw.portaone.com [193.28.87.193]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by syhpoon.name (Postfix) with ESMTP id EE7E2343A0F6 for ; Mon, 1 Sep 2008 15:57:12 +0300 (EEST) Date: Mon, 1 Sep 2008 15:57:09 +0300 From: "Max E. Kuznecov" To: freebsd-geom@freebsd.org Message-ID: <20080901125709.GA26304@syhpoon-portaone.portaone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline X-Homepage: http://www.syhpoon.name/ User-Agent: Mutt/1.5.18 (2008-05-17) Subject: raid & label issues 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, 01 Sep 2008 13:16:52 -0000 Hi, I have a RAID1 created with atacontrol. After installation I create a label, say: tunefs -L root /dev/ar0s1a and put /def/ufs/root as rootfs into fstab. So I expect the system will boot from raid (ar0s1a) device, but it won't. It occurs that tunefs create label not only on ar0 device itself but on the raid components as well, in my case they are ad4 and ad6. And after reboot I've got my system booted from ad4, i.e. the first device with 'root' label on it. I've skimmed through the geom_label sources and, indeed, it creates /dev/ufs/