The partitions on both SSD are equal in size:
homas@pc1-desktop:~
$ sudo fdisk -l /dev/sda
Festplatte /dev/sda: 238,47 GiB, 256060514304 Bytes, 500118192 Sektoren
Festplattenmodell: SanDisk SD8SBAT2
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x0914a19b

Gerät      Boot    Anfang      Ende  Sektoren  Größe Kn Typ
/dev/sda1  *         2048 496093750 496091703 236,6G 83 Linux
/dev/sda2       496095232 500118191   4022960   1,9G 82 Linux Swap / Solaris

thomas@pc1-desktop:~
$ sudo fdisk -l /dev/sdb
Festplatte /dev/sdb: 238,47 GiB, 256060514304 Bytes, 500118192 Sektoren
Festplattenmodell: SanDisk SD9TB8W2
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0xf23fc590

Gerät      Boot Anfang      Ende  Sektoren  Größe Kn Typ
/dev/sdb1         2048 496093750 496091703 236,6G 83 Linux


However the output of btrfs insp dump-s <device> is different:
thomas@pc1-desktop:~
$ sudo btrfs insp dump-s /dev/sdb1 | grep dev_item.total_bytes
dev_item.total_bytes    256059465728

thomas@pc1-desktop:~
$ sudo btrfs insp dump-s /dev/sda1 | grep dev_item.total_bytes
dev_item.total_bytes    253998948352



Am 13.03.21 um 08:21 schrieb Wang Yugui:
> Hi,
>
> If there is some partition size change after filesystem created,
> 'btrfs filesystem resize max' will help.
>
> See also
> https://lore.kernel.org/linux-btrfs/42d37a6393db7ad5d83bc167459c8...@steev.me.uk/T/#t
>
>
> Best Regards
> Wang Yugui (wangyu...@e16-tech.com)
> 2021/03/12
>
>> Hello,
>>
>> I have observed this error messages in systemd journal:
>> BTRFS error (device sda1): bdev /dev/sdb1 errs: wr 2702175, rd 2719033,
>> flush 0, corrupt 6, gen 0
>>
>> Here are the bottom lines of journalctl -xb:
>> ?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=524288, want=497859712,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=524288, want=497859840,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859704,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719033, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859720,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=524288, want=497859968,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719034, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859728,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859712,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719035, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=524288, want=497860096,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719036, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859736,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: attempt to access beyond end of device
>> ???????????????????????????????????? sdb1: rw=256, want=497859848,
>> limit=496091703
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719037, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719038, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719039, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719040, flush 0, corrupt 6, gen 0
>> M?r 12 08:30:41 pc1-desktop kernel: BTRFS error (device sda1): bdev
>> /dev/sdb1 errs: wr 2702175, rd 2719041, flush 0, corrupt 6, gen 0
>>
>>
>> I have configured a multidrive setup with 2 identical SSDs.
>>
>> [root@pc1-desktop ~]# uname -a
>> Linux pc1-desktop 5.10.22-2-lts #1 SMP Wed, 10 Mar 2021 10:30:57 +0000
>> x86_64 GNU/Linux
>> [root@pc1-desktop ~]# btrfs --version
>> btrfs-progs v5.11
>> [root@pc1-desktop ~]# btrfs fi show
>> Label: 'archlinux'? uuid: 78462a70-55ad-4444-9d91-e71e42cce51c
>> ??? Total devices 2 FS bytes used 178.93GiB
>> ??? devid??? 1 size 236.55GiB used 233.50GiB path /dev/sda1
>> ??? devid??? 2 size 238.47GiB used 233.50GiB path /dev/sdb1
>>
>> Label: 'backup'? uuid: de094dc0-58b7-4931-b948-4b920495bf94
>> ??? Total devices 1 FS bytes used 210.97GiB
>> ??? devid??? 1 size 232.89GiB used 228.87GiB path /dev/sdd
>>
>> [root@pc1-desktop ~]# btrfs fi df /
>> Data, RAID1: total=229.47GiB, used=175.82GiB
>> System, RAID1: total=32.00MiB, used=64.00KiB
>> Metadata, RAID1: total=4.00GiB, used=3.11GiB
>> GlobalReserve, single: total=512.00MiB, used=0.00B
>>
>>
>> Can you please advise how to fix these errors?
>>
>>
>> Regards
>> Thomas
>

Reply via email to