I'm using:
on this motherboard:
I have a hot swap Lian Li case that has 5 bays however only 4 are occupied (motherboard only has 4 SATA ports). They show up in the system as ada0-3. I have a single RAIDZ2 array configured across 4 3TB disks.
.
ISSUE: One fine day ada2 starts acting up and then completely fails. Great, I order a new drive and when I go to remove the failed drive (verified by serial #) and replace it with the new drive (all without rebooting) my drive ordering changed from:
.
ada0 (disk A)
ada1 (disk B)
ada2 (failed disk C)
ada3 (disk D)
.
to:
.
ada0 (disk A)
ada1 (disk B)
ada2 (disk D)
ada3 (brand new placement disk)
.
As a result ZFS lost track of disk D because it changed from ada3->ada2 and this knocked the RAIDZ2 array down to 2 drives but luckily I didn't lose any data. I find it very odd ZFS lost track of the drive because it certainly knows the drives as more than just the ada#, it also has the gptid (among possibly other IDs), right?
.
QUESTION: How do I either a) stop this device re-ordering from happening (is this the answer?) or b) make ZFS recognize the drives not by the ada# which may change but by their GUID, gptid, WWID, or some other ID.
.
End result: I ended up rebooting the system and the drives showed back up in their original order and I kicked off a resilver. I view this as a hack and suboptimal when hot swapping should be working just fine.
.
Thank you.
Code:
FreeBSD freenas.minifrizzle 9.1-STABLE FreeBSD 9.1-STABLE #0 r+16f6355: Tue Aug 27 00:38:40 PDT 2013 root@build.ixsystems.com:/tank/home/jkh/src/freenas/os-base/amd64/tank/home/jkh/src/freenas/FreeBSD/src/sys/FREENAS.amd64 amd64
on this motherboard:
Code:
E350IA-E44
I have a hot swap Lian Li case that has 5 bays however only 4 are occupied (motherboard only has 4 SATA ports). They show up in the system as ada0-3. I have a single RAIDZ2 array configured across 4 3TB disks.
.
ISSUE: One fine day ada2 starts acting up and then completely fails. Great, I order a new drive and when I go to remove the failed drive (verified by serial #) and replace it with the new drive (all without rebooting) my drive ordering changed from:
.
ada0 (disk A)
ada1 (disk B)
ada2 (failed disk C)
ada3 (disk D)
.
to:
.
ada0 (disk A)
ada1 (disk B)
ada2 (disk D)
ada3 (brand new placement disk)
.
As a result ZFS lost track of disk D because it changed from ada3->ada2 and this knocked the RAIDZ2 array down to 2 drives but luckily I didn't lose any data. I find it very odd ZFS lost track of the drive because it certainly knows the drives as more than just the ada#, it also has the gptid (among possibly other IDs), right?
.
QUESTION: How do I either a) stop this device re-ordering from happening (is this the answer?) or b) make ZFS recognize the drives not by the ada# which may change but by their GUID, gptid, WWID, or some other ID.
.
End result: I ended up rebooting the system and the drives showed back up in their original order and I kicked off a resilver. I view this as a hack and suboptimal when hot swapping should be working just fine.
.
Thank you.