tags 619065 + moreinfo thanks Hi Hilko--
On 03/20/2011 06:03 PM, Hilko Bengen wrote: > a symlink (/dev/etherd/e1.1 -> /path/to/file) is created from the script > /usr/share/vblade-persist/vblade-run. This is problematic: /dev/etherd > is the directory in which the Linux kernel-based AoE initiator keeps its > device nodes. > > If a machine acts both as AoE initiator and target, the device node > created by a kernel driver may be clobbered by vblade-persist starting > or stopping a target. Thanks for the report! I don't think this is a problem, because aoetools doesn't seem to trigger for aoe devices on the local machine's network interface. If you know otherwise, i'd be happy to hear of a specific configuration where this is the case. I currently have aoetools and vblade installed on a machine *without* vblade-persist, and i'm trying to replicate the situation you describe. The device node does not show up: 0 pip:~# grep INTERFACES /etc/default/aoetools INTERFACES="eth0" 0 pip:~# ls -la /dev/etherd/ total 0 drwxr-xr-x 2 root root 140 Mar 20 21:01 . drwxr-xr-x 22 root root 3480 Mar 20 21:01 .. c-w--w---- 1 root disk 152, 3 Mar 20 21:01 discover cr--r----- 1 root disk 152, 2 Mar 20 21:01 err c-w--w---- 1 root disk 152, 6 Mar 20 21:01 flush c-w--w---- 1 root disk 152, 4 Mar 20 21:01 interfaces c-w--w---- 1 root disk 152, 5 Mar 20 21:01 revalidate 0 pip:~# vblade 1 1 eth0 /tmp/test & [1] 28558 0 pip:~# pid 28558: e1.1, 2048 sectors O_RDWR vblade 1 ls -la /dev/etherd/ total 0 drwxr-xr-x 2 root root 140 Mar 20 21:01 . drwxr-xr-x 22 root root 3480 Mar 20 21:01 .. c-w--w---- 1 root disk 152, 3 Mar 20 21:01 discover cr--r----- 1 root disk 152, 2 Mar 20 21:01 err c-w--w---- 1 root disk 152, 6 Mar 20 21:01 flush c-w--w---- 1 root disk 152, 4 Mar 20 21:01 interfaces c-w--w---- 1 root disk 152, 5 Mar 20 21:01 revalidate 127 pip:~# /etc/init.d/aoetools restart Starting AoE devices discovery and mounting AoE filesystems: Nothing to mount. 0 pip:~# ls -la /dev/etherd/ total 0 drwxr-xr-x 2 root root 140 Mar 20 21:01 . drwxr-xr-x 22 root root 3480 Mar 20 21:01 .. c-w--w---- 1 root disk 152, 3 Mar 20 21:01 discover cr--r----- 1 root disk 152, 2 Mar 20 21:01 err c-w--w---- 1 root disk 152, 6 Mar 20 21:01 flush c-w--w---- 1 root disk 152, 4 Mar 20 21:01 interfaces c-w--w---- 1 root disk 152, 5 Mar 20 21:01 revalidate 0 pip:~# The links are created there by vblade-persist precisely so that a machine can both offer and consume AoE, while seeing what its other peers see. Can you show me the configuration you're using where this causes a conflict? Maybe i'm using a different set of AoE utilities than you are. I'll be happy to fix things if i can replicate the conflict, but i don't see one at the moment. Regards, --dkg
signature.asc
Description: OpenPGP digital signature