November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Change the default MySQL data directory with SELinux enabled

This is a short article that explains how you change the default MySQL data directory and adjust SELinux to account for the changes. The article assumes that you’re running either RHEL, CentOS, Scientific Linux or Fedora with SELinux enabled. This works with the most recent EL (6.2) version.

We’ll be doing this in the following […]

Change the default SSH port and alter SELinux

Security through obscurity is not something one would generally recommend. But to thwart the effort of automated scanners changing the default OpenSSH port will yield you less pain in every day life. This will not fend off directed attacks or nullify vulnerabilities or bad security design.

Should you see an error message such as

shd[14221]: […]

Linux ACL

An access control list (ACL), with respect to a computer file system, is a list of permissions attached to an object. ACL allows you to grant or deny permissions for any user or group on a filesystem resource.

Enabling ACL

To enable ACL, edit your /etc/fstab file as such:

/dev/VolGroup00/LogVol00 / ext3 defaults,acl 1 1 […]

Disable the filesystem check (fsck) at boot time

There’s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation/you.

Filesystem tunable Grub boot parameter Placing command files on your root device Active reboot without FSCK Filesystem tunable

Use the tune2fs command to tell your filesystem to have a max count of mounts before […]

Setting up a 2-node GlusterFS file-system

This will be a quick howto on how you would set up a 2-node GlusterFS filesystem. You may look up more information at http://www.gluster.org/.

Volume types for GlusterFS

– Distributed. Distributed volumes distributes files throughout the bricks in the volume – Replicated. Replicated volumes replicates files across bricks in the volume – Striped. Striped volumes […]

CentOS Remove Old Kernels

Tonight when upgrading a CentOS Linux server it was noted by YUM that 15MB more disk space was needed to upgrade grub and the kernel itself. Below are four quick steps to verify what kernels are installed, install yum-utils if it is not installed already, delete previous kernels and set YUM to remove old kernels […]

Linux Disk Caching & Performance with vm.dirty_ratio & vm.dirty_background_ratio

we talked about how the memory on a Linux guest is used for the OS itself (the kernel, buffers, etc.), applications, and also for file cache. File caching is an important performance improvement, and read caching is a clear win in most cases, balanced against applications using the RAM directly. Write caching is trickier. The […]

Linux OS Tuning/Optimizations

High i/o wait tuning for File Servers

Under “Server”?“General” tab, change “Priority” configuration to “-19”. Process priority can be set from -19 to 20, -19 is the highest, 20 is the lowest.

Change to ‘deadline’ I/O scheduler

From command line (change the device ‘sda’ to appropriate device): echo “deadline” > /sys/block/sda/queue/scheduler kernel parameter, change /boot/grub/menu.lst, […]

Releasing cached memory in Linux && Set swappiness

Releasing cached memory in Linux

Under normal circumstances, modern Linux systems try to cache into memory disk data that is accessed often. Sometimes, we have that much memory in the system that our kernel keeps filling up the memory by caching every piece of data we access.

Other times, because of the swappiness factor, active […]

Kick start install CentOS 6.5 Install Problem Unable to read group information from repositories.

CentOS 6.5 Install Problem// // //

CentOS 6.5 Install Problem I have recently installed CentOS 6.5 on a couple of computers, once without any problems and once with a fatal hang during install. With both installs I chose to overwrite any existing partitions and use the whole hard-drive.The problem during the failed install […]