Raid 1 needs repair

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.
My md0 is broken because of a damaged sda.
It was simple to find out which on it is thanks to lsdrv by Mr Turmel.

Now I have a new disk, same size, as sda with sda1 partition - same size -
formatted as Linux raid autodetect.
In the end I like to end up with the new sda1 as member of md0 and I need to put
my boot information there, since sdb1, also member of md0, seems to no have no
such info because the system wasn't booting with a missing sda1.

I am afraid of loosing data, so I prefer asking, what to do next.
Please guide, I have the system up and running on a sysrescd live distro.

Thank you very much.
-fuz


Here is some further information.


----------------- /sbin/lsdrv specific information
------------------------------------------
PCI [ahci] 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series
Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
├scsi 0:0:0:0 ATA      WDC WD1001FALS-0 {WD-WMATV0444833}
│└sda 931.51g [8:0] Empty/Unknown
│ └sda1 931.51g [8:1] Empty/Unknown
│  └md0 931.39g [9:0] MD v1.2 raid1 (2) active {None}
│   │                 Empty/Unknown
│   ├dm-1 93.13g [252:1] Empty/Unknown
│   │└Mounted as /dev/mapper/vg_raid1-root @ /
│   ├dm-2 9.31g [252:2] Empty/Unknown
│   └dm-3 186.26g [252:3] Empty/Unknown
│    └Mounted as /dev/mapper/vg_raid1-home @ /home
├scsi 1:0:0:0 ATA      WDC WD10EARS-00Y {WD-WCAV5D907687}
│└sdb 931.51g [8:16] Empty/Unknown
│ └sdb1 931.51g [8:17] Empty/Unknown
│  └md0 931.39g [9:0] MD v1.2 raid1 (2) active {None}
│                     Empty/Unknown
├scsi 2:x:x:x [Empty]
├scsi 3:0:0:0 ATA      SAMSUNG HD103UJ  {S13PJ9BQ900571}
│└sdc 931.51g [8:32] Empty/Unknown
│ └sdc1 931.51g [8:33] Empty/Unknown
│  └md1 931.39g [9:1] MD v1.2 raid1 (2) clean {None}
│   │                 Empty/Unknown
│   └dm-0 500.00g [252:0] Empty/Unknown
│    └Mounted as /dev/mapper/vg_backup_raid1-lv_backup @ /backup
├scsi 4:0:0:0 ATA      SAMSUNG HD103UJ  {S13PJ9BQA17616}
│└sdd 931.51g [8:48] Empty/Unknown
│ └sdd1 931.51g [8:49] Empty/Unknown
│  └md1 931.39g [9:1] MD v1.2 raid1 (2) clean {None}
│                     Empty/Unknown
└scsi 5:x:x:x [Empty]
Other Block Devices
├loop0 0.00k [7:0] Empty/Unknown
├loop1 0.00k [7:1] Empty/Unknown
├loop2 0.00k [7:2] Empty/Unknown
├loop3 0.00k [7:3] Empty/Unknown
├loop4 0.00k [7:4] Empty/Unknown
├loop5 0.00k [7:5] Empty/Unknown
├loop6 0.00k [7:6] Empty/Unknown
├loop7 0.00k [7:7] Empty/Unknown
├ram0 64.00m [1:0] Empty/Unknown
├ram1 64.00m [1:1] Empty/Unknown
├ram2 64.00m [1:2] Empty/Unknown
├ram3 64.00m [1:3] Empty/Unknown
├ram4 64.00m [1:4] Empty/Unknown
├ram5 64.00m [1:5] Empty/Unknown
├ram6 64.00m [1:6] Empty/Unknown
├ram7 64.00m [1:7] Empty/Unknown
├ram8 64.00m [1:8] Empty/Unknown
├ram9 64.00m [1:9] Empty/Unknown
├ram10 64.00m [1:10] Empty/Unknown
├ram11 64.00m [1:11] Empty/Unknown
├ram12 64.00m [1:12] Empty/Unknown
├ram13 64.00m [1:13] Empty/Unknown
├ram14 64.00m [1:14] Empty/Unknown
└ram15 64.00m [1:15] Empty/Unknown

----------------- RAID specific information (mdadm --examine /dev/sdXY)
---------------------
/dev/sda1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 68c0c9ad:82ede879:2110f427:9f31c140
           Name : speernix15:0
  Creation Time : Sun Nov 30 18:15:35 2014
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 1953259520 (931.39 GiB 1000.07 GB)
     Array Size : 976629568 (931.39 GiB 1000.07 GB)
  Used Dev Size : 1953259136 (931.39 GiB 1000.07 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262064 sectors, after=384 sectors
          State : clean
    Device UUID : 94a0a338:7876e6f4:f8eaa27c:05a34dfa

    Update Time : Thu Feb  4 05:38:26 2016
       Checksum : 7fe3fbef - correct
         Events : 700


   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)

