Don’t Panic Kernel!
- May
- 17
- Posted by TKH Specialist
- Posted in redhat, System Administration
You do your best to keep your systems running, but eventually something is going to happen (read you are going to do something) that leads to a Kernel Panic. Every System Administrator fears a Kernel Panic at some point in their career, but it is never a good idea to panic over one! Here are […]
read moresystemd commands, hints and cheatsheet
- Apr
- 15
- Posted by TKH Specialist
- Posted in Cheat Sheets, RedHat 7, System Administration
List all running services # systemctl Start/stop or enable/disable services Activates a service immediately: # systemctl start foo.service Deactivates a service immediately: # systemctl stop foo.service Restarts a service: # systemctl restart foo.service Shows status of a service including whether it is running or not: # systemctl status foo.service Enables a service to be started […]
read moreTimestamping your bash_history
- Apr
- 05
- Posted by TKH Specialist
- Posted in bash, System Administration
I use this all the time and occasionally find a server that isn’t configured to timestamp the bash_history. It seemed like something I should preserve here for future reference. Adding a timestamp is really simple, just execute the following: echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ >> ~/.bash_profile ; source ~/.bash_profile That’s it, now the history command […]
read morePassword Recovery in Redhat 7
- Feb
- 11
- Posted by TKH Specialist
- Posted in RedHat 7, rhel 7, System Administration
Forgot your password on your rhel7 server? Well there are some differences to process from rhel6. Here is how you do it. With SELinux and systemd in the mix we have to deal with that. Here is the procedure of what needs to be done in order to recover a forgotten root password on Redhat […]
read moreWhen did that change?
- Feb
- 09
- Posted by TKH Specialist
- Posted in linux, System Administration, Uncategorized
Trying to shutdown an old web server from the late 1990’s that had it’s guts transplanted onto a newer system around 2003 and again around 2009. As you can imagine there are accounts and files that are like those items in your junk drawer, they beg the question…why is this here?! In an attempt to […]
read moreSubnet Mask Cheat Sheet
- Nov
- 09
- Posted by TKH Specialist
- Posted in System Administration
Here is a “Subnet Mask Cheat Sheet” since I don’t have to remember this that often any more. Information found also via RFC 1878. Addresses Hosts Netmask Amount of a Class C /30 4 2 255.255.255.252 1/64 /29 8 6 255.255.255.248 1/32 /28 16 14 255.255.255.240 1/16 /27 32 30 255.255.255.224 1/8 /26 64 62 255.255.255.192 […]
read moreUnresponsive VMware Images
- Sep
- 10
- Posted by TKH Specialist
- Posted in System Administration
Over the past week I have had two vmware images become unresponsive. When trying to access the images via the vmware console any action reports: rejecting I/O to offline device A reboot fixes the problem, however for a Linux guy that isn’t exactly acceptable. Upon digging a little deeper it appears the problem is with […]
read moreTo reboot or not to reboot?
- Jun
- 10
- Posted by TKH Specialist
- Posted in redhat, System Administration
You have patches to apply, we all know that if there are kernel patches that you need to (or at least should) restart/reboot the server. But what about other packages? There are a few non-kernel patches which can cause havoc if you spply them and do not reboot the server. The biggest package that most […]
read morescreen your work…
- May
- 27
- Posted by TKH Specialist
- Posted in System Administration, Tools
The Linux screen command is a very useful tool for many reasons. For one you don’t need to worry about losing your session. Sometimes long running jobs with little or no output can lead to your remote session terminating, not usually a helpful thing. Other benefits of the screen command are session logging (thing documentation) […]
read more6GB free = 100% disk usage?!
- May
- 15
- Posted by TKH Specialist
- Posted in LVM, redhat, System Administration
What to do when you have plenty of available disk space but the system is telling you the disk is full?! I was working on a server migration, moving 94GB of user files from the old server to the new server. Since we aren’t planning on seeing a lot of growth on the new server, […]
read moreRecent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS