Mdadm boot slow to assemble drives with newer installs

I had a problem where my raid1 installs from this year would pause about 5 seconds per mdadm entry yet my old installs from March 2014 would go through all 4 mdadm entries in less than a second. After fussing for a long time on the new installs I finally broke (slowed) one of my old installs which immediately revealed what the problem was.
I didn't forget to pick partition type FD or FD00. I have my install sequence in a text file so I rarely forget things. I install through PuTTY pasting all the way so it's fast and mistakes are rare.
devices of the form /dev/md/* take about 5 seconds to create.
devices of the form /dev/md{0..127} create very fast.
"mdadm -E --scan" always creates devices of the form /dev/md/{0..127}. In the past I was very meticulous about fixing the device names to the more compact form. I never missed so I never found out there was a substantial speed difference. I just like the the more compact look of /dev/md1 in my boot menu. Eventually I progressed to UUID and LABEL but persisted with the compact form. Then I discovered "mdadm --name" so I left mdadm do it's own thing. What could possibly go wrong?
I also noticed that the mdadm instructions changed from using "mdadm" to "mdadm_udev". mdadm_udev seems to assemble faster than mdadm.
To fix, boot once to see if you're slow, fix any usage of /dev/md*/* in your boot scripts or fstab, fix the form in /etc/mdadm.conf, and mkinitcpio...
I still see that the new installs pause at udev more than old installs, but instead of 20s vs >1s, it's now 5s vs >1s, which is much better.
Looking further I compared mkinitcpio.conf and noticed that autodetect is now installed by default. I took that out and though my list of drivers went way down the pause didn't change. Then I compared "lsinitcpio -a /boot/initramfs-linux.img" and I saw that fsck.zfs was loading so ZFS being a data drive only I uninstalled it and remade mkinitcpio. The pause didn't change.
Now "lsinitcpio -a /boot/initramfs-linux.img" and "lsinitcpio /boot/initramfs-linux.img | sort" compare the same yet the pause remains. I know something is lying because the slow pause computer has a SAS controller and the fast pause computer doesn't, and I know that I must remake mkinitcpio when the SAS controller brand changes or it won't boot without Fallback. The mptsas driver is hiding in there somewhere. So then I unpack both initrd files and by-content compare all files with Total Commander.
Only one difference: mdadm.conf
I can't boot without the SAS controller so I can't check to see if that's the source of the pause. I suspect it is because I can see the NumLock blink halfway through the pause and I know the SAS controller isn't concerned with that.
To solve this quandary I made a quickie install on a SATA only computer. I used the fast form of /dev/md* in mdadm.conf and left autodetect in mkinitcpio.
It's fast, but there's still about a half second pause right there at udev. Out goes autodetect. Still about a half second.
Then, back at the slow pause computer, I swapped the Marvell AOC-SASLP-MV8 for the LSI SAS2008 9211-8i. See Zorinaq for what makes this possible. The pause at udev dropped to about 1s which is only a bit slower than SATA. Not really a win since the LSI BIOS boot takes much longer. The good news is that I didn't need to rebuild mkinitcpio to change controllers. autodetect is toast and I get one more degree of freedom!
I guess that's as good as it gets. Fortunately the mdadm --name option doesn't create /dev/md/* entries so I don't need to fix that.
The Internet is strangely silent on this issue. I guess you're all just used to slow boots with mdraid.
This is a bug and needs to be reported. Either mdadm scan needs to stop producing the slow form or needs to make the slow form fast.

severach wrote:I didn't forget to pick partition type FD or FD00.
I wouldn't use this partition type anymore. (raid autodetect is deprecated)
severach wrote:Then I discovered "mdadm --name" so I left mdadm do it's own thing.
mdadm --name never worked well for me. I don't see many people using it.
I prefer a minimal mdadm.conf that only specifies the md number and UUID.
ARRAY /dev/md0 UUID=627125a5:abce6b82:6c738e49:50adadae
I don't notice any delays but, in my case the raid is assembled in the background while in the foreground LUKS is waiting for me to type a passphrase.

Similar Messages

  • After replacing a failed hard drive with new one I inadvertently created a different account name(home/user) than the one in the Time Machine backup. Now I cannot restore the photos in iPhoto. What are my options?

    After replacing a failed hard drive with new one I inadvertently created a different account name(home/user) than the one in the Time Machine backup. Now I cannot restore the photos in iPhoto. What are my options?

    The best thing to do would be to start over. Use Setup Assistant this time.
    Boot into Recovery, launch Disk Utility, and erase the startup volume. This operation will destroy all data on the volume. Quit Disk Utility and install OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.
    When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups. For a walkthrough, see here:
    Using Setup Assistant
    Don't transfer the Guest account, if it was enabled on the old system.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with proxy servers, or with networks that require a certificate for authentication.

  • Can I use my old mac mini  (G4) as an optical drive with new mac mini late 2014?

    Can I use my old mac mini (G4 Tiger) as an optical drive with new mac mini, late 2014?

    I think so
    DVD or CD sharing: Using Remote Disc - Apple Support
    You should also be able to connect the two via FireWire using a FW 400 cable plugged into the old Mini, thne a FR 400 femial to FW 880 adopter plugging into a FW to Thunderbolt adopter
    How to use and troubleshoot FireWire target disk mode - Apple Support

  • G62-234DX replaced hard drive with new Samsung 250 GB. Same size as installed.

    G62-234DX  Hard drive dead.  I replaced hard drive with new Samsung 250 GB. SATA II hard drive and used the recovery Windows 7 Home edition DVD.  Error message appeared after windows loads files and starts windows from the recovery DVD.  An error dialog box opens after completing and indicates, This computer is not supported by the recovery discs.  You will not be able to continue to recover this system with these discs.  error: 0100-1425 -3627-3628-3623-3624.   Hit OK and system powers down. 

    Hi:
    If you purchased the recovery disks from HP, please see if making and running this first helps.
    "CyberLink Recovery Discs utility resolves an issue where Recovery Discs sent from HP do not work on a new hard drive."
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=pv-80183-1&cc=us&dlc=en&lc=en

  • Can I boot an internal hard drive with snow leopard?

    Hi, I Have an Mid 07 macbook which i'm in the process of upgrading. I have a hard drive that i am up grading from 160gb to 500gb. my problem is i dont have a boot disc, because it's ethier been lost or didn't come with one. my question is can i just format the new hard drive with a copy of snow leopard?

    Clean Install of Snow Leopard
         1. Boot the computer using the Snow Leopard Installer Disc.  Insert the disc into the
             optical drive and restart the computer.  After the chime press and hold down the
             "C" key.  Release the key when you see a small spinning gear appear below the
             dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, set the format type to Mac
             OS Extended (Journaled, if supported), then click on the Partition button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. Be sure you configure your initial admin account with the exact same
             username and password that you used on your old drive. After you finish Setup
             Assistant will complete the installation after which you will be running a fresh
             install of OS X.  You can now begin the update process by opening Software
             Update and installing all recommended updates to bring your installation current.

  • How do I boot from a USB drive with Leopard using a Lion iMac?

    I'm looking to wave good bye to my MacBook Pro running Leopard and upgrade.
    However, I need to keep a version of Leopard so I can run certain Audio Units that won't run on Snow Leopard or Lion.
    I have made a bootable drive with Leopard on it, but I can't get it to boot on my iMac running Lion.  It boots fine using the MacBook though.
    What am I doing wrong here?  Is what I'm looking to do possible any more, or do I need to configure the drive for use with a Lion machine somehow?
    Any help would be very much appreciated...

    Clearly not supported by Apple but as an Engineer I would like to know what the barriers are.
    I believe that pre-installed Lion has extra disk partitions - probably for Utilities and software 'repair'. Having extra disk partitions is not new for Apple - they did it on some Macs long before OS X but these did not stop booting from other OSs or replacement with new single partition disks.
    I suspect there are ways of doing it but it would probably invalidate the guarantee and might require removal of Lion, disk format, partition and reinstallation of OSs. Even then the reinstalled Lion may not work. I suspect it is only a matter of time before somebody posts a low risk way of doing this.

  • Can I boot from an external drive with a "Virtual CD"

    I just purchased a Hitachi LifeStudio external hard drive for use as my Time Machine backup. When I plugged it in to my MacBook running 10.6.4, I realized that it had one of those "Virtual CDs" that contained the manufacturers crapware, similar to Western Digital's MyWare or whatever its called. It shows up in disk utility as an actual separate disk and not just another partition that can be wiped.
    I reformatted the drive using GUID and and created 3 HFS+ Journaled partitions. One was going to be for the 10.6 installer, one for the 10.6 boot, and one for my time machine backup. I restored a 10.6 install dvd disk image I created using disk utility to the 10.6 installer partition (with erase destination checked) then option booted my mac and the partitions did not show up. The only thing I could see was my internal hard drive.
    I have done this many times before and it has always worked so Im trying to figure out what Im doing wrong. The only thing I can think of is that the "Virtual CD" that Hitachi put on this external drive is stopping the Mac from seeing the bootable partitions I created. I even went into system preferences>startup disk and blessed the 10.6 install partition. That didn't work either, the computer just booted to my internal drive.
    So my questions are. Is it because of this "Virtual CD" that I can't boot from my external drive? If so, is there a way around it? I already searched their web site and emailed their tech support asking for a firmware update to remove the virtual cd.
    Thanks in advance.

    Yes, it's a known issue. You've already referred to the issue with WD systems. WD has a long list of products that are either not compatible with Macs or won't boot a Mac.
    There are practically no problems with bare drives, but once installed in an enclosure there is no guarantee that the package will function as a bootable device. This is especially the case if the manufacturer uses some sort of "virtual" scheme intended for using the device as a sort of one button backup device.
    External drives don't have to specifically say anything about being Mac bootable or compatible. It's up to the consumer to verify compatibility and usability.

  • HOW DO I SAVE APPLICATIONS INSTALILNG A NEW HARD DRIVE WITH NEW OS?

    I recently purchased a used G5 that is loaded with programs. I am getting signs that the hard drive is getting ready to crash. I installed a 1TB hard drive and formatted it. What I want to do is install leopard on the TB hard drive but still transfer all the applications and programs over from the old HD. A lot of the programs I don't have serial codes for. Can I do a new OS instilation on TB HD with new users and everything and still transfer all the programs over that I don't have serials for and them work perfectly without entering in new serials.

    No. Either ask the original seller for the discs, manuals, and serial numbers, and ensure they destroy their copies of the data, or purchase your own license for the software that they did not supply on disc and/or legitimate license code. The license to the software is limited to whomever has the software in hand with its codes. Purchasing Leopard will only entitle you to the contents of Leopard. Leopard retail on its own does not include iLife, except for iTunes, though Apple does have a Mac Box Set which includes iLife and iWork. The original discs that came with the Mac still have a hardware test which you can't get other than by requesting them from the original seller.

  • Trying to replace my current home drive with new drive

    Trying to clone home drive to new drive and this is the error I receive. Source volume is read-write and cannot be unmounted, so it can't be block copied.

    You are using Carbon Copy Cloner? maybe you need to boot from another system clone you made, or using Recovery Mode and Disk Utility?
    I always keep a separate special emergency-maintenance boot drive in addition to having a working system drive; a clone of the working system (at a minimum)
    That way I can also have 10.7.4 and 10.7.5 or Lion and Mountain Lion if needed.
    Have you got other drives, internal and external, and tried removing those?
    A safe boot should of course work.
    Might include more details

  • Old computer dying want to use external drive with new laptop ........... HOW ??

    need to get laptop to run my iTunes library from old dying comp. Have a 500gb external drive but what do i do ??

    okay, i had to collect my thoughts for a moment
    ... but I don't have an internal library of music on this machine.
    is *this machine* the new Mac ?
    How do I set up iTunes to play from an external library for the first time?
    the files will have to be added to iTunes. however, with the correct settings, they can be put straight on the external.
    in order to set up iTunes on the new Mac, you will have to launch it. with the external drive mounted on your new Mac's desktop, go iTunes > preferences > advanced and point +iTunes media folder location+ to the external. this will cause iTunes to put all newly added content in that location.
    also on the advanced tab, check +keep iTunes media folder organized+ and +copy files to ... when adding to library+.
    And how do I add my backed up music from my previous iTunes to that external drive's new music library?
    did you back up the music to disk ? if so, you should probably authorize iTunes with your iTMS account details, then just pop in the disk(s) and add the content to your library.
    if you have backed up to an external HD, use the +add to library+ command from the file menu and navigate to the folder containing your media files.
    JGG
    edited by the Jolly Green Giant (where Green stands for environmentally friendly)

  • Booting from a firewire drive with a bluetooth keyboard

    I need to get my computer (iMac G5) to boot from a firewire drive that does have OSX installed on it. I understand from other posts that a bluetooth keyboard will not help seeing as the handshake does not occur until the operating system boots as well. Is there any way to get this to work? I have tried selecting it as the startup disk in System Preferences, but that hasn't seemed to work. I do NOT have a USB keyboard anywhere that I can use (away from home in the boondocks).
    Any ideas?

    Ikrion wrote:
    I need to get my computer (iMac G5) to boot from a firewire drive that does have OSX installed on it. I understand from other posts that a bluetooth keyboard will not help seeing as the handshake does not occur until the operating system boots as well. Is there any way to get this to work? I have tried selecting it as the startup disk in System Preferences, but that hasn't seemed to work. I do NOT have a USB keyboard anywhere that I can use (away from home in the boondocks).
    Does System Preferences allow you to select the FW drive as the start up volume? If so, you then press the button to restart, correct? What exactly happens after that?
    What version of OS X do you have on the iMac (ii) the FW drive?
    Have you booted from the FW before? What kind of drive is it? How did you install OS X on it?
    If the FW and iMac have the same version of OS X on, try this:
    open /Applications/Utilities/Disk Utility
    select the FW drive at the left
    choose "repair disk"
    choose "repair permissions"
    Try again.
    - cfr

  • Problems with new installation of iAS on Windows

    This is a new installation of iAS 10.1.2.0.2 on Windows. The application server doesn't come up properly after reboot. The log file D:\Oracle\ora101_infra\opmn\logs\OC4J~OC4J_SECURITY~default_island~1 contains an error stack that begins with:
    SSO: DB Error. Please make sure the database is available and restart SSO Server
    Obviously, the database (service name OracleServiceIAS472F) is started after the rest of the services (service names similar to Oracleora101_XXX). I have found documentation on how to make the ProcessManager service of the OracleAS Infrastructure before it starts up the ProcessManager service of the middle tier, but no notes on starting the database service in an order different from Windows default. Extensive googling doesn't give me that others have had similar problems. I would like to verify before starting to mess around with the order of services starting at boot time.
    The person doing the installation (I don't have direct access to the machine) maintains that installation of WebUtil is causing these problems, and that the problems disappear if he reverts the configuration of WebUtil. I have limited experience with forms configuration and cannot see the connection.
    Any input would be greatly appreciated!
    Regards,
    Maria

    Maria, we have numerous installations of both 10gDB 10.1.0.5/10gAS 9.0.4.2 and 10gDB 10.2.0.3/10gAS 10.1.2.0.2 here. The environments are all two server configurations: 1 server has DB + AS Infrastructure, 1 server has AS Middle Tier. I have not had an issue with a DB server reboot causing the Infrastructure to not come up, although we have a strict rule of always rebooting these two servers in pairs: first DB then AS Middle Tier. And since there are gazillion MS patches, they do get rebooted frequently. Regards, John

  • Using External Boot Drive with New Intel Mac Mini

    I have a 1st Gen MacMini and use an external 7200 RPM Lacie drive as the system boot drive along with all the applications.
    If I were to purchase a new Intel Mac Mini, is it possible to use the current external drive as the system drive or is there some conversion steps that would be necessary ?
    Thank you.

    You can use the hardware, but will have to repartition and reinstall the OS from the disk shipped with the new Mac Mini.
    http://docs.info.apple.com/article.html?artnum=303220
    If you create a disk image of the Lacie on your Mini, you can later use setup assistant to restore users and applications from that image.

  • How to Replace existing Hard Drive with new Hard Drive, while keeping old files

    Hi All,
    I have recently replaced my hard drive on my Macbook Pro, with a new hard drive. The old Hard Drive was 160 GB, while the new one is 320 GB.
    What I did before replacing it was clone my hard drive using "SuperDuper". I cloned it to the new hard drive and then simply removed my old hard drive and installed the new one with the clone on it. Then I booted it up and began running it. In fact I am using it right now.
    My questions are:
    Is this a good practice?
    Will this work, without problems, indefinitely?
    Is this the prescribed way to upgrade ones laptop hard drive?
    The reason I did it this way was because I upgraded to Mountain Lion via the apple store download and I do not have the CD for the OS. So I figured if I could make a bootable copy, that might work. So far everything seems fine, but I really just want to know if this will last for a long time. I plan on also making a partition with Windows on it also, so I was wondering if anyone can comment on that too.
    If anyone can comment or give any advice on this topic I would really appreciate it.
    Thank you very much!
    Cheers.

    Every thing is fine except Super Duper does not clone the recovery partition.  If you start your MBP holding the OPTION key, you should see the internal HDD and the ML recovery partition.
    You can reinstall ML or reclone using Disk Utility>restore.
    Ciao,.

  • [SOLVED] How to dual boot windows on separate drive with syslinux

    I'm trying to follow the directions from the arch syslinux wiki to add a windows dual boot option to my current syslinux.
    I have two hard drives: sda (windows MBR) and sdc (arch linux GPT). My BIOS is set to boot sdc, and syslinux is currently installed fine to boot arch linux off of sdc. I would like to add an entry to boot windows.
    I added an entry to /boot/syslinux/syslinux.cfg that looks like
    LABEL windows
    MENU LABEL Windows
    COM32 chain.c32
    APPEND mbr:0xf00f1fd3 # my actual identifier for sda from fdisk is here
    When I rebooted, I saw the new entry in the syslinux menu. When I went to arch linux, it booted fine. When I rebooted again and selected windows, it hung with a blinking underscore. The next time I rebooted, it didn't even get to the syslinux menu and just hung with a blinking underscore.
    I booted from my rescue arch usb drive. In fdisk, sdc's partition table now mirrored sda's! In other words, it looked like I had windows partitions on my linux drive, and it had the same MBR identifier even though it was supposed to be GPT. I ran gdisk /dev/sdc, it detected both GPT and MBR, and I asked it to use the GPT table and wrote out the partitions, and my drive looked normal again. I ran arch-chroot, syslinux-install_update, and everything was fine the next time I booted.
    Any advice on how I can set up windows dual boot with syslinux?
    Last edited by mikemintz (2013-08-17 18:25:46)

    I am assuming that you use Bios and not UEFI (I am not that quite familiar with UEFI).
    1) You must configure the Bios to boot from the disk where syslinux is installed, having a correct mbr and with syslinux correctly installed.
    2) The disk where windows reside must be bootable by itself with a valid mbr.
    It may be possible that windows try to boot from the linux disk (and of course fails), try to add the swap option to the chain command.
    To check if Windows is correctly installed, try to boot it directly from the Bios.
    The mbr of the syslinux disk should be gptmbr.bin:
    dd if=/usr/lib/syslinux/gptmbr.bin of=/dev/sd<letter of the linux disk> bs=440 count=1
    Warning: Be very careful with what you do with dd, it is very easy to destroy all your data!
    Last edited by olive (2013-08-17 08:31:44)

Maybe you are looking for

  • Job, Supervisor field and Table details - Urgent please

    Need to document fuctional/technical specs to extract <b>Job</b> and <b>Supervisor</b> field details in OM. I am trying to understand what is the Table and field for these Objects / data elements ? <b>Is it T513-STELL for job or is it HRP1000? What a

  • How to change content in the formula node of the current vi

    Actually I want to give formula with array index.  My formula p=a[0]-30; But i couldnot give array index in the formula expression.. Please help me in this issue.

  • CS4 no longer works after upgrade to Maverick

    I upgraded my MacBook Pro OS two weeks ago to Maverick (I used my external harddrive to grab my applications and files). Since then, I'm unable to open Photoshop (or other CS4 applications). Initial error was about licensing stopped... I used a forum

  • Software update iWork, numbers, pages, keynote

    I need your help, please the latest iWork software update (early FEB09, German Version) does not install. I am still using OS x 10.4, latest version. what can I do? Many thanks for your early reply. EdmK

  • Why do I get a low wifi strength on IPad 3?

    Guys, I have recently bought an IPad 3 and get shocking signal strength on Wifi, using IPhone and PC on same router with no problem.   I have even installed a second router to increase signal range and the IPad locks up when connected to the second r