<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Admon Home &#187; RHEL</title>
	<atom:link href="http://www.admon.org/tag/rhel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.admon.org</link>
	<description>Linux System Administration</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:24:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What&#8217;s new in RHEL 6</title>
		<link>http://www.admon.org/whats-new-in-rhel-6/</link>
		<comments>http://www.admon.org/whats-new-in-rhel-6/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 04:46:43 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.admon.org/?p=1039</guid>
		<description><![CDATA[Red Hat on Wednesday (10, Nov. 2010) released version 6 of its Red Hat Enterprise Linux (RHEL) distribution. RHEL 6 has more than 2,000 packages, and an 85 percent increase in the amount of code from the previous version, said Jim Totton, vice president of Red Hat&#8217;s platform business unit. The company has added 1,800 [...]]]></description>
			<content:encoded><![CDATA[<p>Red Hat on Wednesday (10, Nov. 2010) released version 6 of its <a title="RedHat Enterprise Linux" href="http://www.redhat.com/rhel/" target="_blank">Red Hat Enterprise Linux </a>(RHEL) distribution.<br />
RHEL 6 has more than 2,000 packages, and an 85 percent increase in the amount of code from the previous version, said Jim Totton, vice president of Red Hat&#8217;s platform business unit. The company has added 1,800 features to the OS and resolved more than 14,000 bug issues.<span id="more-1039"></span></p>
<p>What&#8217;s new for Red Hat Enterprise Linux 6 Server?</p>
<p><strong>Reliability, availability, and scalability (RAS)</strong><br />
• Red Hat Enterprise Linux 6 supports more sockets, more cores, more threads, and more memory.<br />
• RAS hardware-based hot add of CPUs and memory is enabled.<br />
• When supported by machine check hardware, the system can recover from some previously fatal hardware errors with minimal disruption.<br />
• Memory pages with errors can be declared as “poisoned” and will be avoided.<br />
• The CFS schedules the next task to be run based on which task has consumed the least time, task prioritization, and other factors. Using hardware awareness and multi-core topologies, the CFS optimizes task performance and power consumption.</p>
<p><strong>Filesystems</strong><br />
The new default file system, ext4, is faster, more robust, and scales to 16 TB.<br />
The scalable file system add-on contains the XFS file system, which scales to 100 TB. The resilient storage add-on includes the high availability, clustered GFS2 file system.<br />
NFSv4 is significantly improved over NFSv3, and is backwards compatible.<br />
Fuse allows filesystems to run in user space allowing testing and development on newer fused-based filesystems (such as cloud filesystems).</p>
<p><strong>High availability</strong><br />
• The web interface based on Conga has been redesigned for added functionality and ease of use.<br />
• The cluster group communication system, Corosync, is mature, secure, high-performance, and lightweight.<br />
• Nodes can re-enable themselves after failure without administrative intervention using unfencing.<br />
• Unified logging and debugging simplifies administrative work.<br />
• Virtualized KVM guests can be run as managed services, which enables fail-over, including between physical and virtual hosts.<br />
• Centralized configuration and management is provided by Conga.<br />
• a single cluster command can be used to manage system logs from different services, and the logs have a consistent format that is easier to parse.</p>
<p><strong>Power management</strong><br />
The tickless kernel feature keeps systems in the idle state longer, resulting in net power savings.<br />
active State power Management and aggressive Link power Management provide enhanced system control, reducing the power consumption of I/O subsystems. administrators can actively throttle power levels to reduce consumption.<br />
Relatime drive access optimization reduces filesystem metadata write overhead.</p>
<p><strong>System resource allocation</strong><br />
• <a title="Cgroup" href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/" target="_blank">Cgroups</a> organize system tasks so that they can be tracked and so that other system services can control the resources that cgroup tasks may consume (partitioning). Two userspace tools, cgexec and cgclassify, provide easy configuration and management of cgroups.<br />
• Cpuset applies CPU resource limits to cgroups, allowing processing performance to be allocated across tasks.<br />
• The memory resource controller applies memory resource limits to cgroups.<br />
• The network resource controller applies network traffic limits to cgroups.</p>
<p><strong>Storage</strong><br />
• a snapshot of a logical volume may be merged back into the original logical volume, reverting changes that occurred after the snapshot.<br />
• Mirror logs of regions that need to be synchronized can be replicated, supporting high availability.<br />
• LVM hot spare allows the behavior of a mirrored logical volume after a device failure to be explicitly defined.<br />
• <a title="DM-Multipath" href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/" target="_blank">DM-Multipath</a> allows paths to be dynamically selected based on queue size or I/O time data.<br />
• Very large SAN-based storage is supported.<br />
• Automated I/O alignment and self-tuning is supported.<br />
• Filesystem usage information is provided to the storage device, allowing administrators to use thin provisioning to allocate storage on-demand.<br />
• SCSI and aTa standards have been extended to provide alignment and I/o hints, allowing automated tuning and I/o alignment.<br />
• DIF/DIX provides better integrity checks for application data.</p>
<p><strong>Networking</strong><br />
• UPD Lite tolerates partially corrupted packets to provide better service for multimedia protocols, such as voIp, where partial packets are better than none.<br />
• Multiqueue Networking increases processing parallelism for better performance from multiple processors and CPU cores.<br />
• Large Receive Offload (LRO) and Generic Receive Offload (GRO) aggregate packets for better performance.<br />
• Support for datacenter bridging includes data traffic priorities and flow control for increased quality of service.<br />
• New support for software Fiber Channel over Ethernet (FCoE) is provided.<br />
• iSCSI partitions may be used as either root or boot filesystems.<br />
• Ipv6 is supported.</p>
<p><strong>Access control</strong><br />
• SELinux policies have been extended to more system services.<br />
• SELinux sandboxing allows users to run untrusted applications safely and securely.<br />
• File and process permissions have been systematically reduced whenever possible to reduce the risk of privilege escalation.<br />
• New utilities and system libraries provide more control over process privileges for easily managing reduced capabilities.<br />
• Walk-up kiosks (as in banks, HR departments, etc.) are protected by SELinux access control, with on-the-fly environment setup and take-down, for secure public use.<br />
• openswan includes a general implementation of Ipsec that works with Cisco Ipsec.</p>
<p><strong>Enforcement and verification of security policies</strong><br />
• <a title="OpenSCAP" href="http://fedoraproject.org/wiki/Features/OpenSCAP" target="_blank">OpenSCAP</a> standardizes system security information, enabling automatic patch verification and system compromise evaluation.<br />
• The new <a title="SSSD" href="http://fedoraproject.org/wiki/Features/SSSD" target="_blank">System Security Services Daemon</a> (a.k.a. SSSD) provides centralized access to identity<br />
and authentication resources, enables caching and offline support.<br />
• OpenLdap is a compliant LDAP client with high availability from N-way multimaster replication and performance improvements.</p>
<p><strong>Kernel-based virtualization</strong><br />
• The KVM hypervisor is fully integrated into the kernel, so all Red Hat Enterprise Linux system improvements benefit the virtualized environment.<br />
• The application environment is consistent for physical and virtual systems.<br />
• Deployment flexibility, provided by the ability to easily move guests between hosts, allows administrators to consolidate resources onto fewer machines during quiet times or to free up hardware for maintenance downtime.</p>
<p><strong>Leverages kernel features</strong><br />
• Hardware abstraction enables applications to move from physical to virtualized environments independently of the underlying hardware.<br />
• Increased scalability of CPUs and memory provides more guests per server.<br />
• Block storage benefits from selectable I/O schedulers and support for asynchronous I/O.<br />
• Cgroups and related CPU, memory, and networking resource controls provide the ability to reduce resource contention and improve overall system performance.<br />
• Reliability, availability, and serviceability (RAS) features (e.g., hot add of processors and memory, machine check handling, and recovery from previously fatal errors) minimize downtime.<br />
• Multicast bridging includes the first release of IGMP snooping (in IPv4) to build intelligent packet routing and enhance network efficiency.<br />
• CPU affinity assigns guests to specific CPUs.</p>
<p><strong>Guest acceleration</strong><br />
• CPU masking allows all guests to use the same type of CPU.<br />
• SR-IOV virtualizes physical I/O card resources, primarily networking, allowing multiple guests to share a single physical resource.<br />
• Message-signaled interrupts deliver interrupts as specific signals, increasing the number of interrupts.<br />
• Transparent hugepages provide significant performance improvements for guest memory allocation.<br />
• Kernel Same Page (KSM) provides reuse of identical pages across virtual machines (known as deduplication in the storage context).<br />
• The tickless kernel defines a stable time model for guests, avoiding clock drift.<br />
• Advanced paravirtualization interfaces include non-traditional devices such as the clock (enabled by the tickless kernel), interrupt controller, spinlock subsystem, and vmchannel.<br />
• In virtualized environments, sVirt (powered by SELinux) protects guests from one another.<br />
• Windows WHQL-certified drivers enable virtualized Windows systems and allow Microsoft customers to receive technical support for virtualized instances of Windows Server.</p>
<p><strong>Installation, updates, and deployment</strong><br />
• Anaconda supports installation of a “minimal platform” as a specific server installation or as a strategy for reducing the number of software packages to increase security.<br />
• Red Hat Network and Red Hat Network Satellite continue to provide management, provisioning, and monitoring for large deployments.<br />
• Installation options have been reorganized into &#8220;workload profiles&#8221; so that each system installation will provide the right software for specific tasks.<br />
• <a title="Dracut" href="http://fedoraproject.org/wiki/Features/Dracut" target="_blank">Dracut</a>, a replacement for mkinitrd, minimizes the impact of underlying hardware changes, is more maintainable, and makes it easier to support third-party drivers.<br />
• The new yum history command provides information about yum transactions, and supports undo and redo of selected operations.<br />
• Yum and RPM offer significantly improved performance.<br />
• RPM signatures use the Secure Hash Algorithm (SHA256) for data verification and authentication, improving security.<br />
• Storage devices can be designated for encryption at installation time, protecting user and system data. key escrow allows recovery of lost keys.<br />
• Standards-Based Linux Instrumentation for Manageability (SBLIM) manages systems using <a title="Web-Based Enterprise Management" href="http://en.wikipedia.org/wiki/Web-Based_Enterprise_Management" target="_blank">Web-Based Enterprise Management </a>(WBEM).<br />
• ABRT enhanced error reporting speeds triage and resolution of software failures.</p>
<p><strong>Routine task delegation</strong><br />
• <a title="PolicyKit" href="http://hal.freedesktop.org/docs/PolicyKit/" target="_blank">Policykit</a> allows administrators to provide users access to privileged operations, such adding a printer or rebooting a desktop, without granting administrative privileges.<br />
• Samba improvements include support for Windows 2008 R2 trust relationships, specifically Windows cross-forest, transitive trust, and one-way domain trust.<br />
• applications can use openChange to gain access to Microsoft Exchange servers using native protocols, allowing mail clients like Evolution to have tighter integration with Exchange servers.</p>
<p>This is summerized from The official release note which can be downloaded <a title="RHEL 6 What's new" href="http://www.redhat.com/f/pdf/rhel/RHEL6_Server_Whats_new_datasheet.pdf" target="_blank">here (pdf)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/whats-new-in-rhel-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update hp-snmp-agents to latest version on RHEL/CentOS</title>
		<link>http://www.admon.org/update-hp-snmp-agents-to-latest-version-on-rhelcentos/</link>
		<comments>http://www.admon.org/update-hp-snmp-agents-to-latest-version-on-rhelcentos/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 11:47:21 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[hpasm]]></category>
		<category><![CDATA[ilo]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=904</guid>
		<description><![CDATA[HP-snmp-agents contains the SNMP server, storage, and nic agents for all HP Proliant systems with ASM, ILO, &#38; ILO2 embedded management asics. If you&#8217;re using SNMP to monitor your HP server running status, this package is needed. Sometimes when you face unexpected error like below, you might want to update this toolset to the latest [...]]]></description>
			<content:encoded><![CDATA[<p>HP-snmp-agents contains the SNMP server, storage, and nic agents for all HP Proliant systems with <a title="HP ASM" href="http://planet.admon.org/hpasmcli-usage-example-on-proliant-dl380/" target="_blank">ASM</a>, ILO, &amp; ILO2 embedded management asics. If you&#8217;re using SNMP to monitor your HP server running status, this package is needed.<span id="more-904"></span></p>
<p>Sometimes when you face unexpected error like below, you might want to update this toolset to the latest version.</p>
<pre>$ sudo /etc/init.d/hp-snmp-agents start
Using Proliant Standard
IPMI based System Health Monitor
Using standard Linux IPMI device driver
Starting ipmi drivers: [ OK ]
Starting Proliant Standard
IPMI based System Health Monitor (hpasmlited): [FAILED]

/etc/init.d/hp-health: failed to start! Please review log file for details.
The log file locations are documented in the hp-health(4) man page.</pre>
<p><strong>How can we Update HP System Health Monitor to the latest version?</strong></p>
<p>HP maintains a software delivery repository to provides access to various software products. For ProLiant running RHEL/CentOS v5, we can access it like:</p>
<pre>$ wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh
$ sudo sh bootstrap.sh ProLiantSupportPack -r 5Server -y hp-psp-repository.repo</pre>
<p>The above two commands create a new repo configuration named <em>/etc/yum.repos.d/hp-psp-repository.repo</em>. Then the utilities can be updated as normal packages as below:</p>
<pre>$ sudo yum install hp-health</pre>
<p>Then the issue resolved:</p>
<pre>$ sudo /etc/init.d/hp-snmp-agents start
Starting Health agent (cmahealthd): [ OK ]
Starting Standard Equipment agent (cmastdeqd): [ OK ]
Starting Host agent (cmahostd): [ OK ]
Starting Threshold agent (cmathreshd): [ OK ]
Starting RIB agent (cmasm2d): [ OK ]
Starting Rack Infrastructure Info Srv (cpqriisd): [ OK ]
Starting Rack agent (cmarackd): [ OK ]
Starting Performance agent (cmaperfd): [ OK ]
Starting SNMP Peer (cmapeerd): [ OK ]
Starting Storage Event Logger (cmaeventd): [ OK ]
Starting FCA agent (cmafcad): [ OK ]
Starting SAS agent (cmasasd): [ OK ]
Starting IDA agent (cmaidad): [ OK ]
Starting IDE agent (cmaided): [ OK ]
Starting SCSI agent (cmascsid): [ OK ]
Starting NIC Agent Daemon (cmanicd): [ OK ]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/update-hp-snmp-agents-to-latest-version-on-rhelcentos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL 5.5 Released yesterday</title>
		<link>http://www.admon.org/rhel-5-5-released-yesterday/</link>
		<comments>http://www.admon.org/rhel-5-5-released-yesterday/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 11:56:16 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[rhel-5.5]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=572</guid>
		<description><![CDATA[Redhat.com release another update of RHEL5 yesterday at 2010/03/30. This minor update releases typically provide feature enhancements, bugfixes and new hardware support. From the release notes: Highlights of the Red Hat Enterprise Linux 5.5 release include hardware enablement for the Intel Boxboro-EX platform, AMD Magny-Cours processor and IBM Power 7 processor. Virtualization is improved, with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.redhat.com/"><a href="http://planet.admon.org/wp-content/uploads/2010/03/redhat.jpg"><img class="alignleft size-full wp-image-747" title="redhat" src="http://planet.admon.org/wp-content/uploads/2010/03/redhat.jpg" alt="Redhat Linux Logo" width="150" height="150" /></a>Redhat.com</a> release another update of RHEL5 yesterday at 2010/03/30.</p>
<p>This minor update releases typically provide feature enhancements, bugfixes and new hardware support. From the <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Release_Notes/">release notes</a>:<br />
<span id="more-572"></span><br />
Highlights of the <strong>Red Hat Enterprise Linux 5.5</strong> release include hardware enablement for the <a href="http://www.theregister.co.uk/2009/05/26/intel_nehalem_ex_preview/print.html">Intel Boxboro-EX</a> platform, AMD <a href="http://blogs.amd.com/work/tag/magny-cours/">Magny-Cours processor</a> and <a href="http://www-03.ibm.com/systems/power/">IBM Power</a> 7 processor.<br />
Virtualization is improved, with support for multiple 10 GigE <a href="http://blog.scottlowe.org/2009/12/02/what-is-sr-iov/">SR-IOV cards</a>, and automatic usage of hugepages for virtual guest memory when enabled on the system. Interoperability improvements include boot support for virtual machines using Microsoft based PXE services.</p>
<p>A summary of technical details would highlight:</p>
<ul>
<li>Kickstart improvements to logging post-install</li>
<li>New hardware driver support (<a href="http://www.pmc-sierra.com/sas-expanders-loopswitch-chips/">pmcraid</a>, ibmvfs, bfa, be2iscsi)</li>
<li>Updated hardware support (too many to list)</li>
<li>Run-time memory allocation for KVM guests (memory ballooning)</li>
<li>PCI passthrough improvements (hotswapping PCI devices, 1:1 performance improvements)</li>
<li>Detecting kernel tasks stuck in the uninterruptible sleep state (D-state)</li>
<li>Improved <a href="http://planet.admon.org/howto/how-to-change-default-io-scheduler/">CFQ I/O scheduler</a> performance</li>
<li>Kernel CIFS updates and new GFS mount option (for troubleshooting)</li>
</ul>
<p>Apart from this Red Hat also shared Technology Previews within each release. Functionality that is not yet supported, but available for testing purposes:</p>
<ul>
<li>FCoE (Fibre Channel over Ethernet)</li>
<li>ext4 filesystem support</li>
<li>gcc 4.4 and new glibc malloc</li>
<li>Trusted Platform Module (TPM) hardware support</li>
<li>eCryptfs cryptographic filesystem</li>
<li>Stateless Linux</li>
<li>SGPIO Support for dmraid</li>
<li>Device Failure Monitoring of RAID sets</li>
<li>iSER support (block storage transfer across a network)</li>
</ul>
<p>The above Technology Preview features of <a href="http://planet.admon.org/howto/rhel-5-5-released-yesterday/">RHEL5.5</a> may become part of a future RHEL5 release! Even though there is no predicted timeline for CentOS releases, CentOS 5.5 is not expected before May 4th 2010.</p>
<p>For more details on the changelog, please check the <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Release_Notes/">release notes</a> here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/rhel-5-5-released-yesterday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to skip updating certain packages by YUM</title>
		<link>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/</link>
		<comments>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 07:58:37 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[system updates]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=557</guid>
		<description><![CDATA[I&#8217;m runing RHEL/CentOS for a group of database servers, and they mainly use MySQL for productive services. Recently I noticed that MySQL&#8217;s new feathers and bug fixes that comes from system updates make little sense to our needs, so I&#8217;m planing not to apply these changes on our live servers, unless it&#8217;s really needed. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m runing RHEL/CentOS for a group of database servers, and they mainly use MySQL for productive services. Recently I noticed that MySQL&#8217;s new feathers and bug fixes that comes from <a href="http://mirror.centos.org/centos/5/updates/">system updates</a> make little sense to our needs, so I&#8217;m planing not to apply these changes on our live servers, unless it&#8217;s really needed.<span id="more-557"></span></p>
<p>The question is: How can I disable a certain package from being updated by <a href="http://yum.baseurl.org/">Yum</a> in Linux server environment?</p>
<p>After having a check with the parameter &#8220;<em>&#8211;help</em>&#8220;, I know that the Yum under RedHat / CentOS has an option &#8220;<em>&#8211;exclude</em>&#8220;, and it will exclude a specific package by name or shell glob (* or ?) from being updated, here&#8217;re two examples:</p>
<p><strong>1, Bypass updates for an exact package</strong><br />
You can just run this command. Note that you need to login as privileged user to use following commands:</p>
<pre>yum --exclude=mysql-server update</pre>
<p><strong>2, Bypass some packages with glob</strong><br />
For example, with the following command, you can exclude both mysql-client and mysql-server from update:</p>
<pre>yum --exclude=mysql* update</pre>
<p>There&#8217;s another alternative way to bypass the package.<br />
Yum also supplies a <strong>configuration parameter</strong> that can be used in <em>/etc/yum.conf</em> to bypass specified packages completely.<br />
To exclude packages from being updated, you can edit <em>/etc/yum.conf</em> and add one line as below:</p>
<pre>exclude=mysql*</pre>
<p>Further readings:  <a href="http://www.centos.org/docs/5/html/yum/sn-updating-your-system.html">Updating Your System with yum</a><br />
For any issues, it&#8217;s welcome to create postings at our support forum at <a href="http://forum.admon.org/">forum.admon.org</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/how-to-skip-updating-certain-packages-by-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update CentOS 4 to CentOS 5 remotely</title>
		<link>http://www.admon.org/update-centos-4-to-centos-5-remotely/</link>
		<comments>http://www.admon.org/update-centos-4-to-centos-5-remotely/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:36:24 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=510</guid>
		<description><![CDATA[I just successfully updated my Dell PowerEdge 1850 from CentOS 4.8 to CentOS 5.4, luckily the issues I faced were not so rare. The steps I used are listed below, may it helpful for you as well! Although this post is mainly intended for CentOS it should work on RHEL systems as well. Before you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png"><img class="alignleft size-full wp-image-749" title="centos5-150x150" src="http://planet.admon.org/wp-content/uploads/2009/12/centos5-150x150.png" alt="CentOS-5 Logo" width="150" height="150" /></a>I just successfully updated my Dell <a href="http://reviews.zdnet.co.uk/hardware/servers/0,1000001736,39193837,00.htm">PowerEdge 1850</a> from CentOS 4.8 to CentOS 5.4, luckily the issues I faced were not so rare. The steps I used are listed below, may it helpful for you as well! Although this post is mainly intended for CentOS it should work on RHEL systems as well.</p>
<p>Before you start, A word of advice i believe most experienced RHEL/CentOS users will show you regarding what you&#8217;re thinking:</p>
<p>Upgrade between minor versions (i.e. CentOS 5.2 -&gt; 5.3 -&gt; 5.4, or even 5.0 -&gt; 5.4) YES<br />
Upgrade between major system versions (i.e. CentOS 4.8 to CentOS 5.4) NO<span id="more-510"></span></p>
<p>As far as I recall, not even Red Hat recommends this &#8211; although they do guarantee the miner updates will go smoothly. Even if you manage to hammer that 4.8 to 5.4 upgrade into place, you might end up with a mess that will be very difficult to maintain. Before processing the system update, it&#8217;s suggested to create a backup!</p>
<p>If you are currently running a version of RHEL/CentOS earlier than 4.8 (<em>cat /etc/redhat-release</em>), then please do a proper &#8216;<em>yum update</em>&#8216; and get your current system updated to 4.8 before we start.</p>
<p>Then the first thing we need to do is to make sure none of our core binaries, libraries or other content is immutable as it causes package installation failures. If you use immutable bits on system paths then you should run these commands:</p>
<pre>chattr -Ria /bin
chattr -Ria /etc
chattr -Ria /etc
chattr -Ria /include
chattr -Ria /lib
chattr -Ria /sbin
chattr -Ria /usr/bin
chattr -Ria /usr/include
chattr -Ria /usr/lib
chattr -Ria /usr/libexec
chattr -Ria /usr/local/bin
chattr -Ria /usr/local/include
chattr -Ria /usr/local/lib
chattr -Ria /usr/local/sbin
chattr -Ria /usr/sbin
chattr -Ria /usr/share
chattr -Ria /var/lib
chattr -Ria /var/lock
chattr -Ria /var/log
chattr -Ria /var/run
chattr -Ria /var/spool/repackage</pre>
<p>Once finished, go ahead and have a quick run through of cleaning up yum cache, double check that any pending updates are installed and <a href="http://planet.admon.org/howto/rpm-common-usage-examples/">rebuild the rpmdb</a>:</p>
<pre>yum clean all &amp;&amp; yum update</pre>
<p>If you run into any dependency issues for packages that are not essential, such as syslinux and lftp then you can either exclude them or better just remove them. If the denpency issue is openssh-server related, you can enable telnet login during update by modifing <em>/etc/xinetd.d/telnet</em>.</p>
<pre>rpm -e lftp syslinux mkboot</pre>
<p>OR (but not recommended)</p>
<pre>yum update --exclude=syslinux --exclude=lftp --exclude=mkboot</pre>
<p>At this point you should be able to run a &#8216;<em>yum update</em>&#8216; command with optional exclude and receive no errors. Now we are ready to get going, please google around, find and download these packages, they mostly available at <a href="http://mirror.centos.org/centos/5.4/os/i386/CentOS/">CentOS official mirror site</a>:</p>
<pre># ls
centos-release-5-4.el5.centos.1.i386.rpm    python-elementtree-1.2.6-5.el4.centos.i386.rpm
centos-release-notes-5.4-4.i386.rpm       python-elementtree-1.2.6-5.el5.i386.rpm
kernel-2.6.18-164.el5.i686.rpm            python-elementtree-1.2.6-5.i386.rpm
kernel-devel-2.6.18-164.el5.i686.rpm      python-sqlite-1.1.7-1.2.1.i386.rpm</pre>
<p>We need to go ahead and setup the centos-release package as follows:</p>
<pre>rpm -Uhv centos-release-*.rpm</pre>
<p>If you see that CentOS-Base.repo was created as <em>/etc/yum.repos.d/CentOS-Base.repo.rpmnew</em> then move it to the right place:</p>
<pre># mv /etc/yum.repos.d/CentOS-Base.repo.rpmnew /etc/yum.repos.d/CentOS-Base.repo</pre>
<p>Now we are ready to go with kernel changes, this is an important part so pay attention. The key to successful upgrade is that you remove ALL OLD KERNELS as many packages will fail to install during the upgrade if they detect a release 4.x kernel due to minimum kernel version dependency checks. We will first start with installing the new CentOS 5.4 kernel so it preserves grub templating:</p>
<pre>rpm -ivh kernel-2.6.18-164.el5.i686.rpm kernel-devel-2.6.18-164.el5.i686.rpm --nodeps</pre>
<p>NOTE: release 5.x has smp support integrated into the standard kernel, so no *-smp version is required for multi-processor systems.</p>
<p>If you are running an older system the chances are you got allot of older kernel packages installed, so make sure you get them all out of the way:</p>
<pre>rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18 | tr 'n' ' ') --nodeps</pre>
<p>That said and done you should now only have 2 kernel packages installed which are the 2.6.18 release 5.x kernels. DO NOT under any circumstance continue if you still got 2.6.9 release 4.x kernels packages installed, remove them ALL!</p>
<pre># rpm -qa | grep -i kernel
kernel-2.6.18-164.el5
kernel-devel-2.6.18-164.el5</pre>
<p>A cleanup of <em>/etc/grub.conf</em> may be required, though the rpm command should have done this for you already, but review it anyways for good measure. You should find that 2.6.18-164.el5 is the only kernel in the file. When kernel updated, a reboot here is OK, but it&#8217;s not suggested.</p>
<p>Then we can continute the system updates. There is a known bug with python-elementtree package versions which cause yum/rpm to think the release 4.x version is newer than the 5.x version, to get around this without blowing up the entire python installation we need to remove the package from just the rpmdb as follows:</p>
<pre>rpm -e --justdb python-elementtree --nodeps</pre>
<p>We can now go ahead and use yum to start the upgrade process, this is a dry run and will take some minutes to compile list of available packages and associated dependency checks. You should carry the exclude options, if any, that you used during the &#8216;yum update&#8217; process as so to avoid unresolvable dependencies:</p>
<pre>yum clean all
yum upgrade</pre>
<p>You will end up with a small list of dependency errors, these should be resolved by again evaluating a packages need as a critical system component and either removing it with &#8216;<em>rpm -e</em>&#8216; or excluding it with &#8216;<em>–exclude</em>&#8216; (remember to <a href="http://planet.admon.org/howto/rpm-common-usage-examples/">query description</a> if you are unsure what something does). In my case the packages that threw up red flags were stuff I had manually installed over time such as nfs in addition to default installed samba, these can all safely be removed or excluded as you prefer.</p>
<pre>    Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba
    Error: Missing Dependency: libevent-1.1a.so.1 is needed bypackage nfs-utils</pre>
<p>At this point you should be ready to do a final dry run and see where we stand on dependencies, rerun the earlier &#8216;<em>yum upgrade</em>&#8216; while making sure to carry over any exclude options you are using.</p>
<p>You should now end up with a summary of actions that yum needs to perform, go ahead and kick it off&#8230; this will take a bit time to complete.</p>
<pre>    Transaction Summary
    ===========================================================
    Install 183 Package(s)
    Update 527 Package(s)
    Remove 0 Package(s)
    Total download size: 679 M
    Is this ok [y/N]:<strong>Y</strong>
</pre>
<p>Once yum has completed we need to fix a few things, the first is the rpmdb needs a rebuild due to version changes that will cause any rpm commands to fail:</p>
<pre>rm -f /var/lib/rpm/__db.00*
rpm --rebuilddb
yum clean all</pre>
<p>The next issue on the list is python-elementtree and python-sqlite, one or both of these may have <a href="http://forum.admon.org/rhel-centos/7355-yum-no-module-named-sqlite-resovled.html">ended up in a broken state</a> that will cause all yum commands to break, so we will go ahead and reinstall both of them:</p>
<pre>rpm -e --justdb python-elementtree --nodeps
rpm -ivh python-elementtree-1.2.6-5.el5.i386.rpm
rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm --nodeps --force</pre>
<p>The yum command should now work, go ahead and run it with no options, if you do not get any errors, you are all sorted!</p>
<p>Hopefully the install went well for you, the only thing left to do is go ahead and reboot the system:</p>
<pre>shutdown -rf now</pre>
<p>For the sake of avoiding a system raised fsck, we will reboot with the -f option to skip fsck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/update-centos-4-to-centos-5-remotely/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Convert RHEL 5 to CentOS 5</title>
		<link>http://www.admon.org/convert-rhel-5-to-centos-5/</link>
		<comments>http://www.admon.org/convert-rhel-5-to-centos-5/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 11:53:52 +0000</pubDate>
		<dc:creator>joseph</dc:creator>
				<category><![CDATA[System Tuning]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://planet.admon.org/?p=349</guid>
		<description><![CDATA[Recently I was working on a Dell PE1950 at work and decided to get Xen installed, so that I can create some virtual servers for our developers. Finding out that Xen in Redhat Enterprise Linux is not so easy to download &#8211; I cannot find it from any public accessible websites, I decided to use [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a <a href="http://www.itreviews.co.uk/hardware/h1075.htm">Dell PE1950</a> at work and decided to get Xen installed, so that I can create some virtual servers for our developers.</p>
<p>Finding out that Xen in <a href="http://www.redhat.com/rhel">Redhat Enterprise Linux</a> is not so easy to download &#8211; I cannot find it from any public accessible websites, I decided to use CentOS&#8217;s yum repoes to download and install Xen. When I have CentOS yum repo created in <em>/etc/yum.repo.d</em>, I noticed that it cannot work in RHEL &#8211; It cannot recognize OS version without some updates of application.<span id="more-349"></span></p>
<p>That&#8217;s why I tried to convert my RHEL 5.3 to CentOS 5.3. Here are the commands that I used. You can just copy &amp; paste:</p>
<pre>rpm -e --nodeps redhat-release
rpm -e --nodeps yum-rhn-plugin
wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm --import RPM-GPG-KEY-CentOS-5
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.3-3.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-3.el5.centos.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm</pre>
<p>Now the convertion has finished, you can check <em>/etc/redhat-release</em> for an updated information, and the repo&#8217;s config directory for more details on current repoes.</p>
<p>Finally, dont forget to enjoy a FREE CentOS yum updating:</p>
<pre>yum clean all
yum update</pre>
<p>I’m not quite sure if it totally works well. Nevertheless, I&#8217;ve succefully had the system updated, the Xen kernel are running smoothly as well. If I faced any issues, I&#8217;d create a new post at <a href="http://forum.admon.org/rhel-centos/">our redhat/centos support forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.admon.org/convert-rhel-5-to-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

