Hi everybody,
Tonight i get a problem with my raid
My config :
So let's check the raid
to repair it, i read i have to remove this partition from the raid
Regards,
Tonight i get a problem with my raid
My config :
root@vd0:~# fdisk -l
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009f0a7
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1306 10485760+ fd Linux raid autodetect
/dev/sdb2 1306 121536 965746688 fd Linux raid autodetect
/dev/sdb3 121536 121601 525536 82 Linux swap / Solaris
Disk /dev/md1: 10.7 GB, 10737352704 bytes
2 heads, 4 sectors/track, 2621424 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 988.9 GB, 988924542976 bytes
2 heads, 4 sectors/track, 241436656 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/dm-0: 894.4 GB, 894431133696 bytes
255 heads, 63 sectors/track, 108741 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
root@vd0:~# lvdisplay
/dev/sda: read failed after 0 of 4096 at 0: Input/output error
/dev/sda1: read failed after 0 of 2048 at 0: Input/output error
/dev/sda2: read failed after 0 of 4096 at 0: Input/output error
/dev/sda3: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/pve/data
VG Name pve
LV UUID e8MF3C-pIK1-PVqK-VaaN-ER4c-IFRY-zIltoY
LV Write Access read/write
LV Status available
# open 1
LV Size 833.00 GB
Current LE 213249
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:0
So let's check the raid
I see [_U] , so let assume the sda2 is faultly and sda1 tooroot@vd0:~# cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md2 : active raid1 sda2[2](F) sdb2[1]
965746624 blocks [2/1] [_U]
md1 : active raid1 sda1[2](F) sdb1[1]
10485696 blocks [2/1] [_U]
unused devices: <none>
to repair it, i read i have to remove this partition from the raid
then i try to copy the disk but it's not workingmdadm -r /dev/md2 /dev/sda2
mdadm -r /dev/md1 /dev/sda1
I get this error :sfdisk -d /dev/sdb2 | sfdisk /dev/sda2
sfdisk -d /dev/sdb1 | sfdisk /dev/sda1
If anybody could help ?root@vd0:~# sfdisk -d /dev/sdb1 | sfdisk /dev/sda1
Checking that no-one is using this disk right now ...
Warning: start=4096 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
BLKRRPART: Invalid argument
OK
Warning: start=4096 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
root@vd0:~# sfdisk --force -d /dev/sdb1 | sfdisk /dev/sda1
Checking that no-one is using this disk right now ...
BLKRRPART: Invalid argument
OK
Warning: start=4096 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
Regards,
Last edited: