Re: diskid documentation

From: Nathan Whitehorn <nwhitehorn_at_freebsd.org>
Date: Mon, 02 Jun 2014 09:54:57 -0700
On 06/02/14 08:50, Kurt Lidl wrote:
>> On Mon, Jun 2, 2014 at 9:26 AM, Allan Jude <allanjude at freebsd.org> 
>> wrote:
>>> It also tends to sometimes hide the gpt label provider on me (not sure
>>> in which cases it does this, but it is annoying)
>>
>> This happens when something (e.g. zfs) happens to open the diskid
>> provider instead of the gpt label.  For me this ended up being a bit
>> more than annoying; my swap was mounted in /etc/fstab via a gpt label
>> so I silently lost my swap when I did an upgrade.
>
> I have seen this too, starting from a fresh install.
>
> The install process for stable/10 writes a /dev/gpt style label
> into /etc/fstab for the swap space, and that never gets used,
> because the /dev/diskid/xxxx stuff appears to take precedence.

The installer doesn't actually do this.

It would be kind of nice if it did, but the label code is fantastically 
unreliable (for the reason you mention as well as others). So, while it 
does set labels on the disk, it does not use them.
-Nathan

> I put the following into /boot/loader.conf to make the system more
> sane:
>
> kern.geom.label.disk_ident.enable=0
>
> -Kurt
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to 
> "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Mon Jun 02 2014 - 14:55:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:49 UTC