I've some troubles understanding backup/restore for a (CentOS) VM with Ceph storage, used as NFS server. Let say it is VM n. 100.
I've added a hard drive to this VM (virtio1) and it is located on my ceph RDB storage.
I do not want to backup this additionnal disk when I backup the VM as it is a large user storage area (250GB) so I've checked "no backup". It's backup is done separatly.
Today I had some troubles after an update of the VM: NFS was broken and "yum history rollback" was not able to restore the previous state.
I've tryed to restore my VM from the backup with a diffrent VMID: 103 (VM 100 was stopped). Restore is successfull but VM fails to start because of an error on the additional disk wich is not found. This disk still exist as starting VM 100 again shows all the data (only NFS is broken).
So my backup-process or restore-process is wrong as I'm unable to go back quickly to a working state.
- Is there a way to (re)connect this additionnal disk to the restored VM on a different ID (after a stop of the VM n. 100 of course and before removing it)?
- If I remove VM 100 and restore the backup with the same ID will the OS find this additionnal storage again? Or will the "remove" action destroy all the disks ?
Thanks for your advices
I've added a hard drive to this VM (virtio1) and it is located on my ceph RDB storage.
I do not want to backup this additionnal disk when I backup the VM as it is a large user storage area (250GB) so I've checked "no backup". It's backup is done separatly.
Today I had some troubles after an update of the VM: NFS was broken and "yum history rollback" was not able to restore the previous state.
I've tryed to restore my VM from the backup with a diffrent VMID: 103 (VM 100 was stopped). Restore is successfull but VM fails to start because of an error on the additional disk wich is not found. This disk still exist as starting VM 100 again shows all the data (only NFS is broken).
So my backup-process or restore-process is wrong as I'm unable to go back quickly to a working state.
- Is there a way to (re)connect this additionnal disk to the restored VM on a different ID (after a stop of the VM n. 100 of course and before removing it)?
- If I remove VM 100 and restore the backup with the same ID will the OS find this additionnal storage again? Or will the "remove" action destroy all the disks ?
Thanks for your advices