Proxmox/Shrink LVM-Thin

From Omnia
Revision as of 22:52, 14 January 2024 by Kenneth (talk | contribs) (Created page with "== Shrink to make Backup Volume == <pre> lvcreate -V 1T --thin -n backup pve/data && \ mkdir -p /mnt/backup && \ mkfs.ext4 /dev/pve/backup cat <<EOF > /etc/systemd/system/mnt-backup.mount [Unit] Description=Thin-volume for Proxmox-Backup [Mount] What=/dev/pve/backup Where=/mnt/backup Type=ext4 Options=defaults [Install] WantedBy=multi-user.target EOF systemctl enable mnt-backup.mount && \ systemctl start mnt-backup.mount </pre> Ref: https://forum.proxmox.com/thread...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Shrink to make Backup Volume

lvcreate -V 1T --thin -n backup pve/data && \
mkdir -p /mnt/backup && \
mkfs.ext4 /dev/pve/backup

cat <<EOF > /etc/systemd/system/mnt-backup.mount
[Unit]
Description=Thin-volume for Proxmox-Backup

[Mount]
What=/dev/pve/backup
Where=/mnt/backup
Type=ext4
Options=defaults

[Install]
WantedBy=multi-user.target
EOF

systemctl enable mnt-backup.mount && \
systemctl start mnt-backup.mount

Ref: https://forum.proxmox.com/threads/shrinking-of-lvm-thin-possible-best-workaround.71217/