Archive for the ‘redhat’ Category

Frecuencia de borrado de /tmp en Red Hat Enterprise 4 y 5

Wednesday, December 31st, 2008

Para cambiar la frecuencia de borrado de tu /tmp unicamente es necesario que edites el fichero /etc/cron.daily/tmpwatch y lo adaptes a tus necesidades:

/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix \
-x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch -f 720 “$d”
fi
done

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)

Configuración de lvm con Powerpath

Sunday, February 24th, 2008

Para poder crear  PVs sobre volumenes gestionados por PowerPath de EMC es necesario añadir un filtro en el fichero /etc/lvm/lvm.conf de forma que se excluyan los dispositivos asociados a los caminos individuales del volumen y se añada los dispositivos gestionados con PowerPath.

Si  sda fuera el unico dispositivo de bloques local de nuestra máquina el filtro tendria este formato:

filter = [ "a/sda[1-5]$/” “a/emcpower.*/” “r/sd.*/” ]

El resto del proceso se realizaría normalmente.

Algo de información sobre Powerpath y LVM:

http://www.emcsoftware.es/products/software_az/powerpath.htm
http://es.wikipedia.org/wiki/Logical_Volume_Manager

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)