How does N4F / BSD 9.2 name devices/harddrives?
I am currently setting up my new NAS with a IBM M1015 (IT mode) with 6x 4tb drives. I noticed the device names does not coincide with the physical port order.
For example, I want da0 to be the first harddrive connected to sata port 1 and da1 to be the second etc. But it seems the order right now is random. When plugging in a new drive reorders everything.
What am I doing wrong?
Thanks in advance for any advice!
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
IBM M1015 port numbers and device name
-
vandy
- Starter

- Posts: 20
- Joined: 13 Dec 2013 08:34
- Status: Offline
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: IBM M1015 port numbers and device name
there is no assigned order.
the first detected drive becomes da0 regardless if its connected to the first or last port.
the first detected drive becomes da0 regardless if its connected to the first or last port.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
vandy
- Starter

- Posts: 20
- Joined: 13 Dec 2013 08:34
- Status: Offline
Re: IBM M1015 port numbers and device name
thankyou for the info b0ssman. I've resorted to labeling the drive bays with the corresponding drive's serial numbers for easy identification.
Is this the usual way it is done? I can't imagine this being practical in an array with a lot of disks.
Is this the usual way it is done? I can't imagine this being practical in an array with a lot of disks.
-
RedAntz
- experienced User

- Posts: 125
- Joined: 11 Jul 2012 07:46
- Location: Sydney, Australia
- Status: Offline
Re: IBM M1015 port numbers and device name
Yes. It is the best / most accurate way possible to correspond physical hard disks to their order. It is not possible for the system to tell the controller ports and chassis bay order sequence.vandy wrote:thankyou for the info b0ssman. I've resorted to labeling the drive bays with the corresponding drive's serial numbers for easy identification.
Is this the usual way it is done? I can't imagine this being practical in an array with a lot of disks.
- erico.bettoni
- experienced User

- Posts: 140
- Joined: 25 Jun 2012 22:36
- Location: São Paulo - Brasil
- Status: Offline
Re: IBM M1015 port numbers and device name
Yeah, just noticed the same think with my new M1015 flashed to SAS2008 IT mode. Shit, my OCD will drive me crazy with this.
:/
One think I noticed is that the hard drives are ALLWAYS detected in the same order, if that is based on detection it seens odd that the drives will be detected the same way after every reboot...
Maybe we could use labels?
:/
One think I noticed is that the hard drives are ALLWAYS detected in the same order, if that is based on detection it seens odd that the drives will be detected the same way after every reboot...
Maybe we could use labels?
- ChriZathens
- Forum Moderator

- Posts: 758
- Joined: 23 Jun 2012 09:14
- Location: Athens, Greece
- Contact:
- Status: Offline
Re: IBM M1015 port numbers and device name
The key part in this situation is that ZFS does not care about drive names.
The pools will know which drives are their members and won't complain....
The pools will know which drives are their members and won't complain....
My Nas
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- Case: Fractal Design Define R2
- M/B: Supermicro x9scl-f
- CPU: Intel Celeron G1620
- RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
- PSU: Chieftec 850w 80+ modular
- Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
- O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
- Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- erico.bettoni
- experienced User

- Posts: 140
- Joined: 25 Jun 2012 22:36
- Location: São Paulo - Brasil
- Status: Offline
Re: IBM M1015 port numbers and device name
Yep, ZFS doesn't care and everything works. The issue, if it ever happens, would be when you need to replace a disk...
Last edited by erico.bettoni on 11 Jun 2015 08:12, edited 1 time in total.
- erico.bettoni
- experienced User

- Posts: 140
- Joined: 25 Jun 2012 22:36
- Location: São Paulo - Brasil
- Status: Offline
Re: IBM M1015 port numbers and device name
Ok, after messing around with my pools I got the disks named properly in the pool.
What I did:
zpool export POOL
glabel label disk0 /dev/daX (here is where I had to map the name to the corresponding da)
zpool import -d /dev/label POOL
That was it! Now the pool status show the disk names as are they plugged in my cages!
In Management -> Disks they still show up as their physical names. Maybe we should improve this screen so we could edit the labels there?
What I did:
zpool export POOL
glabel label disk0 /dev/daX (here is where I had to map the name to the corresponding da)
zpool import -d /dev/label POOL
That was it! Now the pool status show the disk names as are they plugged in my cages!
In Management -> Disks they still show up as their physical names. Maybe we should improve this screen so we could edit the labels there?