Weblog entry #108 for Steve

sysadmin mistakes I make
Posted by Steve on Tue 20 Jun 2006 at 17:15
Tags: none.

There are some mistakes which I frequently make, despite knowing better. These are almost always the result of my fingers being faster than my brain; and that isn't agood trait.

The worst thing is the moment when you realise you've made the same mistake before...

With the intention of curing myself of these stupid lapses heres my list of mistakes I frequently make:

  • Typing "killall ..." on Solaris machines.
    • Rather than killing all processes with the name "..." this kills all processes. Reboot time.
  • Getting the arguments to nice / renice the wrong way round - e.g. "renice -19 -u skx"
    • I'd only use nice if the load was very high; so getting the argument the wrong way round and allowing the errant proceses to use more CPU time makes things worse, not better.

I'll update this entry with more as I remember them.

So what do you do wrong most often?

 

Comments on this Entry

Posted by niol (143.196.xx.xx) on Tue 20 Jun 2006 at 18:43
[ Send Message | View Weblogs ]

1) It was time to go to bed and I wanted to shut down my workstation. For me, the procedure to shutdown was :

$ su
Password:
# shutdown -h now

But I had forgoten that I was logged on the server. So those commands shut the server down.

So now I have two things for this :

  • I turn off the workstation using a point and click menu
  • I changed the root prompt of the server to include a big warning.

2) I tarred something (using tar cvzf dir/*) and I forget the archive name, which destroys the last file in the bash expansion.

[ Parent | Reply to this comment ]

Posted by philcore (216.54.xx.xx) on Tue 20 Jun 2006 at 19:22
[ Send Message | View Weblogs ]
Oh man. The solaris killall has got to be the worst. I'm in a mixed linux/solaris environment, and I quickly developed a pavlonian response to typing killall. The response goes something like..

# killall^W uname -a

[ Parent | Reply to this comment ]

Posted by philcore (216.54.xx.xx) on Tue 20 Jun 2006 at 19:25
[ Send Message | View Weblogs ]
..er, oops.

s/pavlonian/pavlovian/

[ Parent | Reply to this comment ]

Posted by Anonymous (62.254.xx.xx) on Wed 21 Jun 2006 at 12:18
my biggest boo boo has to be rm -rf /bin, i had only been using debian on the for a while, and can't even remember why i was fiddling with root + rf. Suffice to say the system was still rock solid, until i tried running any processes :D

Generally mistakes are deleting things by accident but hey thats what backups are for right

[ Parent | Reply to this comment ]

Posted by daemon (196.25.xx.xx) on Fri 23 Jun 2006 at 21:20
[ Send Message | View Weblogs ]
It's at times like that that it would be nice if Debian had something similar to FreeBSD's /stand or /rescue directories -- full of statically compiled base utils that you can use to save the day on such occasions...

Oh yeah, and `chattr +i` might be your friend too ;-)

Laters.

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Fri 23 Jun 2006 at 21:33
[ Send Message | View Steve's Scratchpad | View Weblogs ]

It would definitely be nice to have that kind of thing, although thankfully recovering /bin isn't so hard.

I managed to recover my system without too much panic!

Steve

[ Parent | Reply to this comment ]

Posted by daemon (196.25.xx.xx) on Fri 23 Jun 2006 at 21:38
[ Send Message | View Weblogs ]
Although I've been using Debian since before Woody was released, I've never really delved into the packaging/release mechanics of the project. How could we go about adding something like a package that provides a "/static" directory into the debian core?

Probably not the place to ask I guess, but I'm here already ;-)

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Fri 23 Jun 2006 at 21:44
[ Send Message | View Steve's Scratchpad | View Weblogs ]

I guess the really simple approach would be to get the source to the busybox-static package, and rebuild that to install into a custom directory.

That should give you plenty of tools - I've been working on something kinda similar to this for work, there I also build the mdadm tools, and the LVM tools - so we can boot RAID + LVM systems with completely static tools.

Although it has to be said that building the package would be the easy part. Getting the package added to the project should be easy enough if there was a good rationale for adding a new top-level directory. (Filesystem Hierarchy Standards people might have comments? But actually adding it as a base/required (compulsory) package would be controversal, especially when the busybox-static package is already available for people who want this kind of software available...

Steve

[ Parent | Reply to this comment ]

Posted by joostje (193.173.xx.xx) on Wed 21 Jun 2006 at 13:23
[ Send Message ]
A few days ago: aptitude update; aptitude dist-upgrade, typed from an anyterm terminal, and forgetting to start screen first.

That should be OK, except this time apache was upgraded (and thus stopped), causing anyterm (it's a terminal via the webserver, ssh is blocked here) to fail, and thus causing the whole upgrade to stop.

This left the system without running apache, so unfixable without ssh access:(.

(Still, anyterm is really useful for those behind firewalls that block ssh on port 22 and the https port)

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search