Scott Balneaves :

On Wed, May 17, 2006 at 10:52:04PM +0200, Lars Madsen wrote:

I already did in one of my ealier mails

I've looked through the emails for the last couple of weeks.  Could you
provide me the message id?


They are a mix of good and bad information.

Here are my findings this morning (rather long):
----------------------------------

This is a report straight after a terminal reboot.


part 2:

~> ps -ef | grep lbus
1009 root 1616 S /sbin/lbuscd
...

~> ls -l /tmp/drives

shows both readonly and readwrite

part 3:

~> hostname
orophin

part 4:

USB is detected, might take a few plugs to get it mounted, after which we have 
the following entry in /etc/fstab

/dev/scsi/host1/bus0/target0/lun0/part1 /tmp/drives/Removable_Device_244_Mb 
auto rw,noatime 0 0

part 6:

~> id
... groups= ..., Number (fuse)


part 7:

~> ps -ef | grep lbussd
testuser  16405 16380  0 10:59 ?        00:00:00 /usr/bin/perl -w 
/usr/sbin/lbussd
testuser  16626 16580  0 11:00 pts/5    00:00:00 grep lbussd

part 8:

~> /sbin/lsmod | grep fuse
fuse                   42008  6

~> ls -l /dev/fuse
crw-rw----  1 root fuse 10, 229 Apr 27 21:20 /dev/fuse

part 9:

~> echo $DISPLAY
orophin:0.0

part 10:

After running /usr/sbin/lbus_event_handler.sh add block /tmp 1024 Temp

~> cd Drives
~/Drives> ls -l
total 0
drwxr-xr-x  2 testuser stud 0 May 18  2006 readwrite
?---------  ?  ?        ?    ?            ? tmp

~> mount  | grep ltsp
ltspfs on /RAID_SERVER/testuser/Drives/readwrite type fuse 
(rw,nosuid,nodev,user=testuser)
ltspfs on /RAID_SERVER/testuser/Drives/tmp type fuse 
(rw,nosuid,nodev,user=testuser)

doing a 'remove' removes the 'tmp' again

---------------------

Just as a test I try to manually do what lbus_event_handler.sh does, by hand:

[EMAIL PROTECTED]:~> mkdir $HOME/Drives//tmp
[EMAIL PROTECTED]:~> ls -l Drives/
total 4
drwxr-xr-x  2 testuser stud    0 May 18  2006 readwrite
drwx------  2 testuser stud 4096 May 18 11:10 tmp
[EMAIL PROTECTED]:~> /usr/sbin/ltspfs orophin:/tmp/drives//tmp "$HOME/Drives//tmp" [EMAIL PROTECTED]:~> ls -l Drives/
total 0
drwxr-xr-x  2 testuser stud 0 May 18  2006 readwrite
?---------  ? ?       ?    ?            ? tmp
[EMAIL PROTECTED]:~> fusermount -u -z 
/a/brugere/gandalf.imf.au.dk/raid/gondor/testuser/Drives/tmp
[EMAIL PROTECTED]:~> ls -l Drives/
total 4
drwxr-xr-x  2 testuser stud    0 May 18  2006 readwrite
drwx------  2 testuser stud 4096 May 18 11:10 tmp


But I can get access to /tmp on orophin by using

