SCST-project / scst

SCST is a SCSI target software stack that allows to export any block device or file via iSCSI, FC or RDMA (SRP).
http://scst.sourceforge.net
93 stars 34 forks source link

releasing lun from open state in scst 3.8 #255

Closed MJAsadi72 closed 1 month ago

MJAsadi72 commented 1 month ago

Hi thanks for your work.

We have an odd problem with scst3.8. on SCST 3.7 if we inactive( set active to 0 in sysfs) a LUN (vdisk_blockio) LUN released. ( as an example if we inactive an LVM LUN, attribute 'open' disappears.) on the other hand on SCST 3.8 if we inactive a LUN it held open and unreleased. this change functionality breaks our DRBD config on failover and changes DRBD LUN to secondary or primary.

We tried even transitioning mode but had no luck with that.

do you guys have any suggestions about releasing LUN from 'open'?