Showing posts with label RHEL 6. Show all posts
Showing posts with label RHEL 6. Show all posts

Friday, December 6, 2013

10 reasons your enterprise should adopt Red Hat 6.5

http://www.techrepublic.com/blog/10-things/10-reasons-your-enterprise-should-adopt-red-hat-65/

Check out the 10 features that are most notable in the latest version of Red Hat Enterprise Linux. 
redhat_logo_350x169.png
The latest iteration of the Red Hat Enterprise Linux (RHEL) operating system has arrived and it is not only ready for the enterprise, it's ready to re-define and reset the bar for enterprise expectations. With a full host of improvements (and new features), RHEL could easily become the de facto standard for enterprise platforms.
If you're not sure of this claim, or simply cannot believe the claim, I offer up to you ten reasons why your enterprise should adopt Red Hat Enterprise Linux.

1. Precision Time Protocol

If your company requires time to be measured in microseconds, you need a platform that works with the Precision Time Protocol (PTP). PTP enables sub-microsecond clock accuracy over a local area network. If you depend upon high-speed, low-latency applications (such as those used in the trading industry), PTP is a must-have.

2. Easy application image deployment

There's a new tool in town (or at least a renamed tool), called Docker. With Docker you can easily deploy application images within containers. Each of these containers run the application as if it were on a virtual machine. This means you no longer have to suffer the overhead of deploying a full-blown virtual operating system just to run a simple application. This will not only make your virtual environment much more efficient, it'll also be far more cost effective.

3. Open hybrid cloud

RHEL 6.5 supports both OpenStack and OpenShift technologies. OpenStack is an open source cloud computing platform and OpenShift automates the provisioning, management, and scaling of cloud computing platforms. Together these two pieces work to create a Platform as a Service (PaaS). This, in conjunction with Docker creates an incredibly flexible cloud environment that can serve the enterprise needs in many ways.

4. Enhanced security

RHEL 6.5 enjoys numerous security upgrades. Key to the enhancements is a centralized certificate trust store which provides standardized certificate access for all security services. There are also tools that support the OpenSCP implementation of the Security Content Automation Protocol (SCAP). This protocol was developed by US National Institute of Standards and Technology and is central for auditing and verifying security configurations. With this included standards-based technology, it is possible to ensure a RHEL server configuration meets very stringent standards.

5. Network activity views

If you're an administrator that likes to know specifically what is going on with your network, RHEL 6.5 has what you're looking for. The latest version of Red Hat offers a comprehensive view of all network activity. With these new capabilities, administrators will be able to inspect Internet Group Management Protocol (IGMP) data in order to list multicast router ports, multicast groups with active subscribers (and their associated interfaces). 

6. Improved virtualization tools

There are plenty of improvements to the virtualization tools included with RHEL 6.5. High on this list is the ability to dynamically enable or disable virtual processors in active guests. With this new addition, RHEL can now better interact with cloud-based elastic workloads. Virtual guest memory has also been improved, with configurations that support up to 4TB of memory on the Linux built-in, kernel-based virtual machine hypervisor.

7. Subscription management

RHEL 6.5 now boasts a revised Subscription Management. With this new tool you have the choice of having your server connect to the Red Hat Customer Portal or to an on-premise subscription management service set up using the Subscription Asset Manager. With the server and the service connected, your company will enjoy centralized control of all subscription assets. Another benefit of this service is that you gain enhanced reporting for multiple systems.

8. Faster dump files

If you've ever had to deal with large kernel dump files, you know they can cause problems. That is no more with RHEL 6.5 The new system is now capable of handling incredibly large dump files faster. Thanks to a new compression algorithm (LZO), dump files are created far faster than previous iterations. Enhancements to the dump tools tracing and testing commands provides additional even monitoring capabilities.

9. Improved storage

Anyone working with RHEL 6.5 will see a marked improvement of storage. One reason for this is the improved control and recover when working in iSCSI or Fiber Channel Storage Area Networks. The latest release also includes a solid state driver (SSD) controller interface as well as support for NVM Express-based SSDs. It is also now possible to configure over 255 (Logical Unit Number) LUNs connected to a single iSCSI target.

10. Improved overall performance

Above everything, Red Hat Enterprise Linux 6.5 enjoys an over all performance increase that is noticeable  – which, in turn, translates to more reliable environments, cost savings, and happier end users/CTOs. This improved performance means your critical applications can be run more effectively – which translates to a better bottom line.
Red Hat Enterprise Linux 6.5 could very easily herald a new king of the mountain in the enterprise. With the newest release, your company will enjoy more reliability, more security, and an improved ROI. 

Fact sheet: Red Hat Enterprise Linux 6.5

http://www.techrepublic.com/blog/linux-and-open-source/fact-sheet-red-hat-enterprise-linux-65/

Take a quick look at some of the updates and changes you'll see in Red Hat Enterprise Linux 6.5. 

The latest iteration of Red Hat Enterprise Linux (6.5) is now available, and it's a serious contender to usurp all other platforms as king of the enterprise space. This particular release was designed specifically to simplify the operation of mission-critical SAP applications. The new release focuses on key enterprise-specific areas, including:
  • Subscription management services
  • Scalability
  • Networking
  • Storage
  • Virtualization
  • Security

What we know

