On 1/9/17 6:52 PM, Bryant G. Ly wrote:
On 1/9/17 5:11 PM, Andy Grover wrote:
On 01/09/2017 12:55 PM, Bryant G. Ly wrote:
Scenario:
Use targetcli-fb to do mappings, using ibmvscsi target and client
driver.
Have both operational, then reboot the server, while leaving the
client on.
Problem: The client and server are both spamming ABORT messages, but it
will stop
immediately upon running "sudo targetcli". I know upon launching
targetcli, it reads
configfs, but does it do anything else that might fix the below ABORT
message spamming?
If anyone can help that would be great, thanks!
Hmm, this is a tricky one. I can't think of anything that running
targetcli should do that `targetctl restore` shouldn't have also done
on boot of the server (aka target).
Ohh, this is using TCMU? Is tcmu-runner running?
Yes, TCMU is running, its using TCMU with the file backed optical.
-Bryant
After further looking into this issue, it looks like TCMU is not up when
the target restarts...
sdn1@z2434ep2:~$ systemctl status tcmu-runner
● tcmu-runner.service - LIO Userspace-passthrough daemon
Loaded: loaded (/lib/systemd/system/tcmu-runner.service; static;
vendor preset: enab
Active: inactive (dead)
starting the tcmu-runner service does fix the issue.
I tried to add the below line in
/lib/systemd/system/tmcu-runner.service, to try to figure out
why its inactive (dead), but it didnt give me a log.
ExecStart=/usr/bin/tcmu-runner > /var/log/tcmu.log 2>&1
Anyway, I added two lines into /lib/systemd/system/lio-target.service
and it seems to fix it.
Requires=tcmu-runner.service
After=tcmu-runner.service
Now on startup of target:
sdn1@z2434ep2:~$ systemctl status lio-target.service
● lio-target.service - Start LIO targets
Loaded: loaded (/lib/systemd/system/lio-target.service; enabled;
vendor preset: enab
Active: active (exited) since Tue 2017-01-10 11:29:06 CST; 21s ago
Docs: man:targetctl(8)
Process: 1777 ExecStart=/usr/bin/targetctl restore (code=exited,
status=0/SUCCESS)
Process: 1756 ExecStartPre=/usr/sbin/pvm-mpio-unmap-children --mapped
(code=exited, s
Main PID: 1777 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/lio-target.service
Jan 10 11:29:06 z2434ep2 systemd[1]: Starting Start LIO targets...
Jan 10 11:29:06 z2434ep2 systemd[1]: Started Start LIO targets.
sdn1@z2434ep2:~$ systemctl status tcmu-runner
● tcmu-runner.service - LIO Userspace-passthrough daemon
Loaded: loaded (/lib/systemd/system/tcmu-runner.service; static;
vendor preset: enab
Active: active (running) since Tue 2017-01-10 11:29:06 CST; 25s ago
Main PID: 1399 (tcmu-runner)
CGroup: /system.slice/tcmu-runner.service
└─1399 /usr/bin/tcmu-runner > /var/log/tcmu.log 2>&1
Jan 10 11:29:05 z2434ep2 systemd[1]: Starting LIO Userspace-passthrough
daemon...
Jan 10 11:29:06 z2434ep2 systemd[1]: Started LIO Userspace-passthrough
daemon.
Jan 10 11:29:07 z2434ep2 tcmu-runner[1399]: unknown command 0x52
--
To unsubscribe from this list: send the line "unsubscribe
target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html