/dev/sdb1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : a9a43761:8148b29e:5db49d7a:c4d0a219
           Name : speernix15:1
  Creation Time : Sun Dec 21 10:18:05 2014
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 1953260976 (931.39 GiB 1000.07 GB)
     Array Size : 976630336 (931.39 GiB 1000.07 GB)
  Used Dev Size : 1953260672 (931.39 GiB 1000.07 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262064 sectors, after=304 sectors
          State : clean
    Device UUID : 8150c54e:3b72da54:4544c33d:36372195

    Update Time : Thu Feb  4 11:58:22 2016
       Checksum : 56cbbb8d - correct
         Events : 571


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)


----------------- disk specific information (ls -l /dev/disk/by-id/)
-----------------------
insgesamt 0
lrwxrwxrwx 1 root root  9 Apr  9 09:36 ata-SAMSUNG_HD103UJ_S13PJ9BQ900571 ->
../../sdc
lrwxrwxrwx 1 root root 10 Apr  9 09:36 ata-SAMSUNG_HD103UJ_S13PJ9BQ900571-part1
-> ../../sdc1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 ata-SAMSUNG_HD103UJ_S13PJ9BQA17616 ->
../../sdd
lrwxrwxrwx 1 root root 10 Apr  9 09:36 ata-SAMSUNG_HD103UJ_S13PJ9BQA17616-part1
-> ../../sdd1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 ata-WDC_WD1001FALS-00J7B0_WD-WMATV0444833
-> ../../sda
lrwxrwxrwx 1 root root 10 Apr  9 09:36
ata-WDC_WD1001FALS-00J7B0_WD-WMATV0444833-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 ata-WDC_WD10EARS-00Y5B1_WD-WCAV5D907687
-> ../../sdb
lrwxrwxrwx 1 root root 10 Apr  9 09:36
ata-WDC_WD10EARS-00Y5B1_WD-WCAV5D907687-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr  9 09:36 dm-name-vg_backup_raid1-lv_backup ->
../../dm-0
lrwxrwxrwx 1 root root 10 Apr  9 09:36 dm-name-vg_raid1-home -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr  9 09:36 dm-name-vg_raid1-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr  9 09:36 dm-name-vg_raid1-swap -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr  9 09:36
dm-uuid-LVM-esKsCrquUIckjFQ6jcwYYZeKL4MRas87bdFuJuYmp3W1AwMDgzs0twPC8CLUZfV6 ->
../../dm-0
lrwxrwxrwx 1 root root 10 Apr  9 09:36
dm-uuid-LVM-mopUewB2i49fmomlXPZ8C3nPYOXM56AY3j92rd0GrGN3Ugvuxb8mlMbC36fMWbYO ->
../../dm-2
lrwxrwxrwx 1 root root 10 Apr  9 09:36
dm-uuid-LVM-mopUewB2i49fmomlXPZ8C3nPYOXM56AYplkh4xXCaC38PiDHPMyzTTs9JE5BRIHa ->
../../dm-3
lrwxrwxrwx 1 root root 10 Apr  9 09:36
dm-uuid-LVM-mopUewB2i49fmomlXPZ8C3nPYOXM56AYWBztmrFbDYLRGYdm6Eqi4oe4vvpVir3t ->
../../dm-1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 md-name-speernix15:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Apr  9 09:36 md-name-speernix15:1 -> ../../md1
lrwxrwxrwx 1 root root  9 Apr  9 09:36
md-uuid-68c0c9ad:82ede879:2110f427:9f31c140 -> ../../md0
lrwxrwxrwx 1 root root  9 Apr  9 09:36
md-uuid-a9a43761:8148b29e:5db49d7a:c4d0a219 -> ../../md1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 wwn-0x50000f0007095017 -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr  9 09:36 wwn-0x50000f0007095017-part1 ->
../../sdc1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 wwn-0x50000f00071a6761 -> ../../sdd
lrwxrwxrwx 1 root root 10 Apr  9 09:36 wwn-0x50000f00071a6761-part1 ->
../../sdd1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 wwn-0x50014ee0aba9f580 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr  9 09:36 wwn-0x50014ee0aba9f580-part1 ->
../../sda1
lrwxrwxrwx 1 root root  9 Apr  9 09:36 wwn-0x50014ee259f4ab35 -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr  9 09:36 wwn-0x50014ee259f4ab35-part1 ->
../../sdb1


Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4]
[raid10]
md1 : active raid1 sdb1[0] sdc1[1]
      976630336 blocks super 1.2 [2/2] [UU]
     
md0 : active raid1 sda1[1]
      976629568 blocks super 1.2 [2/1] [_U]
     
unused devices: <none>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux