Thank you for your reply.
Yes, I'm stuffing LVM inside the instances, that's why I can't use the default scripts for the backup.
I'm trying to create a raw image.
Right now I can do that with the same downtime as gnt-backup (shutdown, backup, start).
That's why I'm looking to create a read only snapshot of the LVM used by drbd, in this case.
Shutdown, LVM snapshot, start, backup.
My question is, can I safely create the snapshot of the data LVM ? (no Metadata LVM)
Second, to restore, do I have to activate the disks and then dd the image to the LVM in the primary node? Does it work or do I have to restore in both nodes?
Thank you.
Does the script from 2.9 support LVM in guests?
I think that's my biggest problem right now.
I'm running ganeti 2.5
Thank you
Does the script from 2.9 support LVM in guests?
Hello Brian,Thank you for your insight.Then I will tackle on the task to modify the scripts for the debootstrap to be able to support LVM as this is a common setup on the instances I manage as we use the LVM volume to grow it to our needs for databases, logs, etc.
I can just resize like that?
I'm doing that but for the LVM volumes. I remember trying once doing the grow disk but I couldn't do it or maybe I did it wrong.
I'll try it again because if that works, I can actually get rid of the LVM volumes, that's the only reason why we use them.
Thanks again.
I can just resize like that?
I'll try this tomorrow, if it works, I'll be converting my LVM guests to regular instances.
Hopefully this is useful for someone else, I'll post some results tomorrow.
Regards,
Roberto
What I mean is, instead of creating (say) three logical volumes in the guest, you can create a VM with three disks, which appear as /dev/vda (root), /dev/vdb (for database files), /dev/vdc (for logs). Each of these maps to a logical volume in the host - or DRBD over logical volume - but the guest need not be aware of that.
When you want to grow a volume, then in the host you can dognt-instance grow-diskwhich grows the logical volume representing one of these virtual disks.Reboot the guest, do resize2fs inside the guest, and you're done. Make your filesystems directly on the disks (/dev/vdb) not in a partition (/dev/vdb1) to make this easy.
Hello,
Do you have any tips on how to accomplish this for the ganeti scripts¿it seems it airways creates an msdos partition and install the OS there.
I'm using paravirtualized instances so I don't need a boot loader. I tried using "none" as the partition table but didn't work. I may be missing something.
If you could point me where to look, I can take it from there.
Thank you.
I really like that idea, but that means I cannot use a bootloader and have to load the Kernel from the node (kernel_path/initrd_path)? I really try to avoid that because of the need to keep that kernel in sync with the kerenel modules inside the instance.
Hello,
Do you have any tips on how to accomplish this for the ganeti scripts¿it seems it airways creates an msdos partition and install the OS there.