I had a harddisk failure in one of my servers. The disk (/dev/sda
) is part of a Linux software RAID-1 with 2 partitions. The datacenter support replaced the failed disk, and now I'm trying to add it back into my software RAID.
In preparation for that I copied the partition scheme from the remaining disk to the new one:
sfdisk -d /dev/sdb | sfdisk /dev/sda
However, now fdisk -l
complains
Partition 2 does not start on physical sector boundary.
Full fdisk -l
output:
root@server:~ # fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00063c19
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4209029 4206982 2G fd Linux raid autodetect
/dev/sda2 4209030 312576704 308367675 147G fd Linux raid autodetect
Partition 2 does not start on physical sector boundary.
Disk /dev/sdb: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00063c19
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 4209029 4206982 2G fd Linux raid autodetect
/dev/sdb2 4209030 312576704 308367675 147G fd Linux raid autodetect
Disk /dev/md1: 147 GiB, 157884153856 bytes, 308367488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md0: 2 GiB, 2151874560 bytes, 4202880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes