Hello,
I have a strange situation with my single node installation.
I have a free space on the proxmox install disk /dev/nvme0n1:
Step 1
I decide to use the free space as lvm-thin storage and create a new partition nvme0n1p4 with parted (fdisk, whatever...)
Then:
Everything just like Proxmox official docs recommend: https://pve.proxmox.com/wiki/Storage:_LVM_Thin
And that is fine, I add this as lvm-thin storage to proxmox and use it as VM storage with no problems:
I restore some of my machines to this storage from a backup and they start successfully.
Step 2
Then I ask myself, why I do not make lvm-thin pool with one command and instead of the previous command list I do this (after deleting lv, vg, and pv from /dev/nvme0n1p4):
And again I add this as lvm-thin storage to proxmox and use it as VM storage. But after restoring some VMs to this storage from a backup they start with many problems as if their virtual disks were heavily damaged or cannot start at all because of damaged bootloader be it linux or windows.
Step 3
I decide to do another experiment and attach an iscsi volume shared from an openmediavault which is seen on proxmox as /dev/sda:
I make a single partition /dev/sda1 then again I make an lvm thin pool with one command,:
I add this as another lvm-thin storage to proxmox and use it as VM storage.
I restore some of my machines to this storage from a backup and they start successfully. No evidence of virtual disk corruption on any vm.
What is wrong with the local disk and lv_thin_local made on it with one command?
If it were a problem with the physical storage it would appear after any way of creating the lvm-thin storage be it Step 1 or Step 2
What is the critical difference between creating lvm-thin pool immediately and creating lvm pool and then converting it to thin-pool?
I have a strange situation with my single node installation.
I have a free space on the proxmox install disk /dev/nvme0n1:
Bash:
lsblk
...
nvme0n1 259:0 0 476.9G 0 disk
|-nvme0n1p1 259:1 0 1007K 0 part
|-nvme0n1p2 259:2 0 1G 0 part /boot/efi
|-nvme0n1p3 259:3 0 14G 0 part
| |-pve-swap 252:0 0 2G 0 lvm [SWAP]
| `-pve-root 252:1 0 12G 0 lvm /
...
Step 1
I decide to use the free space as lvm-thin storage and create a new partition nvme0n1p4 with parted (fdisk, whatever...)
Then:
Bash:
# pvcreate /dev/nvme0n1p4
# vgcreate vg_local /dev/nvme0n1p4
# lvcreate -L 400G -n lv_thin_local vg_local
# lvconvert --type thin-pool vg_local/lv_thin_local
# lvresize -l +100%FREE /dev/vg_local/lv_thin_local
And that is fine, I add this as lvm-thin storage to proxmox and use it as VM storage with no problems:
I restore some of my machines to this storage from a backup and they start successfully.
Step 2
Then I ask myself, why I do not make lvm-thin pool with one command and instead of the previous command list I do this (after deleting lv, vg, and pv from /dev/nvme0n1p4):
Bash:
# pvcreate /dev/nvme0n1p4
# vgcreate vg_local /dev/nvme0n1p4
# lvcreate -Zn -l100%FREE --thinpool lv_thin_local vg_local
And again I add this as lvm-thin storage to proxmox and use it as VM storage. But after restoring some VMs to this storage from a backup they start with many problems as if their virtual disks were heavily damaged or cannot start at all because of damaged bootloader be it linux or windows.
Step 3
I decide to do another experiment and attach an iscsi volume shared from an openmediavault which is seen on proxmox as /dev/sda:
I make a single partition /dev/sda1 then again I make an lvm thin pool with one command,:
Bash:
# pvcreate /dev/sda1
# vgcreate vg_iscsi /dev/sda1
# lvcreate -Zn -l100%FREE --thinpool lv_thin_iscsi vg_iscsi
I restore some of my machines to this storage from a backup and they start successfully. No evidence of virtual disk corruption on any vm.
What is wrong with the local disk and lv_thin_local made on it with one command?
If it were a problem with the physical storage it would appear after any way of creating the lvm-thin storage be it Step 1 or Step 2
What is the critical difference between creating lvm-thin pool immediately and creating lvm pool and then converting it to thin-pool?