Kernel:
  • The pm8001/pm80xx driver adds support for PMC-Sierra Adaptec Series 6H and 7H SAS/SATA HBA cards, plus PMC Sierra 8081, 8088, and 8089 chip-based SAS/SATA controllers
  • Configurable Timeout for Unresponsive Devices
  • Configuration of Maximum Time for Error Recovery
  • Lenovo X220 Touchscreen Support
  • New Supported Compression Formats for makedumpfile
Networking:
  • Precision Time Protocol (PTP)
  • Analyzing the Non-Configuration IP Multicast IGMP Snooping Data
  • PPPoE Connections Support in NetworkManager
  • Network Namespace Support for OpenStack
  • SCTP Support to Change the Cryptography Hash Function
  • M3UA Measurement Counters for SCTP
  • Managing DOVE Tunnels Using iproute
  • WoWLAN Support for Atheros Interfaces
  • SR-IOV Functionality in the qlcnic Driver
Security:
  • OpenSSL Updated to Version 1.0.1
  • Smartcard Support in OpenSSH
  • ECDSA Support in OpenSSL
  • ECDHE Support in OpenSSL
  • Support of TLS 1.1 and 1.2 in OpenSSL and NSS
  • OpenSSH Support of HMAC-SHA2 Algorithm
  • Prefix Macro in OpenSSL
  • NSA Suite B Cryptography Support
  • Shared System Certificates
  • Automatic Synchronization of Local Users Centrally in Identity Management
  • ECC Support in NSS
  • Certificate Support in OpenSSH

A new time protocol

There are specific enterprises (such as trading-related industries) where application latency must be measured in microseconds. Because of this need, Red Hat Enterprise Linux 6.5 now supports sub-microsecond clock accuracy over the local area network (LAN) using the Precision Time Protocol (PTP). This precision time synchronization is key to enable better performance for high-speed, low-latency applications.

Networking

PTP isn't the only improvement to the network subsystem. Red Hat Enterprise Linux 6.5 improved networking includes new capabilities that enable system administrators to inspect Internet Group Management Protocol (IGMP) data to list multicast router ports and multicast groups with active subscribers (and their associated interfaces). The improvements in networking allow the Red Hat server to better meet the needs of modern network scenarios.

Next-gen enterprise security

The latest iteration of Red Hat Enterprise Linux goes a long way to integrate security. One of the main changes is the addition of a centralized certificate trust store that enables standardized certificate access for security services. Also added into this release is OpenSCAP 2.1, an implementation of the National Institute of Standards and Technology’s (NIST) Security Content Automation Protocol (SCAP) 1.2 standard.

Virtualization

One of the big improvements with virtualization in Red Hat Enterprise Linux 6.5 is the ability to enable and disable virtual processors CPUs (vCPUs) in active guests. This improvement makes it an ideal choice for elastic workloads. Also, the handling of memory intensive applications within guests has been improved, thanks to the inclusion of support for up to 4 TB of memory on the Kernel-based Virtual Machine (KVM) hypervisor. Lastly, integration with GlusterFS volumes is now supported, and this provides direct access to the distributed storage platform, which greatly improves performance when accessing either Red Hat Storage or GlusterFS volumes.

Storage

Storage is crucial to any enterprise. You need to have reliable and fast access to data, including portability. With Red Hat Enterprise Linux 6.5, customers are able to deploy application images in containers created in physical, virtual, or cloud environments. This feature is accomplished using Docker, an open-source project to package and run lightweight, self-sufficient containers. Red Hat Enterprise Linux 6.5 has also improved support for NVM Express-based Solid Sate Drives (SSDs), which standardizes the interface for PCIe-based SSDs. If you can afford a server loaded with SSDs, the performance increase is exceptional -- and Red Hat fully understands that.
Scalability has been improved within Red Hat Enterprise Linux 6.5 as well. It's now possible to configure more than 255 Logical Unit Number (LUNs) connected to a single iSCSI target. Administrators can also control and recover SAN for iSCSI. There are numerous other storage-centric improvements (Fibre Channel, updates to kexec/kdump mechanism, and more). Finally, Red Hat Enterprise Linux 6.5 makes it easier to track and manage the consumption of subscriptions across the entire enterprise.

Resources

For more information about Red Hat Enterprise Linux 6.5, visit the resources below:

Thursday, December 6, 2012

Red Hat Enterprise Linux 6 – Red Hat Enterprise Linux 6.4 – is now available.


Key new features and enhancement details include:

Identity Management
  • System Security Services Daemon (SSSD) enhancements improve the interoperability experience with [Microsoft Active Directory] by providing centralized identity access control for Linux/Unix clients in a heterogeneous environment.
File system
  • pNFS (Parallel NFS) client (file layout only) remains in technology preview, however now delivers performance improvements with the addition of Direct I/O for faster data access. This drives particular performance benefits for I/O intensive use cases including database workloads.
Virtualization
  • Red Hat Enterprise Linux 6 now includes the Microsoft Hyper-V Linux drivers, which were recently accepted by the upstream Linux community, improving the overall performance of Red Hat Enterprise Linux 6 as a guest on Microsoft Hyper-V.
  • Installation support for VMware and Microsoft Hyper-V para-virtualization drivers. This new feature enhances the user deployment experience of Red Hat Enterprise Linux as a guest in either of these virtualization environments.
  • In this release, KVM virtualization virtio-scsi support, a new industry storage architecture, provides industry leading storage stack scalability.
Management
  • The use of swap functionality over NFS enables more efficient read/write tradeoffs between local system memory and remote disks. This capability increases performance in very large, disk-less server farms seen in ISP and Web hosting environments.
  • Enhancement in c-groups delivers the ability to migrate multi-threaded applications without errors.
  • Optimized perf tool for the latest Intel processors
Storage
  • New system log features identify mapping from block device name to physical device identifier – allowing an administrator to easily locate specific devices as needed.
Productivity Tools
  • Microsoft interoperability improvements with Microsoft Exchange and calendar support in Evolution. Productivity functions, such as calendar support with alarm notification and meeting scheduling is improved.
  • Customers such as animation studios and graphic design houses now have support for the newer Wacom tablets.

Saturday, June 9, 2012

RHCSA RHCE RHEL6 Great Material Resources pdf Collections

Rackspace slides by Nathan Isburgh for  RedHat Enterprise Linux

Intro to Apache
Intro to Dns
Intro to Linux

Introduction     
Hardware    
Linux Big Picture
Shells          
Filesystems     
Processes       
SA-Users, Groups,..>
SA-Troubleshootin..>
SA-Performance  
SA-Kernel       
SA-Filesystem Adm..>
SA-Scripting, cro..>
SA-Software Insta..>
Net-Overview.pdf    
Net-Configuration..>
Net-Troubleshooti..>
Book.pdf               
Labs.pdf               
One Page Linux Refer..>
Skills Test.pdf        
Syllabus.pdf           
vim-ref-card.pdf       
vimcourse.pdf  


Linux TroubleShoot

Book.pdf
html


Mysql Troubleshoot

Book
Lecture
Maatkit


Mysql
Introduction       
MySQL_Overview   
RDBMS_Basics     
MySQL_Basics     
SQL_Basics       
MySQL_Access_Cont..> 
MySQL_Basic_Admin..> 
Storage_Engines  
Basic_Server_Perf..> 
Basic_Database_St..> 
Book.pdf            
create-moviedb.sql      
dumpdata-formatted.sql  
load-moviedb.sql      
moviedb.schema        
rhce-rhel5
 00-Intro.pdf            
 01-Boot_Process.pdf     
 02-Package_Managemen..> 
 03-System_Administra..> 
 04-Filesystem_Admini..> 
 05-Users_and_Groups.pdf 
 06-Kernel_Features.pdf  
 07-File_Sharing.pdf     
 08-Web_Services.pdf     
 09-Network_Services.pdf 
 10-Extra_Labs.pdf       
 11-DNS.pdf              
 12-Email_Services.pdf   
 13-Network_Security.pdf 
 14-Extra_Labs.pdf       
 Book.pdf                
 Syllabus.pdf         
rhce-rhel6
 00-Intro.pdf            
 01-Boot_Process.pdf     
 02-Package_Managemen..> 
 03-System_Administra..> 
 04-Filesystem_Admini..> 
 05-Users_and_Groups.pdf 
 06-Kernel_Features.pdf  
 07-File_Sharing.pdf     
 08-Web_Services.pdf     
 09-Network_Services.pdf 
 10-DNS.pdf              
 11-Email_Services.pdf   
 12-Network_Security.pdf 
 13-Various.pdf          
 Book.pdf                
rhcsa-rhce-rhel6
00-Intro.pdf            
01-Boot_Process.pdf     
02-Package_Managemen..> 
03-System_Administra..> 
04-Filesystem_Admini..> 
05-Users_and_Groups.pdf 
06-Kernel_Features.pdf  
07-File_Sharing.pdf     
08-Web_Services.pdf     
09-Network_Security.pdf 
10-Virtualization.pdf   
11-System_Administra..> 
12-PAM_Kerberos_RAID..> 
13-File_Sharing.pdf     
14-CGI_Squid.pdf        
15-Network_Services.pdf 
16-DNS.pdf              
17-Email_Services.pdf   
18-RPM_iSCSI.pdf        
Book.pdf  
rhcsa-rhel6
00-Intro.pdf            
01-Boot_Process.pdf     
02-Package_Managemen..> 
03-System_Administra..> 
04-Filesystem_Admini..> 
05-Users_and_Groups.pdf 
06-Kernel_Features.pdf  
07-File_Sharing.pdf     
08-Web_Services.pdf     
09-Network_Security.pdf 
10-Virtualization.pdf   
Book.pdf                
smtp
Book-Fullsize
 


Tuesday, May 29, 2012

Advance Red Hat Linux System Administration (Version RHEL 6)


Audience:

IT professionals who have basic and intermediate level Red Hat System Administration knowledge and want the skills to be full-time enterprise Advance Linux administrators

Course Objective:

By the end of this course, candidates will be able to administer and troubleshoot file systems and partitioning, logical volume management, access control, and package management. 

Candidate will also get knowledge of automated installations, command line access, network configuration and troubleshooting, LVM & RAID administration, implementation of NFS, CIFS & autofs, managing user accounts, network user accounts with LDAP, managing SELinux, managing installed services like DNS/DHCP/HTTP, log management, hard disk health check, managing processes, tuning and maintaining the Kernel and System Recovery Techniques.

In addition this course will also discuss about Linux Security Model (IPtables, TCP Wrapper, PAM), Scripting basics (Perl/Python), Linux Virtualization and new features of RHEL 6.

 Prerequisites:
 RHCE level knowledge

Course Outline:

 DAY 1:

Unit 1: Automated Installations of Red Hat Enterprise Linux
-Objectives: Create and manage Kickstart configuration files; perform installations using Kickstart

b) Explain Major version upgrade and minor version upgrade
c) Discuss about the tools available for Server deployment(Cobbler, RHN, Spacewalk etc..)

Unit 2: Accessing the Command Line
Objectives: Access the command line locally and remotely; gain administrative privileges from the command line
Unit 3: Intermediate Command Line Tools
Objectives: Use hardlinks, archives and compression, and vim
Unit 4: Regular Expressions, Pipelines, and I/O Redirection
Objectives: Use regular expressions to search patterns in files and output; redirect and pipe output

Unit 5: Network Configuration and Troubleshooting
Objectives: Configure network settings; troubleshoot network issues

Discuss and demonstrate Network  bonding
Static route
Different  native tools available for trouble shooting network issues
How to change network speed and other parameters of NIC

DAY 2:

Unit 6: Managing Simple Partitions and File Systems
Objectives: Create and format simple partitions, swap partitions, and encrypted partitions

How to  add disks to Linux server (Local and Network)
Discuss about NAS , SAN and ISCSI
How to  add a new LUN to Linux server
Concepts of Multipathing-Demonstrate Multipathing  using ISCSI devices
Concepts of Udev –Explain different udev command like udevinfo . etc..
Configuring  RAW file system
Different  file systems –ext3/ext4

Unit 7: Managing Flexible Storage with the Logical Volume Manager (LVM) and RAID
- Objectives: Implement LVM and LVM snapshots

a)Difference between LVM1 and LVM2
b) How to migrate to LVM2
c) Demonstrate Export and import of VG 
d) Demonstrate restoring LVM after deletion
e)Important  commands –LVS,PVS,VGS etc…
Discuss and demonstrate LVM mirroring
Discuss and demonstrate RAID configuration and Software Raid
Different  levels of RAID,
Which RAID level  and where it is suitable
Manage LVM with Multipathing

DAY 3:

Unit 8: Access Network File Sharing Services; NFS and CIFS
- Objectives: Implement NFS, CIFS, and autofs

2) Mount and umount nfs share-
3) How to forcefully umount a file system – Its requirement
4) Difference between NFS v3 and v4
5) Various options with NFS export and when & where do we use these options.
6) Autofs- Different Maps-Built-in map  “-host”

Unit 9: Managing User Accounts
- Objectives: Manage user accounts including password aging

Unit 10: Network User Accounts with LDAP
- Objectives: Connect to a central LDAP directory service
Unit 11: Controlling Access to Files
- Objectives: Manage group memberships, file permissions, and access control lists (ACL)

Unit 12: Managing SELinux - Objectives: Activate and deactivate SELinux; set file contexts; manage SELinux booleans; analyze SELinux logs
Unit 13: Installing and Managing Software
- Objectives: Manage software and query information with yum; configure client-side yum repository files

Different methods to install software in Linux

DAY 4:

Unit 14: Managing Installed Services
- Objectives: Managing services; verify connectivity to a service

DNS/DHCP/HTTP - Explain and Demonstrate how to configure these services
How to configure Apache, How to  configure and load Plugins  with  Apache, Tuning Apache for better performance.

Unit 15: Analyzing and Storing Logs
- Objectives: Managing logs with rsyslog and log rotate

1) Discuss and demonstrate how to utilize the tool “smartctl”   to check the status of disk health.

Unit 16: Managing Processes
- Objectives: Identify and terminate processes, change the priority of a process, and use cron and at to schedule processes

Explain about Load Average
Memory management concept ( Buffer, Cache)

Unit 17: Tuning and Maintaining the Kernel
- Objectives: List, load, and remove modules; use kernel arguments

a) Discuss and demonstrate different performance monitoring tools and How to utilize the o/p of those tools for tuning the performance

DAY 5:

Unit 18: System Recovery Techniques
- Objectives: Understand the boot process and resolve boot problems

 Additional Topics (overview)

Security – Different Network security tools available in Linux-Iptables,Tcp  wrapper, PAM security modules.
 Scripting/Perl/Python-Give an introduction so that resource can start to learn themself
Demonstrate Virtualization
New features in RHEL6

Sunday, February 19, 2012

RHEL6 Official Training Collection (2011)

RED HAT SYSTEM ADMINISTRATION I RH124-RHEL6-en-1-20101029

https://docs.google.com/open?id=0B8MiFxCPETmdZTEwYjcwODctNjZlYS00MzUyLTljNGUtNTdlMjg2MmE3MGZm
https://docs.google.com/open?id=0B8MiFxCPETmdZGQ1ZDdjNGEtMGRkNi00MzI2LTkxZDMtNzJlNWYwODcwZGMz
https://docs.google.com/open?id=0B8MiFxCPETmdMTk0Zjk4ZGQtOTVhYS00YTZiLTkyZGYtN2NmNjVmNjY0ZDg0
https://docs.google.com/open?id=0B8MiFxCPETmdY2E5ZjA1MDItZDBmMy00MzdhLWI1OWItZjZiZmYxMTgxOWM5
https://docs.google.com/open?id=0B8MiFxCPETmdNmU0MGJmMmMtYTE0Ny00MTA4LTkwYzAtNzQzYjgwNmQzYzUy
https://docs.google.com/open?id=0B8MiFxCPETmdNjRlMTk2OGItYTEzMS00MTJiLWEyN2YtYWUwNDQ1M2EwNjc1
https://docs.google.com/open?id=0B8MiFxCPETmdOTNiOTVkMjQtNDUxOS00MGFhLTk1M2YtNThmMjc3NjY4MzBk
https://docs.google.com/open?id=0B8MiFxCPETmdYTM5NTA5MzQtOGYxYy00YTk3LTg1NDktMjc5MGU1ZTU4ZTYz
https://docs.google.com/open?id=0B8MiFxCPETmdODlmMThiMTAtNTQyYy00OTc1LTk0MDgtMzU0Njg2MjViMTIy
https://docs.google.com/open?id=0B8MiFxCPETmdY2I0MDMzNGUtNjNkZS00NGVjLTllMzUtZjdlNjJjMGYxYmI0
https://docs.google.com/open?id=0B8MiFxCPETmdYmFjYTIxMTktZWUyOS00ODJhLWI3ZWMtZDRiZThhMzBhOGYx
https://docs.google.com/open?id=0B8MiFxCPETmdNTI2YzUwZmYtNzBlNC00YTQ4LWFkMDktMzQyZWQ4ZGZkNTRm

RED HAT SYSTEM ADMINISTRATION II RH135-RHEL6-en-2-20110131
https://docs.google.com/open?id=0B8MiFxCPETmdNTI1ZWEyN2MtMzg0Ny00MzE0LThlNDAtZjllMGU5NjU2ODNi
https://docs.google.com/open?id=0B8MiFxCPETmdYjBhZmM4MDItNmNkMy00ZDNiLWExNWYtYTU2YjM1YTViNjYw
https://docs.google.com/open?id=0B8MiFxCPETmdNDk4NzIyZmMtYmY2My00NjE3LWFlNmYtYjNiMGE2ZWVjMDYx
https://docs.google.com/open?id=0B8MiFxCPETmdMmQ2ZGFhNmEtNDYwYS00MTI0LWI3MjgtNzUwZWUyOTFjN2U0
https://docs.google.com/open?id=0B8MiFxCPETmdN2YyY2JhNTUtZTgyOC00OTllLThjMjctNTQ2NWQzZTI2YzE4
https://docs.google.com/open?id=0B8MiFxCPETmdODcwM2I1MGMtYmMxYy00Y2VmLThkYjYtMTJlMDE3ODE1Zjc4
https://docs.google.com/open?id=0B8MiFxCPETmdNGRjNWZhNmEtMWZmMC00ZTM0LWJkMmYtMTc2NGI3MzY5M2Q0
https://docs.google.com/open?id=0B8MiFxCPETmdMzQwMmVjMTMtN2ExNy00OGM4LWE5ZDgtZTA4OGNjMzI1Zjcz
https://docs.google.com/open?id=0B8MiFxCPETmdYTVkOTJjNDMtNDRiZi00OTczLThlNDItNDlmM2I1Njg2Mzg3
https://docs.google.com/open?id=0B8MiFxCPETmdMzk3ZjY4OGUtMDI0MC00NTUxLThkNzctZTM0NGIyZWU5ZDcz
https://docs.google.com/open?id=0B8MiFxCPETmdNGQ2NDYxM2EtNDBiZi00OWUyLTg5NmQtMGFkZGEwOWY5ZTBl
https://docs.google.com/open?id=0B8MiFxCPETmdYWNhZGM3YjUtZTc2YS00MjZmLWEwNjQtOTVmNTBkMzFkODA0

RED HAT SYSTEM ADMINISTRATION III RH255-RHEL6-en-2-20110124

https://docs.google.com/open?id=0B8MiFxCPETmdNGE1YzNlOWYtOGQ2Mi00ZWU5LTk4MTktZjhiYjdhZGZjMzhi

Reference: Hands-on Guide to the Red Hat Exams RHSCA and RHCE Cert Guide and Lab Manual

https://docs.google.com/open?id=0B8MiFxCPETmdOTIyODdiZjYtOTZmNi00OWZjLTlhNTgtMzY4M2E0MmE4YWNk

Tuesday, August 16, 2011

Advantages of RHEL6 over RHEL5

Red Hat Enterprise Linux (RHEL) is an open source, linux based operating system developed by Red Hat Inc. It is popularly used as server operating system. Its first release was the RHEl 2.1 which was released in the year 2002. After the first version of RHEL, new and better versions quickly followed like RHEL 3,4,5,etc. Now in 2010, the newest version has been released. It is RHEL 6. Now in this post lets discuss the mainadvantages of RHEL6 over RHEL5.
RHEL6 being the latest release obviously have a lot of new features. The advantages are:
  •   A new level of virtualisation
          RHEL6 introduces the use of KVM (Kernel-based Virtual Machine) as its hypervisor. In the earlier releases Xen hypervisor was used. The main advantage of KVM is that a new kernel should not be installed like in Xen. It also supports the installation of many virtual operating systems like Windows, Linux, Solaris,etc. It is easy to manage.
  •   Ext4 is made the default filesystem
          Ext4 has many new advantages than Ext3 which is used in earlier versions of RHEL. Ext4 is comparatively faster and easy to manage. It supports supports up to 100TB with the addition of Scalable Filesystem Add-one.   
      
  •  Improved level of Security
          
    RHEL6 has advanced level of security. SELinux (Security Enhanced Linux) features are improved and a new set of SELinux rules has been added to provide security to virtual machines from hackers and attackers. This new feature is called SVirt. 
  •  New Networking Features
         
    RHEL6 is released with improved and new networking features. It supportsIPv6. It uses NFSv4 (Network File Transfer) for the sharing of files in the network rather than NFSv3. It also supports iSCSI (internet Small Computer System Interface) partitions. The network manager in RHEL6 supports Wi-Ficapabilities.
  •  Use of Drivers
         
    RHEL6 has drivers for speeding up operations under KVM, VMware and Xen.
  • Increase in the support period provided by Red Hat.
          
    RHEL6 has a long period of support provided by Redhat. It provides updates for 7 years and also a extra 3 years of service as  paid service. Therefore it means that its period of support is twice the period of support provided by other linux distributors like Ubuntu , Debian, etc.
  • Improvements of minor updates
          
    Red Hat releases minor versions such as 6.1, 6.2. These minor versions are the accumulated updates of the major version. The new minor releases will not only contain bug fixes but will also have major changes and new features.  
RHEL6-gnome-desktop
RHEL6 has been released with many new feature which make RHEL6 more useful than RHEL5. RHEL6 is somewhat similar to Fedora 12, so the Fedora users should find RHEL6 familiar. Due to all these reasons the release of RHEL6 is a huge step of advancement and also an achievement in the field of open source. 

Thursday, August 4, 2011

How to setup Redhat cluster and GFS2 on RedHat Enterprise Linux 6 on Vmware ESXi

1) Installing RHEL6 on Vmware esxi with clustering packages.


a) Creating a RedHat Enterprise Linux 6.0 Virtual image.

i) Open vSphere Client by connecting to a Vmware ESXi Server.

ii) Login into your vSphere Client

iii) Goto File -> New -> Virtual Machine (VM).

iv) Select Custom option in Create New Virtual Machine Window and click Next

v) Give a name to the virtual machine(VM) ( In my case name of my virtual machine is – RHEL6-ClusterNode1) and click next.

vi) Select a resource pool where you want your VM to reside ( In my case , I have created a resource pool named RHEL6-Cluster.) and click Next.

vii) Select a datastore to store your VM files and Click Next.

viii) Select VM version which is suitable for your environment.( In my case VM version is 7) and click Next.

ix) Specify the guest operating system type as Linux and select version as RedHat Enterprise Linux 6.0 -32 bit. Click Next.

x) Select number of CPU for the VM ( you can assign multiple CPU if your processor is multicore.) (in my case : I had assigned 1 cpu) and Click Next.

xi) Configure the memory for your VM (assign the memory wisely, so that VM performance is not degraded when multiple VM’s run in parallel). Click Next.

xii) Create Network Connection for your VM ( generally do not change the default connection ) . Click Next.

xiii) Select SCSI controller as LSI Logic Parallel , Click Next.

xiv) Select “Create New Virtual Disk” and Click Next.

xv) Allocate virtual disk capacity for the VM as needed.( In my case : virtual disk size was assigned as 10GB. Select “Support Clustering features such as fault tolerance. Select “ Specify a datastore “ and assign a datastore to store the VM. Click Next

xvi) Under Advanced options, Let the Virtual Device Node be SCSI(0:0). Click Next.

xvii) On “the Ready to Complete” window select “Edit the virtual machine settings before completion “ and Click continue.

xviii) On the “ RHEL6-Cluster1 – VM properties window”, select New SCSI controller and change the SCSI bus sharing type from None to “Virtual” so that virtual disks can be shared between VM’s

xix) Similarly for “New CD/DVD” supply either client device or host device or Operating system installer ISO file located on the datastore to start the installation of the operating system. Note: do not forget to enable “Connect at power on “ option for Host Device or Datastore ISO device option.

xx) Now Click Finish, No you are ready to start the installation of the RHEL6 operating system on Virtual Machine.

2) Installing RedHat Enterprise for Linux 6.0 on the Virtual Machine.

a) File System Partitioning for the RHEL6.0 VM.

i) Start the RHEL Installation.

ii) Select custom partitioning for disk.

iii) Create a /boot partition of 512MB

iv) Create physical LVM Volume from remaining free space on the virtual disk.

v) Create logical volume group and create a logical volume for swap and “/” on the available LVM disk space.

vi) Apply the above changes to create the partition structure.

b) Selecting the packages required for clustering

i) Select the packages to be installed on to the disk by selecting custom package selection ( Enable additional repository High Availability, Resilient storage

ii) Select all packages under High Availability, Resilient storage. Click next to start installation of the operating system.

Note : At the end of the installation cman, luci, ricci, rgmanager, clvmd, modclusterd, gfs2-tools packages will get installed onto the system.

iii) After the operating system is installed, Restart the VM to boot into the VM and perform post installation tasks and shutdown the guest RHEL6.0 VM.


3) Cloning the RHEL6.0 VM image into two copies named as RHEL6-Cluster2 and RHEL6-Cluster3.

i) Open the datastore of your VMware ESXi by right clicking and selecting “Browse Datastore” on the datastore in the summary page of the ESXi console.

