Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2013 14:21:03 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        "Teske, Devin" <Devin.Teske@fisglobal.com>
Cc:        "<freebsd-current@freebsd.org>" <freebsd-current@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>, Allan Jude <freebsd@allanjude.com>
Subject:   Re: [CFT] Patch to bsdinstall to support root-on-ZFS and GELI
Message-ID:  <20131008212103.GJ56872@funkthat.com>
In-Reply-To: <13CA24D6AB415D428143D44749F57D720FC46255@LTCFISWMSGMB21.FNFIS.com>
References:  <52531295.7090700@allanjude.com> <52546844.2010608@freebsd.org> <13CA24D6AB415D428143D44749F57D720FC46255@LTCFISWMSGMB21.FNFIS.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Devin Teske wrote this message on Tue, Oct 08, 2013 at 20:50 +0000:
> > 2. Why are you using camcontrol? That is guaranteed not to work on
> > non-CAM systems. You should use the GEOM ident string if you need an ID.
> 
> I imagine we could get the info from many places, and to be honest, I never
> knew about "diskinfo" until last week (but apparently it's been around since
> 5.x days).
> 
> The one place where I suspect camcontrol(8) usage is appropriate is the
> mini "disk inspector" dialog. The camcontrol inquiry output is specifically
> helpful if/when you're doing multipathing (and you need to identify which
> da# devices are duplicates of the same device -- given Serial#).
> 
> But I gather you mean for "disk description" in the device menu (for picking
> text to go along with the device name).
> 
> I'm open to using a different tool... or multiple tools. Do you think it would be
> better to just stick to one tool? or to query a few? (which ones win-out?)

diskinfo -v dumps the serial number for you under disk ident..  diskinfo
gets it from geom and most geoms properly present that info now...  or
at least probably anyones support by cam will do it automatically...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131008212103.GJ56872>