Replacing a failed drive

Status
Not open for further replies.

ozo

Cadet
Joined
May 20, 2015
Messages
2
I'm using FreeNAS 9.3.

I had a drive fail on me, and I just received a replacement. The problem is my 2TB Seagate Green drives were long out of warranty, and rather than buying a used one on eBay I bought a new Western Digital Red drive.

When attempting to replace the drive (using the instructions here), I'm getting the following:

Nov 4 19:00:19 larry notifier: 1+0 records in
Nov 4 19:00:19 larry notifier: 1+0 records out
Nov 4 19:00:19 larry notifier: 1048576 bytes transferred in 0.026946 secs (38914222 bytes/sec)
Nov 4 19:00:19 larry notifier: dd: /dev/ada3: short write on character device
Nov 4 19:00:19 larry notifier: dd: /dev/ada3: end of device
Nov 4 19:00:19 larry notifier: 5+0 records in
Nov 4 19:00:19 larry notifier: 4+1 records out
Nov 4 19:00:19 larry notifier: 4284416 bytes transferred in 0.022792 secs (187978108 bytes/sec)
Nov 4 19:00:20 larry notifier: swapoff: /dev/ada3p1.eli: No such file or directory
Nov 4 19:00:20 larry notifier: geli: No such device: /dev/ada3p1.
Nov 4 19:00:20 larry manage.py: [middleware.exceptions:38] [MiddlewareError: Disk replacement failed: "cannot replace 17937066459693012501 with gptid/33f68824-8350-11e5-bece-0019b93dafbc: device is too small, "]
I Googled around for a while, and I found how to compare the # of bytes on the drives -- they appear to be the same. I'm guessing there's more to it than that.

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Red
Device Model: WDC WD20EFRX-68EUZN0
Serial Number: WD-WCC4M7PFZPFZ
LU WWN Device Id: 5 0014ee 20c8b5260
Firmware Version: 82.00A82
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Wed Nov 4 19:12:50 2015 EST


=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda LP
Device Model: ST32000542AS
Serial Number: 6XW1ANB7
LU WWN Device Id: 5 000c50 02255498b
Firmware Version: CC34
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 5900 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Wed Nov 4 19:12:53 2015 EST​

Is there anything I can do to make this drive work?

Thanks in advance!
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
You can reduce the swap size. But in theory this drive should work, there's maybe another problem than just a difference in bytes number, wait for another answer to confirm ;)
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Your old drives are using aa 512 sector size and the new drive wants to use 4k. I suspect this is the problem. Not sure what to do about it without doing some research.
 

ozo

Cadet
Joined
May 20, 2015
Messages
2
Thank you both for the quick responses! It's resilvering now... (Please let me know if I should do something different.)

After reading what Bidule said, I started reading about swap. I read something earlier that mentioned that old versions of FreeNAS didn't create a swap partition when you set up the drives. Is that true? It reminded me that although I have upgraded the OS, I originally set up the pool back in 2010 (I think version 7.1 or 7.2).

Anyway, I did fdisk on one of the old Seagate drives to see the partitions. It doesn't appear that I have a swap partition... right?

******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 3907029105 (1907729 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 180/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>​

I set the swap to 0 for new drives from the GUI and did the drive replace process again and it worked!

For reference, here's the partition table for my new drive.

******* Working on device /dev/ada3 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 238 (0xee),(EFI GPT)
start 1, size 3907029167 (1907729 Meg), flag 0
beg: cyl 0/ head 0/ sector 2;
end: cyl 1023/ head 255/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

******* Working on device /dev/ada3p1 *******
parameters extracted from in-core disklabel are:
cylinders=3876020 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876020 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 3907028097 (1907728 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 179/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
 
Last edited:
Status
Not open for further replies.
Top