You are not logged in.
One month ago,I install Arch with lvm.And I found a problem today.
Physical volume size is 150G,but Volume group size and Logical volume size is "<150G".Actually their size is only 90G.
Then I run "sudo df -h /dev/linux-root/lvroot"
This is the output:
sudo df -h /dev/linux-root/lvroot文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/linux--root-lvroot 148G 90G 51G 64% /It seems to mean that the unused capacity is 50G.
------------------------------this is shell output about lvm--------------------------------------
chippy@Archlinux ~ sudo pvdisplay /dev/nvme0n1p7
--- Physical volume ---
PV Name /dev/nvme0n1p7
VG Name linux-root
PV Size 151.09 GiB / not usable 3.69 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 38679
Free PE 0
Allocated PE 38679
PV UUID Joe8g0-5Fpn-b7ki-GGKt-EjCB-EK6D-71nc3F
chippy@Archlinux ~ sudo vgdisplay /dev/linux-root
--- Volume group ---
VG Name linux-root
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <151.09 GiB
PE Size 4.00 MiB
Total PE 38679
Alloc PE / Size 38679 / <151.09 GiB
Free PE / Size 0 / 0
VG UUID 3z8dad-x5O1-JXCz-rfwn-5Xij-yGsN-yafcY6
chippy@Archlinux ~ sudo lvdisplay /dev/linux-root/lvroot
--- Logical volume ---
LV Path /dev/linux-root/lvroot
LV Name lvroot
VG Name linux-root
LV UUID oIB4R4-7B0n-vB43-0Acr-lUY0-JkLU-u4AGsI
LV Write Access read/write
LV Creation host, time archiso, 2021-07-06 18:30:56 +0800
LV Status available
# open 1
LV Size <151.09 GiB
Current LE 38679
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0 ___________________________________________________
How can I retrieve the lost 50G capacity?
Last edited by YagokoroEirin (2021-07-25 00:26:01)
Offline
The 50GiB is not "lost capacity", it's simply unused/available space inside the filesystem (df shows the filesystem usage information).
The output there means: "This filesystem is 148G big, of which you have used 90G, and so 51G remain". The numbers don't add up due to reserved blocks (most likely).
Offline
YagokoroEirin, please read How to Post.
Please edit your post and change the topic title to remove the redundant "Help!" and give us a more descriptive title. Then use [ code ] tags around the output in your post.
https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode
When your problem is solved, please remember to mark your thread [SOLVED] (edit the title of your first post).
Moving to Newbie Corner.
Last edited by 2ManyDogs (2021-07-24 22:50:53)
Offline