Migrate MDADM array to another server with degraded state

خرید بک لینک

I've been few days again and, after analysis, I want to have my data back !

My previous server (the one who contains data on RAID1) have been compromised so I've decided to go with another one. Everything in the reinstall process went well except for mdadm which wasn't as "plug&play" that I had expected.

When I plug the 2 disks :

cat /proc/mdstat

Personalities : [raid1]
     md0 : active (auto-read-only) raid1 sdc1[2]
           1953382336 blocks super 1.2 [2/1] [U_]

unused devices: <none>

mdadm --examine /dev/sdb1

/dev/sdb1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 5aabe450:244716bd:370cc1af:97a6f277
Name : raspberrypi:0
Creation Time : Sun Feb  9 18:40:54 2014
Raid Level : raid1
Raid Devices : 2

Avail Dev Size : 3906764972 (1862.89 GiB 2000.26 GB)
Array Size : 1953382336 (1862.89 GiB 2000.26 GB)
Used Dev Size : 3906764672 (1862.89 GiB 2000.26 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262064 sectors, after=300 sectors
State : clean
Device UUID : d7fc01bb:509c3a94:c4d694f7:49fdce31

Update Time : Sat May 14 08:28:03 2016
Checksum : f078efcf - correct
Events : 54075


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

One of the disk seem to be missing ... How can I restore the array to its normal state ?

mdadm --examine /dev/sdd1

/dev/sdd1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 5aabe450:244716bd:370cc1af:97a6f277
Name : raspberrypi:0
Creation Time : Sun Feb  9 18:40:54 2014
Raid Level : raid1
Raid Devices : 2

Avail Dev Size : 3906764972 (1862.89 GiB 2000.26 GB)
Array Size : 1953382336 (1862.89 GiB 2000.26 GB)
Used Dev Size : 3906764672 (1862.89 GiB 2000.26 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262064 sectors, after=300 sectors
State : clean
Device UUID : da50256d:d35d7735:ff4a28cf:ed2433f1

Update Time : Sat May 14 08:30:35 2016
Checksum : daccf270 - correct
Events : 74717


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

When I plug only one disk :

cat /proc/mdstat

Personalities : [raid1]
     md0 : active (auto-read-only) raid1 sdb1[2]
           1953382336 blocks super 1.2 [2/1] [U_]

 unused devices: <none>

cat /proc/mdstat (on the other single disk, after reboot)

Personalities : [raid1]
     md0 : active (auto-read-only) raid1 sdb1[3]
           1953382336 blocks super 1.2 [2/1] [_U]

 unused devices: <none>

and I can mount the device to /data and get my files again

What is the next step to restore to a functionnal/non-read-only state ?

Thank you

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 226 تاريخ: شنبه 25 ارديبهشت 1395 ساعت: 14:40

صفحه بندی