[opensuse] disconnecting USB drive freezes 11.1
Hi all, Anybody have any idea how to debug this: opensuse 11.1 as a server (no X), an external USB-disk is used as a backup with rsync. This is done with a script, disk is mounted and umounted by the script, and this runs ok. When the disk is disconnected, plug pulled (after umount), the machine freezes quite hard. Only thing working is the network card (can ping the IP), but no ssh, no samba, and nothing is written in any log. Where to start looking? ATM there is no keyboard and no monitor attached. Could do this for debugging, of course. TIA -- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 04:11:44 Leen de Braal wrote:
Anybody have any idea how to debug this:
I don't know if umount will wait in a queue until writing is complete. I think it might error out instead 'device busy'. Have you tried 'mount' before unplugging the device to check if it is still mounted? Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 04:11:44 Leen de Braal wrote:
Anybody have any idea how to debug this:
I don't know if umount will wait in a queue until writing is complete. I think it might error out instead 'device busy'.
Have you tried 'mount' before unplugging the device to check if it is still mounted?
Yes, it is no longer mounted, I checked that, because that was my first thought too. The script has a sleep-command to be sure about this. After that it sends email to report it has done it's job. Users can unplug the device after they got the mail. It is a 32-bit system, by the way, and with 10.0 version that was installed before this, there never was a problem.
Carl
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 05:40:20 Leen de Braal wrote:
Yes, it is no longer mounted, I checked that, because that was my first thought too. <snipped>
Then I'd start with the basics... identifying 'who' and 'where' :-) With the device attached, of course: lsmod | grep usb and lsusb regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 05:40:20 Leen de Braal wrote:
Yes, it is no longer mounted, I checked that, because that was my first thought too. <snipped>
Then I'd start with the basics... identifying 'who' and 'where' :-)
With the device attached, of course:
If I unplug it I have to cold-boot the server. It is plugged in atm.
lsmod | grep usb
linux:/home/ldb # lsmod|grep usb usb_storage 86716 0 usbhid 45908 1 hid 35784 1 usbhid ff_memless 7244 1 usbhid usbcore 167604 6 usb_storage,usbhid,ehci_hcd,uhci_hcd scsi_mod 149804 5 sr_mod,usb_storage,sg,sd_mod,libata
and
lsusb
linux:/home/ldb # lsusb Bus 004 Device 002: ID 0402:5621 ALi Corp. USB 2.0 Storage Device Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
regards,
Carl
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 06:43:22 Leen de Braal wrote:
ALi Corp. USB 2.0 Storage Device
Most Google 'hits' for this device appear to be from mid 2004 to early 2005. "ALi Corporation USB 2.0 Storage Device Status fully supported ( Product uses ali M5621 chipset.)" I agree with Carlos... more clues please :-) Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Leen de Braal pecked at the keyboard and wrote:
Anybody have any idea how to debug this: I don't know if umount will wait in a queue until writing is complete. I
On Wednesday 04 March 2009 04:11:44 Leen de Braal wrote: think it might error out instead 'device busy'.
Have you tried 'mount' before unplugging the device to check if it is still mounted?
Yes, it is no longer mounted, I checked that, because that was my first thought too. The script has a sleep-command to be sure about this. After that it sends email to report it has done it's job. Users can unplug the device after they got the mail.
It is a 32-bit system, by the way, and with 10.0 version that was installed before this, there never was a problem.
Try issuing a sync command before umount. that will make sure all data has been written and make it safer to disconnect the device. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-03-04 at 09:53 -0500, Ken Schneider - openSUSE wrote:
Try issuing a sync command before umount. that will make sure all data has been written and make it safer to disconnect the device.
An umount does a sync as part of the procedure. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmumosACgkQtTMYHG2NR9WtUQCgkTGGMYyk+UrTzifCZ9hJS+la 3DYAn056+dzmQOkCdbqJditQk95TFs0x =n8of -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Wednesday, 2009-03-04 at 09:53 -0500, Ken Schneider - openSUSE wrote:
Try issuing a sync command before umount. that will make sure all data has been written and make it safer to disconnect the device.
An umount does a sync as part of the procedure.
-- Cheers, Carlos E. R.
Actually the cd eject /dev/usbdevicename works. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 04 March 2009 11:59:20 Dave Plater wrote:
Actually the cd eject /dev/usbdevicename works. Regards Dave P
Is that it? I mean... it's resolved?
That was not my message (me being the one, who had this problem). But atm I think updating to the latest kernel did solve it.
Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Leen de Braal pecked at the keyboard and wrote:
Anybody have any idea how to debug this: I don't know if umount will wait in a queue until writing is complete. I
On Wednesday 04 March 2009 04:11:44 Leen de Braal wrote: think it might error out instead 'device busy'.
Have you tried 'mount' before unplugging the device to check if it is still mounted?
Yes, it is no longer mounted, I checked that, because that was my first thought too. The script has a sleep-command to be sure about this. After that it sends email to report it has done it's job. Users can unplug the device after they got the mail.
It is a 32-bit system, by the way, and with 10.0 version that was installed before this, there never was a problem.
Try issuing a sync command before umount. that will make sure all data has been written and make it safer to disconnect the device.
The sleep is before umounting and mailing. I just updated the machine with you to latest kernel. So far I have been testing a few times to disconnect, no problem yet. Also ran the script, still working :-) For this moment I draw the conclusion, that the updated kernel solved it. Thanks all.
-- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-03-04 at 19:49 +0100, Leen de Braal wrote:
The sleep is before umounting and mailing. I just updated the machine with you to latest kernel. So far I have been testing a few times to disconnect, no problem yet. Also ran the script, still working :-)
For this moment I draw the conclusion, that the updated kernel solved it.
I'm having problems with my backups to external media, reiserfs via usb, I get very bad corruption, in 11.0 (several hours to fsck). I have the idea that the last kernel update on 11.1 could solve that, and it might be related to your problem, too. Unfortunately, we can't know what error message, if any, you were having. You know that you can make the kernel dump messages via serial port to another computer? This could be used on headless servers, but unfortunately, the serial port is seldom included on boards. It could be handy on these situations. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmu7ikACgkQtTMYHG2NR9VIogCgjhwK88SEsGdBmcjdl7w4CF+4 bsMAnAk85SJBZURYleKnLa7WX7cmy8CN =46ly -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wednesday, 2009-03-04 at 19:49 +0100, Leen de Braal wrote:
The sleep is before umounting and mailing. I just updated the machine with you to latest kernel. So far I have been testing a few times to disconnect, no problem yet. Also ran the script, still working :-)
For this moment I draw the conclusion, that the updated kernel solved it.
I'm having problems with my backups to external media, reiserfs via usb, I get very bad corruption, in 11.0 (several hours to fsck). I have the idea that the last kernel update on 11.1 could solve that, and it might be related to your problem, too. Unfortunately, we can't know what error message, if any, you were having.
I did look what happened on tty10. On tty1, where i was logged in, I let a tail -f run on /var/log/messages. On tty10 there was no message of USB disconnect or anything at that time at all, while in /var/log/messages there was. This I have also seen when it froze before the update of the kernel, and it was the last logged message in the logfile. I still doubt if tty10 would have given me more info.
You know that you can make the kernel dump messages via serial port to another computer? This could be used on headless servers, but unfortunately, the serial port is seldom included on boards. It could be handy on these situations.
- -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkmu7ikACgkQtTMYHG2NR9VIogCgjhwK88SEsGdBmcjdl7w4CF+4 bsMAnAk85SJBZURYleKnLa7WX7cmy8CN =46ly -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-03-04 at 10:11 +0100, Leen de Braal wrote:
ATM there is no keyboard and no monitor attached. Could do this for debugging, of course.
I think you should, leaving the error console on (terminal # 10). If there is some error message, it should go there. I assume your system is fully updated? There has been a kernel update recently. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmubJYACgkQtTMYHG2NR9UfNQCeM1cSnKUIMByvPirsk9y4mqso CjoAoIb+/rdww4jlBTEzIbE4Ke3weWSv =m2xh -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wednesday, 2009-03-04 at 10:11 +0100, Leen de Braal wrote:
ATM there is no keyboard and no monitor attached. Could do this for debugging, of course.
I think you should, leaving the error console on (terminal # 10). If there is some error message, it should go there.
I will go there this afternoon and do that, yes. Good idea.
I assume your system is fully updated? There has been a kernel update recently.
It's been a few weeks, I will check that too.
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkmubJYACgkQtTMYHG2NR9UfNQCeM1cSnKUIMByvPirsk9y4mqso CjoAoIb+/rdww4jlBTEzIbE4Ke3weWSv =m2xh -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carl Hartung
-
Carlos E. R.
-
Dave Plater
-
Ken Schneider - openSUSE
-
Leen de Braal