Closed WMP closed 10 years ago
Out of curiosity, are you using SSH ControlMaster
(or "multiplexed connections")? If so, you're getting bitten by what I believe is a bug in OpenSSH (the mux channel holds open stderr) but the OpenSSH authors disagree. I've hit this problem before, and I'll introduce changes to lvmsync to work around the problem.
I've just released 3.2.0, which contains some changes around the remote output reading code, and a workaround for OpenSSH's pathological behaviour. I'd appreciate it if you could try it out, and let me know if it fixes your problems. If it doesn't, it would help me understand what's happening if you could give me the lsof
output of the lvmsync process (lsof -n -p <PID>
).
Logical volume "test-snapshot" created
creating file normal_test.20141014-1201
creating file snapshot_test.20141014-1201
lvmsync...
Data source: /dev/mapper/virtual-test
Sending chunk 0..4095...
Seeking to 0 in /dev/mapper/virtual-test
Sending chunk 8679424..8683519...
Seeking to 8679424 in /dev/mapper/virtual-test
Sending chunk 92274688..92278783...
Seeking to 92274688 in /dev/mapper/virtual-test
Sending chunk 92278784..92282879...
Seeking to 92278784 in /dev/mapper/virtual-test
Sending chunk 92282880..92286975...
Seeking to 92282880 in /dev/mapper/virtual-test
Sending chunk 266240..270335...
Seeking to 266240 in /dev/mapper/virtual-test
Sending chunk 278528..282623...
Seeking to 278528 in /dev/mapper/virtual-test
Sending chunk 294912..299007...
Seeking to 294912 in /dev/mapper/virtual-test
Sending chunk 299008..303103...
Seeking to 299008 in /dev/mapper/virtual-test
remote:bash: /usr/local/bin/lvmsync: Permission denied
Sending chunk 4489216..4493311...
Seeking to 4489216 in /dev/mapper/virtual-test
Remote prematurely closed the connection
APPLY FAILED.
lvmsync done
cleanup
Logical volume "test-snapshot" successfully removed
Works good, thanks ;)
Lvmsync hangs over remote:bash: /usr/local/bin/lvmsync: Permission denied