[EMAIL PROTECTED]:~> ls -l Drives/
total 4
drwxr-xr-x  2 testuser stud    0 May 18  2006 readwrite
drwx------  2 testuser stud 4096 May 18 11:10 tmp
[EMAIL PROTECTED]:~> /usr/sbin/ltspfs orophin:/tmp "$HOME/Drives//tmp"
[EMAIL PROTECTED]:~> ls -l Drives/
total 0
drwxr-xr-x  2 testuser stud 0 May 18  2006 readwrite
drwxrwxrwx  8 testuser stud 0 May 18  2006 tmp
[EMAIL PROTECTED]:~> ls -l Drives/tmp/
total 28
drwxr-xr-x  4 testuser stud    0 May 18  2006 drives
-rw-r--r--  1 testuser stud  120 May 18  2006 fstab
drwxr-xr-x  2 testuser stud    0 May 18  2006 fstab.d
-rw-r--r--  1 testuser stud   68 May 18  2006 hosts
-rw-r--r--  1 testuser stud    0 May 18  2006 i810_loaded
drwxr-xr-x  2 testuser stud    0 May 18  2006 info
-rw-r--r--  1 testuser stud  411 May 18  2006 inittab
-rw-------  1 testuser stud   60 May 18  2006 ioctl.save
prw-r--r--  1 testuser stud    0 May 18  2006 lbus.fifo
drwxr-xr-x  2 testuser stud    0 May 18  2006 mnt
-rw-r--r--  1 testuser stud    0 May 18  2006 mtab
-rw-r--r--  1 testuser stud   42 May 18  2006 resolv.conf
-rw-r--r--  1 testuser stud   19 May 18  2006 syslog.conf
-rw-r--r--  1 testuser stud 2155 May 18  2006 XF86Config.1
[EMAIL PROTECTED]:~> fusermount -u -z /RAID_SERVER/testuser/Drives/tmp
[EMAIL PROTECTED]:~> ls -l Drives/
total 4
drwxr-xr-x  2 testuser stud    0 May 18  2006 readwrite
drwx------  2 testuser stud 4096 May 18 11:10 tmp


There are no error messages at all.



Second login
------------

Floppy is detected, cdrom does not spin up and does not get detected,
USB is detected by udev on the terminal (acording to /var/log/messages
on the server) is not mounted on the desktop.

The contents of ~/.lbussd.out states

fifo opened, fd: 4
 Sending:  Register
 Sending:  EnumerateDevices
 Starting the loop...
 listening on: 3
 event: [AddBlockDevice|2|1|readwrite|0|0|Floppy], messagetpe: [AddBlockDevice]
 Saved:
    device_id: 1
    sharename: readwrite
   removeable: 0
         size: 0
         desc: Floppy
         type: block
 About to run /usr/sbin/lbus_event_handler.sh

and nothing more, no events when plugging a USB.


As for part 6 through 10, the results are the same as above.


Third login
-----------

No floppy, no reaction to USB or CDROM

~/.lbussd.out says:

fifo opened, fd: 4
 Sending:  Register
 Sending:  EnumerateDevices
 Starting the loop...
 listening on: 3

step 6 through 10 as above


--------------

Dropping out of X and back to the shell on the terminal show that it finds and mounts the USB just fine.


--------------

More sys info:

Server: RedHat EL AS 4


custom kernel:

~> cat /proc/version
Linux version 2.6.16.9imf20060421 ([EMAIL PROTECTED]) (gcc version 3.4.5 
20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Apr 21 15:27:32 CEST 2006


fuse libs:

~> ls -l /usr/local/lib | grep fuse
-rw-r--r--  1 root root  249464 Apr 21 18:22 libfuse.a
-rwxr-xr-x  1 root root     792 Apr 21 18:22 libfuse.la
lrwxrwxrwx  1 root root      16 Apr 21 18:22 libfuse.so -> libfuse.so.2.5.3
lrwxrwxrwx  1 root root      16 Apr 21 18:22 libfuse.so.2 -> libfuse.so.2.5.3
-rwxr-xr-x  1 root root  188998 Apr 21 18:22 libfuse.so.2.5.3

and the ld configuration

~> cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/local/lib


--------------

Here is an interesting one for you:
(this is on the fourth login if it matters)

There are not floppy as mentioned above, but if I manually run

/usr/sbin/lbus_event_handler.sh add block readwrite 1024 Floppy

I do get access to the floppy on the terminal.

----------------

So now you know why I'm so confused. As mentioned, every thing works
just fine, for the first user after a reboot.

No I have not tried sshfs or the example fuse filesystem. I'll try the
last one after lunch.


Could it matter that I took the latest version of fuse from
sourceforge, and used that for installing the fuse libs, that might
not be the same version as is used in the kernel code (I do not know how to 
check this)



/daleif

``You cannot help men permanently by doing for them
what they could and should do for themselves. ''
 -- Abraham Lincoln


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
     https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to