Silviu Marin-Caea wrote:
Un RAID1 s-a spart, unul dintre device-uri a fost "removed" automat, nu stiu
din ce motive, nu cred ca e hardware, dar am dat un badblocks pe el si
ruleaza acum.
Cum bag inapoi device-ul in RAID1? Am incercat asa:
mdadm /dev/md1 --add /dev/hdg2
Dar mi-l face "spare", iar ala "removed" nu dispare de acolo.
Nu am mai avut nevoie de mdadm pana acum si nu prea e momentul sa bulesc ceva.
Multumesc anticipat pentru ajutor.
Asa arata:
mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.00
Creation Time : Fri Mar 3 20:07:00 2006
Raid Level : raid1
Array Size : 292752384 (279.19 GiB 299.78 GB)
Device Size : 292752384 (279.19 GiB 299.78 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Mon Aug 7 18:04:00 2006
State : clean, no-errors
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 33 2 0 active sync /dev/hde2
1 0 0 -1 removed
UUID : 9d55bd81:f84e3196:46450709:76f3da45
Events : 0.6835836
in mod normal dupa mdadm -a /dev/hdg2 ar trebui ca la --detail sa obtii
cam asa ceva (testat acum 30 de sec):[EMAIL PROTECTED] ~]# mdadm /dev/md0 -f
/dev/hdj1 -r /dev/hdj1
mdadm: set /dev/hdj1 faulty in /dev/md0
mdadm: hot removed /dev/hdj1
[EMAIL PROTECTED] ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Thu May 11 18:14:57 2006
Raid Level : raid1
Array Size : 312568576 (298.09 GiB 320.07 GB)
Device Size : 312568576 (298.09 GiB 320.07 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Aug 7 18:18:57 2006
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 56 1 0 active sync /dev/hdi1
1 0 0 -1 removed
UUID : 7649fad1:2bb16d8b:cb6a750c:3288744a
Events : 0.37291
[EMAIL PROTECTED] ~]# mdadm /dev/md0 -a /dev/hdj1
mdadm: hot added /dev/hdj1
[EMAIL PROTECTED] ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Thu May 11 18:14:57 2006
Raid Level : raid1
Array Size : 312568576 (298.09 GiB 320.07 GB)
Device Size : 312568576 (298.09 GiB 320.07 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Aug 7 18:19:10 2006
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Rebuild Status : 0% complete
Number Major Minor RaidDevice State
0 56 1 0 active sync /dev/hdi1
1 0 0 -1 removed
2 56 65 1 spare /dev/hdj1
UUID : 7649fad1:2bb16d8b:cb6a750c:3288744a
Events : 0.37292
Cheia e acel " State : clean, degraded, recovering " care dispare dupa
ce mirrorul se reface.
--
Never underestimate the havoc that can be wreaked by misunderstanding the
documentation.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug