Proxmox VE8.1 Delete local-lvm Storage and Merge into local or Process into Directory


The excellence of qcow2, and being a file type, makes me prefer not to use lvm-thin as its storage backend.

So, I want to delete local-lvm and merge all the space into local.

Merge local-lvm into local

1. Delete local-lvm storage space

lvremove /dev/pve/data

2. Transfer local-lvm space to local

lvextend -rl +100%FREE /dev/pve/root

3. Enter the GUI to delete local-lvm

4. Edit local to support storage content

Process the deleted local-lvm into a directory

1. Delete local-lvm storage space

umount /dev/pve/data

lvremove /dev/pve/data

2. Check remaining disk space

vgdisplay pve | grep Free

3. Create a new LVM

lvcreate -l 450051 -n data pve

Use `lsblk -f` to check the mounting status.

4. Format data and mount the file system

mkfs.ext4 /dev/pve/data

mkdir /mnt/SystemDisk

mount /dev/pve/data /mnt/SystemDisk

5. Configure fstab

vi /etc/fstab

Add the following configuration:

/dev/pve/data /mnt/SystemDisk ext4 defaults 0 0

6. Enter the GUI, go to DataCenter>Storage>Add

7. Remove local-lvm in the GUI


Leave a Reply

Your email address will not be published. Required fields are marked *