I have a RAID 1 array which is in a degraded state and want to add another drive to it.
# mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Fri Mar 21 17:23:00 2014
Raid Level : raid1
Array Size : 488254464 (465.64 GiB 499.97 GB)
Used Dev Size : 488254464 (465.64 GiB 499.97 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue Jun 9 00:10:04 2015
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : mars:1 (local to host mars)
UUID : 3458a3fd:a510d0a7:605d8cd5:9880c31e
Events : 25816
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
2 0 0 2 removed
I am trying to use an identical drive to the first one, identically formatted to hold the whole size. However, mdadm refuses to add it
# mdadm /dev/md1 --add /dev/sdc1
mdadm: /dev/sdc1 not large enough to join array
The parted output indicates that the two drives have different sector sizes, but I'm not sure what that is and if it can be rectified. If it can't, what are my options?
# parted /dev/sdb unit s print
Model: ATA SAMSUNG HD502HJ (scsi)
Disk /dev/sdb: 976773168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 976773119s 976771072s primary ext4 raid, type=fd
# parted /dev/sdc unit s print
Model: ATA SAMSUNG HD502HJ (scsi)
Disk /dev/sdc: 976771055s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 976769023s 976766976s primary raid, type=fd
sudo hdparm -N /dev/sdc