Increase lvm-thin to new disc

Arnavisca

Member
Mar 6, 2022
14
5
8
36
Hi, iam noob and i dont speak english. Google translate helps me.


I had a 500Gb drive and cloned it to a 2tb drive. I need to expand lvm-thin to 2tb. What commands should I use? Can it be done without data loss?

Same information:

Code:
root@fdn804:~# pvs
  PV             VG  Fmt  Attr PSize    PFree
  /dev/nvme0n1p3 pve lvm2 a--  <465.26g    0

Code:
root@fdn804:~# vgs
  VG  #PV #LV #SN Attr   VSize    VFree
  pve   1  42   0 wz--n- <465.26g    0

Code:
root@fdn804:~# lsblk
NAME                                   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1                                259:0    0   1.8T  0 disk
├─nvme0n1p1                            259:1    0  1007K  0 part
├─nvme0n1p2                            259:2    0   512M  0 part /boot/efi
└─nvme0n1p3                            259:3    0 465.3G  0 part
  ├─pve-swap                           253:0    0     8G  0 lvm  [SWAP]
  ├─pve-root                           253:1    0    96G  0 lvm  /
  ├─pve-data_tmeta                     253:2    0   3.5G  0 lvm 
  │ └─pve-data-tpool                   253:4    0 354.4G  0 lvm 
  │   ├─pve-data                       253:5    0 354.4G  1 lvm 
  │   ├─pve-vm--100--disk--0           253:6    0     4G  0 lvm 
  │   ├─pve-vm--101--disk--0           253:7    0     4G  0 lvm 
  │   ├─pve-vm--203--disk--0           253:8    0    32G  0 lvm 
  │   ├─pve-vm--204--disk--0           253:9    0    60G  0 lvm 
  │   ├─pve-vm--205--disk--0           253:10   0    32G  0 lvm 
  │   ├─pve-vm--206--disk--0           253:11   0    32G  0 lvm 
  │   ├─pve-vm--207--disk--0           253:12   0    32G  0 lvm 
  │   ├─pve-vm--201--disk--0           253:13   0    32G  0 lvm 
  │   ├─pve-vm--102--disk--0           253:14   0    20G  0 lvm 
  │   ├─pve-vm--210--disk--0           253:15   0    50G  0 lvm 
  │   ├─pve-vm--205--disk--1           253:16   0    25G  0 lvm 
  │   ├─pve-vm--205--disk--2           253:17   0   100G  0 lvm 
  │   ├─pve-vm--211--disk--0           253:18   0    50G  0 lvm 
  │   ├─pve-vm--253--disk--0           253:19   0    50G  0 lvm 
  │   ├─pve-vm--208--state--potiskarne 253:20   0   8.5G  0 lvm 
  │   ├─pve-vm--208--disk--0           253:21   0    32G  0 lvm 
  │   ├─pve-vm--103--disk--0           253:22   0     8G  0 lvm 
  │   ├─pve-vm--105--disk--0           253:23   0     8G  0 lvm 
  │   ├─pve-vm--104--disk--0           253:24   0     8G  0 lvm 
  │   └─pve-vm--209--disk--0           253:25   0    50G  0 lvm 
  └─pve-data_tdata                     253:3    0 354.4G  0 lvm 
    └─pve-data-tpool                   253:4    0 354.4G  0 lvm 
      ├─pve-data                       253:5    0 354.4G  1 lvm 
      ├─pve-vm--100--disk--0           253:6    0     4G  0 lvm 
      ├─pve-vm--101--disk--0           253:7    0     4G  0 lvm 
      ├─pve-vm--203--disk--0           253:8    0    32G  0 lvm 
      ├─pve-vm--204--disk--0           253:9    0    60G  0 lvm 
      ├─pve-vm--205--disk--0           253:10   0    32G  0 lvm 
      ├─pve-vm--206--disk--0           253:11   0    32G  0 lvm 
      ├─pve-vm--207--disk--0           253:12   0    32G  0 lvm 
      ├─pve-vm--201--disk--0           253:13   0    32G  0 lvm 
      ├─pve-vm--102--disk--0           253:14   0    20G  0 lvm 
      ├─pve-vm--210--disk--0           253:15   0    50G  0 lvm 
      ├─pve-vm--205--disk--1           253:16   0    25G  0 lvm 
      ├─pve-vm--205--disk--2           253:17   0   100G  0 lvm 
      ├─pve-vm--211--disk--0           253:18   0    50G  0 lvm 
      ├─pve-vm--253--disk--0           253:19   0    50G  0 lvm 
      ├─pve-vm--208--state--potiskarne 253:20   0   8.5G  0 lvm 
      ├─pve-vm--208--disk--0           253:21   0    32G  0 lvm 
      ├─pve-vm--103--disk--0           253:22   0     8G  0 lvm 
      ├─pve-vm--105--disk--0           253:23   0     8G  0 lvm 
      ├─pve-vm--104--disk--0           253:24   0     8G  0 lvm 
      └─pve-vm--209--disk--0           253:25   0    50G  0 lvm
 

Attachments

  • proxmox.png
    proxmox.png
    20.3 KB · Views: 5
  • proxmox2.png
    proxmox2.png
    12.9 KB · Views: 5
  • proxmox3.png
    proxmox3.png
    12.8 KB · Views: 5
yes - it can be done without data loss. There are a number of commands that need to be run. As you are dealing with data, you need to be extremely careful when running these commands. It would be best that you read through a few tutorials before executing. I suspect if you search for :
"linux expand partition" and "linux expand lvm" you will find a few walk throughs even in your native language.

This seems like a good place to start:
https://www.ryadel.com/en/resize-ex...d-disk-space-linux-centos-rhel-ubuntu-debian/



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

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!