Fedora Linux Support Community & Resources Center
Old 7th December 2011, 09:47 PM
krbvroc1 Offline
Registered User
Join Date: Oct 2009
Posts: 2
F16 systemd crypt raid lvm confusion

I just did an upgrade from F14 to F16...

I'm new to this systemd stuff and have no clue how to get working what worked fine under F14.

It appears systemd is doing things in the wrong order.

I have a raid on /dev/md0 which is encrypted using a keyfile.

My /etc/crypttab has

encrypt_storage /dev/md0        /mnt/usbkey/storage.key cipher=aes-cbc-essiv:sha256,size=256,hash=sha1
Once that is unlocked (luksOpen), there is an LVM on the device

  PV /dev/mapper/encrypt_storage   VG encrypt_storage_vg   lvm2 [2.05 TiB / 1.05 TiB free]
And finally my /etc/fstab:

LABEL=evmstore          /evmstore               ext4    defaults        0 0
I also have a '/etc/sysconfig/modules/use_storage.modules' which mounts the /mnt/usbkey

This worked fine under F14. With F16, the system dumps to emergency mode. If I press 'Ctrl-D' to continue, everything is fine.

From dmesg:
[   27.427226] systemd-cryptsetup[974]: crypt_init() failed: Block device required
[   27.427601] systemd[1]: cryptsetup@encrypt_storage.service: main process exited, code=exited, status=1
[   27.461081] systemd[1]: Job cryptsetup.target/start failed with result 'dependency'.
[   27.461088] systemd[1]: Job dev-mapper-encrypt_storage.device/start failed with result 'dependency'.
[   27.461115] systemd[1]: Unit cryptsetup@encrypt_storage.service entered failed state.
This is failing because it is trying to parse and process /etc/crypttab BEFORE its started /dev/md0. How would I fix this?

I'm not opposed to doing this some other way, but I cannot figure out systemd or how to determine and declare dependencies.

Do I somehow override and edit the cryptsetup.target to specify a requires or after/before of the md0? Is the syntax dev-md0.device?
Do I need to tell it that it also requires my mnt-usbkey.mount?

Thanks for any help getting this working. I just don't have an understanding of how systemd really works in Fedora beyond the high level abtract stuff mentioned in the man pages concerning units and targets, etc.
Reply With Quote

confusion, crypt, f16, lvm, raid, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 0 confusion aj7360 Installation, Upgrades and Live Media 22 19th November 2008 02:13 AM
crypt a dvd cobolus Security and Privacy 3 1st June 2005 02:40 PM

Current GMT-time: 02:02 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat