Informational Website publish

Blog

News about our company, tutorials about IT and much more you will find in this page.

Proxmox remove lvm local data

Novembro 5th, 2018

How to utilize a single LVM Volume / root LVM partition.

NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                  8:0    0 111.8G  0 disk 
├─sda1               8:1    0     1M  0 part 
├─sda2               8:2    0   256M  0 part 
└─sda3               8:3    0 111.6G  0 part 
  ├─pve-swap       253:0    0     7G  0 lvm  [SWAP]
  ├─pve-root       253:1    0  27.8G  0 lvm  /
  ├─pve-data_tmeta 253:2    0     1G  0 lvm  
  │ └─pve-data     253:4    0  60.9G  0 lvm  
  └─pve-data_tdata 253:3    0  60.9G  0 lvm  
    └─pve-data     253:4    0  60.9G  0 lvm  

1. Remove /dev/pve/data

lvremove /dev/pve/data

2. Resize root partition

lvresize -l +100%FREE /dev/pve/root

3. Completing

resize2fs /dev/mapper/pve-root

4. Verification

lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:0    0 111.8G  0 disk 
├─sda1         8:1    0     1M  0 part 
├─sda2         8:2    0   256M  0 part 
└─sda3         8:3    0 111.6G  0 part 
  ├─pve-swap 253:0    0     7G  0 lvm  [SWAP]
  └─pve-root 253:1    0 104.5G  0 lvm  /