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

OOM error on zpool import -f despite successful import #60

Open
bermudalocket opened this issue May 17, 2021 · 1 comment
Open

OOM error on zpool import -f despite successful import #60

bermudalocket opened this issue May 17, 2021 · 1 comment

Comments

@bermudalocket
Copy link

System information

Type Version/Name
Distribution Name macOS
Distribution Version 11.4 beta (20F5065a)
Linux Kernel Darwin 20.5.0 (root:xnu-7195.121.3~4/RELEASE_X86_64)
Architecture x86
ZFS Version zfs-2.0.0-rc6 (zfs-kmod-zfs-2.0.0-rc1-452-g964b2a6de7)
SPL Version ?

Describe the problem you're observing

Importing a zpool created on Ubuntu (zfs-0.8.3-1ubuntu12.8) throws an out of memory error, but succeeds in importing.

Describe how to reproduce the problem

  1. Create a zpool on Ubuntu on a removable device
  2. Unmount the device
  3. Unplug the device and plug it into the macOS device
  4. sudo zpool import -d /dev to discover the pool
  5. sudo zpool import <poolname> -f to import

After step 5, an out of memory message will be displayed:

❯ sudo zpool import downloads -f
internal error: out of memory

... but the pool seems to import fine:

❯ sudo zpool list
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
downloads   464G   288G   176G        -         -    32%    62%  1.00x    ONLINE  -


❯ sudo zpool status downloads
pool: downloads
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
    The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(5) for details.
scan: scrub repaired 0B in 00:03:36 with 0 errors on Sun May  9 00:27:46 2021
config:

NAME                                          STATE     READ WRITE CKSUM
downloads                                     ONLINE       0     0     0
  media-CB39844A-1A02-DB44-B898-F37433593365  ONLINE       0     0     0

errors: No known data errors

I'm unsure if the features warning is related to the OOM error, but zpool upgrade also works fine:

❯ sudo zpool status downloads
pool: downloads
state: ONLINE
scan: scrub repaired 0B in 00:03:36 with 0 errors on Sun May  9 00:27:46 2021
config:

NAME                                          STATE     READ WRITE CKSUM
downloads                                     ONLINE       0     0     0
  media-CB39844A-1A02-DB44-B898-F37433593365  ONLINE       0     0     0

errors: No known data errors

Include any warning/errors/backtraces from the system logs

From org.openzfsonosx.zpool-import-all.log:

Mon May 17 16:03:24 EDT 2021
Running zpool import -a
Mon May 17 16:03:36 EDT 2021
Mon May 17 16:03:37 EDT 2021
Launched zpool import -a : 0
Touching the file /var/run/org.openzfsonosx.zpool-import-all.didRun
-zpool-import-all.sh
internal error: out of memory
@ilovezfs
Copy link
Contributor

please try rc7

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