You are not logged in.

#1 2020-02-13 22:10:43

Aromatix
Member
Registered: 2019-03-25
Posts: 8

[SOLVED] LUKS cryptdevices misses space

I have a basic encrypted partition layout (LVM inside LUKS) like this:

# lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda               8:0    0 238.5G  0 disk  
├─sda1            8:1    0   550M  0 part  /efi
└─sda7            8:7    0   120G  0 part  
  └─main        254:0    0   120G  0 crypt 
    ├─main-root 254:1    0    42G  0 lvm   /
    ├─main-swap 254:2    0     8G  0 lvm   [SWAP]
    └─main-home 254:3    0    30G  0 lvm   /home

It looks like there are still 40G in VG main free, but thats not the case

# vgdisplay
  --- Volume group ---
  VG Name               main
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  14
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               79.98 GiB
  PE Size               4.00 MiB
  Total PE              20475
  Alloc PE / Size       20475 / 79.98 GiB
  Free  PE / Size       0 / 0   
  VG UUID 

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/mapper/main
  VG Name               main
  PV Size               79.98 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              20475
  Free PE               0
  Allocated PE          20475
  PV UUID              
              

Can someone point me in the right direction? Where do I have to look for my missing Bytes?
Thanks in advance!

Last edited by Aromatix (2020-02-13 22:29:19)


I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks wink

Offline

#2 2020-02-13 22:15:45

frostschutz
Member
Registered: 2013-11-15
Posts: 895

Re: [SOLVED] LUKS cryptdevices misses space

was the partition originally around 80G? that's the size the PV believes... but it's around 120G now.

pvresize /dev/mapper/main

Offline

#3 2020-02-13 22:28:41

Aromatix
Member
Registered: 2019-03-25
Posts: 8

Re: [SOLVED] LUKS cryptdevices misses space

That did it! Thanks!


I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks wink

Offline

Board footer

Powered by FluxBB