Re: Some file lost when send back snapshot.

2019-04-27 Thread Chris Murphy
On Fri, Apr 26, 2019 at 12:27 PM Andrei Borzenkov wrote: > > btrfs send/receive expects subvolumes to remain read-only. As soon as > you start fiddling with read-only status you already lost. btrfs should > have never allowed to change read-only into read-write in the first place. I'm in agreemen

Re: Some file lost when send back snapshot.

2019-04-26 Thread MASAKI Haruka
On Fri, 26 Apr 2019 21:27:52 +0300 Andrei Borzenkov wrote: > 26.04.2019 21:12, MASAKI Haruka пишет: > >> You have two subvolumes with the same received_uuid. Is the content of > >> these subvolumes the same? Is "missing" file present in both subvolumes? > > > > No, each subvolume name (190312-01

Re: Some file lost when send back snapshot.

2019-04-26 Thread Andrei Borzenkov
26.04.2019 21:12, MASAKI Haruka пишет: >> You have two subvolumes with the same received_uuid. Is the content of >> these subvolumes the same? Is "missing" file present in both subvolumes? > > No, each subvolume name (190312-010100, 190315-001000) is timestamp. > These snapshot volumes were create

Re: Some file lost when send back snapshot.

2019-04-26 Thread MASAKI Haruka
> You have two subvolumes with the same received_uuid. Is the content of > these subvolumes the same? Is "missing" file present in both subvolumes? No, each subvolume name (190312-010100, 190315-001000) is timestamp. These snapshot volumes were created by job scheduler on original (already lost)

Re: Some file lost when send back snapshot.

2019-04-26 Thread Andrei Borzenkov
26.04.2019 7:50, MASAKI Haruka пишет: > Thank you for your reply. > > # What does > > @Host A ("lily" master, new volume) > aki@lily /mnt % socat TCP-LISTEN:25500 STDOUT | sudo btrfs receive -vv . > > @Host B ("daisy" backup, having volumes) > aki@daisy /HySlave % sudo btrfs send -v 190315-0010

Re: Some file lost when send back snapshot.

2019-04-25 Thread MASAKI Haruka
Thank you for your reply. # What does @Host A ("lily" master, new volume) aki@lily /mnt % socat TCP-LISTEN:25500 STDOUT | sudo btrfs receive -vv . @Host B ("daisy" backup, having volumes) aki@daisy /HySlave % sudo btrfs send -v 190315-001000 | socat STDIN TCP:lily.local:25500 ( ...Transfared

Re: Some file lost when send back snapshot.

2019-04-25 Thread Andrei Borzenkov
25.04.2019 16:34, MASAKI Haruka пишет: > I send snapshot from backup volume, and send new snaopshot to backup volume, > and some file lost in received volume. > > In detail: > > 1. Host A has new Btrfs volume and Host B have two backuped readonly > subvolumes (190312-010100, 190315-001000). > 2.

Some file lost when send back snapshot.

2019-04-25 Thread MASAKI Haruka
I send snapshot from backup volume, and send new snaopshot to backup volume, and some file lost in received volume. In detail: 1. Host A has new Btrfs volume and Host B have two backuped readonly subvolumes (190312-010100, 190315-001000). 2. Host B send 190315-001000 subvolume to Host A. 3. Host