Posts

Showing posts from 2012

How to add Oracle essential packages YUM repo

Normally you will need Oracle essential packages for Oracle 11gR2 Database and RAC installation & configuration. #cd /etc/yum.repos.d #wget http://public-yum.oracle.com/public-yum-ol6.repo #yum list #yum install oracle-rdbms-server-11gR2-preinstall =============== For Other OS's: =============== Download and copy the appropriate yum configuration file in place, by running the following commands as root: Oracle Linux 4, Update 6 or Newer # cd /etc/yum.repos.d # mv Oracle-Base.repo Oracle-Base.repo.disabled # wget http://public-yum.oracle.com/public-yum-el4.repo Oracle Linux 5 # cd /etc/yum.repos.d # wget http://public-yum.oracle.com/public-yum-el5.repo Oracle Linux 6 # cd /etc/yum.repos.d # wget http://public-yum.oracle.com/public-yum-ol6.repo Oracle VM 2 # cd /etc/yum.repos.d # wget http://public-yum.oracle.com/public-yum-ovm2.repo Enable the appropriate repository by editing the yum configuration file     Open the yum configuration file i

How to add remote FTP / HTTP repository to RHEL or CentOS 6/7

To do it, first you need to collect below two details; FTP / HTTP YUM server IP i.e. "10.0.0.1" Packages location on remote YUM server i.e. "/rhel6_64repo/Packages/" Then create a repo file " rhel6_ftp_remote " in "/etc/yum.repos.d/" folder with below content; [rhel6_ftp_remote] name=Remote FTP Repository for RHEL6 $releasever – $basearch baseurl= ftp ://10.0.0.1/rhel6_64repo/Packages/ enabled=1 gpgcheck=0 If you want to add HTTP repo link, then replace "ftp" with "http". [rhel6_http_remote] name=Remote HTTP Repository for RHEL6 $releasever – $basearch baseurl= http ://10.0.0.1/rhel6_64repo/Packages/ enabled=1 gpgcheck=0 To add Local repo, read this article .

How to create and add a Local YUM Repository on RHEL or CentOS 7

How to setup local yum repository on RHEL or CentOS 7?  This tutorial describes how to setup a local Yum repository on CentOS or RHEL 7 system. Later i will show you how you can use this repository to fetch software, security updates and fixes. Local repository is an efficient way to deploy new software's or patches as it will be over LAN where deployment will be fast, saving your internet bill. I have two CentOS 7 systems here one is YUM repository server and another will be Client which will fetch the updates from repository server over FTP protocol. Setting up YUM repo server with FTP: Step 1. Mount CentOS 7 ISO and copy all the RPM packages to a FTP directory: [root@localhost ~]# mount /dev/cdrom /mnt/ mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# mkdir /var/ftp/pub/localrepo [root@localhost ~]# cp -ar /mnt/Packages/* /var/ftp/pub/localrepo/ Step 2. Install vsftpd package and start it's service: [root@localhost ~]# cd /mn

Module Management in RHEL / CentOS 7

The Linux kernel allows drivers and features to be compiled as modules rather than as part of the kernel itself. This means that users can often change features in the kernel or add drivers without recompiling, and that the Linux kernel doesn't have to carry a lot of unnecessary baggage. Want to learn how to manage your modules? It's easy to do, just keep reading. In this tutorial, we'll walk through the steps of seeing what's already loaded in the running kernel, and adding and removing modules from the kernel. What's Loaded 1. To see Loaded Kernel driver or module information for PCI components: [root@localhost ~]# lspci -k 00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)         Subsystem: VMware Virtual Machine Chipset         Kernel driver in use: agpgart-intel 00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01) 00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA

Adding multiple IP addresses on one Ethernet

If we have one network interface, eth0. And when you add IP addresses, you actually create virtual network interfaces named eth0:1, eth0:2, ...... eth0:n. How to set it on temporary basis on all OS's : #ifconfig eth0:1 up [IP address] netmask [chosen netmask, if unsure use 255.255.255.0]. You can add commands like this to your startup scripts to have them come up on reboot, but there is cleaner way which is maintioned below; How to set it Permanently basis on RHEL / CentOS : All interface configuration files are located in "/etc/sysconfig/network-scripts/". Each interface is represented by a file corresponding to ifcfg-eth<x> where <x> represents the unique interface number for that card (e.g. the first interface card is represented by ifcfg-eth0). To create an alias for that interface, you need to create a file in the format of ifcfg-eth0:<y> where <y> represents the alias number (e.g. the 2nd ip for the first card would be ifcfg-eth0:1).

NIC Bonding : Bind multiple Network Interfaces (NIC) Into a Single Interface

The first step is to rename the server-change /etc/sysconfig/network to match your new server name.That’s easy :) Now to the bonding driver. RHEL6 and OL 6 have deprecated /etc/modprobe.conf in favour of /etc/modprobe.d and its configuration files. It’s still necessary to tell the kernel that it should use the bonding driver for my new device, bond0 so I created a new file /etc/modprobe.d/bonding.conf with just one line in it: alias bond0 bonding That’s it, don’t put any further information about module parameters in the file, this is deprecated. The documentation clearly states “Important: put all bonding module parameters in ifcfg-bondN files”. Now I had to create the configuration files for eth0, eth1 and bond0. They are created as follows: File: ifcfg-eth0 DEVICE=eth0  BOOTPROTO=none  ONBOOT=yes  MASTER=bond0  SLAVE=yes  USERCTL=no/ File: ifcfg-eth1 DEVICE=eth1  BOOTPROTO=none  ONBOOT=yes  MASTER=bond0  SLAVE=yes  USERCTL=no File: ifcfg-bond0 DEVICE=bon

Enabling & Disabling Promiscuous mode on Ethernet

                     You can try below things to get it done; In RHEL / CentOS : #/sbin/ifconfig ethX promisc   (Temporary solution, You will loose setting if you reboot VM ) To set it permanently Edit file – #cat /etc/sysconfig/network-scripts/ifcfg-eth1 BOOTPROTO=static DEVICE=eth1 TYPE=Ethernet PROMISC=yes USERCTL=no PEERDNS=no HWADDR=xx:xx:xx:C8:67:0E In SLES : Temporary solution is same as above. But for permanent change edit file “ /etc/sysconfig/network/ifcfg-rth-id-xx:xx:xx:xx:xx:xx” Here you can add line “ ifconfig eth0 promisc ” OR if this doesn’t work add “ PROMISC=yes ” And to disable this mode either simply remove added line from the respective files or use command ; #/sbin/ifconfig ethX -promisc   (Temporary solution)