meta data for this page
This is an old revision of the document!
LVM
resize LVM-thin
pvs
vgs
lvs
- use cfdisk to resize partition where PV is located
pvresize /dev/sda3
- check with
pvdisplay
that new size is correct lvextend -l 100%FREE pve/data
orlvextend -L +20G pve/data
local-lvm on ZFS
When Proxmox cluster is used it is good to have the same storages on all nodes. It is needed for migration of LXC.
To add local-lvm
storage to ZFS based node:
# create 50GB thin volume: zfs create -s -V 50G hddpool/lvm readlink /dev/zvol/hddpool/lvm ../../zd32
By default Proxmox adds global filter rule to lvm.conf to exclude all zvol and rbd devices
So add our /dev/zd32
to accept list:
- /etc/lvm/lvm.conf
devices { # added by pve-manager to avoid scanning ZFS zvols and Ceph rbds global_filter=["a|/dev/zd32|","r|/dev/zd.*|","r|/dev/rbd.*|"] }
pvcreate /dev/zvol/hddpool/lvm vgcreate pve /dev/zd32 # Create thin pool data volume lvcreate -l 100%FREE --type thin-pool --name data pve
And disable nodes restriction in Datacenter
–> Storage
–> local-lvm
to have local-lvm
visible on all cluster nodes.