[SOLVED] How to add LVM over iscsi Volume to another HOST

Mar 9, 2022
9
0
1
34
Hi team,
I have 2 Host PVE ,
in IBM x3650 server, I have 'LVM over iscsi' and store disk (vm-102-disk-0) on it, ( QNAP as target iscsi and store the iscsi SMG175 ).


If IBM x33650 fail/broken ,how to attach LVM 'LVMSMG175' to HP Gen 8 ?

Thanks


 
I have 2 Host PVE ,
do you mean cluster or just two independent hosts?
in IBM x3650 server, I have 'LVM over iscsi' and store disk (vm-102-disk-0) on it, ( QNAP as target iscsi and store the iscsi SMG175 ).
If its a cluster, then the term you are looking for is "shared storage":
Information on types of storage that can be used as "shared" : https://pve.proxmox.com/wiki/Storage
You make the iSCSI available to both sides of the cluster and use appropriate volume/filesystem technology that is compatible with shared storage.
If IBM x33650 fail/broken ,how to attach LVM 'LVMSMG175' to HP Gen 8 ?
If configured properly, the failover should be automatic.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Non-cluster, just two independent hosts
Then you have to remember a few things:
- have backup of VM configuration files
- have backup of network configuration
- have backup of storage configuration
- Do NOT connected storage simultaneously to both hosts or you will have data corruption
- when event happens start with connecting storage to your standby host in the same way you did for primary
- restore storage configuration
- restore networking config
- restore vm config

This is a high level overview and not an actual complete disaster recovery action list. The main thing to remember : If you didn't test it - it doesn't work.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Then you have to remember a few things:
- have backup of VM configuration files : I have no backup
- have backup of network configuration : I have no backup
- have backup of storage configuration : I have no backup
- Do NOT connected storage simultaneously to both hosts or you will have data corruption : Thanks, I will remember it

Actualy , I currently have a lot of SPOF .
it's very hard to get rid of.
what I can do now is to map the SPOF , make a disaster recovery simulation to reduce the risk of failure.

One of them with simulation.


SOLVED :
- Make Sure iscsi LUN connection betwen Failure host and QNAP NAS Disconnected.
(on this case, SMG175 Storage)
and make sure the connection is permanent disconnented.
- Connect iscsi SMG175 Storage to HP Gen8 Host ( for example : the iscsi disk is mount to \dev\sde)
- in HP Gen8 host menu.open Datacenter > pve > DISK > LVM,make sure is a detected VG on \dev\sde .
1652581440193.png
look above picture. vgtestlvm detected automaticaly.
- open shel and go to /dev/disk/by-id/, find vgsimulasi
1652581548517.png
after finding the you want VG, note the ID : for example dm-name-vgsimulasi-vm--103--disk-0
- create VM on HP Gen8 ( for Example the VM ID is 105 )
- go to shel, And attach VG to VM with comand : # qm set 105 -virtio2 dm-name-vgsimulasi-vm--103--disk--0
- after that, check on Dashboard VM 105 hadware information.see picture below
1652581912536.png
- make sure the configuraton,the VM boot with this VG
- start VM 105.



for everyone, need to be very careful in doing the steps above,
the method above is a very stupid way and only you run in a test/developmen environment
maybe there is a slight difference in information at the beginning of the thread, I've lost information on previous experiments.
 

Attachments

  • 1652581050006.png
    1652581050006.png
    10.6 KB · Views: 9
  • 1652581076845.png
    1652581076845.png
    10.6 KB · Views: 8
  • 1652581435159.png
    1652581435159.png
    8.6 KB · Views: 8
Last edited:
Thanks to bbgeek17

according to your reply,
I started backing up the entire VM on the host,
document every iscsi configuration on both the host and NASQNAP.

Ensure that the disaster recovery plan is always tested.