View previous topic :: View next topic |
Author |
Message |
MoonChild n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2009 Posts: 24
|
Posted: Wed Sep 25, 2013 8:07 pm Post subject: Problema con RAID-1 |
|
|
Salve,
ho due dischi in raid 1, uno di questi e' passato a miglior vita, cosi' sto cercando
di sostituirlo. quello che succede, dopo aver partizionato, e dato il comando add
di mdadm, dopo circa 5 ore di rebuild, il disco va in spare presentandomi
questo scenario:
darkmoon ~ # cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc1[0] sdd1[2](S)
2930263928 blocks super 1.2 [2/1] [U_]
unused devices: <none>
Per chiarezza sdd e' il disco nuovo, mentre sdc quello vecchio che funziona.
nel dettaglio:
darkmoon ~ # mdadm --misc --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Tue Feb 5 12:51:54 2013
Raid Level : raid1
Array Size : 2930263928 (2794.52 GiB 3000.59 GB)
Used Dev Size : 2930263928 (2794.52 GiB 3000.59 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Wed Sep 25 21:50:38 2013
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Name : darkmoon:0 (local to host darkmoon)
UUID : 6192b029:cd819366:48dee5a1:16834157
Events : 5870
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 0 0 1 removed
2 8 49 - spare /dev/sdd1
Ogni volta che riavvio il pc si rifa' le 5 ore di rebuild, e poi la situazione
torna cosi'.
Queste sono le partizioni:
darkmoon ~ # gdisk -l /dev/sdc
GPT fdisk (gdisk) version 0.8.6
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): DD93B646-D978-4A0E-BA29-10D306D91D2C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700
darkmoon ~ # gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.6
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5429244D-EF74-45A3-B719-9971D2AABB84
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700
L' unica cosa anomala che vedo nei log e' questa:
Sep 25 19:43:18 localhost mdadm[4771]: Rebuild63 event detected on md device /dev/md0
Sep 25 20:22:55 localhost kernel: md/raid1:md0: sdc: unrecoverable I/O read error for block 4160479232
Sep 25 20:22:55 localhost kernel: md: md0: recovery done.
Sep 25 20:22:55 localhost mdadm[4771]: RebuildFinished event detected on md device /dev/md0
Dove pero' l' errore se lo becca sdc che e' l'unico disco che sta funzionando.
Sapete darmi una mano ? Google non aiuta
Grazie per l'attenzione. _________________ Marco Diletti |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Thu Sep 26, 2013 8:42 am Post subject: |
|
|
...ma hai prima eliminato dal raid il disco danneggiato, passando per --fail e poi per --remove, e poi hai aggiunto il nuovo?
Sto parlando di una sequenza come questa, per capirci.
Non vorrei sbagliarmi ma devi rivolgerti a -f -- manage --add (o --continue/--grow --freeze-reshape) o provare prima a correggere l'errore sul disco (lavorando con un array di un solo elmento, con tutti i rischi che la cosa implica) che tu supponi integro.
Una alternativa potrebbe essere dd ma non ricordo quanti blocchi iniziali del disco danneggiato si dovevano ricopiare e resta un approccio balordo. _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|