I am trying to set up environment where an USB flash drive plugged in one FreeBSD machine will be accessible in another machine. Low maintenance solution is better (not having to execute scripts on both).
My initial idea was to use istgt on the machine where the USB drives plug and the bundled iscsi initiator on the other. But I cannot figure out how to define on-demand device handling with istgt -- it will refuse to start if a device described in its configuration does not exist.
Is there a solution? Perhaps better documentation of what exactly istgt does?
Failing such dynamic support built in istgt I am considering running a script off devd notifications, when new device node is created on one of the machines, it would rewrite the istgt configuration file and restart the daemon, but it doesn't seem suited for that either. Might work in one daemon per device setup though.
What really would solve my problem is a "remote cam" implementation..
My initial idea was to use istgt on the machine where the USB drives plug and the bundled iscsi initiator on the other. But I cannot figure out how to define on-demand device handling with istgt -- it will refuse to start if a device described in its configuration does not exist.
Is there a solution? Perhaps better documentation of what exactly istgt does?
Failing such dynamic support built in istgt I am considering running a script off devd notifications, when new device node is created on one of the machines, it would rewrite the istgt configuration file and restart the daemon, but it doesn't seem suited for that either. Might work in one daemon per device setup though.
What really would solve my problem is a "remote cam" implementation..
