Re: [ClusterLabs] OCFS2 fragmentation with snapshots

2021-05-20 Thread Gang He
Hi Ulrich, On 2021/5/18 18:52, Ulrich Windl wrote: Hi! I thought using the reflink feature of OCFS2 would be just a nice way to make crash-consistent VM snapshots while they are running. As it is a bit tricky to find out how much data is shared between snapshots, I started to write an

Re: [ClusterLabs] OCFS2 fragmentation with snapshots

2021-05-18 Thread Strahil Nikolov
Are you using KVM ? Maybe you can create a snapshot on VM level and then defragfs.ocfs2 the  read-only part of the VM disk file and after the defrag -> merge it back by deleting the snapshot ? Yet, the whole idea seems wrong to me. I would freeze the FS  and the application in the VM and then

Re: [ClusterLabs] OCFS2 fragmentation with snapshots

2021-05-18 Thread Andrei Borzenkov
On Tue, May 18, 2021 at 1:52 PM Ulrich Windl wrote: > > Hi! > > I thought using the reflink feature of OCFS2 would be just a nice way to make > crash-consistent VM snapshots while they are running. > As it is a bit tricky to find out how much data is shared between snapshots, > I started to

[ClusterLabs] OCFS2 fragmentation with snapshots

2021-05-18 Thread Ulrich Windl
Hi! I thought using the reflink feature of OCFS2 would be just a nice way to make crash-consistent VM snapshots while they are running. As it is a bit tricky to find out how much data is shared between snapshots, I started to write an utility to examine the blocks allocated to the VM backing