On 2018/9/5 上午4:37, Chris Murphy wrote:
> On Tue, Sep 4, 2018 at 10:22 AM, Etienne Champetier
> <champetier.etie...@gmail.com> wrote:
> 
>> Do you have a procedure to copy all subvolumes & skip error ? (I have
>> ~200 snapshots)
> 
> If they're already read-only snapshots, then script an iteration of
> btrfs send receive to a new volume.

Doesn't simple "cp -r" work here?
(If the important thing is data, not the subvolume layout).

Thanks,
Qu

> 
> Btrfs seed-sprout would be ideal, however in this case I don't think
> can help because a.) it's temporarily one file system, which could
> mean the corruption is inherited; and b.) I'm not sure it's multiple
> device aware, so either the btrfs-tune -S1 might fail on 2+ device
> Btrfs volumes, or possibly it insists on a two device sprout in order
> to replicate a two device seed.
> 
> If they're not already read-only, it's tricky because it sounds like
> mounting rw is possibly risky, and taking read only snapshots might
> fail anyway. There is no way to make read only snapshots unless the
> volume can be written to; and no way to force a rw subvolume to be
> treated as if it were read only even if the volume is mounted read
> only. And it takes a read only subvolume for send to work.
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to