SD Driver incrementing on every snapshot.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
I wonder:
a SCSI host is allocated when a device connects, and it's deallocated if a device disconnects. While (IMHO) the first step is necessary, the second isn't (the device may be there, but any attempt to use it could return "no such device" or EIO). If device deallocation were delayed and some information about the device remembered, it would be possible to assign the same scsi host if the same device re-connects (my theory). So when repeatedly connecting and disconecting a specific USB stick, one could use the same SCSI device. That would sound kind of nice. To get rid of garbage, on could recycle "old unused SCSI hosts" after a specific number of new connects.
Regards,
Ulrich
Quoted 38 lines · Mike Christie
Quoted 7 lines · Matthew Schumacher
Group,
I'm using linux to backup an ISCSI target. My backup script calls the snapshot function on my iscsi server, then uses open-iscsi to connect to a snapshot target on that server. The target is backed up, then I logoff the target until the next backup.
Quoted 7 lines
The problem is that the scsi device number in linux keeps incrementing:
scsi13 : iSCSI Initiator over TCP/IP
scsi14 : iSCSI Initiator over TCP/IP
scsi15 : iSCSI Initiator over TCP/IPIs this cause for concern? Will it quit on me at some point? Is there
It is expected behavior. The X in scsiX is a host number. The linux scsi layer will increment it every time we create a new host. We end up doing a host per session and in your case it looks like your target is doing a session device.
It will quit at some point. The host number is a unsigned 32 bit int, so once you go through 2^32, the scsi layer will roll over. When that happens the scsi layer's host number allocation algorithm is not very smart and could fail.
So in practice you probably would not login/logout a of a target 2^32 times. But it is possible if you just did loop test and let it run over night.
Quoted 2 lines
a way to make open-iscsi reuse an old scsi device number?
No.
Quoted 1 line