Disk replacement failure

mcc666

Dabbler
Joined
Sep 22, 2021
Messages
20
Hi,


I’ve been seeing errors on one of my drives "Device: /dev/ada2, 200 Offline uncorrectable sectors." I've procured a disk which is the same size I have in my NAS, replaced physical disk ada2 with new one, went to pool status and selected replace. Unfortunately it failed saying it's smaller size than existing disk. I've check "diskinfo -v /dev/ada2" on existing hd and new hd, and I couldn't spot any difference in numbers provided there.


Can you please advise if there is any option to force disk replacement?

Thanks!
MCC
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Can you please advise if there is any option to force disk replacement?
Not if the disk is actually too small.

What might be happening there is that the existing disk wasn't using the standard 2GB partition for swap, so if your system is trying to put that in place, it's coming up short.

You could try this first:

System | Advanced : Swap size in GiB -> set to 0 (assuming it's currently set to 2)

Then try replacing the disk.

Otherwise, it may be that there's a slight difference in the sizes (even the smallest difference matters if it's smaller), which rules out the use of that new disk.
 

mcc666

Dabbler
Joined
Sep 22, 2021
Messages
20
Will check the swap trick in a while. Is there any option to clone the disk e.g. using dd, and replace it? There are 200 sectors which were unused on the existing disk - so I am assuming this invisible tiny difference shall be well covered on new one. Is there any better tool to check disk parameters and compare?

BR,
MCC
 

mcc666

Dabbler
Joined
Sep 22, 2021
Messages
20
Hurray, killing the swap made the trick. I was thinking that the swap is evenly distributed across the entire set of disks in zpool to the level/size allowed by the smallest one. The new disk I've just put there is exactly the same model as some others I have in the pool.

Thanks a lot for the hint.

MCC
 
Top