[PVE-User] reduce my lvm-thin partition to enlarge my root lvm partition.

Leandro Roggerone leandro at tecnetmza.com.ar
Wed Mar 4 16:36:49 CET 2020


Regarding current LVM scheme:
root at pve:~# lvs
  LV   VG  Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync
Convert
  data pve twi-a-tz-- <2.80t             0.00   0.18
  root pve -wi-ao----  1.07t
  swap pve -wi-ao----  8.00g

I would like to reduce data to 2T and enlarge root to 2T.
root partition is LVM and data partition is LVM-thin.

How should I reduce my data partition ?

Reading some blogs / tutos , like
https://www.linuxtechi.com/reduce-size-lvm-partition/
It is explained how to reduce LVM partition but not LVMthin partition.
So , in order to reduce my data (LVM partition) I need to umount the
partition to reduce later.
Problem is , I can not find the path to umount the partition neither on
lsblk nor df -h ... there is not mount point.

Does anyone succeeded doing this ?
Can you point some doc ? command list ?

Regards,
Leandro.


Following , lvdisplay and vgdisplay output.
root at pve:~# vgdisplay
  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <3.91 TiB
  PE Size               4.00 MiB
  Total PE              1023871
  Alloc PE / Size       1023871 / <3.91 TiB
  Free  PE / Size       0 / 0
  VG UUID               T6m6jY-W5k9-7J2p-TUIr-9g5Q-fm0g-HHt72c

root at pve:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                rJAeXM-9iQj-9gyN-WEZV-zX6q-omUl-6lSwyj
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-03-04 11:24:31 -0300
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                kOXw32-Wrbk-0XqI-nnBq-sYLU-lKgH-YTBvLf
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-03-04 11:24:31 -0300
  LV Status              available
  # open                 1
  LV Size                1.07 TiB
  Current LE             280672
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                vi0DaQ-eeii-Q2eT-26qy-zk4F-SMxs-NdmsfH
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-03-04 11:24:31 -0300
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                <2.80 TiB
  Allocated pool data    0.00%
  Allocated metadata     0.18%
  Current LE             733055
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4




<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


More information about the pve-user mailing list