RAID Administration

From Linux Raid Wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
[http://dryhandsminnowbucket.com/xmlsitemap/pages/images/resource-126.html lees summit movie] [http://webringnet.com/classified/pictures/cats/pic/2066.html industrial safety supply] [http://mohdjohari.com/adbox/data/db/new1182.htm in the rough movie] [http://dryhandsminnowbucket.com/xmlsitemap/pages/images/resource-1914.html indian masala movie actress page] [http://dollersforlife.com/support/attachments/files/article-76.htm opps] [http://livertransplant.in/gujarati/video/mpeg/topic1479.htm philip kingsley] [http://eranga.info/cpg144/albums/userpics/10001/index.html http] [http://shankarsbook.com/upload/media/relzarca.html c300 free motorola ringtone] [http://autopundit.com/wp-content/uploads/2007/03/page-2023.html spring break t shirt] [http://pakejatoz.com/affiliate/afflib/css/comment2449.htm speed control deactivation switch] [http://aazmin.com/ebb316/wp-content/uploads/2007/article310.html amoxicillin gum infection] [http://www.lindazerain.com/web/media/files/comment602.htm atreyu crimson video] [http://jimieray.com/blog/wp-content/uploads/2006/topic-1100.html ozzfest tickets] [http://mujahidmuda.com/bicarasiswa/Packages/install/ounefok.html ares god of war] [http://eranga.info/cpg144/albums/userpics/10001/news-747.html rick james video dave chapelle] [http://ajaypal.com/files/active/3/page15.html penis sucking video] [http://abdfatah.com/blog/wp-content/uploads/2006/index.html index] [http://belajarbahasaarab.com/ustaz/backups/dump/resource2132.htm advertising with radio] [http://livertransplant.in/gujarati/video/mpeg/topic595.htm aguilera award christina movie mtv] [http://myenik.com/order/img/Thumbs/wfisedg.html general garden ebooks] [http://ekpli.com/blog/wp-content/uploads/2007/news2202.html cell phone ringtone silent] [http://cadarshop.com/catalog/images/pixel/text-1541.html sex sim] [http://linncomel.com/wp-content/uploads/js_cache/temp/comment-2179.htm video scalers] [http://myazhax.net/drop/files/images/news739.html smartest cities] [http://ekpli.com/blog/wp-content/uploads/2007/news644.html ramming] [http://shankarsbook.com/upload/media/sitemap.html webmap] [http://ascentwebsolutions.com/files/u2/resource-1231.html northern pike fishing trip] [http://shankarsbook.com/upload/media/taqasbr.html ashlee simpson piece of me music video] [http://eranga.info/cpg144/albums/userpics/10001/news-948.html license motorcycle utah] [http://sreejith.net/wp-content/uploads/2007/cazelxelt602.htm modern pirate ships] [http://www.lindazerain.com/web/media/files/comment600.htm comic book sex] [http://linncomel.com/wp-content/uploads/js_cache/temp/comment-2019.htm how to make a still] [http://dontlickyourmonitor.com/forum/Packages/install/news-1217-2008-06-21.html respiratory therapy jobs in north atlanta] [http://dollersforlife.com/support/attachments/files/article-935.htm metro ringtones free] [http://ekpli.com/blog/wp-content/uploads/2007/news2219.html viscous lidocaine drug] [http://tvcomerciales.com/uploadfiles/images/resource963.htm gabriel garcia marquez] [http://forousa.net/diamanterra/images/f/f7/index.html top] [http://polymerteam.com/infoboard/wp-includes/plugins/article-765.htm gay preteen boys] [http://mohdjohari.com/adbox/data/db/new523.htm queeny love movie] [http://kickstartsuccess.com/expert/upload/pdflib/docs/comment-682.html judging amy] [http://dollersforlife.com/support/attachments/files/article-1631.htm in much the same way] [http://www.digitalsbazaar.com/adsense/order/img/thumbs/article-712.htm excessive perspiration treatments] [http://petuajimatduit.com/teknikmudah/img/icons/topic3.htm saint james clothing] [http://websule.com/support/js/scripts/index.htm domain] [http://coolstudytactics.com/wp-content/uploads/2006/news288.html smash hits hindi movies] [http://pakejatoz.com/affiliate/afflib/css/comment1953.htm siskel and roeper at the movies] [http://tvcomerciales.com/uploadfiles/images/resource1669.htm rec arts movies erotica] [http://myazhax.net/drop/files/images/news1056.html who pays what closing costs] [http://websule.com/support/js/scripts/1758.htm ems postgresql crack] [http://popculturenexus.com/community/images/avatars/pics/article-1770.htm latex babes] [http://pakejatoz.com/affiliate/afflib/css/comment1642.htm accenture labs technology] [http://5hr.org/wp-content/uploads/2007/09/news-1741.html gay nude wrestling] [http://pusatkomuniti.net/lkimchevron/help/styles/riceldron.htm free ringtone for motorola 120t cell phone] [http://forousa.net/diamanterra/images/f/f7/text-1547.html all about the benjamins music video] [http://detroitinvestmenthomes.com/office/pc4p_dev/inc/faencac.html free german to english translation] [http://mohdjohari.com/adbox/data/db/new796.htm panda titanium antivirus antispyware 2006 v5.00.00 crack] [http://forousa.net/diamanterra/images/f/f7/text-1041.html movie listings in london ontario] [http://caperweb.com/auto2/images/thumbs/news-1611-20080622.html kate mara biography] [http://dikmal.com/blog/wp-content/uploads/2007/comment-2735.html angry kid videos to download] [http://indianwebdevs.com/ipb/skin_cache/cacheid_5/news2563.html movie the lbj brigade] [http://fazlisyam.com/wp-content/uploads/2006/sitemap.html domain] [http://midlandsfc.co.uk/forum/store/files/entrsedr-37.html parking at lax airport] [http://mmmsp.com/forms/use/35pc0509/ricsedf1481.htm sex drugs and violence] [http://popculturenexus.com/community/images/avatars/pics/article-1183.htm superdome] [http://bharatcolleges.com/images/bottombanners/pics/news-817.html red arrows] [http://idclub.biz/club/files/pictures/pics/2347.htm queensryche silent lucidity video] [http://forousa.net/diamanterra/images/f/f7/text-724.html ny physician license] [http://mmmsp.com/forms/use/35pc0509/ztrocfevm2341.htm linkin park video] [http://coolstudytactics.com/wp-content/uploads/2006/news1170.html rows to columns] [http://sreejith.net/wp-content/uploads/2007/kofafia523.htm free pakistani ringtone] [http://pakejatoz.com/affiliate/afflib/css/comment1292.htm jeremy piven] [http://shankarsbook.com/upload/media/sedricpas.html movie title underlined] [http://dd-forums.info/images/avatars/upload/images/endome1291.htm licenced massage therapists] [http://midlandsfc.co.uk/forum/store/files/xaceln-723.html rhinestone transfer] [http://jimieray.com/blog/wp-content/uploads/2006/topic-1954.html thermal probe cpu] [http://ekpli.com/blog/wp-content/uploads/2007/news1505.html magic dvd ripper serial number] [http://belajarbahasaarab.com/ustaz/backups/dump/resource1454.htm saddleback covenant church] [http://caperweb.com/auto2/images/thumbs/news-2470-20080616.html in flames video download] [http://shankarsbook.com/upload/media/chicarof.html convert ringtones] [http://aazmin.com/ebb316/wp-content/uploads/2007/sitemap.html more] [http://aazmin.com/ebb316/wp-content/uploads/2007/article16.html eveline] [http://kickstartsuccess.com/expert/upload/pdflib/docs/comment-2669.html intimacy movie review] [http://linncomel.com/wp-content/uploads/js_cache/temp/comment-1524.htm spears fake] [http://idclub.biz/club/files/pictures/pics/388.htm care options] [http://websule.com/support/js/scripts/1657.htm epa freon license] [http://indianwebdevs.com/ipb/skin_cache/cacheid_5/news705.html babes and bikes] [http://ekpli.com/blog/wp-content/uploads/2007/news1694.html play buddy super cracker] [http://geologia.co.uk/paleopag/lib/scripts/page-1716.html powervideomaker professional 1.01] [http://www.digitalsbazaar.com/adsense/order/img/thumbs/article-1071.htm law obey pack] [http://kickstartsuccess.com/expert/upload/pdflib/docs/comment-2562.html aishwarya rai fucking video clips] [http://dd-forums.info/images/avatars/upload/images/cokocamon1141.htm road movie music] [http://pakejatoz.com/affiliate/afflib/css/comment1485.htm drum kits] [http://dikmal.com/blog/wp-content/uploads/2007/comment-908.html redneck christmas video] [http://chinmayd.com/wp-content/uploads/2007/06/1750.htm sexywomen] [http://ramsclothiers.com/styleimage/css/article1769.htm dinosaur national monument] [http://promar.org.br/galeria/albums/images_imp/topic-1222.htm live and let die movie script] [http://chinmayd.com/wp-content/uploads/2007/06/1277.htm leather eyeglass cases] [http://idclub.biz/club/files/pictures/pics/62.htm making love in a boat] [http://bharatcolleges.com/images/bottombanners/pics/index.html sites] [http://petuajimatduit.com/teknikmudah/img/icons/topic655.htm effects negative side zoloft] [http://petuajimatduit.com/teknikmudah/img/icons/topic2188.htm what drug are you test] [http://webringnet.com/classified/pictures/cats/pic/1370.html uop pharmacy] [http://aazmin.com/ebb316/wp-content/uploads/2007/index.html http] [http://ramsclothiers.com/styleimage/css/article693.htm sex cruises] [http://pusatkomuniti.net/lkimchevron/help/styles/olofibug.htm exploded hard drive] [http://inthehousefestival.com/imageimport/images/article253.htm efax] [http://pakejatoz.com/affiliate/afflib/css/comment2401.htm junior girls] [http://webringnet.com/classified/pictures/cats/pic/1315.html lrta philippines] [http://shankarsbook.com/upload/media/lagetn.html escort in bozeman montana] [http://diariadsense.com/blog/wp-admin/css/styles/sitemap.htm home] [http://www.lindazerain.com/web/media/files/comment2496.htm bbc sport] [http://dryhandsminnowbucket.com/xmlsitemap/pages/images/resource-475.html mule training video] [http://aazmin.com/ebb316/wp-content/uploads/2007/article1580.html nyc rachels restaurant] [http://kickstartsuccess.com/expert/upload/pdflib/docs/comment-2672.html puerto escondido mexico] [http://bandamusicadechiclana.es/portal/uploads/images/topic-846.html free motorola razor ringtones] [http://geologia.co.uk/paleopag/lib/scripts/page-700.html elektra movie trailer download] [http://dollersforlife.com/support/attachments/files/article-532.htm lm317] [http://ramsclothiers.com/styleimage/css/article492.htm wisconsin department of public instruction] [http://linncomel.com/wp-content/uploads/js_cache/temp/comment-581.htm texas state representative john davis] [http://akkusilcesi.com/foto/albums/userpics/10002/darorm.html aaron burr] [http://dollersforlife.com/support/attachments/files/article-883.htm scrubs uniform] [http://pusatkomuniti.net/lkimchevron/help/styles/darricolo.htm radiology jobs] [http://cadarshop.com/catalog/images/pixel/text-682.html santa cruz sentinnel] [http://ekpli.com/blog/wp-content/uploads/2007/news491.html dmv hearings] [http://darkdevils.co.uk/cache/images/text813.htm nascar racing video clips] [http://promar.org.br/galeria/albums/images_imp/topic-617.htm eye candy 5 serial] [http://petwelfare.org/upload/media/article559.htm miss february] [http://simonmoss.co.uk/kcilcms/files/thumbs/delgetwca.html new disturbed album 2005] [http://bharatcolleges.com/images/bottombanners/pics/news-168.html registered nurse license california] [http://autopundit.com/wp-content/uploads/2007/03/page-731.html pinupfiles.com passwords] [http://bharatcolleges.com/images/bottombanners/pics/news-191.html treo 600 ringtones mp3] [http://geologia.co.uk/paleopag/lib/scripts/page-1426.html jini pink teen video] [http://belajarbahasaarab.com/ustaz/backups/dump/sitemap.htm www] [http://bharatcolleges.com/images/bottombanners/pics/news-549.html fortuna] [http://mmmsp.com/forms/use/35pc0509/fokbas457.htm onion booties] [http://hst.co.in/formgenerator/forms/inc/text-162.htm sexual lesbian fantasies] [http://ninethsense.com/validator/Visitors/docs/article-758.htm adult adultnewrelease.com movie news sex video] [http://inthehousefestival.com/imageimport/images/article2445.htm northern nsw accommodation] [http://dollersforlife.com/support/attachments/files/article-594.htm movie theater in abilene texas] [http://geologia.co.uk/paleopag/lib/scripts/page-747.html netflix dvd movie] [http://abdfatah.com/blog/wp-content/uploads/2006/news-1290-2008-05-21.html singing in the rain music video] [http://mohdjohari.com/adbox/data/db/new1669.htm war college washington] [http://5hr.org/wp-content/uploads/2007/09/news-1333.html purchase porn movie] [http://abdfatah.com/blog/wp-content/uploads/2006/news-1008-2008-05-15.html intervideo windvd 6.0] [http://simonmoss.co.uk/kcilcms/files/thumbs/denelet.html recruitment uk video] [http://dryhandsminnowbucket.com/xmlsitemap/pages/images/resource-17.html killer whale eating seal video] [http://dikmal.com/blog/wp-content/uploads/2007/comment-2329.html paralytic drug] [http://ajaypal.com/files/active/3/page255.html nude female video] [http://jimieray.com/blog/wp-content/uploads/2006/topic-995.html london dolls house company] [http://ajaypal.com/files/active/3/page1683.html soaked panties] Periodic tasks
+
Periodic tasks
  
 
The md system has the following functionality available:
 
The md system has the following functionality available:

Revision as of 23:13, 23 July 2008

Periodic tasks

The md system has the following functionality available:

echo check > /sys/block/mdX/md/sync_action
echo repair > /sys/block/mdX/md/sync_action

A recent discusion between Roy Waldspurger and Neil Brown:

On a RAID5, and soon a RAID6, I'm looking to set up a cron job, and am trying to figure out what exactly to schedule. The answers to the following questions might shed some light on this:

Contents

1. GENERALLY SPEAKING, WHAT IS THE DIFFERENCE BETWEEN THE "CHECK" AND "REPAIR" COMMANDS?

The "md.txt" doc mentions for "check" that "a repair may also happen for some raid levels." Which RAID levels, and in what cases? If I perform a "check" is there a cache of bad blocks that need to be fixed that can quickly be repaired by executing the "repair" command? Or would it go through the entire array again? I'm working with new drives, and haven't come across any bad blocks to test this with.

'check' just reads everything and doesn't trigger any writes unless a read error is detected, in which case the normal read-error handing kicks in. So it can be useful on a read-only array.

'repair' does that same but when it finds an inconsistency is corrects it by writing something. If any raid personality had not be taught to specifically understand 'check', then a 'check' run would effect a 'repair'. I think 2.6.17 will have all personalities doing the right thing.

check doesn't keep a record of problems, just a count. 'repair' will reprocess the whole array.

2. CAN "CHECK" BE RUN ON A DEGRADED ARRAY (say with N out of N 1 disks on a RAID level 5)? I can test this out, but was it designed to do this, versus "REPAIR" only working on a full set of active drives? Perhaps "repair" is assuming that I have N 1 disks so that parity can be WRITTEN?

No, check on a degraded raid5, or a raid6 with 2 missing devices, or a raid1 with only one device will not do anything. It will terminate immediately. After all, there is nothing useful that it can do.


3. RE: FEEDBACK/LOGGING: it seems that I might see some messages in dmesg logging output such as "raid5:read error corrected!", is that right? I realize that "mismatch_count" can also be used to see if there was any "action" during a "check" or "repair." I'm assuming this stuff doesn't make its way into an email.

You are correct on all counts. mdadm --monitor doesn't know about this yet. ((writes notes in mdadm todo list)).


4. DOES "REPAIR" PERFORM READS TO CHECK THE ARRAY, AND THEN WRITE TO THE ARRAY *ONLY WHEN NECESSARY* TO PERFORM FIXES FOR CERTAIN BLOCKS? (I know, it's sorta a repeat of question number 1 2).

repair only writes when necessary. In the normal case, it will only read every block.

5. IS THERE ILL-EFFECT TO STOP EITHER "CHECK" OR "REPAIR" BY ISSUING "IDLE"?

No.


6. IS IT AT ALL POSSIBLE TO CHECK A CERTAIN RANGE OF BLOCKS? And to keep track of which blocks were checked? The motivation is to start checking some blocks overnight, and to pick-up where I left off the next night...

Not yet. It might be possible one day.


7. ANY OTHER CONSIDERATIONS WHEN "SCRUBBING" THE RAID?

Not that I am aware of.


I/O Schedulers

Starting from version 2.6, Linux kernel has several choices about the I/O scheduler to be used. The default is the anticipatory scheduler, which seems to be sub-optimal on high (eg [resync]) loads. If your kernel has the CFQ scheduler compiled in, it can be used during a resync.

From the command line you can see which schedulers are supported and change it on the fly (remember to do it for each RAID disk):

 # cat /sys/block/hda/queue/scheduler
 noop [anticipatory] deadline cfq
 # echo cfq > /sys/block/hda/queue/scheduler

Otherwise you can recompile your kernel and set CFQ as the default I/O scheduler (CONFIG_DEFAULT_CFQ=y in Block layer, IO Schedulers, Default I/O scheduler) or simply passing elevator=cfq on the kernel command line at boot time (see Documentation/kernel-parameters.txt).

Personal tools