Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

CLONE - iSCSI configuration error when trying to re-use existing configuration on new pool

Description

Occasionally, using an iSCSI configuration, I want to re-create a pool and zvols fresh, but do so in an identical configuration to what I had before. I start the process by deleting the pool, telling it to leave the sharing configuration, but delete the data. After this, I re-create the pool with the same name, and recreate the datasets and zvols exactly as before. Once this is done, I restart iSCSI so that ctld will accept the new configuration and the iSCSI LUNs will be usable.

This used to work in 11.2, but does not work on 11.3. The iSCSi service refuses to start with a configuration error. The following is the only information emitted when doing this by hand on the command line with the debug flag on:

root@tn24a[~]# ctld -d
ctld: obtaining previously configured CTL luns from the kernel
ctld: CTL port 0 "tpc" wasn't managed by ctld;
ctld: CTL port 1 "camsim" wasn't managed by ctld;
ctld: CTL port 2 "ioctl" wasn't managed by ctld;
ctld: obtaining configuration from /etc/ctl.conf
ctld: configuration error; exiting

Here's the basic workflow as an outline:

Have working iSCSI configuration
Delete pool, destroy data, but leave share config
Create new identical pool, re-create ZVOLs with same name/location as before
Try to re-start iSCSI to make it pick up on the new ZVOLs on the old extents
Get configuration error on re-starting iSCSI. service ctld onestart on command line fails with configuration error

This is still happening in spite of the fix for NAS-102918.

This is happening on TrueNAS-11.3-INTERNAL-16 (98853fd)

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk January 28, 2020 at 12:12 AM

Bug Clerk January 27, 2020 at 11:55 PM

Complete

Details

Assignee

Reporter

Components

Fix versions

Priority

More fields

Katalon Platform

Created January 22, 2020 at 10:05 PM
Updated July 1, 2022 at 4:46 PM
Resolved January 28, 2020 at 12:12 AM

Flag notifications