illumos-joyent icon indicating copy to clipboard operation
illumos-joyent copied to clipboard

assertion failed on zpool import in SMF script on boot

Open blackwood821 opened this issue 6 years ago • 2 comments

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.

blackwood821 avatar Feb 01 '19 16:02 blackwood821

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

pfmooney avatar Feb 01 '19 16:02 pfmooney

@pfmooney yes it is and here it is.

core.zpool.6220.zip

blackwood821 avatar Feb 01 '19 21:02 blackwood821