2506, 2020

Raid 0 Configuration

By |June 25th, 2020|Categories: Linux Administration, Tutorials|Tags: , , , |0 Comments

Raid 0 strips the data into multiple available drives equally giving a very high read and write performance but offering no fault tolerance or redundancy. Unlike Raid 5, if you loose one of disks in the array your data will be corrupted. Minimum 2 disks are required to configure a Raid 0 array. On my server actually I have 4 additional disks: hostname: scsi_disk_server OS: Centos 7 Let's check our raid disk /dev/md0 Now I’ve 3 choices; use this array on that server by creating partitions or not or export this array to another server over ISCSI and create

2011, 2019

Linux: Kernel Compilation

By |November 20th, 2019|Categories: Linux Administration, Tutorials|Tags: , |0 Comments

Steps to Follow: Download appropriate kernel from : https://www.kernel.org/ Install packages:             - yum install ncurses-devel bison flex elfutils-libelf-devel openssl-devel             - yum groupinstall "Development Tools" In this tutorial I am compiling kernel version 3.16. My existing kernel version is 3.10 Linux distro: Centos 7.7

1703, 2019

Tutorial: Apache remote logging

By |March 17th, 2019|Categories: Tutorials|0 Comments

Remote logging with rsyslog: Apache case If you don’t know how to configure remote logging with rsyslog, refer to this article. There are many ways to store your logs with a different name, it can be by application name, host name, custom name etc. To do this you have multiple choices, you can either edit rsyslog configuration file or application config file even more create new config files under /etc/rsyslog.d/ directory (httpd.conf file in our example). It’s also good to know log levels; there are many levels such as “local6.”, “info.”, “authpriv”, “.emerg”, “mail.”. These levels or maybe rules

2607, 2018

SElinux Tuto: SSH Connection

By |July 26th, 2018|Categories: Linux Administration, Tutorials|1 Comment


This tutorial will show us the importance of selinux troubleshooting knowledge. As you know generally in a real environment selinux is disabled by default but I thought you might like to know where is the role of selinux type context. I have 2 servers; Hostname                                          IP                                           default ssh port               Autofs_client,  Centos7                                         22 Oldest, Rhel5                                                           22 For some security reasons you might want to change default ssh port because ssh port number 22 is known by everybody. In Centos7 (hostname: autofs_client) we will change it to 77. To manage selinux

402, 2018

Selinux example for http index page

By |February 4th, 2018|Categories: Tutorials|Tags: , , , , , , |0 Comments

Errors like "page unreachable" or "Error 404" are most encountered problems on http server. This tutorial will take a case where index page can't being reachable because of selinux settings. We will create a new index file for our apache server which will be shown on our home page. First let’s check if apache is turned on. [crayon-614464def32d1225638064/] My server "http" has as IP adress. Yes it’s working. [crayon-614464def32d8944635413/] Here you see the type of index.html file is "admin_home_t" which is not authorized under /var/www/html directory. With this Selinux context your index page won’t be shown because linux

2401, 2018

Command usage : pvmove

By |January 24th, 2018|Categories: Articles, Tutorials|Tags: , , , , , , |0 Comments

Migrate partitions from old disk to new one. Environment: Centos7, virtual machine on KVM with 15 GB of unique disk. In this article we will see how to migrate your data from old disk to newly added one. This may save your journey if you encountered some problems with your volumes or FS and you don't have any other choice apart moving your data from one disk to another. Let's suppose block size or cylinders were altered. You want to restart your system you will probably get kernel panic error after rebooting the server. Regardless you were lucky because

1901, 2018

Remote logging with Rsyslog

By |January 19th, 2018|Categories: Articles, Tutorials|Tags: , , , , |1 Comment

Rsyslog is a logging feature in recent Linux distributions such as Centos 6/7 or Rhel 6/7.  By using this deamon it’s possible to send logs from one server to another server. I will show you how to do that in basic way. I have two Centos 7 server and I will use rsyslog. In older version your logging deamon might be syslog. You can configure also syslog but I recommand to install rsyslog by using: [crayon-614464def3abb017493090/] Then if you are using older version, you can stop syslog and run rsyslog. (It is not possible to execute

Go to Top