Suggestions for working with unstable nvme dev names in AWS

Matthew Seaman matthew at FreeBSD.org
Tue May 14 06:41:49 UTC 2019


On 14/05/2019 03:35, George Hartzell wrote:
> Can anyone speak to the current state of device names for nvme disks
> on AWS using the FreeBSD 12 AMI's?  Is name-stability an issue?  If
> so, is there a work-around?
> 

I don't know about device name stability in AWS instances, but if you
are using ZFS, then shuffling the disks around should not make any
difference.  With physical hardware it should be possible to eg. pop the
disks out of one chassis and insert them into another in whatever order,
and the system will still boot correctly.  This sounds like the virtual
equivalent of that.

Technically, ZFS writes a label onto each disk which identifies it as
belonging to a zpool and its role within that zpool.  So long as the
system can interrogate the disk at boot time, it will work out.

If you're using UFS, or you have swap partitions separate to your ZFS
then definitely investigate labelling your partitions -- see glabel(8)
or gpart(8).  This allows you to label a partition as eg. 'root' and
then you can mount it by using the label as a device name eg.
/dev/gpt/root in fstab(5).

The FreeBSD installer defaults to using labelling like this both for ZFS
and UFS installs.

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20190514/5c900485/attachment.sig>


More information about the freebsd-questions mailing list