ZFS mirror on root, one of the two devices appears offline

Hello everybody,
I'm a new Archlinux user. I've managed to install it on a pool (called RAID1) composed of two LUKS encrypted devices (/dev/mapper/HD3 and /dev/mapper/HD10).
This is the pool:
# zpool status
pool: RAID1
state: ONLINE
scan: resilvered 11.4M in 0h0m with 0 errors on Mon Jan 13 07:41:13 2014
config:
NAME STATE READ WRITE CKSUM
RAID1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
HD10 ONLINE 0 0 0
HD3 ONLINE 0 0 0
errors: No known data errors
I wrote a custom hook, run before the zfs hook, which opens a small (5MB) LUKS image (/etc/keys.img) asking for its key, and mounts it under /keys. Then, for each device in /etc/earlycrypttab, it opens the device taking the respective keyfile from /keys.
Here is the code, if it could help debug the problem. Feel free to use it, if it might be useful to you. Sorry if it's not too good.
http://pastebin.com/PAbaTUcq   /etc/earlycrypttab
http://pastebin.com/JULEdHx9   /usr/lib/initcpio/hooks/customcrypt
http://pastebin.com/Ew44anvY   /usr/lib/initcpio/install/customcrypt
Now, the problem is this: for some reason, after booting, HD3 is shown as offline and the pool is shown as DEGRADED. /dev/mapper/HD3 is open and working, though. Running a simple
# zpool online RAID1 HD3
fixes the pool.
I know for sure that after the customcrypt hook is run, that LUKS device is open. I've managed to get into ash just after the customcrypt hook, and the LUKS device is open, but
# zpool list
keeps saying that HD3 is offline.
Anyway, if (still inside ash, after the customcrypt hook and before the zfs hook) I run
# zpool export RAID1
# zpool import
zpool finds both devices as online.
I first thought it could be a problem of the /etc/zfs/zpool.cache file. I tried recreating it and recreating the initram (with mkinitcpio -p linux), but still no luck.
Do you have any idea about what could be the problem?
Thank you very much for your time!

@stefa : Did you get any resolution on this?  I ran into the exact same problem two days ago and I can't seem to find the "right" fix.  I'm using a zfs mirror on top of luks and figured it was due to the luks device not being online but after reading your post... I'm not so sure.
Post boot I'm able to offline the missing device and online it without issue.  My only concern is why isn't this coming up with both disks at the time of import and will it boot if the offline drive is the only one of the two active at the time of boot?  I setup the mirror so I could have a drive fail and still boot...
@esko: I've got zfs set to auto-mount and the mount points are all working properly.

