Skip to content

systemd-homed: Getting "New partition doesn't fit into backing storage, refusing"  #22255

@mat8913

Description

@mat8913

systemd version the issue has been seen with

systemd 250 (250.3-1-arch)
+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified

Used distribution

Manjaro ARM (https://github.com/manjaro-pinephone/phosh)

Linux kernel version used (uname -a)

Linux manjaro-arm 5.16.2-1-MANJARO-ARM #1 SMP PREEMPT Thu Jan 20 14:59:31 UTC 2022 aarch64 GNU/Linux

CPU architecture issue was seen on

arm64

Expected behaviour you didn't see

Logging in via gdm should work

Unexpected behaviour you saw

Logging in via gdm stalls. When I attempt to activate manually via homectl activate, I get an "Invalid argument" error.

Steps to reproduce the problem

I created the home partition on an sd card via something like homectl create --image-path=/dev/mmcblk0 ... on an older version of systemd (it was a while ago, so I don't remember exactly which version). Today I upgraded systemd and restarted, and I found I could no longer activate my home directory.

Additional program output to the terminal or log subsystem illustrating the issue

Jan 27 02:15:51 manjaro-arm kernel: Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
Jan 27 02:15:51 manjaro-arm kernel: BTRFS: device label matthew devid 1 transid 10277 /dev/dm-0 scanned by systemd-udevd (3758)
Jan 27 02:15:51 manjaro-arm systemd-homework[3747]: Setting up LUKS device /dev/mapper/home-matthew completed.
Jan 27 02:15:51 manjaro-arm systemd-homework[3747]: Provided password unlocks user record.
Jan 27 02:15:51 manjaro-arm systemd-homework[3747]: Probing file system completed (found btrfs).
Jan 27 02:15:51 manjaro-arm systemd-homework[3747]: File system check completed.
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): flagging fs with big metadata feature
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): use zstd compression, level 1
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): turning on sync discard
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): disk space caching is enabled
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): has skinny extents
Jan 27 02:15:51 manjaro-arm kernel: BTRFS info (device dm-0): enabling ssd optimizations
Jan 27 02:15:51 manjaro-arm systemd-homework[3747]: Mounting file system completed.
Jan 27 02:15:55 manjaro-arm systemd-homework[3747]: Discarded unused 75.3G.
Jan 27 02:15:55 manjaro-arm systemd-homework[3747]: Operating on partition device /dev/disk/by-uuid/533a4221-b19e-4954-a815-f6ef69276>
Jan 27 02:15:55 manjaro-arm systemd-homework[3747]: Discovered used loopback device (null).
Jan 27 02:15:55 manjaro-arm systemd-homework[3747]: offset = 1048576, size = 127864389120, image = 127865454592
Jan 27 02:15:55 manjaro-arm systemd-homework[3747]: New partition doesn't fit into backing storage, refusing.
Jan 27 02:15:56 manjaro-arm systemd-homework[3747]: Discarded unused 3.2G.
Jan 27 02:15:56 manjaro-arm systemd-homed[3157]: block device /sys/devices/virtual/block/dm-0 has been removed.
Jan 27 02:15:56 manjaro-arm systemd-homed[3157]: Activation failed: Invalid argument
Jan 27 02:15:56 manjaro-arm systemd-homed[3157]: matthew: changing state activating → inactive
Jan 27 02:15:56 manjaro-arm systemd-homed[3157]: block device /sys/devices/virtual/block/dm-0 has been removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    homedhomed, homectl, pam_homedregression ⚠️A bug in something that used to work correctly and broke through some recent commit

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions