From owner-freebsd-fs@FreeBSD.ORG Sat Jun 8 09:24:48 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 70A4AD5F for ; Sat, 8 Jun 2013 09:24:48 +0000 (UTC) (envelope-from rcartwri@asu.edu) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id 1016C1C3F for ; Sat, 8 Jun 2013 09:24:47 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id p58so3736136wes.12 for ; Sat, 08 Jun 2013 02:24:46 -0700 (PDT) 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=6oneIFVmRM4bjNFsJQuMqXQSWOalzllxIIUO201k3JQ=; b=Xc0XIsqlM59i7+BErD/HzVO7hUOIEkAnKY+gCFaIB46XGjfDkz2G+wSZX+p43PNZbn HejBVKbFrtCjkEi+4janc7d9cKOKx0iCtqpoI1mWWhwf4V0Efud5LcFHsh8WcDzU0DmL rcaBVIXTyoehfwMaB6q5DexTvSEQNj/upsdvS0kRY59hyYHMySJ34mYfqoi1WnO9uotS Zfj88Iz/x7JJ05rdfxQwzcnc+brap36q5eFyrGZhFfHjw+kSQtvogcya5rVclEn05Fur s7r302+pWAOVkuUgumMhqUwFTXoqVjzNSxLcUsp2HegyzTz6ed4dqFxw1+qONvaLPQdx Y+/A== MIME-Version: 1.0 X-Received: by 10.180.189.41 with SMTP id gf9mr670005wic.32.1370683486186; Sat, 08 Jun 2013 02:24:46 -0700 (PDT) Received: by 10.180.76.114 with HTTP; Sat, 8 Jun 2013 02:24:46 -0700 (PDT) Date: Sat, 8 Jun 2013 02:24:46 -0700 Message-ID: Subject: ZFS and Glabel From: "Reed A. Cartwright" To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlGDVUUKFzxNTRBWNN3+1j3JCbfBHV2+pTemHJ7iKr/GqGtB66TnGfpWoq6+qMo++uTivSF 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, 08 Jun 2013 09:24:48 -0000 I currently have a raidz2 pool that uses whole disks: da6, da7, etc. I want to label these using glabel and have zfs mount them using the labels. This way, if an HDD fails, I will be able to easily replace the drive. So my questions are a follows: 1) Can glabel be used with zfs and raw disks? Should it be? 2) Can I add a glabel after the disks have been placed in a pool? 3) How would I do this without losing data? E.g. glabel label /dev/da6 storage1 glabel ... zpool export storage zpool import -d /dev/label storage 4) Is there a better alternative that allows me the keep the data on the drives and relabel them? -- Reed A. Cartwright, PhD Assistant Professor of Genomics, Evolution, and Bioinformatics School of Life Sciences Center for Evolutionary Medicine and Informatics The Biodesign Institute Arizona State University - Address: The Biodesign Institute, PO Box 875301, Tempe, AZ 85287-5301 USA Packages: The Biodesign Institute, 1001 S. McAllister Ave, Tempe, AZ 85287-5301 USA Office: Biodesign A-224A, 1-480-965-9949