-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpool replace unable to use disks with hotspares #1754
Comments
This is also possibly relevant: root@nas2:~# cat /etc/zfs/vdev_id.conf multipath no topology sas_direct phys_per_port 4 # PCI HBA NAME channel 0a:00.0 0 A channel 0a:00.0 1 B |
If I remove the disk from the pool of spares then I can replace with no issues: root@nas2:~# zpool remove data B16 root@nas2:~# zpool status pool: data state: DEGRADED status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using 'zpool online' or replace the device with 'zpool replace'. scan: resilvered 64.3M in 0h8m with 0 errors on Thu Jul 18 12:56:58 2013 config: NAME STATE READ WRITE CKSUM data DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 A0 ONLINE 0 0 0 A1 ONLINE 0 0 0 A2 ONLINE 0 0 0 A3 ONLINE 0 0 0 B0 ONLINE 0 0 0 B1 ONLINE 0 0 0 B2 OFFLINE 0 0 0 B3 ONLINE 0 0 0 raidz1-1 DEGRADED 0 0 0 A4 ONLINE 0 0 0 A5 ONLINE 0 0 0 A6 ONLINE 0 0 0 A7 ONLINE 0 0 0 B4 ONLINE 0 0 0 B5 ONLINE 0 0 0 B6 OFFLINE 0 0 0 B7 ONLINE 0 0 0 raidz1-2 ONLINE 0 0 0 A8 ONLINE 0 0 0 A9 ONLINE 0 0 0 A10 ONLINE 0 0 0 A11 ONLINE 0 0 0 B8 ONLINE 0 0 0 B9 ONLINE 0 0 0 B10 ONLINE 0 0 0 B11 ONLINE 0 0 0 raidz1-3 ONLINE 0 0 0 A12 ONLINE 0 0 0 A13 ONLINE 0 0 0 A14 ONLINE 0 0 0 A15 ONLINE 0 0 0 B12 ONLINE 0 0 0 B13 ONLINE 0 0 0 B14 ONLINE 0 0 0 B15 ONLINE 0 0 0 spares A16 AVAIL A17 AVAIL B17 AVAIL errors: No known data errors root@nas2:~# zpool replace data B2 B16 root@nas2:~# zpool status pool: data state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Fri Sep 27 09:49:58 2013 68.5M scanned out of 13.9T at 2.36M/s, (scan is slow, no estimated time) 2.10M resilvered, 0.00% done config: NAME STATE READ WRITE CKSUM data DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 A0 ONLINE 0 0 0 A1 ONLINE 0 0 0 A2 ONLINE 0 0 0 A3 ONLINE 0 0 0 B0 ONLINE 0 0 0 B1 ONLINE 0 0 0 replacing-6 OFFLINE 0 0 0 B2 OFFLINE 0 0 0 B16 ONLINE 0 0 0 (resilvering) B3 ONLINE 0 0 0 raidz1-1 DEGRADED 0 0 0 A4 ONLINE 0 0 0 A5 ONLINE 0 0 0 A6 ONLINE 0 0 0 A7 ONLINE 0 0 0 B4 ONLINE 0 0 0 B5 ONLINE 0 0 0 B6 OFFLINE 0 0 0 B7 ONLINE 0 0 0 raidz1-2 ONLINE 0 0 0 A8 ONLINE 0 0 0 A9 ONLINE 0 0 0 A10 ONLINE 0 0 0 A11 ONLINE 0 0 0 B8 ONLINE 0 0 0 B9 ONLINE 0 0 0 B10 ONLINE 0 0 0 B11 ONLINE 0 0 0 raidz1-3 ONLINE 0 0 0 A12 ONLINE 0 0 0 A13 ONLINE 0 0 0 A14 ONLINE 0 0 0 A15 ONLINE 0 0 0 B12 ONLINE 0 0 0 B13 ONLINE 0 0 0 B14 ONLINE 0 0 0 B15 ONLINE 0 0 0 spares A16 AVAIL A17 AVAIL B17 AVAIL errors: No known data errors |
I thought hotspares were fixed with #250 Which version of ZoL? |
@simonjgreen This was fixed back for the 0.6.1 tag, can you please include your ZoL version. Perhaps there's another subtle case which was missed. |
apologies you are right, i was on 0.6.0. |
@simonjgreen No problem, "already fixed" is my favorite kind of bug. |
The text was updated successfully, but these errors were encountered: