Installed 2.1-1 about two weeks ago and all seemed well until I scheduled backups and moved things around.
Well, I haven't setup HA yet but backup is a bit more important.
To give some additional background,I've been running ProxMox for at least 3 years on version 1.X. I got new servers and figured backup and migrate would be the easy way to go. So I started with some test VMs. One moved with no issue and one has some sort of configuration issue with Tomcat that I am still trying to solve. This however has ground the migration to a halt. Major show-stopper if backups can't be done.
When I had just one VM backups(to NFS) were working as expected, then I migrated the first test VM (VM-t1) from the first cluster node to the second node. Backup ran with no issue. When I moved it back to the first node, I got the error:
INFO: WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
INFO: Logical volume "vzsnap-vps-0" already exists in volume group "pve"
ERROR: Backup of VM 101 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-vps-0 /dev/pve/data' failed: exit code 5
Adding a second VM to the same node seems to have exasperated the issue.
Like Pavlov's dog, I Google-ed to see what may be the issue, as best I can tell there is a conflict with the logical volume manger but I'm not a pro at LVM. So I'm trying to get educated on what exactly has gone off the rails. The reason I'm posting this is that I didn't really do anything fancy just yet. My plan is to use HA and to add my iSCSI (ReadyNAS) to the setup. Right now however we are talking local disks and NFS mount for backup.
I'm wondering if there is someone who's run into this or at least smarter than I about Lunix LVMs to shed some light on how best to make things work in a predictable manner. It looks like there is an issue creating the snap volume from the error message. I'm not sure how to control that and make sure those are unique.
Here is some of the out put from the few commands I figured out were relevant:
#pvscan -u
WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
PV /dev/sdb2 with UUID hNeJGx-6r7D-WWTc-h27x-Hv9l-K4Xh-1ctPjR VG pve lvm2 [232.38 GiB / 16.00 GiB free]
PV /dev/sda2 with UUID cendxC-G7f8-E0U6-yQin-VbRg-QcQ8-WYdEJ8 VG pve lvm2 [232.38 GiB / 15.00 GiB free]
Total: 2 [464.77 GiB] / in use: 2 [464.77 GiB] / in no VG: 0 [0 ]
#lvscan -a -v
Finding all logical volumes
WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
WARNING: Duplicate VG name pve: Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
inactive '/dev/pve/swap' [7.00 GiB] inherit
ACTIVE '/dev/pve/root' [58.00 GiB] inherit
inactive Original '/dev/pve/data' [151.39 GiB] inherit
inactive Snapshot '/dev/pve/vzsnap-vps-0' [1.00 GiB] inherit
I've seen lots about renaming the VG in searching and there are also lots of notes about this being a bug with LVM, but before just going into "monkey do" mode, I want to make sure that I didn't miss something in configuring the environment.
I have at least another six VMs to migrate. I would rather go back to scratch and fix things before I start using it in earnest.
Any help at all would be greatly appreciated.
Well, I haven't setup HA yet but backup is a bit more important.
To give some additional background,I've been running ProxMox for at least 3 years on version 1.X. I got new servers and figured backup and migrate would be the easy way to go. So I started with some test VMs. One moved with no issue and one has some sort of configuration issue with Tomcat that I am still trying to solve. This however has ground the migration to a halt. Major show-stopper if backups can't be done.
When I had just one VM backups(to NFS) were working as expected, then I migrated the first test VM (VM-t1) from the first cluster node to the second node. Backup ran with no issue. When I moved it back to the first node, I got the error:
INFO: WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
INFO: Logical volume "vzsnap-vps-0" already exists in volume group "pve"
ERROR: Backup of VM 101 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-vps-0 /dev/pve/data' failed: exit code 5
Adding a second VM to the same node seems to have exasperated the issue.
Like Pavlov's dog, I Google-ed to see what may be the issue, as best I can tell there is a conflict with the logical volume manger but I'm not a pro at LVM. So I'm trying to get educated on what exactly has gone off the rails. The reason I'm posting this is that I didn't really do anything fancy just yet. My plan is to use HA and to add my iSCSI (ReadyNAS) to the setup. Right now however we are talking local disks and NFS mount for backup.
I'm wondering if there is someone who's run into this or at least smarter than I about Lunix LVMs to shed some light on how best to make things work in a predictable manner. It looks like there is an issue creating the snap volume from the error message. I'm not sure how to control that and make sure those are unique.
Here is some of the out put from the few commands I figured out were relevant:
#pvscan -u
WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
PV /dev/sdb2 with UUID hNeJGx-6r7D-WWTc-h27x-Hv9l-K4Xh-1ctPjR VG pve lvm2 [232.38 GiB / 16.00 GiB free]
PV /dev/sda2 with UUID cendxC-G7f8-E0U6-yQin-VbRg-QcQ8-WYdEJ8 VG pve lvm2 [232.38 GiB / 15.00 GiB free]
Total: 2 [464.77 GiB] / in use: 2 [464.77 GiB] / in no VG: 0 [0 ]
#lvscan -a -v
Finding all logical volumes
WARNING: Duplicate VG name pve: Existing Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
WARNING: Duplicate VG name pve: Brs7Uk-3SZt-0dHH-mHvR-UcZl-iBR0-LarbiI (created here) takes precedence over kSMBV6-RbO2-bndK-Bz0b-Orh5-UbFs-Xjrf3H
inactive '/dev/pve/swap' [7.00 GiB] inherit
ACTIVE '/dev/pve/root' [58.00 GiB] inherit
inactive Original '/dev/pve/data' [151.39 GiB] inherit
inactive Snapshot '/dev/pve/vzsnap-vps-0' [1.00 GiB] inherit
I've seen lots about renaming the VG in searching and there are also lots of notes about this being a bug with LVM, but before just going into "monkey do" mode, I want to make sure that I didn't miss something in configuring the environment.
I have at least another six VMs to migrate. I would rather go back to scratch and fix things before I start using it in earnest.
Any help at all would be greatly appreciated.