Debian Bug report logs - #867034
zfsutils-linux: ls -l gives an input/output error

version graph

Package: zfsutils-linux; Maintainer for zfsutils-linux is Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>; Source for zfsutils-linux is src:zfs-linux (PTS, buildd, popcon).

Reported by: G <debian-bug@toidi.eu>

Date: Mon, 3 Jul 2017 15:51:02 UTC

Severity: normal

Found in version zfs-linux/0.6.5.9-5

Fixed in version 0.6.5.10-1

Done: Aron Xu <aron@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-bug@toidi.eu, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#867034; Package zfsutils-linux. (Mon, 03 Jul 2017 15:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to G <debian-bug@toidi.eu>:
New Bug report received and forwarded. Copy sent to debian-bug@toidi.eu, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Mon, 03 Jul 2017 15:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: G <debian-bug@toidi.eu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: zfsutils-linux: ls -l gives an input/output error
Date: Mon, 03 Jul 2017 19:46:53 +0200
Package: zfsutils-linux
Version: 0.6.5.9-5
Severity: normal

Dear Maintainer,

ls -l gives an input/output error when running on a directory containing
an .zfs directory (all run as root):

ls -a
.  ..  efkes  .zfs

ls -al
ls: .zfs: Input/output error
total 5
drwxr-xr-x  2 root root    3 Jul  3 17:19 .
drwxr-xr-x 25 root root 4096 Jul  3 17:01 ..
-rw-r--r--  1 root root    5 Jul  3 17:19 efkes
dr-xr-xr-x  1 root root    0 Jul  3 17:23 .zfs


cd .zfs/

.zfs# ls -a
.  ..  shares  snapshot

.zfs# ls -al
ls: .: Input/output error
ls: snapshot: Input/output error
ls: shares: Input/output error
total 1
dr-xr-xr-x 1 root root 0 Jul  3 17:23 .
drwxr-xr-x 2 root root 3 Jul  3 17:19 ..
dr-xr-xr-x 2 root root 2 Jul  3 19:12 shares
dr-xr-xr-x 2 root root 2 Jul  3 19:43 snapshot



-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/40 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages zfsutils-linux depends on:
ii  init-system-helpers  1.48
ii  libblkid1            2.29.2-1
ii  libc6                2.24-11+deb9u1
ii  libnvpair1linux      0.6.5.9-5
ii  libuuid1             2.29.2-1
ii  libuutil1linux       0.6.5.9-5
ii  libzfs2linux         0.6.5.9-5
ii  libzpool2linux       0.6.5.9-5
ii  python3              3.5.3-1
ii  zlib1g               1:1.2.8.dfsg-5

Versions of packages zfsutils-linux recommends:
ii  lsb-base                9.20161125
ii  zfs-dkms [zfs-modules]  0.6.5.9-5
ii  zfs-zed                 0.6.5.9-5

Versions of packages zfsutils-linux suggests:
pn  nfs-kernel-server           <none>
pn  samba-common-bin            <none>
pn  zfs-initramfs | zfs-dracut  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#867034; Package zfsutils-linux. (Mon, 03 Jul 2017 17:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Mon, 03 Jul 2017 17:06:02 GMT) (full text, mbox, link).


Message #10 received at 867034@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: G <debian-bug@toidi.eu>, 867034@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#867034: zfsutils-linux: ls -l gives an input/output error
Date: Mon, 03 Jul 2017 19:02:59 +0200
[G]
> ls -l gives an input/output error when running on a directory containing
> an .zfs directory (all run as root):

Are you sure you do not have corrupted disks?  'zpool status' should get
you going if that is the case.

-- 
Happy hacking
Petter Reinholdtsen



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#867034; Package zfsutils-linux. (Mon, 03 Jul 2017 19:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to debian-bug@toidi.eu:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Mon, 03 Jul 2017 19:39:02 GMT) (full text, mbox, link).


Message #15 received at 867034@bugs.debian.org (full text, mbox, reply):

From: debian-bug@toidi.eu
To: Petter Reinholdtsen <pere@hungry.com>
Cc: 867034@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#867034: zfsutils-linux: ls -l gives an input/output error
Date: Mon, 3 Jul 2017 21:37:27 +0200 (CEST)
Hi,

Freshly made pool with noting in it:

# zpool scrub stor04
# zpool status stor04
  pool: stor04
 state: ONLINE
  scan: scrub repaired 0 in 0h0m with 0 errors on Mon Jul  3 23:32:30 2017
