What does mdadm's sync_action check do?

Obviously, it checks the RAID array you run it on, but I'd like to know more specifics on what it does and does not do. For instance, through some testing and reading of docs, I've deduced that it does *not* do any kind of comparison between data (this is on a RAID-1 mirrored array). This is by design:
RAID (be it hardware or software), assumes that if a write to a disk doesn't return an error, then the write was successful. [...] RAID cannot, and is not supposed to, guard against data corruption on the media. Therefore, it doesn't make any sense either, to purposely corrupt data (using dd for example) on a disk to see how the RAID system will handle that.
(from https://raid.wiki.kernel.org/index.php/ … nd_testing )
(I kind of wish that it *would* do a binary comparison, just to make me feel better... but anyway.)
So, what *does* it do? Does it just do the equivalent of
dd if=/dev/sdXA of=/dev/null
dd if=/dev/sdYA of=/dev/null
just to ensure that the drives can read those sectors? And what does it do in case the drive returns a read error? I would expect that to result in a "check failed" message somewhere, but apparently that's not always the case.
During a check on one of my servers, the dmesg showed a bunch of read errors from the first drive, and the SMART log confirms that... but the check succeeded. And strangely, the drive now reads successfully from start to finish, and using dd and diff, I was able to confirm that the "bad" regions on that drive are now readable and binary identical to the good mirror.
I'm guessing what happened is that if mdadm encounters a bad sector while reading, it assumes the drive will swap in one of its spare sectors, and tries to copy the data from the good drive back onto the bad sector, then retries the read of that sector -- if the drive returns a successful read, it means the bad sector was fixed, and mdadm doesn't have to treat it as a problem any more. Is that right? I can't find that in the docs anywhere, and I'd like to know for sure. (Still gonna replace the drive in the mean time.)
~Felix.

oohhhhh, that makes sense. I've seen the steps that do the truncate and build indexes and such but I didn't connect that back to the physical data sources. D'uh!
Thanks!
-Joe

Similar Messages

  • What does 'Actuality' return when checked in the Text Element of WAD.

    Hi All,
    What does 'Actuality' return when checked in the Text Element of WAD?
    Thanks In Advance

    I take back my qs as the qs is not valid anymore

  • What does Mail do when "checking account connections" (accountverbindingen controleren)?

    Maii does something called "accountverbindingen controleren" (checking account connections)
    Activity window full text:
    accountverbindingen controleren
    verbinden met server 'smtp.<ISPname>.com'
    (checking account connections
    connecting to server 'smtp.<name>.com')
    It seems to do this every time Mail encounters a glitch in the connection or when I did something in Preferences.
    The result often seems to be that I get blocked on the common mail ports at my ISP for "spamming activity"
    What does Mail actually do when it says this?
    and how can I stop/prevent Mail doing this?

    Everything that is pre-installed on the iPad is free : http://www.apple.com/ipad/built-in-apps/
    You can also download a copy of the iPad manual from here which has brief chapters on each of the built-in apps (plus iBooks which is a free download) : http://support.apple.com/manuals/ipad/
    In terms of when you will be charged, then that will happen when you click on 'buy' on an item in the store (they are charged immediately). Some apps also allow you to make in-app purchases within them (though you can prevent them being possible by setting restrictions on the iPad via Settings > General > Restrictions : understanding restrictions).  Some apps also allow you to take out auto-renewing subscriptions within them which are charged automatically each week/month/year until you cancel them e.g. newspaper and magazine apps.
    Note that whenever you change the credit card details on your account you may see a temporary store holding charge on it, which should disappear within a few days - so if you've just created your account don't be surprised if you see a $1 'charge' on it for a few days

  • Kernel panics: what does "Core FIR register check failed" mean?

    I have an XServe dual G5 2.0 running Server 10.3.9 unlimited client version that began experiencing frequent kernel panics when I let it install the two most recent security updates. Before I installed those updates, the machine had been up without problems for 220 days.
    It is not heavily loaded; it runs a Bugzilla via Apache2, shares some files out via SMB and AFS, and runs a jabber server with less than 20 users.
    It generates entries in /Library/Logs/panic.log, but I can't make any sense out of them because they only have numeric entries in the stack traces and a bunch of register values.
    I've tried a whole bunch of smallish suggestions on fixing problems with this, including repairing permissions on the disks, repairing the boot volume with Disk Utility, resetting all the NVRAM values, and resetting the PMU. Today I installed Xserve Remote Diagnostics and ran the normal, extended, and memory tests.
    The memory test completes without errors. The normal and extended both get errors on the FIR. I've attached the log text from XServe Remote Diagnostics.
    Is or could this FIR problem be what's causing my xserve to kernel panic? Anyone have an idea what I can do about this?
    Thanks,
    Frank
    00:0D:93:9C:B6:E0 01/12/06 14:56:02 Testing [00000006] CPU.G5.Check FIR Registers
    00:0D:93:9C:B6:E0 01/12/06 14:56:02 Bad state detected in Core FIR Register, register contents: 0x0200000000000000
    00:0D:93:9C:B6:E0 01/12/06 14:56:02 Bad FIR state detected, Core: 0x02000000.00000000, L2: 0x00000000.00000000, BIU: 0x00000000.00000
    000
    00:0D:93:9C:B6:E0 01/12/06 14:56:02 Raw ECID data = 11c508c2c02427180411000008000000
    00:0D:93:9C:B6:E0 01/12/06 14:56:02 cpuid-tdiode = 11c508c2c02427180411000008000000
    00:0D:93:9C:B6:E0 01/12/06 14:56:03 Cleared all FIR sticky bits
    00:0D:93:9C:B6:E0 01/12/06 14:56:03 FAILED, result:12 "Core FIR register check failed"

    I see that "Panic(CPU 1): Unresponsive processor" and that makes me "feel" like it may be a hardware error.  It could be ram related.  Maybe not.
    Can you run the Apple Hardware Test from your installer dvds?
    Some related reading: Resolving Kernel Panics

  • What does "cannot allocate memory" mean?

    what does "cannot allocate memory" mean?
    I get this message when I tried to open an app that requires the internet.
    I have Wi-fi connection but the apps kept telling me "cannot connect to the internet"
    What does this mean?

    Check your "http proxy" settings. You may try to use it with "auto".

  • On iTunes while downloading a movie it say error please check that the connection to the network is active and try again what does this mean i have an internet connection !!!

    Help
    I dont understand when i download a movie or tv series on my mac book air i get this error message after buying it! its iTunes while downloading a movie it say error please check that the connection to the network is active and try again what does this mean i have an internet connection !!!

    Hello.
    Certain types of software can affect the way a computer sends and receives information from the Internet. This article may help you resolve the issue:
    Information about error -50 and downloading videos
    http://support.apple.com/kb/TS1583
    If it did not work, contact iTunes Store via (http://www.apple.com/support/itunes/store/) and/or Apple Tech Support via 1-800-275-2273.

  • I am reinstalling Itunes on PC win 7 and have the message: "Apple mobile device failed to start verify that you have sufficient privileges to start system services" what does this mean and how do I check? I am already logged on as administrator.

    I am re-installing itunes on a PC Win 7 and have the message: "apple mobile device failed to start verify that you have sufficient privilegesto start system services" what does this mean? how do I check and rectify? I am already logged onto the PC as administrator

    I am having this same problem. I took Kappy advice on restarting the Apple Mobile Device Service, however that did not work. I got this message in a pop up window that came up immediately.
    Windows could not start the Apple Mobil Device Service on local computer.
    Error 1053  The service did not respond to the start or control request in a timely fashion.
    I have already uninstalled itunes, all the related programs and I cannot reinstall, this Apple Mobil Device message stops the install.
    Can anyone please help?

  • New Check box in Preferences - what does it do?

    In Preferences, under Advanced, there is a new button under "Look for remote speakers..." This button is "Allow iTunes control from Remote Speakers" - what does this do? I can find no documentation. Sounds intriguing.
    Thanks,
    Bruce

    I'll test this in just a minute, but it sounds like it means you can use the controls on a speaker being controlled via AirTunes to manipulate iTunes settings (eg. equalizer, volume, or other settings) I'll see what I can figure out for sure.
    EDIT: I just saw the check box above the one you mentioned, that said "Disable iTunes volume control from...", and now I think what the one you are talking about does is allow the speakers to skip songs, fast forward, rewind, or pause. Again, about to test.

  • In itunes if "Songs" is selected a column with a Check Sign header is displayed. What does this column mean?

    In itunes with "Songs" selected there is a column labled with a header which is simply a check sign. If you select "View" a pulldown menu titled "View Options" appears and one has the option to either display (or not display) the "Checked" column. I get that. But what does it mean when a song is shown as "Checked" versus not being "Checked" That part I don't understand. Is it used in conjunction with another operator? I understand columns labled "Name", "Artist", "Alumn" but "Check Sign" is new to me. Please help.
    Thanks.

    Diesel,
    Thank you for your response. I never would have figured that out.
    Russ

  • HT3782 What does it mean "Battery Health" Check battery in the battery menu bar?

    What does it mean "Battery Health" Check battery in the battery menu bar?

    Check the full status by going to the apple in the left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about the Cycle count, Battery Condition, Battery Capacisty, charge remaining.
    Condition should be Normal or there is a problem
    Ratio of charge remaining to cpacity should be close, round off, to the reported battery charge percentage.
    Cycle count tells how many charge cycles the battery has been through, typical lifetime cycle count  for a current generation battery is 1,000 cycles.

  • TS3212 I get the file download window and I push "run", but after it starts to install, I get a window that says that they was a problem with the installation and I need to check with the manufacturer of my software. WHat does that mean?

    I get to the file download window to install itunes and push run, but after it starts to install, it stops and I get an error message that installation can no continue and everything is uninstalled. It tells me to check with my software company to resolve. What does that mean?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL > Add n Remove Programs / highlight ASU and click CHANGE then REPAIR,

  • What does the "check mark" in iTunes beside the name of the song/artist signify?

    In iTunes when "MUSIC" is selected, and the list of songs appears. Why are some songs checked and others not? What does the check mark signify or accomplish?

    Tracks without a check mark are basically ignored by iTunes but left in the library.  Some people use it for deactivating seasonal (e.g., Christmas) music when they don't want it to play but still want it in their collection.  It also won't be synced.

  • What does the black check marks in front of song titles do?

    What does the black check marks in front of the song titles do?

    Wow, old discussion from January.
    Click on any song in iTunes and then on the edit menu, click on select all. Now right click on any one of those songs and select check selection orcheck all whatever the choice is, I can't remember exactly,

  • Does anyone know what do I reprint a check?

    Hello,
    Does anyone know what do I reprint a check?
    I can not find the way from the program SAPMF05A behind the transaction F-58.
    Thank you and greetings.
    Pepe.

    Hi pepe,
    If your question is How do i reprint a check is?  Using T.Code FBZ5
    thanks and regards
    Praveen.J

  • I am getting a message. What does it means "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. "

    I have tried getting service support information from Apple Support Service. When entered my serial no. got this
    I am getting a message."We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. "
    What does it means???

    ashishtgb wrote:
    I dont have any idea . I brought out it new from the market.!
    Well, when you purchase from a non-official source you run the risk of getting who knows what from wherever. It appears this phone was replaced under warranty at some point, but not returned to Apple for refurbishment. Thus, the SN is no longer valid for warranty & service. If you can return it and get your money back, I'd suggest you do so.

Maybe you are looking for

  • Time Machine Migration Question

    I am in the process of moving my Time Machine from a USB attached drive to a NAS.  I am looking to do the initial backup on the NAS and was presented with the option of replacing the USB drive with the NAS or alternating between the two.  My USB driv

  • Ultrabeat not synced with Track Tempo

    I thought I posted here before, but apple made me re-register. My apologies if someone has answered this for me before, I cannot find it... I am trying to make a drumtrack with Ultrabeat in Logic Pro 8, and am running into a peculiar problem. I loade

  • Windows 8 Ethernet

    Hey guys, i recently did a fresh install of windows 8 on my Mac (iMac Late 2012 modell) and i'm having a little bit trouble connecting it to the world wide web. I installed all the needed drivers, as delivered from the apple bootcamp dvd (actually fo

  • [Bitlbee] Cannot connect locally

    I installed my own Bitlbee package and I can't even connect to it from the box it's running on through xinetd. When I connect from a different box in the LAN all goes well and I end up in a channel with @root. I edited /etc/hosts.allow, and here's my

  • Complete Success with iWeb 08

    Well after reading all the Horror stories here I was mucho frightened! So I of course backed up my Domain document although I knew I have a mirror Cloned using CCC thats in my Tower. The 'conversion' completed without a hitch till after the progress