illumos-joyent
illumos-joyent copied to clipboard
assertion failed on zpool import in SMF script on boot
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.
Is the offending command leaving a core file in /zones/global/cores
? Having access to that would be helpful for the investigation.