Skip to content

Using bees in combination with btrfs send/receive -p <parent> #312

@art-latal

Description

@art-latal

Is it safe to use bees in combination with btrfs send/receive -p <parent>?

I know that I must not run bees and btrfs send/receive at the same time.

The documentation says: "You must not specify clone sources unless you guarantee that these snapshots are exactly in the same state on both sides--both for the sender and the receiver."

Suppose I use the following procedure:

  1. I have a filesystem FS1 and on it a subvolume with data named /FS1/DATA. I also have a filesystem FS2 available as /FS2.

  2. I take a snapshot: btrfs subvolume snapshot -r /FS1/DATA /FS1/DATAs1

  3. I send it to the FS2: btrfs send /FS1/DATAs1 | btrfs receive /FS2/

  4. Now:
    a) I'll let bees run on FS1,
    b) or I let bees run on FS2,
    c) or I let bees run on both FS1 and FS2.
    In the meantime, I continue to use /FS1/DATA.

  5. After a while, I stop bees and take next snapshot: btrfs subvolume snapshot -r /FS1/DATA /FS1/DATAs2

Can I now safely transfer the new snapshot to FS2 with the command: btrfs send -p /FS1/DATAs1 /FS1/DATAs2 | btrfs receive /FS2/ ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions