ansitest/proxmox/proxmox-mount-vm-lvm-disk-on-host.sh

18 lines
329 B
Bash
Raw Normal View History

2024-09-13 08:58:42 -06:00
#!/bin/bash
# REF: https://forum.proxmox.com/threads/filled-up-disk-and-cannot-boot.148515/
exit;
#First I have to mount disk in loopback:
losetup --partscan -f /dev/mapper/pve-vm--200--disk--0
#then i could activate the vg:
vgchange -ay ubuntu-vg
#then i could mount the lv:
mount /dev/mapper/ubuntu--vg-ubuntu--lv /mnt