diff options
author | Chris Webb <chris@arachsys.com> | 2021-10-12 10:11:38 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-12 12:05:29 -0400 |
commit | 772ee0686418e3b2a8b4dee9f9f2077e5d2cd37b (patch) | |
tree | 7cbed291adf67f83737f881a373461191499c315 | |
parent | ef15df7025946e8ead35ebf5ee1ed043f3a9e1c6 (diff) |
Test simple drive replacement on a replicated fs
This currently fails because metadata doesn't get copied to the
replacement device, although the data content of the filesystem
does get replicated during the data rereplicate step.
Signed-off-by: Chris Webb <chris@arachsys.com>
-rw-r--r-- | tests/bcachefs/replication.ktest | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bcachefs/replication.ktest b/tests/bcachefs/replication.ktest index 7057fa7..569b984 100644 --- a/tests/bcachefs/replication.ktest +++ b/tests/bcachefs/replication.ktest @@ -629,3 +629,17 @@ test_replicas_gc() bcachefs fsck /dev/sd[bcdef] } + +# Fails +test_replace_replica() +{ + bcachefs format --errors=panic --replicas=2 /dev/sd[bc] + mount -t bcachefs -o degraded /dev/sdb /mnt + + bcachefs device add -f /mnt /dev/sdd + bcachefs data rereplicate /mnt + umount /mnt + + mount -t bcachefs -o degraded /dev/sdd /mnt + umount /mnt +} |