Your message dated Mon, 06 Feb 2017 01:21:32 +0900
with message-id <[email protected]>
and subject line RE: btrfs-progs: btrfs filesystem defrag order of arguments
different results
has caused the Debian Bug report #724951,
regarding btrfs-tools: btrfs device stats show error (no such device) for newly
added disk until FS remount
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
724951: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724951
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: btrfs-tools
Version: 0.19+20130705-2
Severity: normal
When new disk added to btrfs volume, right after adding 'btrfs device stats'
failing:
ERROR: ioctl(BTRFS_IOC_GET_DEV_STATS) on /dev/sdg1 failed: No such device
home:/home/amarao# btrfs device remove /dev/sdg1 /media/JBOD/
If filesystem after device adding is unmounted and mounted back everything is
ok.
Log to reproduce:
# btrfs device add /dev/sdg1 /media/JBOD/
# btrfs device stats /media/JBOD/
[/dev/sdb1].write_io_errs 0
[/dev/sdb1].read_io_errs 0
[/dev/sdb1].flush_io_errs 0
[/dev/sdb1].corruption_errs 0
[/dev/sdb1].generation_errs 0
[/dev/sdc1].write_io_errs 0
[/dev/sdc1].read_io_errs 0
[/dev/sdc1].flush_io_errs 0
[/dev/sdc1].corruption_errs 0
[/dev/sdc1].generation_errs 0
[/dev/sdd1].write_io_errs 0
[/dev/sdd1].read_io_errs 0
[/dev/sdd1].flush_io_errs 0
[/dev/sdd1].corruption_errs 0
[/dev/sdd1].generation_errs 0
[/dev/sde1].write_io_errs 0
[/dev/sde1].read_io_errs 0
[/dev/sde1].flush_io_errs 0
[/dev/sde1].corruption_errs 0
[/dev/sde1].generation_errs 0
[/dev/sdf1].write_io_errs 0
[/dev/sdf1].read_io_errs 0
[/dev/sdf1].flush_io_errs 0
[/dev/sdf1].corruption_errs 0
[/dev/sdf1].generation_errs 0
ERROR: ioctl(BTRFS_IOC_GET_DEV_STATS) on /dev/sdg1 failed: No such device
# btrfs device delete /dev/sdg1 /media/JBOD/
# btrfs device add /dev/sdg1 /media/JBOD/
# umount /media/JBOD/
# mount /dev/sdb1 /media/JBOD/
# btrfs device stats /media/JBOD/
[/dev/sdb1].write_io_errs 0
[/dev/sdb1].read_io_errs 0
[/dev/sdb1].flush_io_errs 0
[/dev/sdb1].corruption_errs 0
[/dev/sdb1].generation_errs 0
[/dev/sdc1].write_io_errs 0
[/dev/sdc1].read_io_errs 0
[/dev/sdc1].flush_io_errs 0
[/dev/sdc1].corruption_errs 0
[/dev/sdc1].generation_errs 0
[/dev/sdd1].write_io_errs 0
[/dev/sdd1].read_io_errs 0
[/dev/sdd1].flush_io_errs 0
[/dev/sdd1].corruption_errs 0
[/dev/sdd1].generation_errs 0
[/dev/sde1].write_io_errs 0
[/dev/sde1].read_io_errs 0
[/dev/sde1].flush_io_errs 0
[/dev/sde1].corruption_errs 0
[/dev/sde1].generation_errs 0
[/dev/sdf1].write_io_errs 0
[/dev/sdf1].read_io_errs 0
[/dev/sdf1].flush_io_errs 0
[/dev/sdf1].corruption_errs 0
[/dev/sdf1].generation_errs 0
[/dev/sdg1].write_io_errs 0
[/dev/sdg1].read_io_errs 0
[/dev/sdg1].flush_io_errs 0
[/dev/sdg1].corruption_errs 0
[/dev/sdg1].generation_errs 0
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages btrfs-tools depends on:
ii e2fslibs 1.42.8-1
ii libblkid1 2.20.1-5.5
ii libc6 2.17-93
ii libcomerr2 1.42.8-1
ii liblzo2-2 2.06-1.2
ii libuuid1 2.20.1-5.5
ii zlib1g 1:1.2.8.dfsg-1
btrfs-tools recommends no packages.
btrfs-tools suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
reassign 724951 linux
fixed 724951 3.13~rc6-1~exp1
thanks
It's not btrfs-progs bug but linux. I've confirmed this with 3.11.10-1 and
3.12.9-1, and not in 3.13~rc6-1~exp1.
--- End Message ---