Tag Archives: RedHat / CentOS

Home »  Tag: RedHat / CentOS

This was first posted on http://linuxdistributions-lifecycle-comparison.cloud7-itconsult.com Overview of the Support Lifecycle for a few selected Enterprise Linux Distributions. Last Updated 26.11.2014 RedHat Enterprise Linux (13 year extended support) RedHat Enterprise Linux RHEL 7 RHEL 6 RHEL 5 RHEL 4 RHEL 3 Release Date 10-Jun-14 10-Nov-10 15-Mar-07 14-Feb-05 23-Oct-03 EOL End of Life 30-Jun-24 30-Nov-20 31-Mar-17 29-Feb-12 31-Oct-10 EOS Final end of Support (Extended) 30-Jun-27 30-Nov-23 31-Mar-20 31-Mar-17 30-Jan-14 Currently under support? YES YES YES YES NO Lifetime in Years 13.0 13.0 13.0 12.1 10.3 Life kernel patching available? YES kpatch Dynamic Kernel Patching NO NO NO NO CentOS Linux (10 year lifecycle) CentOS Linux CentOS 7 CentOS 6 CentOS 5 CentOS 4 CentOS 3 Release Date 7-Jul-14 10-Jul-10 12-Apr-07 9-Mar-05 19-Mar-04 EOL End of Life 30-Jun-24 30-Nov-20 31-Mar-17 29-Feb-12 31-Oct-10 EOS Final end of Support (Extended) N/A N/A N/A N/A N/A Currently under support? YES YES YES NO NO Lifetime in Years 9.9 10.3 9.9 6.9 6.6 Life kernel patching available? YES kpatch Dynamic Kernel Patching NO NO NO NO Oracle Enterprise Linux Oracle Linux OEL 7 OEL 6 OEL 5 Release Date Jul-14 Feb-11 Mar-07 EOL End of Life […]

Update 09.09.2014: Updated to epel release 7-2 Update 06.12.2014: Updated the Epel 7-2 location Update 31.07.2015: Updated to Epel 7-5 location CentOS 7 is out and based on CentOS 6.X: How To Install The EPEL Repository here is EPEL for Centos 7.x All commands are to be executed as root. rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm There is also an update for a repo called remi which is also providing some bleeding edge packages and updates. This is highly optional and not related to EPEL. If you like to install that one, here we go. rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm To enable certain remi repositories use vi and set enabled=1 where it applies vi /etc/yum.repos.d/remi.repo Related posts: CentOS 6.x: How to install the EPEL repository CentOS 6.x: VMware Repo for VMware tools x86_64 RedHat 6.x / CentOS 6.x: How to Install ZFS native Linux: Howto show the Servers IP address at the login console RedHat 6.x/CentOS 6.x: Rename RHN Satellite (Spacewalk) […]

If you just added a new Disk to a Linux Box (for example under VMware) you may want to add that one to a LVM to a new Volume Group. Here are the steps quick and easy with a bit of commenting. You have not yet added the new disk and want to do this hot. Then I refer to this here. How to add a new disk without reboot fdisk -l #to show us the available disks We assume our new disk is /dev/sdb and we will not create a partition on it but use /dev/sdb as it is. This gives us the advantage that if we increase the disksize outside of the OS (for example a vmdk which we just increase or a SAN lun which we just increase in size) we can easily increase the volume under lvm. pvcreate /dev/sdb Writing physical volume data to disk “/dev/sdb” […]

Particularly under VMware you may just add a new disk to linux without the need to reboot the whole thingy. So after adding the new disk as root on the OS: echo “- – -” > /sys/class/scsi_host/host#/scan where host# is the bus address usually 0 example echo “- – -” > /sys/class/scsi_host/host0/scan fdisk -l will show you the new disk as unpartioned while you would expect to see a message in the messages log tail -f /var/log/message and thats it, you now have a new disk which you can partition and add to LVM or whatever you want with it. Related posts: Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition Linux: Howto show the Servers IP address at the login console Centos / Debian / LVM: Add a new disk as a LVM volume Linux / RedHat /CentOS / Ubuntu […]

If you need to install the vmware tools for CentOS 6.x as a repo then: rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub vi /etc/yum.repos.d/VMWare-Tools.repo insert [vmware-tools] name=VMware Tools baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.1latest/rhel6/i686 enabled=1 gpgcheck=1 gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub This will point to the latest release for Centos 6.X_X64 then: To select a specific version of ESX you can browse the path to select different directories. yum -y install vmware-tools-services vmware-tools-esx-nox vmware-tools-pvscsi-common vmware-tools-plugins-autoUpgrade vmware-tools-plugins-guestInfo vmware-tools-plugins-powerOps vmware-tools-plugins-timeSync Now this might be a quick and dirty solution to get the latest tools from the repo. However, ESX doesn’t like it and will show them as (?) Running (3rd-party/Independent)” which means it won’t auto-update the tools. it might be better to mount the vmware tools from the ESX Server and after unpacking them to run vmware-install.pl -d to install unattended with the defaults.   Related posts: Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another […]