config:

        NAME                                                   STATE     READ WRITE CKSUM
        stor04                                                 ONLINE       0     0     0
          raidz1-0                                             ONLINE       0     0     0
            ata-SAMSUNG_MZ7KM960HMJP-00005_S3F3NY0J400802      ONLINE       0     0     0
            ata-SAMSUNG_MZ7KM960HMJP-00005_S3F3NY0J401053      ONLINE       0     0     0
            ata-SAMSUNG_MZ7KM960HMJP-00005_S3F3NY0J401191      ONLINE       0     0     0
            ata-SAMSUNG_MZ7KM960HMJP-00005_S3F3NY0J401196      ONLINE       0     0     0
        logs
          mirror-1                                             ONLINE       0     0     0
            nvme-INTEL_SSDPEDMD400G4_PHFT641000MY400BGN-part2  ONLINE       0     0     0
            nvme-INTEL_SSDPEDMD400G4_PHFT641000NL400BGN-part2  ONLINE       0     0     0
        cache
          nvme-INTEL_SSDPEDMD400G4_PHFT641000MY400BGN-part3    ONLINE       0     0     0

errors: No known data errors


On Mon, 3 Jul 2017, Petter Reinholdtsen wrote:

> [G]
>> ls -l gives an input/output error when running on a directory containing
>> an .zfs directory (all run as root):
>
> Are you sure you do not have corrupted disks?  'zpool status' should get
> you going if that is the case.
>
> -- 
> Happy hacking
> Petter Reinholdtsen
>



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#867034; Package zfsutils-linux. (Tue, 04 Jul 2017 15:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to Gaspard Lequeux <Gaspard.Lequeux@inbiose.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Tue, 04 Jul 2017 15:09:02 GMT) (full text, mbox, link).


Message #20 received at 867034@bugs.debian.org (full text, mbox, reply):

From: Gaspard Lequeux <Gaspard.Lequeux@inbiose.com>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: G <debian-bug@toidi.eu>, 867034@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#867034: zfsutils-linux: ls -l gives an input/output error
Date: Tue, 4 Jul 2017 17:06:42 +0200 (CEST)
Hi,

On Mon, 3 Jul 2017, Petter Reinholdtsen wrote:

>> ls -l gives an input/output error when running on a directory containing
>> an .zfs directory (all run as root):
>
> Are you sure you do not have corrupted disks?  'zpool status' should get
> you going if that is the case.

Dit some more testst today.

Seems that input/output error is always popping up when ls -l directories 
in the .zfs directory, which is read-only.

Built a new zfs array from  other disks in the system and the same error 
was consistently observed.

Accessing this directory with os.stats() from ipython, does not generate 
any (detected) error message:

In [6]: for filename in os.listdir('.'):
   ...:     print filename
   ...:     print os.stat(filename)
   ...:
snapshot
posix.stat_result(st_mode=16749, st_ino=281474976710653, st_dev=39, 
st_nlink=2, st_uid=0, st_gid=0, st_size=2, st_atime=1499183973, 
st_mtime=1499183941, st_ctime=1499183941)
shares
posix.stat_result(st_mode=16749, st_ino=281474976710654, st_dev=39, 
st_nlink=2, st_uid=0, st_gid=0, st_size=2, st_atime=1499183973, 
st_mtime=1499178260, st_ctime=1499178260)

Compared to the shell:

ls -l
ls: snapshot: Input/output error
ls: shares: Input/output error
total 0
dr-xr-xr-x 2 root root 2 Jul  4 16:24 shares
dr-xr-xr-x 2 root root 2 Jul  4 18:00 snapshot

And of course zpool status gives No known data errors as output.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#867034; Package zfsutils-linux. (Sat, 05 Aug 2017 17:06:03 GMT) (full text, mbox, link).


Acknowledgement sent to Tim Düsterhus <public+debian.org@bastelstu.be>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Sat, 05 Aug 2017 17:06:03 GMT) (full text, mbox, link).


Message #25 received at 867034@bugs.debian.org (full text, mbox, reply):

From: Tim Düsterhus <public+debian.org@bastelstu.be>
To: 867034@bugs.debian.org
Subject: Re: zfsutils-linux: ls -l gives an input/output error
Date: Sat, 5 Aug 2017 19:03:25 +0200
This is an issue with Linux 4.9 in combination with ZFS on Linux <
0.6.5.10. See this pull request in the official repository on GitHub
which I believe fixes the issue:

https://github.com/zfsonlinux/zfs/pull/6189

Tim



Reply sent to Aron Xu <aron@debian.org>:
You have taken responsibility. (Mon, 05 Mar 2018 08:51:06 GMT) (full text, mbox, link).


Notification sent to G <debian-bug@toidi.eu>:
Bug acknowledged by developer. (Mon, 05 Mar 2018 08:51:06 GMT) (full text, mbox, link).


Message #30 received at 867034-done@bugs.debian.org (full text, mbox, reply):

From: Aron Xu <aron@debian.org>
To: 867034-done@bugs.debian.org
Subject: Re: Bug #867034: zfsutils-linux: ls -l gives an input/output error
Date: Mon, 5 Mar 2018 16:48:31 +0800
Source-Version: 0.6.5.10-1

This has been addressed in upstream 0.6.5.10 release, closing for now.

Regards,
Aron



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 03 Apr 2018 07:28:23 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 20:45:31 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.