Re: [Aoetools-discuss] ROM target type
So I've found a solution! Thanks to "cc_Smart" for pointing back to tgt iSCSI target. The closest I had come before this was using iSCSI with the pSCSI backend in the kernel, but that seems to produce a memory leak that consumes all RAM ... some sort of infinite loop on initiator login? Going back to userspace tools did the trick for me, but I had to dig to find the right flags to give it. 1. First, find what /dev/sg device maps to the DVD drive # for dev in /dev/sg*; do sdparm "$dev" | grep '\[cd/dvd\]$'; done In my case, /dev/sg0 is the generic device for /dev/sr0 2. Create the iSCSI target as normal (including ACL/whitelist) 3. Create the iSCSI logical unit # tgtadm --mode logicalunit --op new --tid 1 --lun 1 --backing-store /dev/sg0 --device-type pt --bstype sg # tgtadm --mode logicalunit --op update --tid 1 --lun 1 --params removable=1 4. Log in on the initiator as normal I thought at first I was hitting another bug in tgtd, but it's just that the BluRay disc I was testing with only works in one of my two drives (despite the drives being identical models). ¯\_(ツ)_/¯ My /etc/tgt/conf.d file for 5 DVD drives (I should probably write some udev rules for by-id symlinks to sg devices): default-driver iscsi bs-type sg device-type pt removable 1 readonly 1 initiator-address 192.168.9.9 block-size 512 backing-store /dev/sg0 backing-store /dev/sg1 backing-store /dev/sg2 backing-store /dev/sg4 backing-store /dev/sg5 Have fun with this info. Or not :) Thanks all, Ben Klein On Wed, 24 Oct 2018 at 10:03, Ed L. Cashin wrote: > > I would also assume that remotely ejecting would not work. > > Sorry to be of little help. > > On Tue, Oct 23, 2018 at 6:29 AM Ben Klein wrote: > > > > I tried that. It still treats the device as a file. So first, the disc > > needs to be loaded before starting vblade, and libdvdcss/libaacs can't > > decode encrypted discs. I would assume that remotely ejecting would > > also not work with vblade as the target. > > > > -- > Ed Cashin > http://noserose.net/e/ > http://www.coraid.com/ ___ Aoetools-discuss mailing list Aoetools-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aoetools-discuss
Re: [Aoetools-discuss] ROM target type
I would also assume that remotely ejecting would not work. Sorry to be of little help. On Tue, Oct 23, 2018 at 6:29 AM Ben Klein wrote: > > I tried that. It still treats the device as a file. So first, the disc > needs to be loaded before starting vblade, and libdvdcss/libaacs can't > decode encrypted discs. I would assume that remotely ejecting would > also not work with vblade as the target. -- Ed Cashin http://noserose.net/e/ http://www.coraid.com/ ___ Aoetools-discuss mailing list Aoetools-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aoetools-discuss
Re: [Aoetools-discuss] ROM target type
I tried that. It still treats the device as a file. So first, the disc needs to be loaded before starting vblade, and libdvdcss/libaacs can't decode encrypted discs. I would assume that remotely ejecting would also not work with vblade as the target. ___ Aoetools-discuss mailing list Aoetools-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aoetools-discuss
Re: [Aoetools-discuss] ROM target type
There's the "-r" option for vblade. https://github.com/OpenAoE/vblade/blob/master/aoe.c#L483 I think we put that in for someone doing this. On Mon, Oct 22, 2018 at 5:56 AM Ben Klein wrote: > > Hi all, > > I've been looking for a way to run a bunch of DVD-ROM drives over a > network/ethernet-connected system. The goal is to have the optical drives > "off-board" of my main desktop running in a headless system, and be able to > play and archive DVDs and BluRays remotely. > > I've looked into AoE, iSCSI, and NBD, and found they are (at least in the > opensource world) all designed only for disk-type targets, not for ROM-types. > > Is it feasible to implement an AoE target module that would allow exporting > CD/DVD/BluRay ROM drives to initiators? I'm not a kernel hacker by any > stretch of the imagination. > > Thanks, > Ben Klein > ___ > Aoetools-discuss mailing list > Aoetools-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/aoetools-discuss -- Ed Cashin http://noserose.net/e/ http://www.coraid.com/ ___ Aoetools-discuss mailing list Aoetools-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aoetools-discuss