Showing posts with label United States. Show all posts
Showing posts with label United States. Show all posts

August 25, 2010

My Own Server Rack

IMG_2942Image by phossil via FlickrBy The Computer Doctor
Video By Jeremiah Duke

Ever since I started working in I.T. I've always longed to have my own cool server rack with lots of blinking lights and cables going everywhere. The only problem is that I never had a reason to have a server rack since I didn't have any hardware to put in one.

Well all that's changed now so bar the door and hide the women folk because I have just inherited five servers from a school that just closed. Now that good times are on the way I started shopping for 19 inch metal server racks. With the consumption of steel by China and the U.S. going through the roof, so has the cost of anything made of steel. I will not be dropping $700 - $2000 for a quality steel server rack so I started looking for alternatives. Since Steel doesn't grow on trees I am resorting to the one thing that does... wood.

My inspiration comes from Jeremiah Duke at the missionduke website. You can see his video below.



Now I'm not knocking his design by any means because it fits the bill for him. My design is different in that it's flush on the sides and incorporates plywood shelves for the bottom two levels which is due to the extremely heavy beasts that I'm housing there. The last thing I want to do is get a hernia because the edge of a server got caught on the lip of a 2x4. See my illustration below.



Hope to have pictures of the actual build and the final setup soon.

Enhanced by Zemanta

June 25, 2010

Magic System Request Keys For Ubuntu

By The Computer Doctor:

I spent a wonderful evening recently with some friends looking at old servers and fixing database reports. I know... I really need to get out more.

During the course of the evening Gene showed us how to force a reboot or shutdown by using the SysRq key and a combination of other keys which were as follows...

Hold down the "Alt" and "Print Screen - SysRq" key and type in the following letters R, E, I, S, U, B Which can easily be remembered with the mnemonic "Raising Elephants Is So Utterly Boring"

As intrigued as I was, I noticed that the screen went black like we were back in terminal mode and I saw a flood of information on the screen and I knew that each of these letters stood for something. After doing a little bit of research online I found the following chart that may help if you need to use the "Magic System Request" in Linux.

0 - 9 - sets the console log level, controlling which kernel messages will be printed to your console so that you don't get flooded.

B - restarts the system without making steps to ensure that the conditions are good for a safe reboot, using this key alone is like doing a cold reboot.

E - sends SIGTERM to all processes except init. This means that an attempt is done to end the current processes except init, safely, e.g. saving a document.

F - call oom_kill(Out Of Memory Killer), which will kill a process that is consuming all available memory.

H - displays help about the SysRq keys on a terminal though in actuality you can use any key except for the ones specified, to display help.

I - sends SIGKILL to all processes except init. This means that all the processes except for init are killed, any data in processes that are killed will be lost.

K - kills all processes on the current terminal. It is a bad idea to do this on a console where X is running as the GUI will stop and you can't see what you type, so you will need to switch to a tty after doing the magic SysRq.

L - sends SIGKILL to all processes, including init. This means that every process including init will be killed, using this key will render your system non-functional and no further magicSysRq keys can be used. So in this case you will have to cold reboot it.

M - dumps memory info to your console.

O - shuts down the system via ACPI or in older systems, APM. As in key "B", using this key alone is like a cold reboot(Or in this case, a cold shutdown).

P - dumps the current registers and flags to your console.

Q - dumps all timers info to your console.

R - takes keyboard and mouse control from the X server. This can be useful if the X-Server crashed, you can change to a console and kill the X-Server or check the error log.
NOTE:- The documentation refers to this key's task as "Turns off keyboard raw mode and sets it to XLATE", but I suppose it's safe enough to assume that it takes back control from X.

S - writes all data from the disc cache to the hard-discs, it is a sync and is necessary to reduce the chances of data corruption.

T - dumps a list of current tasks and info to your console.

U - remounts all mounted filesystems read-only. After using this key, you can reboot the system with Alt+SysRq+B without harming the system.

W - dumps uninterruptable (blocked) state tasks.

Remember that although you can use these letters in any sequence that you wish, there may be unforeseen consequences by skipping some of the letters in the REISU* sequence and skipping straight to the B or O so be careful when using these commands. Also remember that there is a build in reboot or shutdown procedure and it is better to use that then the forced commands with the magic system request keys.

Enhanced by Zemanta

Hex Converter

Hex To ASCII Converter

Hex:
Ascii:

 

Integer to Byte converter


This is a tool to practice converting between decimal and binary representations. After you have practiced for a while and feel that you know how to do the conversions, take the quiz.
Decimal number to convert:
Binary representation:


Binary number to convert:
Decimal representation: