I'm learning how to setup and manage a pve cluster, in a test environment (so i don't really care about loosing any vm data, btw)
After solving some sync issues, i created my first cluster, but make some mistakes. I am now about to restart but need to understand exactly how should i setup this: in order to understand what i have done, the short story, from the start:
* had a single pve1 server with several vm, both local and lvm/iscsi (nas) both running
* installed a new empty server pve2
* created a cluster on pve2 and then joined the cluster with pve1
i've learned (too late, because i've read too fast the wiki) that this is wrong, a cluster should be done the other way, because <<Please note, the node should not have any VM´s. (If yes you will get conflicts with identical VMID´s...>>
so i tried to repair:
* removed pve1 from the cluster
* removed the cluster on pve2 (wiki explains how)
* created a new cluster on pve1 with several vm, both local and lvm/iscsi (nas) both still running
* joined the cluster with pve2
then, i started migrating the local storage vm from pve1 to pve2 and back: easily.
then i tried to migrate the lvm/isci storage vm from pve1 to pve2 but the manager failed complaining that the storage was not present...but that machine was still running (!) so that storage should have been there... puzzling...
so i
* removed pve2 from cluster
* removed the cluster from pve1
* rebooted pve1
and when starting that lvm/scsi vm got a sudden stop, and the log said
/usr/sbin/qm start 112
storage 'vm_iscsi' does not exists
VM 112 start failed -
* i checked on the iscsi nas and noted that pve2 (!?!) was still connected to the target
* made a manual iscsi logout from pve2 and then rebooted pve2
* then no server was connected anymore to that iscsi target
Now, i want to create from scratch another lvm/iscsi storage but should i
1) create it on single server that will become cluster master, and then any other member joining afterwards will see it?
or
2) create the cluster master first and then create the storage on it? And before or after joining othern servers to the cluster?
Sorry for being so newbie
Thanks to anyone patient to read and/or willing to help...
Marco
After solving some sync issues, i created my first cluster, but make some mistakes. I am now about to restart but need to understand exactly how should i setup this: in order to understand what i have done, the short story, from the start:
* had a single pve1 server with several vm, both local and lvm/iscsi (nas) both running
* installed a new empty server pve2
* created a cluster on pve2 and then joined the cluster with pve1
i've learned (too late, because i've read too fast the wiki) that this is wrong, a cluster should be done the other way, because <<Please note, the node should not have any VM´s. (If yes you will get conflicts with identical VMID´s...>>
so i tried to repair:
* removed pve1 from the cluster
* removed the cluster on pve2 (wiki explains how)
* created a new cluster on pve1 with several vm, both local and lvm/iscsi (nas) both still running
* joined the cluster with pve2
then, i started migrating the local storage vm from pve1 to pve2 and back: easily.
then i tried to migrate the lvm/isci storage vm from pve1 to pve2 but the manager failed complaining that the storage was not present...but that machine was still running (!) so that storage should have been there... puzzling...
so i
* removed pve2 from cluster
* removed the cluster from pve1
* rebooted pve1
and when starting that lvm/scsi vm got a sudden stop, and the log said
/usr/sbin/qm start 112
storage 'vm_iscsi' does not exists
VM 112 start failed -
* i checked on the iscsi nas and noted that pve2 (!?!) was still connected to the target
* made a manual iscsi logout from pve2 and then rebooted pve2
* then no server was connected anymore to that iscsi target
Now, i want to create from scratch another lvm/iscsi storage but should i
1) create it on single server that will become cluster master, and then any other member joining afterwards will see it?
or
2) create the cluster master first and then create the storage on it? And before or after joining othern servers to the cluster?
Sorry for being so newbie
Thanks to anyone patient to read and/or willing to help...
Marco