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

assertion failed on zpool import in SMF script on boot #188

Open
blackwood821 opened this issue Feb 1, 2019 · 2 comments
Open

assertion failed on zpool import in SMF script on boot #188

blackwood821 opened this issue Feb 1, 2019 · 2 comments

Comments

@blackwood821
Copy link

blackwood821 commented Feb 1, 2019

I have a transient SMF service that mounts an external filesystem via iSCSI on boot. The service script start method runs zpool import <pool_name>. Sometimes when the system boots the import command succeeds with no issues but sometimes it throws this error:

assertion failed for thread 0xfed72a40, thread-id 1: avl_find() succeeded inside avl_add(), file /home/admin/smartos-live/projects/illumos/usr/src/common/avl/avl.c, line 649

@bahamat said he thinks this looks like a bug.

For now I have worked around it by looping and attempting the zpool import command X times and any time it fails on the first attempt it always succeeds on the second attempt.

Prior to the import failing I run the necessary iscsiadm commands to make sure everything is configured properly and the device is discoverable before the import.

@pfmooney
Copy link

pfmooney commented Feb 1, 2019

Is the offending command leaving a core file in /zones/global/cores? Having access to that would be helpful for the investigation.

@blackwood821
Copy link
Author

@pfmooney yes it is and here it is.

core.zpool.6220.zip

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