LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2021, 08:29 AM   #1
mn124700
LQ Newbie
 
Registered: May 2021
Posts: 5

Rep: Reputation: Disabled
LVM issue - unable to extend metadata


I’m having a problem with LVM under Debian 10 server. I want to extend the metadata size for satassd/data (see below). Using “lvextend --poolmetadatasize +1G satassd/data” gives an error saying “Insufficient Free Space”. Looking at the results of lvs, vgs and pvs (shown below), I see that the volume group (satassd) and physical disk have no free space remaining. But, if I add up all the Lsizes of the LVs on satassd, I don’t see nearly enough usage to fill the 1.82T capacity. It looks like there should be plenty of space available.

To do the math, there are twelve 50G LVs and a 1.82T data LV that is 8.7% filled. This gives (roughly) 760G being used. But the whole volume is 1.82T, so there should be free space available. Why does it say that it's full?

I’m no expert on LVM (nor Linux for that matter) and I’m puzzled as to what’s going on and how to fix it. Any advice would be appreciated.

Thanks,
Eric

Code:
root@pve:~# lvs -a
  LV                                 VG      Attr       LSize    Pool Origin        Data%  Meta%  Move
  data                               pve     twi-aotz-- <338.36g                    54.88  3.64 
  [data_tdata]                       pve     Twi-ao---- <338.36g                                                           
  [data_tmeta]                       pve     ewi-ao----    3.45g                                                           
  [lvol0_pmspare]                    pve     ewi-------    3.45g                         
  root                               pve     -wi-ao----   96.00g                                                           
  snap_vm-102-disk-0_OMV5_c          pve     Vri---tz-k   50.00g data vm-102-disk-0                                       
  snap_vm-102-disk-0_OMV5_initial    pve     Vri---tz-k   50.00g data vm-102-disk-0                                       
  snap_vm-102-disk-0_OMV_3_24_21     pve     Vri---tz-k   50.00g data vm-102-disk-0                                       
  snap_vm-102-disk-0_OMV_d           pve     Vri---tz-k   50.00g data vm-102-disk-0                                       
  snap_vm-107-disk-0_PlayOn          pve     Vri---tz-k   50.00g data vm-107-disk-0                                       
  snap_vm-107-disk-0_PlayOn_1        pve     Vri---tz-k   50.00g data vm-107-disk-0                                       
  snap_vm-107-disk-0_PlayOn_3_24_21  pve     Vri---tz-k   50.00g data vm-107-disk-0                                       
  snap_vm-107-disk-0_PlayOn_b        pve     Vri---tz-k   50.00g data vm-107-disk-0                                       
  snap_vm-109-disk-0_Plex3Deb        pve     Vri---tz-k   50.00g data                                                     
  snap_vm-109-disk-0_Plex3Deb_b      pve     Vri---tz-k   50.00g data                                                     
  snap_vm-109-disk-0_Plex_01         pve     Vri---tz-k   50.00g data vm-109-disk-0                                       
  snap_vm-109-disk-0_Plex_02         pve     Vri---tz-k   50.00g data vm-109-disk-0                                       
  snap_vm-109-disk-0_Plex_03         pve     Vri---tz-k   50.00g data vm-109-disk-0                                       
  snap_vm-109-disk-0_Plex_3_24_21    pve     Vri---tz-k   50.00g data vm-109-disk-0                                       
  snap_vm-109-disk-0_Plex_p          pve     Vri---tz-k   50.00g data vm-109-disk-0                                       
  swap                               pve     -wi-ao----    8.00g                                                           
  vm-102-disk-0                      pve     Vwi-aotz--   50.00g data               12.84                                 
  vm-107-disk-0                      pve     Vwi-aotz--   50.00g data               72.77                                 
  vm-109-disk-0                      pve     Vwi-aotz--   50.00g data               90.49                                 
  base-111-disk-0                    satassd Vri---tz-k   50.00g data                                                     
  base-112-disk-0                    satassd Vri---tz-k   50.00g data                                                     
  data                               satassd twi-aotz--   <1.82t                    8.70   100.00   
  [data_tdata]                       satassd Twi-ao----   <1.82t                                                           
  [data_tmeta]                       satassd ewi-ao----  100.00m                                                           
  [lvol0_pmspare]                    satassd ewi-------  100.00m                         
  snap_vm-101-disk-0_Mint3_29_21     satassd Vri---tz-k   50.00g data vm-101-disk-0                                       
  snap_vm-104-disk-0_Anaconda3_21_21 satassd Vri---tz-k   50.00g data vm-104-disk-0                                       
  snap_vm-106-disk-0_Ubuntu3_21_21   satassd Vri---tz-k   50.00g data vm-106-disk-0                                       
  snap_vm-113-disk-0_ZM3_21_21       satassd Vri---tz-k   50.00g data vm-113-disk-0                                       
  vm-100-disk-0                      satassd Vwi-a-tz--   50.00g data               21.96                                 
  vm-101-disk-0                      satassd Vwi-a-tz--   50.00g data               43.96                                 
  vm-104-disk-0                      satassd Vwi-a-tz--   50.00g data               44.77                                 
  vm-106-disk-0                      satassd Vwi-a-tz--   50.00g data               20.60                                 
  vm-113-disk-0                      satassd Vwi-a-tz--   50.00g data               98.47

root@pve:~# vgs
  VG      #PV #LV #SN Attr   VSize    VFree 
  pve       1  21   0 wz--n- <465.26g <16.00g
  satassd   1  12   0 wz--n-   <1.82t      0

root@pve:~# pvs
  PV             VG      Fmt  Attr PSize    PFree 
  /dev/nvme0n1p3 pve     lvm2 a--  <465.26g <16.00g
  /dev/sdc1      satassd lvm2 a--    <1.82t      0
 
Old 05-02-2021, 06:56 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,635

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Let's hope you are not doing this on the active LVM system - use a liveUSB.
Have a read of the manpage for lvmthin - specifically the section titled "Metadata space exhaustion". But read the entire page - it has useful info on automatic extend and space recovery using fstrim.
 
Old 05-03-2021, 10:35 AM   #3
mn124700
LQ Newbie
 
Registered: May 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the reply - that's very helpful. I'm still a bit puzzled about why the PV and VG have no free space. Nothing appears overallocated - the total size of all the LVs is far less than the PV/VG size. So, is something corrupted? Or, if not, what's taking up the space?

Eric

Last edited by mn124700; 05-03-2021 at 10:39 AM.
 
Old 05-03-2021, 02:48 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,544

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
This is getting outside my area of expertise, but it looks like you have the full 1.82TB allocated to the thin pool. Even though the actual thin LVs aren't using nearly that much, the pool itself has ownership of the space. Shrink the pool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image viewer that supports editing metadata and sorting/viewing by metadata? ahc_fan Linux - Software 1 12-02-2015 11:08 AM
Extend Linux Partition (Extend LVM) osama.mansoor Linux - Newbie 5 11-27-2015 01:09 AM
Inconsistent metadata in lvm ekkek Linux - Newbie 2 03-27-2009 08:03 PM
LVM - editing metadata mickj Linux - Software 6 12-16-2008 09:37 AM
LVM Error: incorrect metadata area header checksum neillans Linux - General 1 02-28-2006 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration