Bug 51724 - systemd doesn't detach my DM devices at shutdown
Summary: systemd doesn't detach my DM devices at shutdown
Status: RESOLVED NOTABUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-04 10:17 UTC by reztho
Modified: 2012-07-04 10:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description reztho 2012-07-04 10:17:18 UTC
I have this partition setup:
├─sda5                 part  /boot
└─sda6                 part  
  └─disk (dm-0)        crypt 
    ├─disk-root (dm-1) lvm   /
    └─disk-home (dm-2) lvm   /home

, which corresponds to a LVM volume group on top of a LUKS partition. This setup is explained in the archlinux wiki:
https://wiki.archlinux.org/index.php/LUKS#Encrypting_a_LVM_setup

So when I shutdown with systemd, it tells me it cannot detach the dm-0 device. It tries like 3 times and then just poweroff, showing that there was 2 devices to detach left. These messages aren't registered in the journal, but they are similar to the messages of this red hat's bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=657497

I'm using systemd version 185.
Comment 1 Lennart Poettering 2012-07-04 10:25:22 UTC
systemd cannot detach DM devices the root file system is on, after all, that's what it is run from.

The initrd that assembled storage for the root file system at boot should also be the one which disassembles it at shutdown. For that the initrd implementation should follow these guidelines:

http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface

Our recommendation is to use the Dracut initrd, which implements all this.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.