Monday, December 15, 2014

Oracle ASM configuration on linux

Oracle ASM on Linux

ASM RPMs would be required to configure ASM utility on Linux.
This demo has been done on RHEL 5 x86_64 bit.
1. Install RPMs.
‪#‎rpm‬ -ivh oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
#rpm -ivh oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
#rpm -ivh oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
#rpm -ivh oracleasm-support-2.1.4-1.el5.x86_64.rpm
2. Configure ASM
#/etc/init.d/oracleasm configure
Here we have to provide which user and group would be configured for ASM disk. Also it required to mention whether ASM driver should be auto-start or not.
Now ASM utility has been installed and configured on Linux.
You can also configure YUM Repository to install rpms for ASM utility.
YUM Configuration in Linux
Installing RPMs in Linux is very smooth but many times it headache to install all the dependency.
To remove this headache, RHEL comes with YUM utility which automatically takes all the dependency RPMs and installs it smoothly.
Step by step procedure to configure YUM
1. Mount REDHAT Operating System DVD/ISO on the server
2. Make a directory to store rpms from REDHAT DVD/ISO and copy Server directory from mounted DVD/ISO to folder created folder, which will copy all RPMs to local system.
3. Install createrepo RPM which required for YUM repository creation.
4. Create new repository.
5. Remove/move old repo files from /etc/yum.repos.d and create new repo file.
gpgcheck - This is to check the authentication of the repository, which is disabled in this case.
6. Check Configuration
Note:In-order to use yum repository we have to clean the yum meta data, so before installing any package first time, use yum clean all.
Installing vsftpd RPM through YUM