Just to say i had this problem not way back with freenas 7.2 and my old 1068 Sas controllers(but i cannot really say when it was starting), back then it was like this, the disk order in the controller(bay0-bayx) was the same in Freenas(bay0=da0.....), now the order in Nas4free is not the same then the controller has.
Its even stranger, for example bay3=da6,bay6=da3 but when i change the 2 disks the order in the controller is shifting but not in Nas4free, i mean the disk wich was in bay6 and was da3 is now in bay3 but is still da3.
But ok this was just a sidenote, to get arround any of this Problems, i decided to use Disklabels for all my Disks.
After some trying arround i get i working with some minnor bugs, maybe someone can give me a hand on this.
For my zfs Pools is was quite easy.(i removed all the Disks who where shifting, so i had proper sort for the pools)
Example:Pool Serien da2,da3,da4
Code: Select all
zpool export Serien
glabel label SerienDisk1 da2
glabel label SerienDisk2 da3
glabel label SerienDisk2 da4
changing under Disk
Code: Select all
<name>da2</name>
<devicespecialfile>/dev/da2</devicespecialfile>
to
<name>SerienDisk1</name>
<devicespecialfile>/dev/label/SerienDisk1</devicespecialfile>
...
Code: Select all
<device>/dev/label/da2</device>
<device>/dev/label/da3</device>
<device>/dev/label/da4</device>
to
<device>/dev/label/SerienDisk1</device>
<device>/dev/label/SerienDisk2</device>
<device>/dev/label/SerienDisk3</device>
now its working and ok
Code: Select all
NAME STATE READ WRITE CKSUM
Serien ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
label/SerienDisk1.nop ONLINE 0 0 0
label/SerienDisk2.nop ONLINE 0 0 0
label/SerienDisk3.nop ONLINE 0 0 0

btw if you made such changes dont touch detect or sync on zfs tab, or import, clear config on Disk managment.
For all labeld Disks there is a cosmetic "Error" with not showing Device model and Serial number anymore(they are still in the config.xml).
For Ufs Disk i run into little Trouble.
For new Disk its easy.Add Disk (Example da0, label Download)
Disk needs to be unmounted
Code: Select all
glabel label Download da0
editing config.xml
changing under Disk
Code: Select all
<name>da0</name>
<devicespecialfile>/dev/da0</devicespecialfile>
to
<name>Download</name>
<devicespecialfile>/dev/label/Download</devicespecialfile>
No goto Format tab , under dropdown disk should staying as Download, format Disk, mount Disk, done.
On adding existing Ufs drive without format i run into trouble, i made the same step, but on mount its was give me an error
/dev/Download/Downloadp1: Can't get the UFS ID
dumpfs: /dev/Download/Downloadp1: could not find special device
You need to also glabel the Parition.
Code: Select all
glabel label Download da0
glabel label Download da0p1
This is working but after Restart iget another cosmetical Error.Disk is stated missing under Managment
Mountpoint is ok, can also access disk via Cifs.

There is one more litte Bug then, under Mountpoints The labbels drive is then showing as 0MB (allrdy mounted).

So to get it together its working with minor bugs.
-not showing Device model and Serial number for labbeld Disks
-showing labeld UFS Disks as Missing under Disk Management(but working)
-showing mounted Drives as 0MB under MoutDropdownmenu
-labeld Disks not showing tmep and iostat under Disk info
BTW maybe its also possible ta add some kind of Security switch witch when enabled it doesent overwrite custom labels on detect import ZFS and clear import Diskmanagment.
(if you only import labbeld Disk are still in but are double in under normal dax name.)
Sorry for the long text but maybe it helps someone, or give someone the informations to solve those little bugs.
MFG Alex

