Re: shutdown and reboot sometimes ignored?
On Sun, Nov 22, 2009 at 10:00:05PM +0100, Peter J. Philipp wrote: On Sun, Nov 22, 2009 at 09:20:46PM +0100, Toni Mueller wrote: Hi, for several releases of OpenBSD, I now have encountered the problem that I can say shutdown -r now, or halt, or reboot, and nothing appears to happen, except for some messages on the associated terminals. Sometimes, it works after saying it multiple times, and literally after minutes, and on otherwise idle boxen. Ideas about what I can do to pinpoint the problem, are most welcome! I had something like this on vmware when switching from workstation 6 to workstation 7. Basically what happened was that vic1 (second ethernet) was left in no carrier state on a vmnet that didn't exist. When I finally noticed it and made a proper vmnet for it, the reboot or halt problem went away. Perhaps you have an interface in no carrier state? That alone isn't enough - I frequently halt my laptop with no network cable attached (to re0), and never noticed any particularly long waits. I had exactly the same issue - neither reboot nor shutdown worked (as in shutdowning or rebooting the computer). Then I found this thread and started to look at network interfaces. I had lost carrier to mos0. So I tried to lookup or bring down the interface. ifconfig just hang at mos0 and didn't respond to ^C. And ^T said that it was usbsync state. Then I just plugged mos0 out (as it is an usb network card) and reboot immediately worked. P.S. That's on 4.6, haven't tried -current.
Re: shutdown and reboot sometimes ignored?
Hi, On Sun, 22.11.2009 at 23:03:10 +0100, Joachim Schipper joac...@joachimschipper.nl wrote: On Sun, Nov 22, 2009 at 10:00:05PM +0100, Peter J. Philipp wrote: On Sun, Nov 22, 2009 at 09:20:46PM +0100, Toni Mueller wrote: for several releases of OpenBSD, I now have encountered the problem that I can say shutdown -r now, or halt, or reboot, and nothing appears to happen, except for some messages on the associated terminals. Sometimes, it works after saying it multiple times, and literally after minutes, and on otherwise idle boxen. I had something like this on vmware when switching from workstation 6 to workstation 7. Basically what happened was that vic1 (second ethernet) was left in no carrier state on a vmnet that didn't exist. When I finally noticed it and made a proper vmnet for it, the reboot or halt problem went away. Perhaps you have an interface in no carrier state? That alone isn't enough - I frequently halt my laptop with no network cable attached (to re0), and never noticed any particularly long waits. I forgot to say that I was only talking about real hardware machines, not virtual machines. On the machine I saw it last, there are two bge(4) and two em(4) interfaces, and they are all active (HP G380 or so). I also forgot to specify what long means. It means that there can easily be 5-15 minutes before the actual shutdown appears to finally trigger, but since I have my shell back in the meantime, and thus tried to issue the command several times in a row (usually, issuing the shutdown command immediately renders the shell unresponsive), I can't say which invocation actually did the trick. This is especially discomforting when already running on UPS battery and/or working with remote systems... TIA! -- Kind regards, --Toni++
Re: shutdown and reboot sometimes ignored?
Toni Mueller wrote: Hi, for several releases of OpenBSD, I now have encountered the problem that I can say shutdown -r now, or halt, or reboot, and nothing appears to happen, except for some messages on the associated terminals. Sometimes, it works after saying it multiple times, and literally after minutes, and on otherwise idle boxen. Ideas about what I can do to pinpoint the problem, are most welcome! If you are running PostgreSQL, and aren't running as root, you will need to use sudo shutdown -r now or /etc/rc.shutdown will hang Chris Bennett -- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. -- Robert Heinlein
Re: shutdown and reboot sometimes ignored?
Hi, On Mon, 23.11.2009 at 10:04:20 -0600, Chris Bennett ch...@bennettconstruction.biz wrote: If you are running PostgreSQL, and aren't running as root, you will need to use sudo shutdown -r now or /etc/rc.shutdown will hang ?? you mean, if I am not running PostgreSQL as root? I usually log in as a regular user, then su to root, then do stuff (really old-fashioned). In the most recent example, PostgreSQL was not involved. I even turned off several things, so the only big service running should have been squid. Anyway, squid is configured to shut down after 30 seconds, so there's still a gap of several minutes between first issuing the command and actually shutting down. As I said, this happens irregularly, or at least, I didn't detect a pattern yet. Most of the time, I can shutdown or reboot the affected machines without any problems, but sometimes, they just hang. Kind regards, --Toni++
Re: shutdown and reboot sometimes ignored?
On Sun, Nov 22, 2009 at 09:20:46PM +0100, Toni Mueller wrote: Hi, for several releases of OpenBSD, I now have encountered the problem that I can say shutdown -r now, or halt, or reboot, and nothing appears to happen, except for some messages on the associated terminals. Sometimes, it works after saying it multiple times, and literally after minutes, and on otherwise idle boxen. Ideas about what I can do to pinpoint the problem, are most welcome! I had something like this on vmware when switching from workstation 6 to workstation 7. Basically what happened was that vic1 (second ethernet) was left in no carrier state on a vmnet that didn't exist. When I finally noticed it and made a proper vmnet for it, the reboot or halt problem went away. Perhaps you have an interface in no carrier state? Just an idea, Regards, -peter -- Kind regards, --Toni++
Re: shutdown and reboot sometimes ignored?
On Sun, Nov 22, 2009 at 10:00:05PM +0100, Peter J. Philipp wrote: On Sun, Nov 22, 2009 at 09:20:46PM +0100, Toni Mueller wrote: Hi, for several releases of OpenBSD, I now have encountered the problem that I can say shutdown -r now, or halt, or reboot, and nothing appears to happen, except for some messages on the associated terminals. Sometimes, it works after saying it multiple times, and literally after minutes, and on otherwise idle boxen. Ideas about what I can do to pinpoint the problem, are most welcome! I had something like this on vmware when switching from workstation 6 to workstation 7. Basically what happened was that vic1 (second ethernet) was left in no carrier state on a vmnet that didn't exist. When I finally noticed it and made a proper vmnet for it, the reboot or halt problem went away. Perhaps you have an interface in no carrier state? That alone isn't enough - I frequently halt my laptop with no network cable attached (to re0), and never noticed any particularly long waits. Joachim