Professional Documents
Culture Documents
OEL Command
OEL Command
================================
1. Create the LVM physical volume.
pvcreate /dev/sdd
8. Create the directory structure for the MySQL database files on the mounted
logical volume.
cd /mnt/mysql
mkdir /mnt/mysql/var
mkdir /mnt/mysql/var/lib
mkdir /mnt/mysql/var/lib/mysql
Check stripelv
===========================
lvs -a -o segtype,devices,lv_name,vg_name
lvs --segments
Set up of Timezone
============================
ZONE="Asia/Calcutta"
UTC="true"
vi /etc/profile
TZ=�Asia/Calcutta�
export TZ
make a link
ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
=========================================================
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
cat /etc/sysconfig/network-scripts/ifcfg-eth4
DEVICE=eth4
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
cat /etc/modprobe.d/network.conf
alias bond0 bonding
options bond0 arp_interval=1000
arp_ip_target=10.242.161.250,10.242.161.251,10.242.161.252 mode=1 primary=eth4
cat /sys/class/fc_host/host6/port_name
mkswap /root/myswapfile
swapon /root/myswapfile
second way
=====================================
swapoff /dev/vg_rhel6/lv_swap
mkswap /dev/vg_rhel6/lv_swap
swapon /dev/vg_rhel6/lv_swap
=========================================
Extending Lv
===============
lvextend -L +20G /dev/mapper/dbpaysvg-dbpays5data01lv
resize2fs /dev/mapper/dbpaysvg-dbpays5data01lv
Reduce Lv
===============
umount /home/
e2fsck -f /dev/mapper/vg_cloud-LogVol00
resize2fs /dev/mapper/vg_cloud-LogVol00 10G
lvreduce -L 10G /dev/mapper/vg_cloud-LogVol00
e2fsck -f /dev/mapper/vg_cloud-LogVol00
mount /home/
=============================================================
OEL HBA.
==========================================================
Assign MAC address to NIC
/etc/init.d/networking stop
ifconfig eth0 hw ether 02:01:02:03:04:08
/etc/init.d/networking start
========================================================
=========================================
hponcfg -w ILO.xml --------> will captrue all ILO information
cat ILO.xml --------> modifying the file to contain the IP and configuration
======================================================================
command to add UDP in linux server.
=======================================
PORT status.
cp -p /etc/mtab /etc/mtab_backup