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!

Device names changed after replacing disk

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
turdburglar
NewUser
NewUser
Posts: 7
Joined: 21 Jan 2015 05:28
Status: Offline

Device names changed after replacing disk

Post by turdburglar »

I have a system containing two identical HBAs with 8 SAS (SATA) ports each. On the first controller, I have four 2TB drives (ports 0-3) and four 3TB drives (ports 4-7). On the second controller, there are two additional 3TB drives (ports 0-1). The first group of four 2TB drives is a raidz1; the six 3TB drives are a raidz2.

Before I did anything, the device names were exactly in order. The boot drive identified as da0, the raidz1 was da1-da4, and the raidz2 was da5-da10. Then I replaced what was da3 by executing zpool <pool> replace da3 (or something similar). Everything seemed OK and the resilver started; however, the device names are no longer in order. What was da4 became da3 and the 3TB drives on the first controller are now da4-da7 (da9 and da10 on the second controller are the same). The replaced 2TB drive now shows as da8.

Code: Select all

  pool: zpool1
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	pool        ONLINE       0     0     0
	  raidz2-0  ONLINE       0     0     0
	    da4     ONLINE       0     0     0
	    da5     ONLINE       0     0     0
	    da6     ONLINE       0     0     0
	    da7     ONLINE       0     0     0
	    da9     ONLINE       0     0     0
	    da10    ONLINE       0     0     0

errors: No known data errors

  pool: zpool2
 state: ONLINE
  scan: resilvered 219G in 1h12m with 0 errors on Tue Jan 20 18:45:16 2015
config:

	NAME        STATE     READ WRITE CKSUM
	tank        ONLINE       0     0     0
	  raidz1-0  ONLINE       0     0     0
	    da1     ONLINE       0     0     0
	    da2     ONLINE       0     0     0
	    da8     ONLINE       0     0     0
	    da3     ONLINE       0     0     0

errors: No known data errors
I've tried everything I can think of and cannot get the names back to the way they used to be. I even unplugged the drives, reinstalled NAS4Free, and plugged the drives in in the order they should be named. After importing the pools, everything changed back.

Version info:
9.3.0.2 - Nayla (revision 1310)
FreeBSD Revision: 199506
FreeBSD 9.3-RELEASE-p8 #0 r277306M: Sat Jan 17 21:53:14 CET 2015

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

Re: Device names changed after replacing disk

Post by b0ssman »

the order does not matter
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.

Post Reply

Return to “ZFS (only!)”