From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 25 04:59:35 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2ED0106566B for ; Mon, 25 Jul 2011 04:59:35 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A0E0A8FC1A for ; Mon, 25 Jul 2011 04:59:35 +0000 (UTC) Received: by gyf3 with SMTP id 3so2431025gyf.13 for ; Sun, 24 Jul 2011 21:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VWpCuH4sABo3ykA1PcxKmNvV2/MGVfRqEJ7VPt4+tz0=; b=EHD5NyP7ukHI3ZEvoCso3Cs5WhkDQPTqvE8bHcnsbliNi/12hnU1iSZ+KXkwo3CNJM LGuZwbDDH639h8t80UgtzZJjUO6DdMoOENQPVY5XKNQlWHD+Q3tdttcinxyX+g/tzBEd vHLvUcvy/vePP0fEFwlQtcaSvkt3YVqE7cm/8= MIME-Version: 1.0 Received: by 10.91.204.23 with SMTP id g23mr3970988agq.94.1311568494814; Sun, 24 Jul 2011 21:34:54 -0700 (PDT) Received: by 10.90.209.12 with HTTP; Sun, 24 Jul 2011 21:34:54 -0700 (PDT) In-Reply-To: References: <29AAE187-42EB-4478-985B-DF7DB3EDE67F@gsoft.com.au> Date: Sun, 24 Jul 2011 21:34:54 -0700 Message-ID: From: Freddie Cash To: Stephen Hocking Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "hackers@freebsd.org" Subject: Re: Mapping /dev/gptid numbers to /dev/adXpY X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 04:59:36 -0000 If you disable gptid labels in /boot/loader.conf and reboot, it should display the device nodes again. Alternatively, since you are using gpt, you can just label the partitions, and 'zfs replace' each disk with the /dev/gpt/labelname node. On Sunday, July 24, 2011, Stephen Hocking wrote: > On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor wrote: >> >> On 25/07/2011, at 11:03, Stephen Hocking wrote: >>> Now this is all very interesting, but I would like to be able to map >>> that back to a /dev/adXpY device entry, so when I offline them I can >>> then go to the appropriate physical disk. I thought that gpart show -r >>> might help, but the numbers emitted from that don't match up. Looking >>> at the major/minor numbers of the devices don't help either. Does >>> anyone have an idea? >> >> >> If you run 'gpart list' you will see a list of device names and UUIDs. >> >> Mapping it by hand is a bit tedious though.. >> > > > Both Test Rat & Daniel pointed me towards gpart list. The gpart man > page doesn't seem to mention the list command, which is probably why I > missed it. Anyways, now all I have to do is label my hotswap drawers > properly.... > > > Stephen > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Freddie Cash fjwcash@gmail.com