Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Dec 2011 10:04:43 -0600
From:      Rob <lists@midsummerdream.org>
To:        Derrick Ryalls <ryallsd@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: AHCI driver and static device names
Message-ID:  <4EDA489B.9060503@midsummerdream.org>
In-Reply-To: <CAN3mi_2u%2BHwFf3m%2BxvsNncfNpj_rFp94xjAv%2Bf0eFT7c4a%2B8Tg@mail.gmail.com>
References:  <4ED98E9F.9010401@midsummerdream.org> <CAN3mi_2u%2BHwFf3m%2BxvsNncfNpj_rFp94xjAv%2Bf0eFT7c4a%2B8Tg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
glabel looks to place a label on the whole disk, but the manpage is 
unclear (to me) how the partitions are handled.  If I use glabel to 
label a disk "test" and this disk has 4 partitions on it, then how is 
each partition accessed?  testp1...testp4 for gpt?

The other option seems to be to use tunefs or a partitioning tool to 
label each partition, which is even more ugly imo.

Rob

On 12/2/11 9:27 PM, Derrick Ryalls wrote:
> Look for disk labels, I think glabel is the command.  Then you use
> /dev/label/mylabel etc for the disks.
>
> Let me know if this isn't enough to find the right man page or spot in
> the handbook.  I use it in my raid array but am running short on time
> right now.
>
> On Fri, Dec 2, 2011 at 6:51 PM, Rob <lists@midsummerdream.org
> <mailto:lists@midsummerdream.org>> wrote:
>
>     I was getting ready to install the latest FreeBSD 9-RCs image, and I
>     found that 9 now defaults to using the ahci driver for sata disks.
>       This would be great if it weren't for the fact that the ahci
>     driver seems to do dynamic device name assignment as opposed to the
>     static ones used with the older drivers.
>
>     I've looked around on google and while this is mentioned (in old
>     threads), the "solution" is to use labels or elaborate mapping via
>     hints which really aren't solutions imo.  If I have 15 disks in an
>     array, I want to be able to label them and know which bay is which
>     device name. If I have to replace a drive, I have no idea what
>     dynamic device name it will have when it comes time to partition
>     (and label, if I were using that).  I could probably figure it out
>     by looking at what disks are used on the system, but that's more
>     work that it really should be.
>
>     Is there a way to use the ahci driver and get static device names?
>
>     Rob
>     _________________________________________________
>     freebsd-questions@freebsd.org <mailto:freebsd-questions@freebsd.org>
>     mailing list
>     http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions
>     <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>;
>     To unsubscribe, send any mail to
>     "freebsd-questions-__unsubscribe@freebsd.org
>     <mailto:freebsd-questions-unsubscribe@freebsd.org>"
>
>



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