ln –s /etc/xen/MachineFile /etc/xen/auto/MachineFile
Is some cases the change in config.sxp helps to get the machines up:
(on_xend_start start)
(on_xend_stop shutdown)[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink
#!/bin/sh
USERNAME="your-ftp-user-name"
PASSWORD="your-ftp-password"
SERVER="your-ftp.server.com"
# local directory to pickup *.tar.gz file
FILE="/tmp/backup"
# remote server directory to upload backup
BACKUPDIR="/pro/backup/sql"
# login to remote server
ftp -ni $SERVER <<EOF
user $USERNAME $PASSWORD
cd $BACKUPDIR
mput $FILE/*.tar.gz
quit
EOF
source
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink
[ 1 comment ] ( 12 views ) | [ 0 trackbacks ] | permalink
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink
[ add comment ] ( 5 views ) | [ 0 trackbacks ] | permalink
[ add comment ] ( 4 views ) | [ 0 trackbacks ] | permalink
If you get the this while running postreflect command on Vista:
postreflect e:\Windows c:
0x0000007F - Failed to GetProcAddress on DiOfflineReinstallAllUpdates
you have to start the Windows Pe Tools command promt as Administrator. The paths are updated and the error "failed to getprocaddress on diofflinereinstallallupdates Failed: Error = 0x0000007f" is no longer present.
After running the PE Tools Command Prompt as administrator the promt should start at C:\Windows\system32 folder.
[ add comment ] ( 4 views ) | [ 0 trackbacks ] | permalink
Plugin pro NAGIOS pro odečítání teploty TME čidla od www.papouch.cz.
HTML/XML output z cidla:
<?xml version="1.0" encoding="iso-8859-1" ?><thermometer><title>Ethernet thermometer TME designed by Papouch s.r.o. - www.papouch.com</title><description>TME Serverovna</description><temperature>230</temperature><mintemperature>"N"</mintemperature><maxtemperature>"N"</maxtemperature></thermometer>
TME je teploměr s rozhraním Ethernet (IP teploměr). Má interní WEBové stránky a XML stránku s aktuální teplotou. Umí protokoly TCP, SNMP, SMTP (e-mail), MODBUS a SOAP. Teplotu snadno vložíte na Vaše stránky díky funkci HTTP GET.
Plugin: check_temp
#!/bin/bash
# version 1.0 (27/01/2008)
W_TEMP=250 # warning treshold
C_TEMP=300 # critical treshold
URL="http://192.168.24.221/tme.xml"
cd /tmp
wget -q --output-document=$$.xml ${URL}
if [ $? -gt 0 ]; then
echo "UNKNOWN - can't connect to sensor!"
exit 3
fi
XML=`grep "<temperature>" $$.xml 2>/dev/null #1>&2`; RETVAL=$?
[ -f $$.xml ] && rm -f $$.xml
if [ $RETVAL -gt 0 ]; then
echo "UNKNOWN - no data from sensor!"
exit 3
fi
TEMP=`echo ${XML} | \
awk -F"<temperature>" '{ print $2 }' | \
awk -F"</temperature>" '{ print $1 }'`
TEMP_DOT=`echo $TEMP / 10 | bc`
# temp is okay
if [ $TEMP -lt $W_TEMP ]; then
echo "OK - temperature is ${TEMP_DOT}C |${TEMP}"
exit 0
fi
# temp is over W_TEMP
if [ $TEMP -gt $C_TEMP ]; then
echo "CRITICAL - temperature is ${TEMP_DOT}C |${TEMP}"
exit 2
else
echo "WARNIG - temperature is ${TEMP_DOT}C |${TEMP}"
exit 1
fi
[ add comment ] ( 2 views ) | [ 0 trackbacks ] | permalink
Connect securely to Windows Vista Remote Desktop link.
[ add comment ] ( 5 views ) | [ 0 trackbacks ] | permalink
Recovering from LVM Mirror Failure
LVM Administrator's Guide
What is an Highly Available LVM (HA LVM) configuration and how I implement it?
Snapshot:
lvcreate --size 100m --snapshot --name snap --permission r --verbose /dev/VolGroup00/LogVol00
1058 dmsetup remove /dev/vg01
1061 dmsetup remove vg01-linux_pokus_1_5G
1062 cd /sys/block/dm-0/dev
1063 cat /sys/block/dm-0/dev
1064 cat /sys/block/dm-0/stat
1065 cat /sys/block/dm-0/uevent
1066 cat /sys/block/dm-0/dev
1067 cat /sys/block/dm-0/holders/
1068 cd /dev/vg01/
1069 ls -la
1070 rm linux_pokus_1_5G
1071 ls -la
1072 cd ..
1073 ls -la
1074 ls vg01/
1075 rm -rf vg01/
1076 ls -la
1077 lvs
1084 lvreduce --removemissing
1091 ll /dev/mapper/vg01-linux_pokus_1_5G
1092 rm /dev/mapper/vg01-linux_pokus_1_5G
1093 lvs
1100 pvcreate /dev/sde
1101 pvcreate /dev/sdf
1102 vgcreate vg01 /dev/sde /dev/sdf
1107 lvcreate -n sbs2008_programs_and_data_90G -L 90G vg01
1112 lvs
1113 lvremove /dev/vg01/sbs2008_programs_and_data_90G
Display disks in volume group
vgdisplay -v vg01
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink

Calendar



