Bug 219001

Summary: Installer Auto (ZFS) Partitioning creates pools with out-of-order disks
Product: Base System Reporter: Peter Pauly <ppauly>
Component: binAssignee: freebsd-sysinstall (Nobody) <sysinstall>
Status: New ---    
Severity: Affects Some People CC: grahamperrin, ppauly, vsasjason
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219007

Description Peter Pauly 2017-05-01 15:33:33 UTC
When doing a Auto ZFS Partitioning in the installer, disks are added to the pool in alphabetical order instead of numerical order. This is an issue when using more than 10 disks. For example, this is the order of disks chosen by the installer with 16 disks:

da0
da1
da10
da11
da12
da13
da14
da15
da16
da2
da3
da4
da5
da6
da7
da8
da9

The zpool is also created in this order which may cause problems or confusion for the system administrator. 

The Auto (UFS) code does not suffer from this problem. 

Tested on VMware, AMD64 with 16 100GB drives.
Comment 1 Peter Pauly 2017-05-01 17:34:38 UTC
Sorry, not da16, only 0-15 for 16 drives.
Comment 2 Peter Pauly 2017-05-01 19:02:04 UTC
Tested with RAIDZ2 on VMware ESXi-5.5.0.
Comment 3 Peter Pauly 2017-05-03 15:11:50 UTC
Tested on FreeBSD-11.0-RELEASE-amd64 and
FreeBSD-12.0-CURRENT-amd64-20170420-r317181

Problem exists on both.