Timed out Availability of block devices service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a fresh Ubuntu 18.04 (64 bit) Server install, the blk-availabilit
I think the dependency of this service is bad, but I don't know what would be the good shutdown order for this.
An almost same config has been worked on Xenial...
The disk sub-system is
* NVMe SSD
* EFI partition
* boot partition
* LVM phisical volume
* root logical volume
* swap logical volume
* data logical volume
* 2 pcs. HDDs in RAID1 (but the md0 is not used yet)
######
# Versions
#
# Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
# Kernel
Linux server 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# LVM
lvm2 2.02.176-4.1ubuntu3
######
# Journal
#
systemd[1]: Stopped Load/Save Random Seed.
systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
systemd[1]: Stopped Network Time Synchronization.
kernel: usb 1-13: USB disconnect, device number 2
systemd[1]: blk-availabilit
systemd[1]: blk-availabilit
blkdeactivate[
systemd[1]: blk-availabilit
systemd[1]: Stopped Availability of block devices.
systemd[1]: Stopping iSCSI initiator daemon (iscsid)...
iscsid[951]: iscsid shutting down.
systemd[1]: Stopped iSCSI initiator daemon (iscsid).
systemd[1]: Stopped target Network is Online.
systemd[1]: Stopped Wait for Network to be Configured.
systemd[1]: Stopped target Network.
systemd[1]: Stopping Network Name Resolution...
systemd[1]: Stopped Network Name Resolution.
systemd[1]: Stopping Network Service...
systemd[1]: Stopped Create Volatile Files and Directories.
systemd[1]: Stopped target Local File Systems.
systemd[1]: Unmounting /boot/efi...
systemd[1]: Unmounting /run/user/1000...
systemd[1]: Unmounted /run/user/1000.
systemd[1]: Stopped target Swap.
systemd[1]: Deactivating swap /dev/disk/
systemd[1]: Unmounted /boot/efi.
systemd[1]: Unmounting /boot...
systemd[1]: Stopped File System Check on /dev/disk/
systemd[1]: Deactivated swap /dev/xxx_
systemd[1]: Deactivated swap /dev/disk/
systemd[1]: Deactivated swap /dev/disk/
systemd[1]: Deactivated swap /dev/disk/
systemd[1]: Deactivated swap /dev/dm-1.
systemd[1]: Stopped Network Service.
systemd[1]: Deactivated swap /dev/mapper/
systemd[1]: Unmounted /boot.
systemd[1]: Stopped File System Check on /dev/disk/
systemd[1]: Removed slice system-
systemd[1]: Stopped target Local File Systems (Pre).
systemd[1]: Stopped Remount Root and Kernel File Systems.
systemd[1]: Stopped Create Static Device Nodes in /dev.
systemd[1]: Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
systemd[1]: Stopped target Network (Pre).
systemd[1]: Stopped Apply Kernel Variables.
systemd[1]: Stopped Load Kernel Modules.
systemd[1]: Reached target Shutdown.
systemd[1]: Reached target Unmount All Filesystems.
systemd[1]: Reached target Final Step.
systemd[1]: Starting Power-Off...
######
# systemctl cat blk-availabilit
#
# /lib/systemd/
[Unit]
Description=
After=lvm2-
DefaultDependen
Conflicts=
[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=
RemainAfterExit=yes
[Install]
WantedBy=
######
# Other
#
I tried to ask help on https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lvm2 2.02.176-4.1ubuntu3
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Thu Jul 5 09:24:01 2018
InstallationDate: Installed on 2018-07-03 (1 days ago)
InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: lvm2
UpgradeStatus: No upgrade log present (probably fresh install)
I found the commit where introduced this blkdeactivate: https:/ /sourceware. org/git/ ?p=lvm2. git;a=commit; h=c698ee14bbb13 10cf2383c8977d1 4a8e29139f8c
> Traverses the tree of block devices and tries to deactivate them.
> Currently, it supports device-mapper-based devices together with LVM.
> See man/blkdeactivate.8 for more info.
>
> It is targeted for use during shutdown to properly deactivate the
> whole block device stack - systemd and init scripts are provided as
> well. However, it might be used directly on command line too.
In this case, this stuff runs too early, as I think.