Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot mount encrypted FS: I/O error + invalid argument #7398

Closed
ThatDevopsGuy opened this issue Apr 6, 2018 · 2 comments
Closed

Cannot mount encrypted FS: I/O error + invalid argument #7398

ThatDevopsGuy opened this issue Apr 6, 2018 · 2 comments

Comments

@ThatDevopsGuy
Copy link

System information

Type Broken Version/Name
Distribution Name Arch Linux
Distribution Version Rolling release (current as of Apr-06-2018)
Linux Kernel 4.15.15-1-ARCH #1 SMP PREEMPT Sat Mar 31 23:59:25 UTC 2018
Architecture x86_64 on i7-4770K
ZFS Version 0.7.0-405_g533ea0415
SPL Version 0.7.0-32_g581bc01
ZFS Package Version 2018.04.04.r3402.533ea0415.4.15.15.1-1
SPL Package Version 2018.04.04.r1070.581bc01.4.15.15.1-1

Describe the problem you're observing

After the upstream encryption change (as experienced in #7175), I've since migrated to new pools, but a recent upgrade made the FS not mountable. I can import the pool fine, load the keys fine, but not mount the actual FS. I am also acutely aware of the silliness of running the development version of ZFS, on Linux, on Arch linux, but let's get past that, shall we?

[root@antares ~]# zpool import tank
[root@antares ~]# zfs load-key tank/multimedia 
Enter passphrase for 'tank/multimedia': 
[root@antares tank]# zfs mount tank/multimedia 
filesystem 'tank/multimedia' can not be mounted: Input/output error
cannot mount 'tank/multimedia': Invalid argument

Describe how to reproduce the problem

Use the above version of the kernel and ZFS, and run the commands above.

For reference, the following combination works fine with this file system (which was created after the encryption update):

Component Known Good Working Version
zfs 0.7.0-316_ge921f6508
spl 0.7.0-26_g48ef8ba
zfs package 2018.02.15.r3313.e921f6508.4.15.3.2-1
spl package 2018.02.07.r1064.48ef8ba.4.15.3.2-1
Linux kernel 4.15.3-2

So changes made after those versions will likely be the culprit, unless the package is built vastly differently.

Include any warning/errors/backtraces from the system logs

Output of /proc/spl/kstat/zfs/dbgmsg attached.

Pool information:

[root@antares ~]# zpool get all tank
NAME  PROPERTY                       VALUE                          SOURCE
tank  size                           21.8T                          -
tank  capacity                       77%                            -
tank  altroot                        -                              default
tank  health                         ONLINE                         -
tank  guid                           16084768762949500461           -
tank  version                        -                              default
tank  bootfs                         -                              default
tank  delegation                     on                             default
tank  autoreplace                    off                            default
tank  cachefile                      -                              default
tank  failmode                       wait                           default
tank  listsnapshots                  off                            default
tank  autoexpand                     off                            default
tank  dedupditto                     0                              default
tank  dedupratio                     1.00x                          -
tank  free                           4.87T                          -
tank  allocated                      16.9T                          -
tank  readonly                       off                            -
tank  ashift                         12                             local
tank  comment                        -                              default
tank  expandsize                     -                              -
tank  freeing                        0                              -
tank  fragmentation                  1%                             -
tank  leaked                         0                              -
tank  multihost                      off                            default
tank  feature@async_destroy          enabled                        local
tank  feature@empty_bpobj            active                         local
tank  feature@lz4_compress           active                         local
tank  feature@multi_vdev_crash_dump  enabled                        local
tank  feature@spacemap_histogram     active                         local
tank  feature@enabled_txg            active                         local
tank  feature@hole_birth             active                         local
tank  feature@extensible_dataset     active                         local
tank  feature@embedded_data          active                         local
tank  feature@bookmarks              enabled                        local
tank  feature@filesystem_limits      enabled                        local
tank  feature@large_blocks           enabled                        local
tank  feature@large_dnode            enabled                        local
tank  feature@sha512                 enabled                        local
tank  feature@skein                  enabled                        local
tank  feature@edonr                  enabled                        local
tank  feature@userobj_accounting     active                         local
tank  feature@encryption             active                         local
tank  feature@project_quota          active                         local
[root@antares ~]# zpool status
  pool: tank
 state: ONLINE
  scan: scrub repaired 0B in 2 days 11:41:57 with 0 errors on Wed Apr  4 11:42:00 2018
config:

	NAME        STATE     READ WRITE CKSUM
	tank        ONLINE       0     0     0
	  raidz2-0  ONLINE       0     0     0
	    sda     ONLINE       0     0     0
	    sdb     ONLINE       0     0     0
	    sdc     ONLINE       0     0     0
	    sdd     ONLINE       0     0     0
	    sde     ONLINE       0     0     0
	    sdf     ONLINE       0     0     0

errors: No known data errors

FS information:

[root@antares ~]# zfs get all tank/multimedia 
NAME             PROPERTY              VALUE                  SOURCE
tank/multimedia  type                  filesystem             -
tank/multimedia  creation              Sun Feb 18 14:52 2018  -
tank/multimedia  used                  7.76T                  -
tank/multimedia  available             2.79T                  -
tank/multimedia  referenced            7.76T                  -
tank/multimedia  compressratio         1.00x                  -
tank/multimedia  mounted               no                     -
tank/multimedia  quota                 none                   default
tank/multimedia  reservation           none                   default
tank/multimedia  recordsize            128K                   default
tank/multimedia  mountpoint            /multimedia            local
tank/multimedia  sharenfs              off                    default
tank/multimedia  checksum              on                     default
tank/multimedia  compression           off                    default
tank/multimedia  atime                 on                     default
tank/multimedia  devices               on                     default
tank/multimedia  exec                  on                     default
tank/multimedia  setuid                on                     default
tank/multimedia  readonly              off                    default
tank/multimedia  zoned                 off                    default
tank/multimedia  snapdir               hidden                 default
tank/multimedia  aclinherit            restricted             default
tank/multimedia  createtxg             16                     -
tank/multimedia  canmount              on                     default
tank/multimedia  xattr                 on                     default
tank/multimedia  copies                1                      default
tank/multimedia  version               5                      -
tank/multimedia  utf8only              off                    -
tank/multimedia  normalization         none                   -
tank/multimedia  casesensitivity       sensitive              -
tank/multimedia  vscan                 off                    default
tank/multimedia  nbmand                off                    default
tank/multimedia  sharesmb              off                    default
tank/multimedia  refquota              none                   default
tank/multimedia  refreservation        none                   default
tank/multimedia  guid                  12632049787937483601   -
tank/multimedia  primarycache          all                    default
tank/multimedia  secondarycache        all                    default
tank/multimedia  usedbysnapshots       0B                     -
tank/multimedia  usedbydataset         7.76T                  -
tank/multimedia  usedbychildren        0B                     -
tank/multimedia  usedbyrefreservation  0B                     -
tank/multimedia  logbias               latency                default
tank/multimedia  dedup                 off                    default
tank/multimedia  mlslabel              none                   default
tank/multimedia  sync                  standard               default
tank/multimedia  dnodesize             legacy                 default
tank/multimedia  refcompressratio      1.00x                  -
tank/multimedia  written               7.76T                  -
tank/multimedia  logicalused           7.77T                  -
tank/multimedia  logicalreferenced     7.77T                  -
tank/multimedia  volmode               default                default
tank/multimedia  filesystem_limit      none                   default
tank/multimedia  snapshot_limit        none                   default
tank/multimedia  filesystem_count      none                   default
tank/multimedia  snapshot_count        none                   default
tank/multimedia  snapdev               hidden                 default
tank/multimedia  acltype               off                    default
tank/multimedia  context               none                   default
tank/multimedia  fscontext             none                   default
tank/multimedia  defcontext            none                   default
tank/multimedia  rootcontext           none                   default
tank/multimedia  relatime              off                    default
tank/multimedia  redundant_metadata    all                    default
tank/multimedia  overlay               off                    default
tank/multimedia  encryption            aes-256-gcm            -
tank/multimedia  keylocation           prompt                 local
tank/multimedia  keyformat             passphrase             -
tank/multimedia  pbkdf2iters           342K                   -
tank/multimedia  encryptionroot        tank/multimedia        -
tank/multimedia  keystatus             available              -

Happy computing! Let me know if you need anything else. 😄

@ThatDevopsGuy ThatDevopsGuy changed the title Cannot mount encrypted FS: I/O error + invalid command Cannot mount encrypted FS: I/O error + invalid argument Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ThatDevopsGuy and others