ii) Create two directories RHEL6-Cluster2 and RHEL6-Cluster3

iii) Copy the VM image files from RHEL6-Cluster1 directory to above two directories i.e., RHEL6-Cluster2 and RHEL6-Cluster3.

iv) Once you have copied the all the files to respective directory, browse to RHEL6-Cluster2 directory under datastore and locate “RHEL6-Cluster1.vmx” file, right click on it and select “Add to Inventory”.

v) In the “Add to Inventory” window add the VM as RHEL6-Cluster2 and finish the process

vi) Similarly perform previous step to add RHEL6-cluster3 to the inventory.

4) Adding a shared harddisk to all the 3 VM’s

a) Adding a hard disk for clustering to RHEL6-Cluster1 VM/node.

i) In vSphere Client select RHEL6-Cluster1 VM , Open Virtual Machine Properties window by right clicking and selecting “Edit Settings”.

ii) Click on “Add” in Virtual Machine Properties window , Add hardware window pops up.

iii) Select Hard Disk as device type, Click Next.

iv) Select “ Create a new virtual disk” and click Next.

v) Specify the required disk size and select Disk Provisioning as “Support clustering features such fault tolerance” and Location as “Store with the virtual machine” Click Next.

vi) In the Advanced Options window, Select the Virtual Device Node as : SCSI (1:0). Click Next. Complete the “Add hardware “ process.

vii) On the “ RHEL6-Cluster1 – VM properties window”, select SCSI controller 1 and change the SCSI bus sharing type from None to “Virtual” so that virtual disks can be shared between VM’s.

b) Sharing the RHEL6-Cluster1 node’s additional hard disk with other two VM/cluster nodes.

i) In vSphere Client select RHEL6-Cluster2 VM , Open Virtual Machine Properties window by right clicking and selecting “Edit Settings”.

ii) Click on “Add” in Virtual Machine Properties window , Add hardware window pops up.

iii) Select Hard Disk as device type, Click Next.

iv) Select “Use an existing virtual disk” and click Next.

v) Browse the datastore, locate RHEL6-cluster1’ directory and select RHEL6-Cluster1_1.vmdk ( Note : Additional hardisk will named as VMname _1 or 2 or 3.vmdk . Do not select RHEL6-Cluster1.vmdk as this your VMimage file) to add as second hard disk to the VM. Click Next.

vi) In the Advanced Options window, Select the Virtual Device Node as : SCSI (1:0). Click Next. Complete the “Add hardware “ process.

vii) On the “ RHEL6-Cluster2 – VM properties window”, select SCSI controller 1 and change the SCSI bus sharing type from None to “Virtual” so that virtual disks can be shared between VM’s.

c) Similarly perform the above steps described under section (b) for the 3rd node.

5) Configuring the static IP address, hostname and /etc/hosts file on all three nodes.

Assign the static IP addresses to all the three VM as below

Ex :

192.168.1.10 RHEL6-Cluster1

192.168.1.11 RHEL6-Cluster2

192.168.1.12 RHEL6-Cluster3

Gateway in this case is :192.168.1.1

DNS in this case is : 192.168.1.1

DOMAIN in this case is: linuxlabs.com

i) To Assign above IP and hostname Start all the three VM’s

ii) Note : When you have started the VM, The network manager daemon/service on RHEL6 would have started the network by getting an ipaddress from DHCP and assigning it to eth0 or eth1. Note down the hardware address of your Active Ethernet by running ifcfg command ( The HWaddr would be like 00:0C:29:86:D3:E6 etc as this needed to added into “/etc/sysconfig/network-scripts/ifcfg-eth0” depending upon which Ethernet port is active on your image.).

iii) Disable and stop the Network Manager daemon as other cluster related daemons require this daemon to be off.

To stop the network manager daemon, run:

/etc/init.d/NetworkManager stop

To disable the network manager daemon service , run:

Chkconfig –level 345 NetworkManager off

iv) Add the following details to “/etc/sysconfig/network-scripts/ifcfg-eth0” file

DEVICE="eth0"

NM_CONTROLLED="no"

ONBOOT="yes"

HWADDR=00:0C:29:96:D3:E6

TYPE=Ethernet

BOOTPROTO=none

IPADDR=192.168.1.10

PREFIX=24

GATEWAY=192.168.1.1

DNS1=192.168.1.1

DOMAIN=linuxlabs.com

DEFROUTE=yes

IPV4_FAILURE_FATAL=yes

IPV6INIT=no

NAME="System eth0"

UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03


Note : HWADDR and DEVICE may change from VM to VM.

v) Now add hostnames as RHEL6-cluster1 or RHEL6-Cluster2 or RHEL6-Cluster3 to “/etc/sysconfig/network” file inside each VM.

After adding the hostname the “/etc/sysconfig/network” file will look like as below:

NETWORKING=yes

HOSTNAME=RHEL6-Cluster1

vi) Now add hostname resolution information to /etc/hosts file. As below.


#192.168.1.232 RHEL6-Cluster1 # Added by NetworkManager

192.168.1.10 RHEL6-Cluster1.linuxlabs.com

#127.0.0.1 localhost.localdomain localhost

#::1 RHEL6-Cluster1 localhost6.localdomain6 localhost6

