Date: Thu, 9 Jul 2009 15:05:30 +0200 From: =?ISO-8859-1?Q?Marius_N=FCnnerich?= <marius@nuenneri.ch> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-geom@freebsd.org Subject: Re: glabel and real disk IDs Message-ID: <b649e5e0907090605g7979da3cl6d530c0b0d8b46ec@mail.gmail.com> In-Reply-To: <h34lml$6fv$1@ger.gmane.org> References: <h34lml$6fv$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 9, 2009 at 13:52, Ivan Voras<ivoras@freebsd.org> wrote: > Hi, > > I've been working with glabels for a time and just remembered that ATA (ad) > drives do in fact export the drive ID, for example: > > # diskinfo -v ad4 > ad4 > 512 # sectorsize > 320072933376 # mediasize in bytes (298G) > 625142448 # mediasize in sectors > 620181 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > ad:9QF4H15Y # Disk ident. > > # diskinfo -v ad6 > ad6 > 512 # sectorsize > 320072933376 # mediasize in bytes (298G) > 625142448 # mediasize in sectors > 620181 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > ad:9QF4EP7A # Disk ident. > > # diskinfo -v ad8 > ad8 > 512 # sectorsize > 320072933376 # mediasize in bytes (298G) > 625142448 # mediasize in sectors > 620181 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > ad:9QF4H16L # Disk ident. > > I don't think it would be hard to add a label parser to gather this > information and export it as a label. > > The purpose of this would be to have a unique disk ID without explicitly > setting a label (e.g. as is commonly advised for ZFS and drive swapping). > > Any objections? I like the idea. If one should use it in which situation is something different.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e0907090605g7979da3cl6d530c0b0d8b46ec>
