Answer the question
In order to leave comments, you need to log in
How to reduce lvm size and transfer data?
An lvm partition was made on the ubuntu server during installation. Now, after the lapse of time, we understand that there is a bust in the place, and we wanted to free the disks. used pvmove /dev/sdf but gives an error:
No extents available for allocation
When this happens, the command sudo pvs -o+pv_used gives the following:
PV VG Fmt Attr PSize PFree Used
/dev/sda ubuntu-vg lvm2 a-- <127,00g 0 <127,00g
/dev/sdb3 ubuntu-vg lvm2 a-- <34,00g 0 <34,00g
/dev/sdb4 ubuntu-vg lvm2 a-- <21,00g 0 <21,00g
/dev/sdc ubuntu-vg lvm2 a-- <150,00g 0 <150,00g
/dev/sdd ubuntu-vg lvm2 a-- <90,00g 0 <90,00g
/dev/sdf ubuntu-vg lvm2 a-- <100,00g 0 <100,00g
Answer the question
In order to leave comments, you need to log in
To reduce the size, you can boot from a USB flash drive and use it lvresize --resizefs --size -5G /patg/to/you/volume
to reduce (measure 5G to the desired size).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question