Hello, I'm testing VM and filesystem resilience upon USB disconnection and/or USB controller errors that cause disconnection. I know that is not advisable but I'm trying to check if a ZFS snapshotting strategy can protect drive data also when drive gets disconnected.
Testing a disconnection I got the VM completely unresponsive, so how to recover from VM status: IO-error since VM does not responds neither via ssh neither on noVNC console?
The whole story
I have a debian 12 VM in a test environment with 2 USB drives attached to it with:
In the VM I created a pool on each drive and I had set up zrepl to make frequent snapshots of the main pool and replication on the secondary pool.
To test if this setup was resilient and most data protective, I intentionally disconnected main USB drive from proxmox host and I got stuck with a VM that I had to quit via QEMU monitor. How can I avoid this? How can I keep VM responsive also if USB disconnects? Using USB emulation is impossible since it gives errors really soon.
Testing a disconnection I got the VM completely unresponsive, so how to recover from VM status: IO-error since VM does not responds neither via ssh neither on noVNC console?
The whole story
I have a debian 12 VM in a test environment with 2 USB drives attached to it with:
Code:
qm set 400 -scsi1 /dev/disk/by-id/usb-Go-Infin_ity_1F111111835E-0:0,cache=writeback,backup=0,replicate=0,iothread=1
qm set 400 -scsi2 /dev/disk/by-id/usb-SanDisk_SDSSDA240G_12345678937F-0:0,cache=writeback,backup=0,replicate=0,iothread=1
To test if this setup was resilient and most data protective, I intentionally disconnected main USB drive from proxmox host and I got stuck with a VM that I had to quit via QEMU monitor. How can I avoid this? How can I keep VM responsive also if USB disconnects? Using USB emulation is impossible since it gives errors really soon.