Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
ubuntu:mdadm [2015-Dec-02 20:02] – créée MOLINIER Etienne | ubuntu:mdadm [2018-Sep-18 22:39] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
First, mdadm stores it's configuration on each drive, so let's try to have mdadm automatically find the array back by itself : | First, mdadm stores it's configuration on each drive, so let's try to have mdadm automatically find the array back by itself : | ||
- | mdadm --examine --scan | + | <code bash>mdadm --examine --scan</ |
It should show the HDDs participating in the array, if it's the case, try to have mdadm automatically start the array : | It should show the HDDs participating in the array, if it's the case, try to have mdadm automatically start the array : | ||
- | mdadm --assemble --examine -v | + | <code bash>mdadm --assemble --examine -v</ |
If for some reason some HDDs appear out of sync in the output of the previous command, there is one last chance. | If for some reason some HDDs appear out of sync in the output of the previous command, there is one last chance. | ||
For this, you must **be sure that the array was clean** the last time it was disconnected ! | For this, you must **be sure that the array was clean** the last time it was disconnected ! | ||
First stop the (failed) array created earlier : | First stop the (failed) array created earlier : | ||
- | mdadm --stop /dev/md0 | + | <code bash>mdadm --stop /dev/md0</ |
Then **force**-create the array : | Then **force**-create the array : | ||
- | mdadm --create --force /dev/md0 /dev/sd[[acd]]1 | + | <code bash>mdadm --create --force /dev/md0 / |
This should do the trick, if not, search the internet for more ideas... | This should do the trick, if not, search the internet for more ideas... | ||
=====Improving rebuild-speed===== | =====Improving rebuild-speed===== | ||
- | ====Tip #1: / | + | ===Tip #1: / |
This tip is **not** very efficient on my setup. | This tip is **not** very efficient on my setup. | ||
<code bash> | <code bash> | ||
Ligne 31: | Ligne 31: | ||
</ | </ | ||
- | ====Tip #2: Set read-ahead option==== | + | ===Tip #2: Set read-ahead option=== |
This tip **is very efficient** on my setup. | This tip **is very efficient** on my setup. | ||
<code bash> | <code bash> | ||
Ligne 38: | Ligne 38: | ||
</ | </ | ||
- | ====Tip #3: Set stripe-cache_size for RAID5 or RAID 6==== | + | ===Tip #3: Set stripe-cache_size for RAID5 or RAID 6=== |
<code bash> | <code bash> | ||
echo 32768 > / | echo 32768 > / | ||
</ | </ | ||
- | ====Tip #4: Disable NCQ on all disks==== | + | ===Tip #4: Disable NCQ on all disks=== |
This tip is not useful since NCQ (Native Command Queing) is not supported by my hardware... | This tip is not useful since NCQ (Native Command Queing) is not supported by my hardware... | ||
<code bash> | <code bash> | ||
Ligne 52: | Ligne 52: | ||
</ | </ | ||
- | ====Tip #5: Bitmap Option==== | + | ===Tip #5: Bitmap Option=== |
This tip does **not work** when the array is already in resync state ! | This tip does **not work** when the array is already in resync state ! | ||
<code bash> | <code bash> |