192.168.1.11 RHEL6-Cluster2.linuxlabs.com

192.168.1.12 RHEL6-Cluster3.linuxlabs.com

Note : Similarly perform the above steps on the other two VM’s .

vii) After configuring all the 3 VM’s , Restart the VM’s and Verify the network connection by pinging each other VM to confirm the network configuration is correct and working fine.


6) Configuring the cluster on RHEL6.0 with High Availability Management web UI.

i) Start the luci service on all the 3 nodes by running command in terminal.
service lcui start

ii) Start the ricci service on all the 3 nodes by running the command in terminal. Ricci daemon runs on 11111 port.

service ricci start

iii) Open the browser, type https://rhel6-cluster1.linuxlabs.com:8084/ to High Availability Management Console.

iv) Login into the console with your root user credentials.

v) Create a cluster as “mycluster”

vi) Add All the 3 client nodes to the cluster as below:

Node Host name Root Password Ricci Port

RHEL6-Cluster1.linuxlabs.com ********* 11111

RHEL6-Cluster2.linuxlabs.com ********* 11111

RHEL6-Cluster3.linuxlabs.com ********* 11111

Click on “Create Cluster” to create and Add all the nodes to the cluster.

By performing above action , the all the 3 nodes are now part of the cluster “mycluster” . cluster.conf under “/etc/cluster/cluster.conf “ on all the three nodes gets populated like some thing as below.

[root@RHEL6-Cluster1 ~]# cat /etc/cluster/cluster.conf


7) Creating GFS2 file system with clustering.

a) Once you have created a cluster and added all the 3 nodes as cluster member. Run the following command on all three nodes to verify the cluster node status.

ccs_tool lsnode

the output will be

[root@RHEL6-Cluster1 ~]# ccs_tool lsnode

Cluster name: mycluster, config_version: 1

Nodename Votes Nodeid Fencetype

RHEL6-Cluster1.linuxlabs.com 1 1

RHEL6-Cluster2.linuxlabs.com 1 2

RHEL6-Cluster3.linuxlabs.com 1 3


b) Now start the cman and rgmanager service on all 3 nodes by running command

service cman start

service rgmanager start

c) now check the status of your cluster by running the commands below.

clustat

cman_tool status

The output of the clustat command would be something like:


[root@RHEL6-Cluster1 ~]# clustat

Cluster Status for mycluster @ Wed Jul 6 16:27:36 2011

Member Status: Quorate

Member Name ID Status

------ ---- ---- ------

RHEL6-Cluster1.linuxlabs.com 1 Online, Local

RHEL6-Cluster2.linuxlabs.com 2 Online

RHEL6-Cluster3.linuxlabs.com 3 Online

The output of the cman_tool status command would be something like:


[root@RHEL6-Cluster1 ~]# cman_tool status

Version: 6.2.0

Config Version: 1

Cluster Name: mycluster

Cluster Id: 65461

Cluster Member: Yes

Cluster Generation: 48

Membership state: Cluster-Member

Nodes: 3

Expected votes: 3

Total votes: 3

Node votes: 1

Quorum: 2

Active subsystems: 9

Flags:

Ports Bound: 0 11 177

Node name: RHEL6-Cluster1.linuxlabs.com

Node ID: 1

Multicast addresses: 239.192.255.181

Node addresses: 192.168.1.10

d) Now we need enable clustering on LVM2 by running the command as below:

lvmconf –enable-cluster

e) Now we need to create the LVM2 volumes on the additional hard disk attached to the VM. Follow below commands exactly.

pvcreate /dev/sdb

vgcreate –c y mygfstest_gfs2 /dev/sdb

lvcreate –n mytestGFS2 –L 7G mygfstest_gfs2

Note : By executing the above list of commands serially we would have created physical lvm volume, volume group and logical volume.

f) Now start clvmd service on all 3 nodes by running:

service clvmd start

g) Now we have to create a GFS2 file system on the above LVM volume. To create the GFS2 file system , run the command as below:

Format of the command is as below.

mkfs -t -p -t : -j

mkfs -t gfs2 -p lock_dlm -t mycluster:mygfs2 -j 4 /dev/mapper/mygfstest_gfs2-mytestGFS2

this will format the LVM device and create a GFS2 file system .

h) Now we have to mount the GFS2 file system on all the 3 nodes by running the command as below:

mount /dev/mapper/mygfstest_gfs2-mytestGFS2 /GFS2

where /GFS2 is mount point. You might need to create /GFS2 directory to create a mount point for the GFS2 file system.

i) Congrats, your GFS2 file system setup with cluster is ready for use.

Run the below command to know the size and mount details of the file system by running:

mount

df -kh

8) Now that we have a fully functional cluster and a mountable GFS2 file system, we need to make sure all the necessary daemons start up with the cluster whenever VM are restarted.

chkconfig --level 345 luci on

chkconfig --level 345 ricci on

chkconfig --level 345 rgmanager on

chkconfig --level 345 clvmd on

chkconfig --level 345 cman on

chkconfig --level 345 modclusterd on

chkconfig --level 345 gfs2 on

a) If you want the GFS2 file system to be mounted at startup you can add the filesytem and mount point details to /etc/fstab file

echo "/dev/mapper/mygfstest_gfs2-mytestGFS2 /GFS2 gfs2 defaults,noatime,nodiratime 0 0" >> /etc/fstab