lvm-thin extending confusion

dew1989

New Member
Nov 5, 2023
6
0
1
Linux noob here. I added a new drive within my proxmox run OMV and am struggling with extending the associated lvm-thin.
Code:
root@server:~# lvdisplay NAS
  --- Logical volume ---
  LV Name                NAS
  VG Name                NAS
  LV UUID                paUa5f-85d9-Dwk8-w0px-96Zl-SD4a-eTyL8v
  LV Write Access        read/write (activated read only)
  LV Creation host, time server, 2023-11-07 12:56:28 -0800
  LV Pool metadata       NAS_tmeta
  LV Pool data           NAS_tdata
  LV Status              available
  # open                 0
  LV Size                <934.79 GiB
  Allocated pool data    88.22%
  Allocated metadata     2.89%
  Current LE             239306
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:20
  
  --- Logical volume ---
  LV Path                /dev/NAS/vm-101-disk-0
  LV Name                vm-101-disk-0
  VG Name                NAS
  LV UUID                25ZcUu-QHrU-3pVs-8hB3-kue0-ChHD-EL0Vdk
  LV Write Access        read/write
  LV Creation host, time server, 2023-11-07 12:57:03 -0800
  LV Pool name           NAS
  LV Status              available
  # open                 1
  LV Size                <4.91 TiB
  Mapped size            16.41%
  Current LE             1286144
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:21

I know I need to utilize the lvextend command, but am struggling with the parameters. Thanks for the help :)
 
I'm completely stumped. Should I be using a different command. Here is my output
Code:
lvresize -L +1000G NAS/NAS
  Insufficient free space: 256000 extents needed, but only 0 available

Or is there a completely different concept here I'm missing?
 
This is really a general Linux question & is not Proxmox-specific.

You can really search anywhere on the web or these forums to find your answer.

In principle you need to do 3 things in your case:

1. Create a new PV (Physical Volume) using that new disk.
2. Extend the existing VG (Volume Group) by adding the above created PV to its VG.
3. Finally extend the LV (Logical Volume) using that VG to obtain the extra space available.

Example thread.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!