Date: Thu, 09 Jul 2009 13:52:53 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-geom@freebsd.org Subject: glabel and real disk IDs Message-ID: <h34lml$6fv$1@ger.gmane.org>
next in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h34lml$6fv$1>