Here we go again. After installing ZFS on a Debian based Proxmox Node I now need some bang on a CentOS Server. To remind you all: ZFS on Linux is considerably stable and matured, but you put it in place on your own risk. ZFS Native comes from http://zfsonlinux.org/ I use a Centos 6.3 minimal installation and I have a 2GB disk configured to it for demo. fdisk -l Disk /dev/sdb: 2147 MB, 2147483648 bytes Updated (26.04.2013) And a Russian fellow describes his way to install it which I used and improved. http://habrahabr.ru/post/152853/ He build his own repo under http://yum.aclub.net/pub/linux/centos/6/umask-zfsonlinux/x86_64/ which is maintained as per 05.03.2013 So we start with: cd /etc/yum.repos.d/ wget http://yum.aclub.net/pub/linux/centos/6/umask-zfsonlinux/umask-zfsonlinux.repo rpm –import http://yum.aclub.net/pub/linux/centos/5/umask/RPM-GPG-KEY-umask There is an original repo from zfs on Linux now which we are going to use since it has the latest version 0.6.1 of ZFS http://zfsonlinux.org/epel.html yum localinstall –nogpgcheck If you don’t have […]

It is from time to time useful to have the EPEL repository from Fedora enabled under CentOS in order to get the additional and latest and greatest packages and updates. Here is how to do so. All commands are to be executed as root. Firstly we install wget in case its not yet installed and then we get the packages and apply them to the system. rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm There is another repo called remi also providing some bleeding edge packages and updates. This is highly optional and not related to EPEL. If you like to install that one, here we go. rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm We need to enable the repo now. vi /etc/yum.repos.d/remi.repo feel free to enabled=1 the remi and the remi testing channels [remi] name=Les RPM de remi pour Enterprise Linux 6 – $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-test] name=Les RPM de remi en test pour Enterprise Linux 6 – $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi Related posts: CentOS 7.X: […]

Setting Up a CentOS / Red Hat Linux DHCP Client First backup your existing network configuration. I assume for all below that the interface is eth0, if this is not the case on your system then edit accordingly. cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ifcfg-eth0.bak Do not store the backup in the original directory, it will cause some issues. Then we edit the file vi /etc/sysconfig/network-scripts/ifcfg-eth0 Following is a sample DHCP configuration: DEVICE=”eth0″ BOOTPROTO=”dhcp” HWADDR=”7E:E2:2F:FC:64:FC” NM_CONTROLLED=”yes” ONBOOT=”yes” TYPE=”Ethernet” UUID=”10489fa0-ea13-40c6-b3e9-19ae328c7162″ This would be a sample static configuration: DEVICE=”eth0″ BOOTPROTO=”static” HWADDR=”7E:E2:2F:FC:64:FC” IPADDR= NETMASK= DNS= GATEWAY= ONBOOT=”yes” TYPE=”Ethernet” UUID=”10489fa0-ea13-40c6-b3e9-19ae328c7162″ NM_CONTROLLED=”no” Leave vi with Shift+ZZ Just for completeness the DNS is set in the /etc/resolv.conf vi /etc/resolv.conf insert nameserver and restart the network service: service network restart Please note that you need a configuration file for each device that you want to configure. Related posts: RedHat 6.x/CentOS 6.x: Rename RHN Satellite (Spacewalk) Server CentOS / RedHat: Quick Network Bonding eth0 and […]

MySQL 5.6 has been released as GA and as per Oracle  Notes http://www.oracle.com/us/corporate/press/1904335 “With increased performance, scalability, reliability and manageability, MySQL 5.6 helps users meet the most demanding Web, Cloud and embedded application requirements.” So lets try to install it on an existing Centos 6.3 OpenVZ Container running LAMP. Its my Lab container with WordPress and other things running. There is already mysql-5.1.67 on it which we will remove. Please make sure you have a backup / snapshot to roll back if it breaks anything or doesn’t work or perform as expected. We start getting the rpm packages. You can browse for the latest version packages here cd /tmp wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.12-2.el6.x86_64.rpm/from/http://cdn.mysql.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.12-2.el6.x86_64.rpm/from/http://cdn.mysql.com/ wget http://www.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.12-2.el6.x86_64.rpm/from/http://cdn.mysql.com/ libaio is needed yum install libaio Now it’s time to say good bye to the old mysql. yum remove mysql mysql-server mysql-libs Hello mysql 5.6 rpm -ivh MySQL-shared-compat-5.6.12-2.el6.x86_64.rpm rpm -ivh MySQL-server-5.6.12-2.el6.x86_64.rpm rpm -ivh MySQL-client-5.6.12-2.el6.x86_64.rpm (updated) I now […]

A Very quick and dirty howto guide for setting up rsh a remote shell to execute commands remotely from one Linux host to another. This might be useful for scripts to run something on the remote host. This assumes having already setup a ssh key between the hosts so there is no password request on the remote shell. However this is not mandatory and might be a security issue. In case you like to setup  a ssh key have a look here. This setup assumes there is no /etc/host.allow or /etc/host.deny setup for the remote server and the remote command shall be executed as user root. We have host Alpha to execute the command on Host Bravo the remote host where the command shall run on. All commands are to be run as root Starting with Bravo 1.1 Install rsh-server yum install rsh-server chkconfig rsh on 1.2 give rsh and the remote host all permissions needed. this needs to be […]

%d bloggers like this: