iscsiadm: no records found. What am I missing?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

naptastic

New Member
Jan 27, 2023
14
1
3
Greetings,

I tried to start using IPv6 for my storage subnets, but iscsiadm returns no records. Now even if I use IPv4 addresses, it still returns no records even though my procedure is the same. (I think it's the same anyway.) Both hosts can ping each other. Here's the iscsi part of my target configuration:

Code:
/iscsi> ls
o- iscsi .............................................................................................................. [Targets: 1]
  o- iqn.2014-08.rocks.narf.southpark:68 ................................................................................. [TPGs: 1]
    o- tpg1 ................................................................................................. [no-gen-acls, no-auth]
      o- acls ............................................................................................................ [ACLs: 1]
      | o- iqn.2004-12.com.naptastic.rocky:01 ..................................................................... [Mapped LUNs: 1]
      |   o- mapped_lun0 ................................................................................... [lun0 block/rocky (rw)]
      o- luns ............................................................................................................ [LUNs: 1]
      | o- lun0 ........................................................... [block/rocky (/dev/zvol/truck/rocky) (default_tg_pt_gp)]
      o- portals ...................................................................................................... [Portals: 1]
        o- [172.20.68.13]:3260 ................................................................................................ [OK]
Using virt-manage, on my hypervisor, I go to create a storage pool with settings copy/pasted out of targetcli:

Name: rocky
Type: iscsi
Target path: /dev/disk/by-path
Host name: 172.20.68.13
Source iqn: iqn.2014-08.rocks.narf.southpark:68
Initiator iqn (yes): iqn.2004-12.com.naptastic.rocky:01

When I click "Finish", it says "unexpected exit status 21: iscsiadm: No records found". What am I missing?