Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
ubuntu:mdadm [2015-Dec-02 20:02] – créée MOLINIER Etienneubuntu: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</code>
  
 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</code>
  
 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</code>
 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 /dev/sd[acd]1</code>
 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: /proc/sys/dev/raid/{speed_limit_max,speed_limit_min} kernel variables====+===Tip #1: /proc/sys/dev/raid/{speed_limit_max,speed_limit_min} kernel variables==
 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:
 </code> </code>
  
-====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:
 </code> </code>
  
-====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 > /sys/block/md0/md/stripe_cache_size echo 32768 > /sys/block/md0/md/stripe_cache_size
 </code> </code>
  
-====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:
 </code> </code>
  
-====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>
  • ubuntu/mdadm.1449082967.txt.gz
  • Dernière modification : 2018-Sep-18 22:38
  • (modification externe)