Hi,
I have a copy of this data online and a backup offline but I would
like to find out if we can recover this.
A drive broke and I made a mess while replacing it.

each of sda,sdb,sdc,sdd is a 2 disk hardware RAID0.
one disk of sda died and.
I replaced it.
Made a new raid0 array: sde

This was my mistake right?
With btrfs filesystem still mounted I replicated GUID partition using
gdisk /dev/sdd
u
/dev/sde
w
q

then to randomize GUID (but it was already too late right? )
gdisk /dev/sde
g
w
q

btrfs already took the new partion in.
Infact btrfs fi show showed 4 drives and no missing drives.

Here I made some more mistakes like a btrfs de remove than stopped and
some other command.

Then I umounted the filesystem. wipefs on /dev/sde5 and then zero to
all /dev/sde5 to be sure
Rebooted the machine.

mount -o degraded
btrfs device add /dev/sda5 (after reboot sde-> sda)
btrfs device remove missing /data/btrfs
ERROR: error removing device 'missing': Input/output error

btrfs balance start /data/btrfs
[...]
Input/output error

btrfs fi show
Label: 'btrfs-data'  uuid: dee27729-64b0-45e0-af2b-97557357c021
        Total devices 5 FS bytes used 12.86TiB
        devid    2 size 7.12TiB used 4.29TiB path /dev/sdb5
        devid    3 size 7.12TiB used 4.29TiB path /dev/sdc5
        devid    4 size 7.12TiB used 4.29TiB path /dev/sdd5
        devid    5 size 7.12TiB used 60.34GiB path /dev/sda5
        *** Some devices missing

uname -a
Linux kvm4.prisma 4.18.13-1.el7.elrepo.x86_64 #1 SMP Wed Oct 10
15:37:55 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

btrfs --version
btrfs-progs v4.15.1

btrfs fi show
Label: 'btrfs-data'  uuid: dee27729-64b0-45e0-af2b-97557357c021
        Total devices 5 FS bytes used 12.86TiB
        devid    2 size 7.12TiB used 4.29TiB path /dev/sdb5
        devid    3 size 7.12TiB used 4.29TiB path /dev/sdc5
        devid    4 size 7.12TiB used 4.29TiB path /dev/sdd5
        devid    5 size 7.12TiB used 60.34GiB path /dev/sda5
        *** Some devices missing

btrfs fi df /data/btrfs/
Data, RAID5: total=12.83TiB, used=12.83TiB
System, RAID5: total=12.00MiB, used=912.00KiB
Metadata, RAID5: total=31.88GiB, used=30.94GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

[ 3011.971936] BTRFS info (device sdb5): found 66028 extents
[ 3012.489634] BTRFS info (device sdb5): relocating block group
14141113761792 flags data|raid5
[ 3020.107263] BTRFS info (device sdb5): found 5057 extents
[ 3024.248896] BTRFS info (device sdb5): found 5057 extents
[ 3024.341585] BTRFS info (device sdb5): relocating block group
13945625640960 flags data|raid5
[ 3041.911748] BTRFS info (device sdb5): found 95400 extents
[ 3043.288820] BTRFS error (device sdb5): bad tree block start 0 13851980791808


Data is readable and seem also writeable but is this array recoverable
or should I make a new filesystem?

Regards,

Marco

Reply via email to