Problems removing ramdisk backed luns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Folks,

The commit:
d72d827f2f26 ("scsi: target: Add iscsi/cpus_allowed_list in configfs")

Seems to be causing problems when I try to delete ramdisk backed LUNSs. I
bisected the failure to this commit. Reverting restores functionality to 5.17
levels.

The error that I get is:
# targetcli /backstores/ramdisk delete iscsi_ib0_0
[Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'

Looking through our automation looks like this is the gist of how things are setup:

targetcli /iscsi set global auto_add_default_portal=false
targetcli /iscsi create wwn=${wwn}
targetcli /iscsi/${wwn}/tpg1/portals create ${addr}

For each LUN:
targetcli /backstores/ramdisk create ${lun_prefix}_${x} ${lun_size}
targetcli /iscsi/${wwn}/tpg1/luns create /backstores/ramdisk/${lun_prefix}_${x}
targetcli /iscsi/${wwn}/tpg1 set attribute authentication=0 \
demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1

This all seems to work OK and it appears I can do I/O to the LUNs. Then when we
go to tear things down:

targetcli /iscsi delete ${wwn}
targetcli /backstores/ramdisk delete ${lun_prefix}_${lun} <-- ERROR

Any thoughts/ideas appreciated.

-Denny



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux