K
K
Kalombyr2018-08-30 09:05:46
linux
Kalombyr, 2018-08-30 09:05:46

How to recalculate Allocated PE with LVM?

Greetings!
I'm trying to clone LVM, 32GB out of 465 is actually used (it used to be almost full)
In the output, pvdisplay writes:

pvdisplay
--- Physical volume ---
PV Name /dev/sdb5
VG Name MainServer-vg
PV Size 465.52 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 119173
Free PE 13
Allocated PE 119160
PV UUID O9aEOS-kMpu-Ryu6-Nr9n-dxXz-jdXB-1Fu8y2

And since the new disk is smaller in size, pvmove does not allow copying.
How to recalculate these "Allocated PE" ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2018-08-30
@martin74ua

shrink FS on volume, shrink volume.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question