Tuesday, August 4, 2009

Como instalar (a mano) el parche ESX400-200906001 para vSphere

Copia el archivo ESX400-200906001.zip en un directorio del esx. Ocupa casi 400 MBytes.

Puedes comprobar que el archivo esta bien (y que te hace falta instalarlo) con el comando:
esxupdate --bundle=ESX400-200906001.zip scan

que producirá una salida como esta:

ESX400-200906001.zip ######################################## [100%]

Applicable bulletins with updates are listed.
----Bulletin ID---- ---Date--- -------------Summary-------------
ESX400-200906412-BG 2009-07-09 Updates esxupdate
ESX400-200906401-BG 2009-07-09 Updates VMX
ESX400-200906404-BG 2009-07-09 Updates CIM
ESX400-200906411-SG 2009-07-09 Updates udev
ESX400-200906402-BG 2009-07-09 Updates ESX Scripts
ESX400-200906406-SG 2009-07-09 Updates sudo
ESX400-200906405-SG 2009-07-09 Updates krb5 and pam_krb5
ESX400-200906410-BG 2009-07-09 Updates hostd
ESX400-200906407-SG 2009-07-09 Updates curl
ESX400-200906403-BG 2009-07-09 Updates VMware Tools
ESX400-200906408-BG 2009-07-09 Updates SCSI Driver for QLogic FC
ESX400-200906409-BG 2009-07-09 Updates LSI storelib Library
ESX400-200906413-BG 2009-07-09 Updates vmkernel iSCSI Driver
Esxupdate local cache states:
Location: /tmp/updatecache
Available space: 2317 [MB]

Tienes que poner el esx en modo mantenimiento: http://kakaladas.blogspot.com/2009/07/how-to-set-esx-host-into-maintenance.html

Y luego instalar el parche con el comando:
esxupdate --bundle=ESX400-200906001.zip update

Después hay que salir del modo mantenimiento y reiniciar el esx.

Como crear (y que funcione) un servicio en /etc/init.d para SUSE

SDB:How to Create Your Own Init Script
From openSUSE

You want to create your own script which will be started and stopped in certain runlevels.
You also want to control this script by means of:
rc<scriptname> {start|stop|status|reload|force-reload|try-restart|restart}

Copy the sample script to your new script:
cp /etc/init.d/skeleton /etc/init.d/<scriptname>
Edit the file /etc/init.d/<scriptname> with a text editor of your choice and read and follow its instructions.
Now activate your script so that it can be run when the system boots:
/sbin/insserv /etc/init.d/<scriptname>
Finally, create a link to /sbin:
ln -s /etc/init.d/<scriptname> /sbin/rc<scriptname>

Additional Information
For further information, please refer to the following manpages: init(8), init.d(7), insserv(8)

Cambio de zona horaria en ESX

Si tienes mal configurada la zona horaria de tu esx, esto es lo que hay que hacer para corregirlo:

1- Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Tue Aug 4 10:21:53 2009 PM PST, PST in this case is the current timezone.

2- Change to the directory /usr/share/zoneinfo/Posix here you will find a list of time zone regions. Choose the most appropriate region, if you live in Europe this directory is the "Europe" directory.

3- If you wish, backup the previous timezone configuration by copying it to a different location. Such as:
mv /etc/localtime /etc/localtime-old

4- Create a symbolic link from the appropiate timezone to /etc/localtime. Example:
ln -sf /usr/share/zoneinfo/Posix/Europe/Madrid /etc/localtime

5- Restart the ntpd service to update the current system time by executing
/etc/init.d/ntpd restart

6- Set the ZONE entry in the file /etc/sysconfig/clock file

7- Set the hardware clock by executing:
/sbin/hwclock --systohc

8- Now if you execute again `date` you'll see the following output Tue Aug 4 10:21:53 CEST 2009