Skip to content

homectl resize does not resize /dev/mapper/<user>-home volume #15115

@TorMFinn

Description

@TorMFinn

systemd version the issue has been seen with

Systemd 245

Used distribution

ArchLinux

Upon creating a user and home directory with homectl create tmf I was allocated 15G of storage, I want to resize this and after clearing up some space homectl resize tmf 60G does not seem to
resize the actual mounted volume.

[tmf@archlinux ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
dev                   7.7G     0  7.7G   0% /dev
run                   7.8G  1.6M  7.8G   1% /run
/dev/nvme0n1p2        229G  213G  4.5G  98% /
tmpfs                 7.8G  115M  7.6G   2% /dev/shm
tmpfs                 7.8G     0  7.8G   0% /sys/fs/cgroup
tmpfs                 7.8G   56K  7.8G   1% /tmp
/dev/sda1             932G  710G  222G  77% /data
/dev/nvme0n1p1       1022M   55M  968M   6% /boot
tmpfs                 1.6G   16K  1.6G   1% /run/user/60400
/dev/mapper/home-tmf   15G   15G  142M 100% /home/tmf
[tmf@archlinux ~]$ homectl inspect tmf
   User name: tmf
       State: active
 Disposition: regular
 Last Change: Thu 2020-03-12 17:51:01 CET
 Last Passw.: Thu 2020-03-12 14:51:43 CET
    Login OK: yes
 Password OK: yes
         UID: 60400
         GID: 60400 (tmf)
 Aux. Groups: audio
              input
              kvm
              libvirt
              uucp
              video
              wheel
   Directory: /home/tmf
     Storage: luks (strong encryption)
  Image Path: /home/tmf.home
   Removable: no
       Shell: /usr/bin/zsh
LUKS Discard: no
   LUKS UUID: 2040f0823cef49f5aecf5e82af37e50e
   Part UUID: 5d85881a5ad64af8a70e4a5a816e467d
     FS UUID: 7fe3d484674c492fabee8999b57d6312
 File System: ext4
 LUKS Cipher: aes
 Cipher Mode: xts-plain64
  Volume Key: 256bit
 Mount Flags: nosuid nodev exec
   Disk Size: 65.0G
  Disk Usage: 64.8G
   Disk Free: 142.0M
  Disk Floor: 64.8G
Disk Ceiling: 69.4G
  Good Auth.: 60
   Last Good: Sat 2020-03-14 15:47:49 CET
   Bad Auth.: 32
    Last Bad: Sat 2020-03-14 15:27:54 CET
    Next Try: anytime
 Auth. Limit: 30 attempts per 1min
   Passwords: 1
  Local Sig.: yes
     Service: io.systemd.Home

Metadata

Metadata

Assignees

No one assigned

    Labels

    homedhomed, homectl, pam_homed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions