CentOS Proxy

System-wide proxy settings – add the following lines to your /etc/environment file:

# vi /etc/environment

http_proxy="http://proxysrv:8080/"
https_proxy="https://proxysrv:8080/"
ftp_proxy="ftp://proxysrv:8080/"
no_proxy=".mylan.local,.domain1.com,host1,host2"

To apply these settings without restarting the machine run the following commands on the bash shell:

export http_proxy="http://proxysrv:8080/"
export https_proxy="https://proxysrv:8080/"
export ftp_proxy="ftp://proxysrv:8080/"
export no_proxy=".mylan.local,.domain1.com,host1,host2"

You … Continue reading

Erweitern eines PV on VMware + Swap LV

1. expand on vmware the HDD Size

2. maybe restart the virtual machine
or run following command
echo „- – -“ > /sys/class/scsi_host/host0/scan

3. fdisk -l
fdisk /dev/sda

-l

Device          Boot      Start         End      Blocks             Id   System
/dev/sda1   *                1                 65      522081          83  Linux
/dev/sda2               … Continue reading

VMware Guest Time Synchronization on Linux Based Systems

first on edit your boot.conf:

default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.17-1.2187_FC5) root (hd0,0) kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=/dev/VolGroup00/LogVol00 clock=pit nosmp noapic nolapic initrd /initrd-2.6.17-1.2187_FC5.img

then check the configuration on VMware tools to time synchronization Vcenter or direct on vmx file from Virtual Machine

tools.syncTime = "TRUE"

on 64bit Systems … Continue reading

udev messages on RHEL or CentOS Virtual Machines on ESX

After installing VMware Tools on a CentOS or RHEL  guest hosted on ESX-Server receiving the following udev warnings:
Starting udev:
udevd[572]: add_to_rules: unknown key ‘SUBSYSTEMS’
udevd[572]: add_to_rules: unknown key ‘ATTRS{vendor}’
udevd[572]: add_to_rules: unknown key ‘ATTRS{model}’
udevd[572]: add_to_rules: unknown key ‘SUBSYSTEMS’
udevd[572]: add_to_rules: unknown key … Continue reading

drbd 8.3.x auf RHEL 5.3

Step 1:
yum install drbd83.x86_64 kmod-drbd83.x86_64 heartbeat.x86_64

Step 2:
#vim /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 localhost.localdomain localhost
10.20.0.100 master.your.domain master
10.20.0.101 node01.your.domain node01
10.20.0.102 node02.your.domain node02
192.168.0.101 drbd-node01 ha-node01
192.168.0.102 drbd-node02 ha-node02

Step 3: prepare hdd’s with
#fdisk /dev/cciss/c0d0 ← … Continue reading

Abgebrochene YUM-Transaktionen beenden

Das Programm yum-complete-transaction versucht unvollständig ausgeführte und abgebrochene Transaktionen zu beenden.
Dazu werden die Dateien transaction-all* und transaction-done* im Verzeichnis /var/lib/yum ausgewertet.

yum-complete-transaction ist im Paket yum-utils enthalten und kann wie folgt installiert werden.
[root@centos ~]# yum install yum-utils

Wenn YUM eine unvollständig ausgeführte Transaktion entdeckt, wird Ihnen … Continue reading