Similar Messages

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • Imessage on my iMac has created two iMessage account both asking for Apple ID....and no option to - (delete) one of the two duplicate accounts....how can I delete one of them it just bothers me due to sign in issues....goes inactive when signed in on othe

    imessage on my iMac has created two iMessage account both asking for Apple ID....and no option to - (delete) one of the two duplicate accounts....how can I delete one of them it just bothers me due to sign in issues....when signed into one it signs out the other and goes inactive I just wanted to delete one of them so this issue doesn't happen....why doesn't it give the option to delete ONLY these two accounts

    1. Don't confuse "Apple ID" with iTunes Account ID.  You can have many Apple IDs but only one iTunes account active at a time.
    2. If you "changed" your iTunes account ID, you actually have 2 accounts - one under the old name plus the new name.
    3. You can't merge the accounts - they remain separate.  Apps purcahsed under the old account name will update ONLY WHEN THE PHONE IS SIGNED IN TO THE OLD ACCOUNT NAME  and visa versa.
    4. Likewise, you can sync only the apps, music, media purchased under the account the phone AND iTunes are signed in to.

  • I had made a copy of the main revel file on my mac, and then i put it in my google drive folder for safety. I accidentally deleted one of the two libraries form my iPhone. I opened it up and panicked and thankfully I guess I had a backup of the other libr

    I had made a copy of the main revel file on my mac, and then i put it in my google drive folder for safety. I accidentally deleted one of the two libraries form my iPhone. I opened it up and panicked and thankfully I guess I had a backup of the other library in my spouses phone... but mine is still gone. I don't have them saved to my computer... the pictures are important and I really really need them back.  Is there a way for me to get the pictures back from what I believed at the time was a smart way to backup when i made a duplicate of that main mac file to my google drive? The best way to let me know is my email... [email protected]  I am really relying on you guys if there is a way?

    Hi meghage,
    From your code, it is a WebForm project.
    This forum is to discuss problems of Windows Forms. Your question is not related to the topic of this forum.
    You can consider posting it in asp.net forum for supports . Thanks.
    ASP.NET: http://forums.asp.net
    Regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Deactivating one of the two registration with Photoshop Elements 8

    My old computer has been cleared from all programs and the system. I'd like to use the Adobe Photoshop Elemets 8 product on my new computer, but I need the one of the two registration of the product cleared to be able to use it. I can not deactivate from my Dell computer as it has been already cleared. Please help me to solve the problem.
    Best regards
    Adam Tertak

    Contact Support to reset the activation count

  • At home I have two wifi networks , I try to use one of them depending on their strength of signal, can I not save  both their passwords on Apple TV , so that I can switch to one of the two wifi networks as required

    At home I have two wifi networks , I try to use one of them depending on their strength of signal, can I not save  both their passwords on Apple TV , so that I can switch to one of the two wifi networks as required
    Also the passwords are long and cumbersome to type every time on the apple  TV remote, what is the alternative if I cannot store them on the memory of the Apple TV

    Is it possible that you are using the same password for the old O2 Study and newer O2 Apple Base Station networks?
    If so, Keychain Access is storing the old information about the old network and may be associating it with your AirPort Extreme settings based on the BSSID that William has mentioned.
    If that's the case, open Macintosh HD > Applications > Utilities > KeyChain Access and look for a listing with the old network name. Delete this entry. You may need to power down both the computer and the AirPort Extreme and restart them.

  • If Firefox 5 is not compatible with Avast... what am I supossed to do? Choose one of the two or what?

    With Firefox 5 freshly installed I learn it's not compatible with Avast! What do I do now? Do I choose '''''one of the two''''' or what?

    Hi Amarillo,
    There are a few different toolbars and plugins which are not yet compatible with Firefox 5 including Google, avast and AVG ([http://www.canadiancontent.net/commtr/firefox-rather-soon-released_1093.html source]). I bet it's going to take a day or two for updates to be released.

  • I have one iPhone GS and one iPad 2, how do I syncronise my contacts and my calendar between the two devices?

    I  have one iPhone GS and one iPad 2, how do I syncronise my contacts and my calendar between the two devices?

    Install iOS 5 onto both and you can use iCloud to sync contacts and calendars between the 2 devices.

  • Qosmio X300 - One of the two fans rattles abnormally

    This started about two weeks ago.
    One of the two fans under the laptop rattles abnormally. If I tilt the laptop for a while the rattling stops... but it's embarassing in the very least to have to do that on such an advanced laptop.
    Sometimes the rattling stops when the fan's been running a while...
    So anyone else had this issue? I've got next business day on-site support but would need to take a day off work if I want them to come out so am tryin to avoid that.
    Aanyone had the issue? If so how was it addressed?

    right... Toshiba sent someone out today.... and guess what... Toshiba managed to mess the whole thing up!
    The way support works (well my understanding of ti following the disaster today) is as follows:
    1) customer logs call with Toshiba
    2) Toshiba order parts necessary and contact a support company that is not actually a part of Toshiba, but is contracted to carry out support
    3) support company replaces parts as necessary
    so, i 1) called Toshiba they told me they'd send someone over with 2 cooling fans, 2) they ordered two thermal conductors for the graphics boards (NOT FANS, JUST THE METAL PLATES!!!), 3) support guy came, when i told him what the problem was he was surprised Toshiba gave him thermal conductors and not fans. so we called Toshiba and logged a new call
    i had to call Toshiba and log a new call... however, i insisted the operator note in the call records that this is the second time i am calling for the same issue as the first time they gave the poor support guy the wrong parts. now my contract only supports next business day on site visit.... as it's not practical for me to take this laptop with me to work i took a day off to be at home.....
    Now that means i'll have to do it again,... so i think, hang on, Toshiba offer 24/7 on site support, so i'll ask them if, as it was their fault, they'll send someone over the weekend. "it's not within our power to do that" toshiba said "you'll have to contact the engineers company and ask them if they'll do it"... i didn't make the mistake, why should i ask?
    The engineer didn't make the mistake, so why should his company have to be generous and give me a free day on site on a weekend?
    Toshiba made the mistake, they should pay the engineers company to have him back on a weekend.
    that is what i shall be arguing on the phone tomorrow (to Toshiba and not the engineering company) when the engineer calls up and no doubt says Toshiba are only paying for me to have a monday to friday service.
    A customer should not have to worry about who Toshiba award their contracts to.
    Oh, and on the matter of the fans themselves, the engineer took them out, he could find nothing inside... i tapped the fans and am very sure one of them is a lil loose although the engineer didn't think tha should be causing the level of noise he heard. however, he stood there and did hear the awful noice it was making, as if repeatedly scraping against something as the blades rushed past.
    So... more updates as soon as possible... but Toshiba really screwed this one up and it's cost me a day of my annual leave... thanks Toshiba.

  • HT4137 I have two iPad's that use the same iTunes/store account. I want the two devices to play games with with other, but it recognizes them as the same. I have set up two different iCloud accounts, but still not recognizing the users as different. What

    Hello, I have no idea if my question went out, so I'll post it again. I have two iPads (one 3rd gen and one 4th) that use the same iTunes/store account. I want the two devices to game with each other, but the apps recognize them as the same. I have created two different iCloud accounts in an attempt to differentiate between the two, but no luck. How can I continue to use the same iTunes/store account for music and movies, but also have the two devices recognize each other for games?

    You can share your iTunes ID and still have separate iCloud accounts with separate IDs, they don't have to be the same.  If you kids don't already have an iCloud account, have them set up separate accounts on their devices using separate IDs.  If they are already sharing your account, migrate their devices to separate accounts.  To do this, start by saving any photo stream photos they wish to keep to ther camera roll (unless already there) by opening your my photo stream album, tapping Select, tap the photos, tap the share icon (box with upward pointing arrow), then tap Save to Camera Roll.  If they are syncing notes with iCloud, you'll need to open each of your notes and email them to them so you can later copy and paste the text into new notes created in their new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from thier device and won't effect your device), choose Keep on My iDevice and provide the password to turn off Find My iPhone (if using iOS 7).  Then sign back in with a different Apple ID to create their new account and choose Merge to upload the data.  Once everyone is on a separate account you can go to icloud.com from your computer, sign into each account separately and delete your data from their account.

  • My computer will not recognize my iPod Nano when i connect it. I tried my laptop instead but it said the same thing - one of the USB devices attached to your computer has malfunctioned, and windows does not recognize it. Can i fix this?

    My 16 gig iPod Nano 7th gen was put of power. I connected it to the computer and it started to turn on (the apple appeared in the middle of the screen). Then left it two minutes and the computer went into sleep mode. My iPod nano had gone off and now it will not turn on, or connect to the computer, so i cannot charge it. I am not sure if it is a problem with the usb cable. When I conntct the cable to the computer nothing happens, but then when i connect the iPod to the cable it says 'one of the USB devices attached to your computer has malfunctioned, and windows does not recognize it'. Please don't say its broken already

    It probably needs to be reset. The procedure is different for different Nano models: http://www.apple.com/support/ipodnano/assistant/itunes/

  • HT1473 I have some music on my ipod that I want to put in iTunes so I can listen it it on my iPad.    The two devices share an Apple ID and iTunes account.  So I do I get the music from the ipod to the iTunes account t?

    I have some music on my ipod that I want to put in iTunes so I can listen it it on my iPad.    The two devices share an Apple ID and iTunes account.  So I do I get the music from the ipod to the iTunes account? 

    This is all just a partial answer since details will depend upon how you want to do it.
    Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Commercial software utility for transferring songs from i-device to Mac - http://www.fadingred.com/senuti/
    http://support.apple.com/kb/HT1848 - just media purchased from iTunes Store
    You'll need to get it all onto one iTunes collection on your Mac Pro, then sync the devices to that.  iTunes only lets you transfer purchases from a device, otherwise you have to use third party software.
    I guess you could also look into getting iTunes Match.

  • G31TM-P21 One of the usb devices attached to this computer has malfunctioned and

    Just bought the G31TM-P21 motherboard and installed it with a E3200 proc. Whenever I plug in a USB device in one of the four ports on the back panel I get the message:
    "One of the usb devices attached to this computer has malfunctioned and windows does not recognize it. For assistance in solving this problem, click this message."
    After clicking the message I get a window with:
    "One of the usb devices attached to this computer has malfunctioned and windows does not recognize it." with a tree of USB Root Hub (2 ports) with Unused Port and Unknown device under it.
    If I go to Device Manager nothing appears to be uninstalled but if I expand the USB I do have a single instance of Unknown Device among the root hub and host controller. I'm running windows XP home 32 SP3.

    Quote from: Wonkanoby on 14-November-09, 18:21:00
    what device
    what is usb in your set up
    Any device, keyboard, mouse, printer, etc.

  • IPod touch 32 Gig "One of the USB Devices Attatched to this Computer has.."

    One of the USB Devices Attatched to this Computer has malfunctioned, and Windows does not recognized it.
    I've had this iPod for about a month now, with no problems until now. Infact, two days ago when I connected/charged it everything worked fine. I have researched, and tried just about everything. I've rebooted multiple times, restarted the iPod, reinstalled iTunes, searched for usb drivers, tried the iPod on ANOTHER computer (didn't work either, same error), stop and restarted the services (Apple Mobile Device, iPod service). All that jazz, (also, comes up in device manager as "unknown device". When I try to search for new software it cannot find).
    My computer is custom built, everything is plugged in, and top of the line... so it can't be a hardware issue.
    I'm getting frustrated, and I don't understand why this isn't working when it worked perfect 2 days ago...
    Help!

    I have run into this also. I connected my Touch to a different pc
    and it was recognized and I was able to get going. Even though
    you've tried a different computer, it might be worth trying one
    more. Just a thought. Good luck.

  • Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID?

    Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID? SO i could iMessage if out from my iPod to my iPad at home to be viewed by a family member?

    Look into using Apple Configurator.  It's the easiest way to "reimage" and Manage iPads that I know of right now. 
    http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Also, look into using the Educational Volume Purchase Program, if you have not already done so. 
    http://www.apple.com/education/volume-purchase-program/

Maybe you are looking for