From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 25 02:02:07 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 317A3106566B for ; Mon, 25 Jul 2011 02:02:07 +0000 (UTC) (envelope-from stephen.hocking@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id BE9F58FC0C for ; Mon, 25 Jul 2011 02:02:06 +0000 (UTC) Received: by wwe6 with SMTP id 6so3523489wwe.31 for ; Sun, 24 Jul 2011 19:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Po1NkbI1uGxgMkBv2GgSJADhGS2blLOElcOr5dzb9kQ=; b=b/ZI7HteVlphce4zPo/ruI+K+DbE3Rp7kteenoq3LaImUNcSgGNgsWh2dCY/D+iGn2 mzsdCwtFIEWJI8wqGpNZHyGptOTV5kq4aFUac+57tvpX2kfAo6ckYhxARR4kOt1cPy2a lCCra7PLeSBVgQSOnilH3RgsUkFUIwbB3Hyq0= MIME-Version: 1.0 Received: by 10.216.163.203 with SMTP id a53mr20381wel.8.1311557592319; Sun, 24 Jul 2011 18:33:12 -0700 (PDT) Received: by 10.216.86.133 with HTTP; Sun, 24 Jul 2011 18:33:12 -0700 (PDT) Date: Mon, 25 Jul 2011 11:33:12 +1000 Message-ID: From: Stephen Hocking To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: 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 02:02:07 -0000 Hi all, After shuffling some disks around in a ZFS array (moving them to a hot-swap cabinet) I am now seeing gptid numbers when doing a zpool status: zpool status schtuff pool: schtuff state: ONLINE scan: scrub repaired 0 in 5h57m with 0 errors on Wed Jul 20 17:05:29 2011 config: NAME STATE READ WRITE CKSUM schtuff ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ad8p1 ONLINE 0 0 0 gptid/13aed7e6-9ca8-11e0-99f1-001a4d9c179c ONLINE 0 0 0 gptid/15c300de-9ca8-11e0-99f1-001a4d9c179c ONLINE 0 0 0 errors: No known data errors 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? Stephen