From owner-freebsd-fs@FreeBSD.ORG Sat Jan 12 05:13:35 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B284D868 for ; Sat, 12 Jan 2013 05:13:35 +0000 (UTC) (envelope-from tjg@soe.ucsc.edu) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx1.freebsd.org (Postfix) with ESMTP id 4A66B3D4 for ; Sat, 12 Jan 2013 05:13:34 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so2067696vbb.7 for ; Fri, 11 Jan 2013 21:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:date:message-id:subject:from:to:content-type; bh=AVZMHrt6NmACZqyPCHAoOGjM3pCgJBpCY9u4katEFAE=; b=YRCIgOGAVAC4Ezt195RDPCVF00OMhWIJBAr198g77QDhCjHeVOshAGwOlvTwaBUibY MsDvCXJ2dJdEquKSePmtu+tktB/wmbwTsk2IQBntz+IHQrG/XW6KJ83a1Qngo3/J0wS0 DhSyzxWdozFzjlBYuXrJTAaeRyGT8gnGCXW3g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=AVZMHrt6NmACZqyPCHAoOGjM3pCgJBpCY9u4katEFAE=; b=pIoW0GUEO2DOXvU00LMwpm6mdSgGOkw+qMf7gGjKHDD1uBc4MDuc0TGA3HAZqMFOeE 4pnd0nkLY8//yYEDvaSOIcIGE1RrNk73/g6St3k6tQkUklY7bQ6C7tOLB/NIv2em2CNt XavP37EnBKdAN6g6FC2ACRqg+XKaMZTACytg7WROyIeDQ0dfQ/gFlO3wIV5WnDUl4fo6 65qkrBM44NbMmciGcd+oUOdUEh/5V5IlfYh5e0t2r1IW1fmUjMzCwLeoW4GnczNfNJJ4 HFHn123ijG6wyoFwlNj6JtVXAYFBtcXNqWzmyKQqEF9CKimwo1b2Fy99QR8WIX5jukKe 6gAA== MIME-Version: 1.0 Received: by 10.220.153.80 with SMTP id j16mr94613395vcw.21.1357967614103; Fri, 11 Jan 2013 21:13:34 -0800 (PST) Received: by 10.59.12.231 with HTTP; Fri, 11 Jan 2013 21:13:33 -0800 (PST) Date: Fri, 11 Jan 2013 21:13:33 -0800 Message-ID: Subject: Using glabel From: Tim Gustafson To: FreeBSD Filesystems Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkDUkHaBSWuWvMg4mjATwswigII1RhxVEfNV0+xfCoQXE7ff+yMNTWM8g9qa2wEkL1SNYGH X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 05:13:35 -0000 Hi, We have a few servers with 45 disks each. It gets a bit cumbersome at the moment to map a failed drive (reported via "zpool status") to a physical device. The physical devices are labeled with serial numbers, and ZFS reports device nodes. I was wondering if I could use "glabel" to label each of the disks we have with their serial number to make identification easier, and then reconfigure the zpool to import the drives by gptid, rather than device node. So, my thinking was along the lines of: - obtain the device serial numbers, probably using smartctl - zpool export tank - glabel -v SERIAL-NUMBER-0 /dev/ada0 - glabel -v SERIAL-NUMBER-1 /dev/ada1 - glabel -v SERIAL-NUMBER-2 /dev/ada2 - snip 43 more glabel lines - zpool import tank -d /dev/gptid Is there any reason that this is a bad idea? Do I have the command sequence correct? -- Tim Gustafson tjg@soe.ucsc.edu 831-459-5354 Baskin Engineering, Room 313A