I have RAID1 configured as described here
$ sudo mkfs.btrfs -m raid1 -d raid1 /dev/sdb /dev/sdc Then I mount device and write some data:
sudo mount /dev/sdb /mnt echo "some data" > /mnt/123 I have next picture:
# btrfs fi show Label: none uuid: 01e1a8a1-be78-47d0-8dc2-2e293265b31b Total devices 2 FS bytes used 896.00KiB devid 1 size 3.64TiB used 4.04GiB path /dev/sde devid 2 size 3.64TiB used 4.04GiB path /dev/sdb Then I unplug one device and see next:
# btrfs fi show warning, device 2 is missing warning, device 2 is missing parent transid verify failed on 22020096 wanted 11 found 8 parent transid verify failed on 22020096 wanted 11 found 8 Ignoring transid failure Label: none uuid: 01e1a8a1-be78-47d0-8dc2-2e293265b31b Total devices 2 FS bytes used 896.00KiB devid 1 size 3.64TiB used 2.01GiB path /dev/sde *** Some devices missing When I mount /dev/sde device I see no data:
# mount -o degraded /dev/sdb /mnt # cd /mnt # ls Thus I am not sure that btrfs function normally.
- Why I do not see stored data?
- Why
btrfs fi showdisplays different info? c/p from posts above:
devid 1 size 3.64TiB used 4.04GiB path /dev/sde VS (after removing one device) devid 1 size 3.64TiB used 2.01GiB path /dev/sde As you can see used is differ =(
sudo echo "- - -" > /sys/class/scsi_host/host2/scan