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!

IBM M1015 port numbers and device name

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
vandy
Starter
Starter
Posts: 20
Joined: 13 Dec 2013 08:34
Status: Offline

IBM M1015 port numbers and device name

Post by vandy »

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!

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: IBM M1015 port numbers and device name

Post by b0ssman »

there is no assigned order.

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
Starter
Posts: 20
Joined: 13 Dec 2013 08:34
Status: Offline

Re: IBM M1015 port numbers and device name

Post by vandy »

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.

RedAntz
experienced User
experienced User
Posts: 125
Joined: 11 Jul 2012 07:46
Location: Sydney, Australia
Status: Offline

Re: IBM M1015 port numbers and device name

Post by RedAntz »

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.
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.

User avatar
erico.bettoni
experienced User
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

Post by erico.bettoni »

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?

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: IBM M1015 port numbers and device name

Post by ChriZathens »

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....
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. 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)

User avatar
erico.bettoni
experienced User
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

Post by erico.bettoni »

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.

User avatar
erico.bettoni
experienced User
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

Post by erico.bettoni »

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?

Post Reply

Return to “Hard disk & controller”