Posts

Showing posts from January, 2015

multiple gateways in one server

# cat Set_Dual_Brigde_Network.sh #!/bin/bash # http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html echo 1 T1 >> /etc/iproute2/rt_tables echo 2 T2 >> /etc/iproute2/rt_tables echo 3 T3 >> /etc/iproute2/rt_tables T1=T1 T2=T2 T3=T3 IF1=br0 IF2=br2 IF3=br3 IP1=9.12.13.15 IP2=9.12.6.50 IP3=9.10.11.35 P1=9.12.13.1 P2=9.12.6.1 P3=9.10.11.1 P1_NET=13 P2_NET=6 P3_NET=11 ip route add $P1_NET dev $IF1 src $IP1 table $T1 ip route add default via $P1 table $T1 ip route add $P2_NET dev $IF2 src $IP2 table $T2 ip route add default via $P2 table $T2 ip route add $P3_NET dev $IF3 src $IP3 table $T3 ip route add default via $P3 table $T3 ip route add $P1_NET dev $IF1 src $IP1 ip route add $P2_NET dev $IF2 src $IP2 ip route add $P3_NET dev $IF3 src $IP3 ip rule add from $IP1 table $T1 ip rule add from $IP2 table $T2 ip rule add from $IP3 table $T3

powerKVM commands

pokgsa.ibm.com/projects/p/pkvm-updates/devel/IBM/powerkvm-devel.repo [powerkvm-updates-devel] name=powerkvm-updates-devel baseurl=http://pokgsa.ibm.com/projects/p/pkvm-updates/devel/IBM/$ibmver/updates enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ibm_powerkvm-$ibmver [powerkvm-debuginfo-devel] name=powerkvm-debuginfo-devel baseurl=http://pokgsa.ibm.com/projects/p/pkvm-updates/devel/IBM/$ibmver/debuginfo enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ibm_powerkvm-$ibmver Kernel: http://ltcphx.austin.ibm.com/isos/frobisher/PowerKVM/releases/2.1.1/0.9.1/os/ppc/ppc64/vmlinuz Initrd: http://ltcphx.austin.ibm.com/isos/frobisher/PowerKVM/releases/2.1.1/0.9.1/os/ppc/ppc64/initrd.img Device tree: Boot arguments: root=live:http://ltcphx.austin.ibm.com/isos/frobisher/PowerKVM/releases/2.1.1/0.9.1/os/LiveOS/squashfs.img repo=http://ltcphx.austin.ibm.com/isos/frobisher/PowerKVM/releases/2.1.1/0.9.1/os/packages rd.dm=0 rd.md=0 console=hvc0 console=tty0 Kernel: ht

multipathing configuration

  vi /etc/multipath.conf    modprobe dm-multipath  service multipathd start   multipath -d    vi /etc/multipath.conf    multipath -d    multipath -v2    multipath -ll  How to find WWID numbers to add in below file  [root@GPFS1 ~]# for A in `fdisk -l 2>/dev/null | egrep '^Disk' | grep bytes | cut -d " " -f2|cut -d ":" -f1 `;do echo $A;/lib/udev/scsi_id --page=0x83 --whitelisted --device=$A;done /dev/sda 3600605b001cfb94019816f7425cd9f1f /dev/mapper/VolGroup-lv_root /dev/mapper/VolGroup-lv_swap /dev/mapper/VolGroup-lv_home /dev/sdf 3600a0b80006e1d2e0000aa4c51f5d1b1 /dev/sdc 3600a0b80006e1d2e0000efc05010cb10 /dev/sde 3600a0b80006e1d2e000095d751ecc295 /dev/sdg 3600a0b80006e1d2e0000efc95010cb62 /dev/sdh 3600a0b80006e1d2e0000b09e51fa2371 /dev/sdj 3600a0b80006e1992000067475010ca33 /dev/sdo 3600a0b80006e1d2e0000efc05010cb10 /dev/sdq 3600a0b80006e1d2e000095d751ecc295 /dev/sdr 3600a0b80006e1d2e0000aa4c51f5d1b1 /dev/sds 3600a0b80006e1d2e0000efc95010cb62 /dev/sdt  v

multipath and DMSETUP errors and solution

[root@GPFS2 ~]# lvs   /dev/sdq: read failed after 0 of 4096 at 0: Input/output error   /dev/sdq: read failed after 0 of 4096 at 4294901760: Input/output error   /dev/sdq: read failed after 0 of 4096 at 4294959104: Input/output error   /dev/sdq: read failed after 0 of 4096 at 4096: Input/output error   /dev/sdag: read failed after 0 of 4096 at 0: Input/output error   /dev/sdag: read failed after 0 of 4096 at 4294901760: Input/output error   /dev/sdag: read failed after 0 of 4096 at 4294959104: Input/output error   /dev/sdag: read failed after 0 of 4096 at 4096: Input/output error   /dev/sdaw: read failed after 0 of 4096 at 0: Input/output error   /dev/sdaw: read failed after 0 of 4096 at 4294901760: Input/output error   /dev/sdaw: read failed after 0 of 4096 at 4294959104: Input/output error   /dev/sdaw: read failed after 0 of 4096 at 4096: Input/output error   /dev/vol_prod_installers/lv_prod_gluster_installers: read failed after 0 of 4096 at 3298526429184: Input/output error   /dev/v

yum commands history

[root@GFS13864 ~]# yum history Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. ID     | Login user               | Date and time    | Action(s)      | Altered -------------------------------------------------------------------------------     12 | System            | 2015-01-07 15:18 | Update         |    1     11 | root               | 2014-12-23 07:38 | I, U           |    7     10 | root               | 2014-12-23 07:12 | Install        |    1      9 | root               | 2014-12-19 09:49 | Install        |    1  <      8 | root               | 2013-12-29 21:31 | Install        |    3 ><      7 | root               | 2013-11-21 20:37 | Install        |    2 >      6 | root               | 2013-11-21 20:36 | Install        |    1      5 | root