Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
ik ben geen linux held natuurlijk/sbin/reboot [-n] [-w] [-d] [-f] [-i]
-n
Don't sync before reboot or halt.
-w
Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
-d
Don't write the wtmp record. The -n flag implies -d.
-f
Force halt or reboot, don't call shutdown( 8 ).
-i
Shut down all network interfaces just before halt or reboot.
-h
Put all harddrives on the system in standby mode just before halt or poweroff.
-p
When halting the system, do a poweroff. This is the default when halt is called as poweroff.
[ Voor 91% gewijzigd door sjongenelen op 17-02-2008 23:14 ]
you had me at EHLO
halt en reboot invoken als het goed is beide shutdown.TheNymf schreef op zondag 17 februari 2008 @ 23:12:
weet je zeker dat reboot het enige goede commando is
[...]
ik ben geen linux held natuurlijkmaar halt heb je zeker niets aan
Maar ja:
1
2
| root@server01:/home# shutdown -r -bash: shutdown: command not found |
haalt ook niet veel uit zo
Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
doet, dus inclusief directory van het commando?/sbin/reboot
you had me at EHLO
Genoeg te vinden geloof ik
Btw, voer je het wel uit als root?
sudo /usr/bin/reboot
[ Voor 50% gewijzigd door Alex) op 17-02-2008 23:20 ]
We are shaping the future
Verwijderd
Geen garanties btwForcing reboot
Linux is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine. Hard reboot mean that shutdown scripts will not run and machine reboot immediately without syncing hard disk drives, shutdown applications etc.
echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger
This commands enable sysrq and after this call fast reboot. If you want to force shutdown machine try this.
google keywords: linux /proc reboot
[ Voor 88% gewijzigd door Verwijderd op 17-02-2008 23:22 ]
Specificiek de path er bij zetten helpt ook niet.
Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
Kijk, dit doet iets, even paar minuutjes wachten kijken of ie terug komtVerwijderd schreef op zondag 17 februari 2008 @ 23:20:
http://blog.air4web.com/linux-force-reboot.html
[...]
Geen garanties btw
google keywords: linux /proc reboot
Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
Wikipedia: Magic SysRq key
Edit: zie boven dus
[ Voor 4% gewijzigd door alson op 17-02-2008 23:27 ]
Morgenochtend kan ik er zelf weer bij. Server heeft een FS van 1.5TB, maar omdat journalling nu ook wat in de war gelopen is, ben ik bang dat ie heel het FS moet controleren nogalson schreef op zondag 17 februari 2008 @ 23:26:
Dit zou moeten werken, als dit niet werkt heb je echt een remote console, remote powerswitch of iemand die hem reset nodig.
Wikipedia: Magic SysRq key
Edit: zie boven dus
Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
Half zes m'n nest uit om als eerst op de zaak te zijn
Bij 3ware ging het altijd welKippenijzer schreef op maandag 18 februari 2008 @ 19:22:
Even om nog op de oorzaak terug te komen: Je hebt een hardware raid controller waarop je op de logische drive smart probeerde te activeren? Dat moet je dus nooit doen he, het gros van de raid controllers heeft hier geen zin in, en je moet dat ook de management tools van je controller gebruiken om de status van je logische disk en eventueel ook je fysieke schijven te controleren.
[ Voor 4% gewijzigd door Keiichi op 18-02-2008 20:00 ]
Solar @ Dongen: http://solar.searchy.net/ - Penpal International: http://ppi.searchy.net/
Verwijderd
Verwijderd
oh trouwens, ik was vergeten te zeggen echo is (iig in bash) een builtin dus je zou bijvoorbeeld het volgende kunnen doen./proc/sys/kernel/ctrl-alt-del
This file controls the handling of Ctrl-Alt-Del from the keyboard. When the value in this file is 0, Ctrl-Alt-Del is trapped and sent to
the init(1) program to handle a graceful restart. When the value is > 0, Linux’s reaction to a Vulcan Nerve Pinch (tm) will be an immedi‐
ate reboot, without even syncing its dirty buffers. Note: when a program (like dosemu) has the keyboard in ’raw’ mode, the ctrl-alt-del is
intercepted by the program before it ever reaches the kernel tty layer, and it’s up to the program to decide what to do with it.
1
| echo 1 > /proc/sys/kernel/ctrl-alt-del |
je zal waarschijnlijk geen nette reboot kunnen doen omdat init ook niet meer bereikbaar is.
[ Voor 15% gewijzigd door Verwijderd op 18-02-2008 20:44 ]
Keiichi schreef op zondag 17 februari 2008 @ 23:11:
Bestaat er nog een kans dat ik 'm kan rebooten?
1
2
3
4
| echo '1' > /proc/sys/kernel/sysrq echo 's' > /proc/sysrq-trigger echo 'u' > /proc/sysrq-trigger echo 'b' > /proc/sysrq-trigger |
Dit er vanuitgaand dat je sysrq in je kernel hebt zitten.