Category Archives: Linux

CentOS/RedHat 6 iSCSI connections with multipathing

small Howto… Install multipathing RPMs: yum install device-mapper yum install device-mapper-multipath start multipath service service multipathd start configure autostart for multipath service chkconfig multipathd on optional: install Netapp host utilities when using a filer http://mysupport.netapp.com/NOW/download/software/sanhost_linux/6.2/download.shtml rpm -ivh netapp_linux_host_utilities-6-2.x86_64.rpm loading the … Continue reading

Posted in Linux | Tagged , | Comments Off on CentOS/RedHat 6 iSCSI connections with multipathing

Bash Script zum Schwanzlänge messen…

  #!/bin/sh echo `uptime|grep days|sed ‘s/.*up \([0-9]*\) day.*/\1\/10+/’; \ cat /proc/cpuinfo|grep MHz|awk ‘{print $4″/30 +”;}’; free|grep ‘^Mem’ \ | awk ‘{print $3″/1024/3+”}’; df -P -k -x nfs | grep -v 1k \ | awk ‘{if ($1 ~ “/dev/(scsi|sd)”){ s+= $2} … Continue reading

Posted in Linux | Tagged , | Comments Off on Bash Script zum Schwanzlänge messen…

back script

vi /usr/bin/back #!/bin/bash if ! [ -f $1 ]; then echo “File ‘$1’ does not exist!” exit 1 fi if [ -f $1.$(date +%d%m%Y) ]; then counter=2 while [ -f $1.$(date +%d%m%Y)_$counter ]; do let counter=$counter+1 done cp $1 $1.$(date … Continue reading

Posted in Linux | Comments Off on back script