From owner-freebsd-questions@FreeBSD.ORG Mon Feb 24 19:26:06 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E662D4D for ; Mon, 24 Feb 2014 19:26:06 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 41DB21C4D for ; Mon, 24 Feb 2014 19:26:05 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s1OJQ4JH002367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 24 Feb 2014 12:26:04 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s1OJQ4sO002364; Mon, 24 Feb 2014 12:26:04 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 24 Feb 2014 12:26:04 -0700 (MST) From: Warren Block To: Chris Stankevitz Subject: Re: gptids are not symlinks to /dev/da* In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 24 Feb 2014 12:26:05 -0700 (MST) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 19:26:06 -0000 On Mon, 24 Feb 2014, Chris Stankevitz wrote: > Hello, > > Can you help fill in some detail for the questions I list below? Thank you! > > > Facts: > > 1. zpool status shows "gptids" like so: > gptid/affd7a1f-9c50-11e3-a81e-002590caf078 > > 2. gptids are located under /dev/gptid/ and /dev > > 3. smartctl does not like gptids but does like /dev/da* "smartctl -a > /dev/gptid/affd7a1f-9c50-11e3-a81e-002590caf078" > > 4. "man gptid" comes up blank > > 5. the freebsd handbook does not describe gptid > > 6. google "freebsd gptid" returns a bunch of random stuff > > > Questions: > > Q1: What is a gptid? > > A1: It's some kind of system by which drives have the same device name > across reboots Not device name, but a label. Although the correct one should work in place of a device name. I use GPT partition labels, but have never bothered with the GUIDs. > Q2: How does FreeBSD know which drive corresponds to which gptid? > When is the gptid assigned? > > A2: gptids are written to the first block of the disk during manufacture. Generated when the structure is created, I think. > Q3: Can I use it like a regular /dev/da? device? > > A3: No. For example, smartctl takes /dev/da* but not /dev/gptid/* smartctl wants a device, but GPTIDs refer to partitions. There is a GUID for the whole disk, but it appears to not be shown. > Q5: Why am I unable to figure out what is a gptid even after > attempting to read documentation/google? GPT IDs and labels are created by the geom_label class, described in glabel(8).