Basic server handling tips.
Hi,
I have recently joined as a linux system admin in a fairly decent company. I heard a lot of good stuff about this site and that the people can be really helpful. Can someone please guide me or give some tips/pointers in the right direction as to how to handle some basic server issues as a system admin. Like for example troubleshooting high system load be it cpu/memory/io - what approach is generally adopted ? what are the common or general filesystem housekeeping procedures, approaches or solutions etc. Im not asking to be spoonfed , but I would really appreaciate if someone helps me , since I am a fresher and this stuff is kind of new to me. I am ready to buy some good books if needed. Right now Im not working in a project, but I wish to be ready when Im tagged. Thanks in advance. |
Quote:
Which distro are you running? |
Thanks Turbocapitalist for the reply,
I am RHCE in rhel6 , so I am quite familiar with those commands. I will look them up. But what I meant is , If the application/database process consumes lots of memory, I can delegate to the team accordingly or work with them to resolve the issue, but what if a system process takes up a lot of memory , how do you approach the issue ? Say if you have a scheduled backup being executed, and the memory consumption is way above the set threshold , what do you do ? Are there some common general solutions in the sys admin realm about handling server resouces ? How do you resolve the issue or bring the memory consumption below the threshold ? Our servers are mostly CentOS 6. Also I hear troubleshooting I/O is very tricky , is this true? |
Quote:
Three more tools that will help in different situations are "tcpdump" (especially learning the filters and pcap), "netstat", and "vmstat" |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
THINK about I/O...one controller? Multiple? One disk? Many? Connected how? Doing what? A database may need to have individual TABLES spread out on multiple disk spindles over multiple controllers, whereas a mail server may be just fine with one disk/controller. Depends on the application... |
@Turbocapitalist :
Thanks for the info, I'll see what I can do. You are the new person on the team..you don't delegate to ANYONE...you need to do the job/tasks you were hired to do, and asked to do. And again, go back to basics...some programs take more memory than others, period. So what's normal for one may not be for another. Benchmark things, and do basic diagnostics. @TBONE: RHCE exams mostly consist of setting up servers (ftp,web,mail whatever), just a check of your basic knowledge. RHCE doesnt teach you how to troubleshoot problems of a production server in a real admin environment. RHCE doesnt teach you which columns on vmstat to watch out for , how to interpret it and tell you what kind of problems the server has. By saying RHCE I meant that I do have considerable technical know-how (not complete). You say there is no threshold ? From all my minimal experience (no matter how small it is) I can pretty much tell you have not worked as a admin. (Benchmark a live server ? seriously? ) AFAIK production servers always have a set threshold , any resource crossing that usage threshold , a alert is generated according to the severity, which informs the sys admin to take the necessay action. Sorry , I wouldnt go around with that Guru title if I were you. I wasnt asking something specific , just some general tips. Thanks for your time anyways. |
Quote:
This: Quote:
Best regards and good luck in your new position! HMW |
Yes I agree with you HMW , I maybe wrong.
We do have a monitoring mechanism in our projects and I am currently as a shadow resource. We usually pro-actively monitor the servers, the alerting mechanism is just in case of any unexpected event(s). But usually new learners are shown the path rather than shown faults in their statements and I was expecting help, advice ,tips. Like some basic tips for new people maybe - backup a file before modifying it, check space left on device before blindly adding it to a fs etc. I just wanted to know what other people might be doing in their environment. Handling the bottlenecks is all I wanted to see. I have no intention of offending. |
Quote:
Quote:
Do you think that medical books were written by guessing? A 'normal' blood pressure had to be established first, to then see what was high/low...this is the EXACT SAME THING. Looking at blood pressure in someone who is a child versus adult versus old person, it's all going to be different..and all NORMAL..FOR THEM. Applying the rules for one set against another is plain dumb. Quote:
Quote:
|
Quote:
Quote:
Quote:
I told you what is typically done in the real world...you then said you 'can tell I have not worked as an admin', and "I wouldnt go around with that Guru title if I were you." Good luck getting anyone senior to you, to try to show you anything with that attitude. |
i tend to agree with tbone, the original post already looked fishy to me.
tbone has a keen eye on people claiming to be admins. one could think: is tbone trolling? ...i don't know, i guess one could be nicer about it, but the defensive-to-the-point-of-abusive reactions of all those would-be admins kind of prove that they are --- erm, lying --- and i for one think it is important to get such basic things out of the way first. |
Quote:
People everywhere will always be as lazy as they can possibly be and get away with it. I see it all the time in my work...had to visit a client the other day, and actually am going to drop their company at the end of the month because of their behavior. They called and whined about one of my people being 'difficult', because they refused to do something for them. I was concerned, because I try to hire good folks. Come to find out they refused to load paper into a printer (that we don't maintain). This guy just didn't want to get up...he was too 'important' to do such menial work, and expected my folks to go and find paper and load it. Sorry...no. Quote:
This thread is a good example. The OP was asked questions (designed to get them THINKING about what they're asking), and was given advice on taking a baseline, and knowing the users/environment. My rewards for such things was to get told I didn't know what I was talking about. And please bear in mind that while the questions I asked *CAN* be read in an accusitory tone, they can (and should) be read as matter-of-fact...just as questions. |
Quote:
https://www.amazon.com/Essential-Sys...administration https://www.amazon.com/Linux-Pocket-...y+pocket+guide Learn How to Ask smart Questions. Bookmark everything you think will be useful. It can be vetted at another time. Start a personal wiki, or two and learn to document stuff. Get Organized. You are going to need it. Learn to love the terminal/console. You'll be living in it. See also http://www.linuxquestions.org/questi...8/#post5033506 |
Quote:
|
Quote:
While recent examples are fine. I prefer to believe they still teach principles and techniques the OP clearly does not possess. Quote:
But I read posts funny. I just look for the obvious and it is usually directly contrary to something a visitor has already "confessed" to. I look for contradictory statements (or mutually exclusive ones any way) to reveal what the poster "knows" or claims to know or reports to know. I ask myself "why did they say this, but not know that?" Or the unanswered, or selectively (I have to do this, I have ADD-[LMNOP] omitted replies? Bait? Naw. They out themselves. eg: Quote:
Get some! |
All times are GMT -5. The time now is 04:18 AM. |