DevTech101

DevTech101

oel-6

Linux Disk Management – Multipath Management

Contents 1 Cofiguring Multipathing 1.1 Install Multipath Package. 1.2 Enable The Multipathing Service. 1.3 List Multipath Disks 2 Zoning FC On Linux 2.1 Find the WWN for the Ports 2.2 Issuing a LIP on the HBA 2.3 Fibre Channel Commands 3 Disk Configuration. 3.1 About Device Names And Paths In A Multipath Configuration 3.1.1 Physical …

Linux Disk Management – Multipath Management Read More »

Linux RAID & LVM

LVM stuff pvdisplay vgdisplay lvdisplay Check status cat /proc/mdstat cat /etc/mdadm.conf Make Raid 10 mdadm –create /dev/md30 –run –level=10 –chunk=4 –raid-devices=4 /dev/sda /dev/sdb /dev/sdd /dev/sdf mdadm –examine /dev/md30 mdadm –detail /dev/md30 Make file system mkfs.ext4 -O extent -b 4096 -E stride=128,stripe-width=128 -O ^has_journal /dev/md30 tune2fs -o journal_data_writeback /dev/md30 # append output to /etc/mdadm.conf mdadm –detail …

Linux RAID & LVM Read More »

Creating a Linux Bond With vLan Tags

How to create a vlan interface and start at boot time. First check if the bounding module is loaded. lsmod | grep 8021q /etc/sysconfig/network-scripts/ifcfg-solr DEVICE=solr TYPE=Ethernet BOOTPROTO=none ONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-solr.2018 DEVICE=solr.2018 IPADDR=10.10.18.51 NETWORK=10.10.18.0 NETMASK=255.255.254.0 GATEWAY=10.10.18.1 ONBOOT=yes BOOTPROTO=none USERCTL=no VLAN=yes To test just issue /etc/init.d/network restart or ifup [if_name] To remove the new vlan How to remove …

Creating a Linux Bond With vLan Tags Read More »

OEL + KVM

Make sure to install yum -y install qemu-kvm qemu-img virt-manager libvirt libvirt-python python-virtinst libvirt-client virt-install virt-viewer yum -y install kvm libvirt python-virtinst virt-top virt-manager virt-v2v virt-viewer vim pv Make sure to start/enable – Note: a reboot might be required servicectl start/enable libvirtd.service libvirtd.socket libvirt-guests.service Now run virt-manager

Xsigo Linux – Manually Installing

Installing the Oracle OVN (Xsigo) Linux driver First, Install the firmware. For example: rpm -ivh .noarch.rpm Then, Install the kernel module. For example: rpm -ivh Next, Install the Oracle Virtual Networking user space application. For example: rpm -ivh oclovn-user.x86_64.rpm When the kernel is installed on the host, and the correct kernel and OFED version are …

Xsigo Linux – Manually Installing Read More »

How to measure network Bandwidth in Linux

Usage as below from same folder: To check packer per interface: ./netpps.sh eth0 To check speed per interface: ./netspeed.sh eth0 Measure Packets per Second on an Interface netpps.sh as file name #!/bin/bash INTERVAL="1" # update interval in seconds if [ -z "$1" ]; then echo echo usage: $0 [network-interface] echo echo e.g. $0 eth0 echo …

How to measure network Bandwidth in Linux Read More »

How to mount a cdrom or disk in linux (thrue ilom)

First get the device name dmesg | egrep -i –color 'cdrom|dvd|cd/rw|writer' Create mountpoint if not exsists mkdir /media/cdrom mkdir /media/disk Syntax to mount DVD / CDROM in Linux mount -t iso9660 -o ro /dev/deviceName /path/to/mount/point For Example mount -t iso9660 -o ro /dev/sr0 /cdrom Syntax to mount disk in Linux mount /dev/deviceName /path/to/mount/point