Re: [GLLUG] LVM / KVM Question

2022-02-15 Thread Ken Smith via GLLUG




Andy Smith via GLLUG wrote:

Hi,

On Tue, Feb 15, 2022 at 10:19:32AM +, Ken Smith via GLLUG wrote:

I'm contemplating a system where I pass a LVM LV through to a KVM VM.

On the host I'm thinking that I could do a backup of the LV using a LVM
snapshot.

What am I missing, is this a mad idea?

Many people do this. However:

- Backed up data from the snapshot won't contain working data from
   within the memory of the processes in the VM, so if you restored
   from it, it would be like coming up after a power loss.

- Lots of other KVM disk backends can do snapshots so LVM isn't
   required to do this.

Cheers,
Andy
Thank you Andy, I agree a backup 'in flight' like this may have 
compromised integrity.


I'm also looking at QCOW snapshots.

:-) Ken


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug


Re: [GLLUG] LVM / KVM Question

2022-02-15 Thread Andy Smith via GLLUG
Hi,

On Tue, Feb 15, 2022 at 10:19:32AM +, Ken Smith via GLLUG wrote:
> I'm contemplating a system where I pass a LVM LV through to a KVM VM.
> 
> On the host I'm thinking that I could do a backup of the LV using a LVM
> snapshot.
> 
> What am I missing, is this a mad idea?

Many people do this. However:

- Backed up data from the snapshot won't contain working data from
  within the memory of the processes in the VM, so if you restored
  from it, it would be like coming up after a power loss.

- Lots of other KVM disk backends can do snapshots so LVM isn't
  required to do this.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug


[GLLUG] LVM / KVM Question

2022-02-15 Thread Ken Smith via GLLUG

Hi All,


I'm contemplating a system where I pass a LVM LV through to a KVM VM.

On the host I'm thinking that I could do a backup of the LV using a LVM 
snapshot.


What am I missing, is this a mad idea?

Thanks

Ken




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug