[CentOS-announce] CESA-2010:0125 Moderate CentOS 4 i386 systemtap - security update

2010-03-02 Thread Tru Huynh
CentOS Errata and Security Advisory CESA-2010:0125

systemtap security update for CentOS 4 i386:
https://rhn.redhat.com/errata/RHSA-2010-0125.html

The following updated file has been uploaded and is currently syncing to
the mirrors:

i386:
updates/i386/RPMS/systemtap-0.6.2-2.el4_8.1.i386.rpm
updates/i386/RPMS/systemtap-runtime-0.6.2-2.el4_8.1.i386.rpm
updates/i386/RPMS/systemtap-testsuite-0.6.2-2.el4_8.1.i386.rpm

source:
updates/SRPMS/systemtap-0.6.2-2.el4_8.1.src.rpm

You may update your CentOS-4 i386 installations by running the command:

yum update systemtap\*

Tru
-- 
Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B


pgpIvl9SD69H2.pgp
Description: PGP signature
___
CentOS-announce mailing list
CentOS-announce@centos.org
http://lists.centos.org/mailman/listinfo/centos-announce


Re: [CentOS-virt] [CentOS] Very unresponsive, sometimes stalling domU (5.4, x86_64)

2010-03-02 Thread Pasi Kärkkäinen
On Tue, Mar 02, 2010 at 09:30:50AM +0100, Timo Schoeler wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi list,
 
 please forgive cross posting, but I cannot specify the problem enough to
 say whether list it fits perfectly, so I'll ask on both.
 
 I have some machines based with following specs (see at the end of the
 email).
 
 They run CentOS 5.4 x86_64 with the latest patches applied, Xen-enabled
 and should host one or more domUs. I put the domUs' storage on LVM, as I
 learnt ages ago (what never caused any problems) and is way faster than
 using file-based 'images'.
 
 However, there's something special about these machines: They have the
 new WD EARS series drives, which use 4K sector sizes. So, I booted a
 rescue system and used fdisk to start at sector 64 instead of 63 (long
 story made short: Due to overhead causing the drive to do much more,
 inefficient writes when starting at sector 63, the performance
 collapses; with 'normal' geometry (sector 63), the drive achieves about
 25MiByte/sec writes, with starting at sector 64 partition, it achieves
 almost 100MiByte/sec writes):
 
 [r...@server2 ~]# fdisk -ul /dev/sda
 
 Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 Units = sectors of 1 * 512 = 512 bytes
 
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *  64 2097223 1048580   fd  Linux raid
 autodetect
 Partition 1 does not end on cylinder boundary.
 /dev/sda2 209722418876487 8389632   82  Linux swap / Solaris
 /dev/sda318876488  1953525167   967324340   fd  Linux raid
 autodetect
 
 On top of those (two per machine) WD EARS HDs there's ``md'' providing
 two RAID1, /boot and LVM, as well as swap per HD (i.e. non-RAIDed). LVM
 provides the / partition as well as LVs for Xen domUs.
 
 I have about 60 machines running that style and never had any problems.
 They run like a charm. On these machines, however, domUs are *very*
 slow, have a steady (!) load of about two -- 50% stating in 'wait' --
 and all operations take ages, e.g. a ``yum update'' with the recently
 released updates.
 
 Now, can that be due to 4K issues I didn't see, nestet now in LVM?
 
 Help is very appreciated.
 

Maybe the default LVM alignment is wrong for these drives.. 
did you check/verify that? 

See:
http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/

Especially the --metadatasize option.

-- Pasi

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-es] LVM

2010-03-02 Thread Oscar Osta Pueyo
Hola,

2010/3/2 wcerv...@gmail.com

 No creo que tenga algo de malo, al contrario, tiene mas beneficios que el
 particionado estándar
 Enviado desde mi dispositivo movil BlackBerry® de Digitel.


1. Puedes ampliar el espacio entre partificiones lógicas.
2. Puedes añadir discos y ampliar la partificón física y luego las lógicas.
3. Puedes copias en caliente de las particiones.

Más beneficios que penas :)

Yo siempre uso LVM en CentOS y fedora...a día de hoy ningún problema...por
ejemplo, un día un cliente solicito ampliar la memoria RAM y gracias a que
todo estaba en LVM se redimensiono la memoria swap. Si hubiera estado todo
con el particionado normal o reinstalamos todo o se queda la swap con la
medida que tenía.

-- 
Oscar Osta Pueyo
oostap.lis...@gmail.com
_kiakli_

http://fedoraproject.org/ca/
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] LVM

2010-03-02 Thread Benjamin Pinazo
¿Con que herramientas es posible hacer backup de las particiones?

¿Es posible hacer back-up de las particiones del LVM que corresponden al
sistema?

 

Un saludo,

Benjamin

 

 

De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de Oscar Osta Pueyo
Enviado el: martes, 02 de marzo de 2010 11:41
Para: centos-es@centos.org; wcerv...@gmail.com
Asunto: Re: [CentOS-es] LVM

 

Hola,

2010/3/2 wcerv...@gmail.com

No creo que tenga algo de malo, al contrario, tiene mas beneficios que el
particionado estándar
Enviado desde mi dispositivo movil BlackBerry® de Digitel.



1. Puedes ampliar el espacio entre partificiones lógicas.
2. Puedes añadir discos y ampliar la partificón física y luego las lógicas.
3. Puedes copias en caliente de las particiones.

Más beneficios que penas :)

Yo siempre uso LVM en CentOS y fedora...a día de hoy ningún problema...por
ejemplo, un día un cliente solicito ampliar la memoria RAM y gracias a que
todo estaba en LVM se redimensiono la memoria swap. Si hubiera estado todo
con el particionado normal o reinstalamos todo o se queda la swap con la
medida que tenía.

-- 
Oscar Osta Pueyo
oostap.lis...@gmail.com
_kiakli_

http://fedoraproject.org/ca/

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] CentOS 4 en un antiguo PC

2010-03-02 Thread Benjamin Pinazo
Hola:

Este es un hilo que inicié con una consulta ya hace más de un mes. Deje
estancado el tema y ahora lo he retomado.
El tema era que la instalación de CentOS 4.8 –i386 se quedaba colgada. El PC
era un Pentium III 600MHz 384MB de RAM

Siguiendo algunos de vuestros comentarios, he instalado Centos 5.3 (en
verdad Elastix que viene en 1 solo CD) y todo funciona bien.


Solo quería agradeceros vuestras sugerencias y comentaros el resultado.

Un saludo,
Benjamin


-Mensaje original-
De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de Santi Saez
Enviado el: miércoles, 20 de enero de 2010 20:55
Para: centos-es@centos.org
Asunto: Re: [CentOS-es] CentOS 4 en un antiguo PC

El 19/01/10 18:45, Benjamin Pinazo escribió:

(..)

 Emite una secuencia de líneas y despues de la que pone ‘running
 /sbin/loader’ aparece una ventana de fondo azul que pone ‘Welcom to
 CentOS’,  y al cabo de unos cuantos segundos un mensaje que dice ‘To
 beging testing the CD media before installation  press OK’  y ya no
 responde al teclado para seleccionar la opcion. Alguien tiene idea de
 que puede ser y que puedo hacer para proseguir con la instalación?.

¿Por que no meterle directamente CentOS-5? Como te decían recuerda 
arrancar con linux text.

¿Es un teclado USB? En cualquier caso, sería extraño que te dejara de 
funcionar una vez arrancada la instalación.

Si sospechas que este es el problema, te recomiendo que localices algun 
parámetro en el documento Documentation/kernel-parameters.txt que te 
permita jugar con las opciones del teclado durante el arranque.

Si no.. siempre te quedará tirar de una instalación por puerto serie, 
por PXE, vía Kickstart, pinchar el disco en otro ordenador, etc.. ;-)

Saludos,

-- 
Santi Saez
http://woop.es
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] LVM

2010-03-02 Thread Eduardo Grosclaude
2010/3/2 Benjamin Pinazo bpin...@comet-ingenieria.es:
 ¿Con que herramientas es posible hacer backup de las particiones?

 ¿Es posible hacer back-up de las particiones del LVM que corresponden al
 sistema?

Te refieres:
1) al volumen lógico donde reside el sistema de archivos? O
2) a obtener un respaldo del esquema de volúmenes (y no de su
contenido)? Esto podría parecer útil para reproducir el esquema en un
equipo nuevo (tal como uno saca réplica de la tabla de particiones
para reproducir un esquema de particionado en otro disco).
3) a realizar un snapshot del filesystem raíz con ténicas de LVM?

En principio, tanto particiones como volúmenes LVM son transparentes a
nivel de sistema de archivos, o sea, para respaldar archivos no hace
falta tener en cuenta de qué forma están definidos los volúmenes o
particiones. Es decir, no hay problema en hacer backup de los archivos
de no importa qué volumen, sea de sistema o no.

Por favor acláranos más tu pregunta, Benjamín.

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Enjaular grupos por FTP

2010-03-02 Thread César Sepúlveda Barra
On Martes 02 Marzo 2010 08:56:00 Gonzalo Cabello escribió:
 Buenas,
 
 Tengo un servidor con CentOS 5.4 y Plesk 9.3, en el que deseo crear dos
 grupos de usuarios (administradores y tecnicos) y en cada uno de ellos, por
 ejemplo, tres usuarios:
 
 - admin1, admin2 y admin3 en el grupo administradores
 - tec1, tec2 y tec3 en el grupo tecnicos
 
 Estos usuarios no tendrán acceso por ssh, solamente deseamos que se pueda
 acceder por FTP de forma que los creamos de la siguiente forma:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta -g administradores -s
 /sbin/nologin admin1
 
 Y los tecnicos:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta/carpeta2 -g tecnicos -s
 /sbin/nologin tec1
 
 Como se puede ver en la estructura de carpetas, deseamos que los tecnicos
 solo puedan ver desde carpeta2 para abajo, y los administradores desde
 carpeta para abajo.
 
 El problema es que los tecnicos deben ver su carpeta home, y  carpeta2
 que será general a todos los tecnicos, pero aun forzando los permisos a
 755 de la carpeta, no se ven entre los grupos administradores y tecnicos.
 
 El servidor que trae por defecto es ProFTP pero en vez de estar instalado
 como stand alone, esta como ¿servicio? inetd. He probado a modificar los
 limites en la configuración, modificar la variable DefaultRoot pero no he
 conseguido gran cosa.
 
 ¿Alguna idea?
 
 Gracias de antemano por su ayuda,
 
 Double

Probablemente con ACL's podrías solucionar tu problema.


Saludos!.
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] LVM

2010-03-02 Thread Benjamin Pinazo
Muchas gracias por la aclaración.

-Mensaje original-
De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de Eduardo Grosclaude
Enviado el: martes, 02 de marzo de 2010 14:31
Para: centos-es@centos.org
Asunto: Re: [CentOS-es] LVM

2010/3/2 Benjamin Pinazo bpin...@comet-ingenieria.es:
 Con el tratamiento usual yo realizo los siguientes back-ups:
   - de datos: lo realizo actualmente con rsync a partir de un directorio
 que cuelgan todos los datos, y por lo que comentas ('los volúmenes LVM son
 transparentes a nivel de sistema de archivos') por lo tanto esto se puede
 seguir haciendo.

Sí.

   - el sistema: lo tengo alojado en 1 solo HD y lo realizo sobre otro
disco
 idéntico con el comando 'dd' tras arrancar con un liveCD(rescue CD).
                 También he utilizado clonezilla alguna vez.

 Mi duda es como realizar el back-up del sistema con LVM, porque según he
 leído, no se pueden copiar algunos ficheros del sistema arrancado ya que
 Linux los bloquea.

Hummm... Desde este punto de vista, no veo diferencia entre
filesystems soportados por particiones y por volúmenes. Un volumen
lógico es lo más equivalente a una partición que te puedas imaginar,
sólo que implementada por software. O sea, sin los inconvenientes de
rigidez de las particiones.

Entiendo que si arranco con un LiveCD no va a reconocer
 ese sistema de volúmenes lógicos y no puedo realizar la copia?. Porque
 supongo que la información de LVM se guarda en el propio sistema.

El LiveCD debería contar con soporte de LVM. Con un disco de arranque
de CentOS o Fedora, por ejemplo, arrancando en modo rescate tienes
automáticamente montado el disco rígido. Si se trata de otra distro, y
tiene soporte de LVM, puede ser que te dé los comandos lvscan, vgscan,
etc., o bien una consola lvm donde pides scan de los volúmenes; y a
partir de allí puedes operar sobre ellos como en el sistema normal.

 Por lo del punto 2 que detallas, ni me lo he planteado, no llego a tanto.
 El punto 3 de realizar un snapshot del filesystem raíz, serviría para
hacer
 respaldo de todo. Lo único que la frecuencia del respaldo de datos
prefiero
 que sea diaria y la de sistema, como varía poco, anual. Por eso prefiero
 tener copias separadas.

En el caso que comentas, dada la forma como haces las copias con dd
desde un sistema de rescate, la técnica de snapshots te permitiría
hacer el respaldo del filesystem alojado en un volumen lógico en
estado consistente, sin parar el equipo. Lo cual posiblemente no estás
obteniendo ahora con tus backups de datos.

Si instalas la guía correspondiente (yum install
Deployment_Guide-es-ES.noarch) te podrás sacar todas las dudas sobre
LVM. LVM mejora la disponibilidad en muchos sentidos. No es que sea
una tecnología indispensable para todos los casos, pero para quienes
administran servidores es una herramienta que viene muy bien conocer.
Aunque quizás en un futuro se porte ZFS, lo que sería una superación,
o de alguna otra forma se incorporen las funciones de LVM al
filesystem.

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Enjaular grupos por FTP

2010-03-02 Thread Javier Aquino H.
Listo Pepe ... hoy entre 7:00 y 7:30 PM estoy en tu office.

Saludos,

Javier.


-Mensaje original-
De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de César Sepúlveda Barra
Enviado el: martes, 02 de marzo de 2010 10:42 a.m.
Para: centos-es@centos.org
Asunto: Re: [CentOS-es] Enjaular grupos por FTP

On Martes 02 Marzo 2010 08:56:00 Gonzalo Cabello escribió:
 Buenas,
 
 Tengo un servidor con CentOS 5.4 y Plesk 9.3, en el que deseo crear dos
 grupos de usuarios (administradores y tecnicos) y en cada uno de ellos,
por
 ejemplo, tres usuarios:
 
 - admin1, admin2 y admin3 en el grupo administradores
 - tec1, tec2 y tec3 en el grupo tecnicos
 
 Estos usuarios no tendrán acceso por ssh, solamente deseamos que se pueda
 acceder por FTP de forma que los creamos de la siguiente forma:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta -g administradores -s
 /sbin/nologin admin1
 
 Y los tecnicos:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta/carpeta2 -g tecnicos -s
 /sbin/nologin tec1
 
 Como se puede ver en la estructura de carpetas, deseamos que los tecnicos
 solo puedan ver desde carpeta2 para abajo, y los administradores desde
 carpeta para abajo.
 
 El problema es que los tecnicos deben ver su carpeta home, y  carpeta2
 que será general a todos los tecnicos, pero aun forzando los permisos a
 755 de la carpeta, no se ven entre los grupos administradores y tecnicos.
 
 El servidor que trae por defecto es ProFTP pero en vez de estar instalado
 como stand alone, esta como ¿servicio? inetd. He probado a modificar los
 limites en la configuración, modificar la variable DefaultRoot pero no he
 conseguido gran cosa.
 
 ¿Alguna idea?
 
 Gracias de antemano por su ayuda,
 
 Double

Probablemente con ACL's podrías solucionar tu problema.


Saludos!.
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com


 

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com
 

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Enjaular grupos por FTP

2010-03-02 Thread Javier Aquino H.
Hola Lista,

Mil disculpas por favor, fue un error de dedo.

Saludos,

Javier.


-Mensaje original-
De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de Javier Aquino H.
Enviado el: martes, 02 de marzo de 2010 11:36 a.m.
Para: centos-es@centos.org
Asunto: Re: [CentOS-es] Enjaular grupos por FTP

Listo Pepe ... hoy entre 7:00 y 7:30 PM estoy en tu office.

Saludos,

Javier.


-Mensaje original-
De: centos-es-boun...@centos.org [mailto:centos-es-boun...@centos.org] En
nombre de César Sepúlveda Barra
Enviado el: martes, 02 de marzo de 2010 10:42 a.m.
Para: centos-es@centos.org
Asunto: Re: [CentOS-es] Enjaular grupos por FTP

On Martes 02 Marzo 2010 08:56:00 Gonzalo Cabello escribió:
 Buenas,
 
 Tengo un servidor con CentOS 5.4 y Plesk 9.3, en el que deseo crear dos
 grupos de usuarios (administradores y tecnicos) y en cada uno de ellos,
por
 ejemplo, tres usuarios:
 
 - admin1, admin2 y admin3 en el grupo administradores
 - tec1, tec2 y tec3 en el grupo tecnicos
 
 Estos usuarios no tendrán acceso por ssh, solamente deseamos que se pueda
 acceder por FTP de forma que los creamos de la siguiente forma:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta -g administradores -s
 /sbin/nologin admin1
 
 Y los tecnicos:
 
 useradd -d /var/www/vhosts/dominio.net/carpeta/carpeta2 -g tecnicos -s
 /sbin/nologin tec1
 
 Como se puede ver en la estructura de carpetas, deseamos que los tecnicos
 solo puedan ver desde carpeta2 para abajo, y los administradores desde
 carpeta para abajo.
 
 El problema es que los tecnicos deben ver su carpeta home, y  carpeta2
 que será general a todos los tecnicos, pero aun forzando los permisos a
 755 de la carpeta, no se ven entre los grupos administradores y tecnicos.
 
 El servidor que trae por defecto es ProFTP pero en vez de estar instalado
 como stand alone, esta como ¿servicio? inetd. He probado a modificar los
 limites en la configuración, modificar la variable DefaultRoot pero no he
 conseguido gran cosa.
 
 ¿Alguna idea?
 
 Gracias de antemano por su ayuda,
 
 Double

Probablemente con ACL's podrías solucionar tu problema.


Saludos!.
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com


 

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com
 

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com


 

__ Información de ESET NOD32 Antivirus, versión de la base de firmas
de virus 4909 (20100302) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com
 

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS-es] OpenLDAP

2010-03-02 Thread Alejandro Marin Maturano
Hola amigos en esta ocasión con la siguiente duda, tengo mi servidor
OpenLdap con samba haciendo un dominio, mi pregunta es porque cuando
agrego maquinas Windows al dominio se me modifica el perfil y el
escritorio, y si hay alguna manera de evitar esta situación, ya que las
carpetas de Mis documentos ya no aparecen, los correos, y demás
configuraciones.


saludos
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] OpenLDAP

2010-03-02 Thread Black Hand
On Tue, 2010-03-02 at 16:15 -0600, Alejandro Marin Maturano wrote:

 Hola amigos en esta ocasión con la siguiente duda, tengo mi servidor
 OpenLdap con samba haciendo un dominio, mi pregunta es porque cuando
 agrego maquinas Windows al dominio se me modifica el perfil y el
 escritorio, y si hay alguna manera de evitar esta situación, ya que
 las carpetas de Mis documentos ya no aparecen, los correos, y demás
 configuraciones.

eso te pasara asi uses como controlador de dominio Samba/LDAP, NT4 o
Active Directory.

lo normal es q se cree un nuevo perfil para el usuario en el dominio pq
en esencia al asociarte al dominio y loguearte como un usuario del
dominio estas creando un nuevo usuario en la estacion de trabajo.

ese ya es un tema q escapa de CentOS y tiene mas q ver con
administracion de redes windows (el q uses Samba no quita q sea una red
windows) y tendras q buscar herramientas q permitan mover perfiles
locales a dominio (lo mas basico es usar en el caso de XP la herramienta
para copiar respaldo de un perfil cuando lo vas a trasladar a otra
maquina y una vez logueado al dominio, restaurar el perfil desde esa
copia de respaldo, hay otras tecnicas, tb manuales con las cuales copias
la data y luego le metes mano al registro y a los permisos de archivo y
sobre eso herramientas para automatizar todos esos procesos)

--
Black Hand


___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS] Very unresponsive, sometimes stalling domU (5.4, x86_64)

2010-03-02 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi list,

please forgive cross posting, but I cannot specify the problem enough to
say whether list it fits perfectly, so I'll ask on both.

I have some machines based with following specs (see at the end of the
email).

They run CentOS 5.4 x86_64 with the latest patches applied, Xen-enabled
and should host one or more domUs. I put the domUs' storage on LVM, as I
learnt ages ago (what never caused any problems) and is way faster than
using file-based 'images'.

However, there's something special about these machines: They have the
new WD EARS series drives, which use 4K sector sizes. So, I booted a
rescue system and used fdisk to start at sector 64 instead of 63 (long
story made short: Due to overhead causing the drive to do much more,
inefficient writes when starting at sector 63, the performance
collapses; with 'normal' geometry (sector 63), the drive achieves about
25MiByte/sec writes, with starting at sector 64 partition, it achieves
almost 100MiByte/sec writes):

[r...@server2 ~]# fdisk -ul /dev/sda

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *  64 2097223 1048580   fd  Linux raid
autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 209722418876487 8389632   82  Linux swap / Solaris
/dev/sda318876488  1953525167   967324340   fd  Linux raid
autodetect

On top of those (two per machine) WD EARS HDs there's ``md'' providing
two RAID1, /boot and LVM, as well as swap per HD (i.e. non-RAIDed). LVM
provides the / partition as well as LVs for Xen domUs.

I have about 60 machines running that style and never had any problems.
They run like a charm. On these machines, however, domUs are *very*
slow, have a steady (!) load of about two -- 50% stating in 'wait' --
and all operations take ages, e.g. a ``yum update'' with the recently
released updates.

Now, can that be due to 4K issues I didn't see, nestet now in LVM?

Help is very appreciated.

Cheers,

Timo

- ---

Linux server2.blah.org 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:06:04
EST 2010 x86_64 x86_64 x86_64 GNU/Linux

- ---

[r...@server2 ~]# cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 23
model name  : Intel(R) Core(TM)2 Quad CPUQ9400  @ 2.66GHz
stepping: 10
cpu MHz : 1998.000
cache size  : 3072 KB
physical id : 0
siblings: 1
core id : 0
cpu cores   : 1
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips: 6668.58
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model   : 23
model name  : Intel(R) Core(TM)2 Quad CPUQ9400  @ 2.66GHz
stepping: 10
cpu MHz : 1998.000
cache size  : 3072 KB
physical id : 1
siblings: 1
core id : 0
cpu cores   : 1
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips: 6668.58
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 2
vendor_id   : GenuineIntel
cpu family  : 6
model   : 23
model name  : Intel(R) Core(TM)2 Quad CPUQ9400  @ 2.66GHz
stepping: 10
cpu MHz : 1998.000
cache size  : 3072 KB
physical id : 2
siblings: 1
core id : 0
cpu cores   : 1
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc
pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips: 6668.58
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 3
vendor_id   : GenuineIntel
cpu family  : 6
model   : 23
model name  : Intel(R) Core(TM)2 Quad CPUQ9400  @ 2.66GHz
stepping: 10
cpu MHz : 1998.000
cache size  : 3072 KB
physical id : 3
siblings: 1
core id : 0
cpu cores   : 1
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu tsc msr pae mce cx8 apic mtrr mca 

Re: [CentOS] Success moving Xen LVMs from 32 to 64bit host

2010-03-02 Thread Pasi Kärkkäinen
On Mon, Mar 01, 2010 at 02:47:23PM -0500, Kwan Lowe wrote:
 Just wanted to share some success I had moving some Xen guests from
 one server to another.
 
 Problem Recap
 We had Xen host on a single core 32-bit CentOS 5.4 installation on an
 AMD Athlon 2.1 GhZ system that was giving hard drive errors and needed
 to move the LVM-backed Xen images to another server. The replacement
 server was a quad-core AMD Phenom system running 64-bit CentOS 5.4.
 
 Our original plan was to use LVM snapshots so that we wouldn't need a
 maintenance window. This worked fine in test, but we decided to bring
 down the Xen guests after all.  After shutting down the systems we
 backed up the LVMs.
 
 To show the backing LV:
 lvdisplay /dev/rootvg/xm_c32_001
 
 From this, we grabbed the Current LE field and LV Size. We used LV
 Size to create a temporary mount point. We used the Current LE
 parameter to create an identically sized LV on the replacement server
 .
 
 On the failing server:
 dd if=/dev/rootvg/xm_c32_001 of=/mnt/backup/xm_c32_001.out
 
 We gzip'ed the resulting .out file and saved it as a backup.
 
 +++Footnote
 BTW, there are many recommendations to do the following on the virtual 
 machine:
dd if=/dev/zero bs=1024 count= of=/partition.out
rm partition.out
 
 By creating the large empty file on each partition  *in the guest
 istance* (/var, /, /home, etc.), it will improve the image
 compression.  Space was not much of a concern and we were worried
 about blowing out a production system, so we opted not to do this.
 +++Footnote
 
 Once the backing LVM was created, we created the LV on the replacement server:
 lvcreate -l xxx -n xm_c32_001 rootvg
 
 
 Then used dd to recreate the file:
 dd if=xm_c32_001.out of=/dev/rootvg/xm_c32_001
 
 Next, we copied the /etc/xen/xm_c32_001 configuration file to the
 replacement server.  We generated a new UUID using the uuidgen
 utility. We also created a new MAC address.  

   ^

 Finally, we started the
 instance:
 
 xm create xm_c32_001
 
 Everything came up, but no network.  From the root console we logged
 in then edited the /etc/sysconfig/network-scripts/ifcfg-eth0.  Xen had
 apparently renamed the script and put in a DHCP configuration. 


It's not Xen renaming the script :) You changed the MAC address, so the
centos network init scripts will rename the ifcfg file, and generate
new default one (with dhcp).

rhel/centos ifcfg-eth* are based on MAC addresses.

-- Pasi

 We just
 renamed the backup file and commented out the MAC address line and
 restarted networking, *and* ifdown eth0 then ifup eth0.
 
 It took a few seconds for the network to properly discover the new MAC
 address. Once that was done, everything worked beautifully.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How do I create a new menu category in GNOME ?

2010-03-02 Thread Niki Kovacs
JohnS a écrit :

 No no No...
 
 Here I found my link I used to do it amnually: It is for system wide...
 http://wiki.matusov.sk/howto/gnome-menu-edit
 
 This is what I went by to do it so I could include the files in my rpm
 build, which took a whole afternoon about.  

Thanks very much for the link! That did the trick. Now I have a shiny 
new entry 'Medintux' in my 'Applications' menu.

Have a nice day,

Niki
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Very unresponsive, sometimes stalling domU (5.4, x86_64)

2010-03-02 Thread Pasi Kärkkäinen
On Tue, Mar 02, 2010 at 09:30:50AM +0100, Timo Schoeler wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi list,
 
 please forgive cross posting, but I cannot specify the problem enough to
 say whether list it fits perfectly, so I'll ask on both.
 
 I have some machines based with following specs (see at the end of the
 email).
 
 They run CentOS 5.4 x86_64 with the latest patches applied, Xen-enabled
 and should host one or more domUs. I put the domUs' storage on LVM, as I
 learnt ages ago (what never caused any problems) and is way faster than
 using file-based 'images'.
 
 However, there's something special about these machines: They have the
 new WD EARS series drives, which use 4K sector sizes. So, I booted a
 rescue system and used fdisk to start at sector 64 instead of 63 (long
 story made short: Due to overhead causing the drive to do much more,
 inefficient writes when starting at sector 63, the performance
 collapses; with 'normal' geometry (sector 63), the drive achieves about
 25MiByte/sec writes, with starting at sector 64 partition, it achieves
 almost 100MiByte/sec writes):
 
 [r...@server2 ~]# fdisk -ul /dev/sda
 
 Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 Units = sectors of 1 * 512 = 512 bytes
 
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *  64 2097223 1048580   fd  Linux raid
 autodetect
 Partition 1 does not end on cylinder boundary.
 /dev/sda2 209722418876487 8389632   82  Linux swap / Solaris
 /dev/sda318876488  1953525167   967324340   fd  Linux raid
 autodetect
 
 On top of those (two per machine) WD EARS HDs there's ``md'' providing
 two RAID1, /boot and LVM, as well as swap per HD (i.e. non-RAIDed). LVM
 provides the / partition as well as LVs for Xen domUs.
 
 I have about 60 machines running that style and never had any problems.
 They run like a charm. On these machines, however, domUs are *very*
 slow, have a steady (!) load of about two -- 50% stating in 'wait' --
 and all operations take ages, e.g. a ``yum update'' with the recently
 released updates.
 
 Now, can that be due to 4K issues I didn't see, nestet now in LVM?
 
 Help is very appreciated.
 

Maybe the default LVM alignment is wrong for these drives.. 
did you check/verify that? 

See:
http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/

Especially the --metadatasize option.

-- Pasi

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kexec for CentOS 4?

2010-03-02 Thread Tony Mountifield
I have a remote CentOS 4 machine on a network where I can't put a DHCP
or PXE server, and I want to do a complete reinstall. So what I want to
do is, from the currently-running system, to invoke an installation
kernel and initrd in just the same way that GRUB would, giving it a boot
command line that specifies a remote kickstart file, installation tree,
and other required info.

It looks like kexec is the right tool to do this, but I have only been
able to find it for CentOS 5. Does anyone know where I could get kexec
for CentOS 4? Does the CentOS 4 kernel support it?

If not, are there any other ways to achieve what I've described?

Thanks
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Perl 5.10 as default version of Perl

2010-03-02 Thread Kai Schaetzl
No.
http://www.centos.org/modules/smartfaq/faq.php?faqid=5

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Sendmail analyser

2010-03-02 Thread Rajagopal Swaminathan
Greetings,

I have a message file from a certain sendmail server. I am expected to
report about delivery failures and the reasons thereof. Any already
invented wheels? I need to do it offline and not on the sendmail
server.

any ides?

TIA

Regards,

Rajagopal
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Sendmail analyser

2010-03-02 Thread Peter Hinse
Am 02.03.2010 12:33, schrieb Rajagopal Swaminathan:

 I have a message file from a certain sendmail server. I am expected to
 report about delivery failures and the reasons thereof. Any already
 invented wheels? I need to do it offline and not on the sendmail
 server.
 
 any ides?

A search for sendmail analyzer at freshmeat shows some results:
http://freshmeat.net/search?q=sendmail+analyzersubmit=Search

Regards,

Peter



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Sendmail analyser

2010-03-02 Thread Rajagopal Swaminathan
Greetings,

On Tue, Mar 2, 2010 at 5:18 PM, Peter Hinse l...@d0pefish.de wrote:
 Am 02.03.2010 12:33, schrieb Rajagopal Swaminathan:


 A search for sendmail analyzer at freshmeat shows some results:
 http://freshmeat.net/search?q=sendmail+analyzersubmit=Search


Thanks Peter.

In IRc somebody pointed out
http://sareport.darold.net/

currently investigating it.

Regards,

Rajagopal
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tom Georgoulias
On 03/02/2010 05:10 AM, Tony Mountifield wrote:
 I have a remote CentOS 4 machine on a network where I can't put a DHCP
 or PXE server, and I want to do a complete reinstall. So what I want to
 do is, from the currently-running system, to invoke an installation
 kernel and initrd in just the same way that GRUB would, giving it a boot
 command line that specifies a remote kickstart file, installation tree,
 and other required info.

 If not, are there any other ways to achieve what I've described?

I would use cobbler and koan for this.  Once you have a cobbler server 
setup for the kickstart (which is super easy to do), you can use koan 
with the --replace-self and -k options and do exactly what you want.

Tom
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Problem.

2010-03-02 Thread Damas Ally
Greetings all,
I am using Centos-5.3 in my server which is running dns, apache and mail.
When the power went off and back then all of my services are not be able to
run, i visited log files esp for httpd it says read-only and httpd cant
start, this cause all of my services to stop. i tried to fix by fsck but
still i cant be able to log in my mails via web access because httpd is not
running, in short all services stopped.
I need help, what to do so that to change the read-only mode, i cant even
delete any file.
After running fsck and reboot now it reached:-
(none) login:
and if i type root gives   incorrect.
Please help me so that to get back my mail server online (mails are in this
server).
regards,
Damas

-- 
ICT4Community, in Community, with Community.
dama...@hotmail.com/aim.com/juasun.net
+255 (0) 715 /784 /767 464 678
QQ 860719395, skype: damas.ally
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem.

2010-03-02 Thread Dominik Zyla
On Tue, Mar 02, 2010 at 05:08:22PM +0300, Damas Ally wrote:
 Greetings all,
 I am using Centos-5.3 in my server which is running dns, apache and mail.
 When the power went off and back then all of my services are not be able to
 run, i visited log files esp for httpd it says read-only and httpd cant start,
 this cause all of my services to stop. i tried to fix by fsck but still i cant
 be able to log in my mails via web access because httpd is not running, in
 short all services stopped.
 I need help, what to do so that to change the read-only mode, i cant even
 delete any file.
 After running fsck and reboot now it reached:-
 (none) login:
 and if i type root gives   incorrect.
 Please help me so that to get back my mail server online (mails are in this
 server).

Hi,

Did you checked appriopriate (/var) partition with fsck?

-- 
Dominik Zyla



pgpP0kuPlbmLF.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tony Mountifield
In article 4b8d1650.1060...@mcclatchyinteractive.com,
Tom Georgoulias t...@mcclatchyinteractive.com wrote:
 On 03/02/2010 05:10 AM, Tony Mountifield wrote:
  I have a remote CentOS 4 machine on a network where I can't put a DHCP
  or PXE server, and I want to do a complete reinstall. So what I want to
  do is, from the currently-running system, to invoke an installation
  kernel and initrd in just the same way that GRUB would, giving it a boot
  command line that specifies a remote kickstart file, installation tree,
  and other required info.
 
  If not, are there any other ways to achieve what I've described?
 
 I would use cobbler and koan for this.  Once you have a cobbler server 
 setup for the kickstart (which is super easy to do), you can use koan 
 with the --replace-self and -k options and do exactly what you want.

Can this be done even if I can't put the cobbler server on the same
network as the box I want to re-install? The information I found on
cobbler suggested to me that it was a tying together of DHCP, PXE,
kickstart and install tree. As I understand it, the DHCP and PXE/TFTP
servers have to be local, and also I have to have the box able to perform
a PXE boot. So if the box in question is remote and on a network that
I don't control or have any other boxes on, I suspect cobbler and koan
wouldn't work.

I could well have misunderstood - I found very little detail about koan
apart from the command line options.

Cheers
Tony

-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Using USB Tape drive on Centos 5.3 (kernel 2.6.18-164.10.1.el5PAE)

2010-03-02 Thread Muro, Sam
Hello there
I have been trying to install HP Storageworks DAT72 on CentOS 5 in vain.
On system reboot, neither /dev/st not /dev/sg is available. May you please
lead me through as this is my first time trying to do it

lsmod
Module  Size  Used by
ipv6  267617  40
xfrm_nalgo 13381  1 ipv6
crypto_api 12609  1 xfrm_nalgo
autofs429253  2
hidp   23105  2
dahdi_echocan_mg2  10248  0
wanec 306712  0
af_wanpipe 38080  0
wanpipe   459296  64
wanrouter  42336  6 wanec,af_wanpipe,wanpipe
dahdi 192392  128 dahdi_echocan_mg2,wanpipe
crc_ccitt   6337  1 dahdi
sdladrv79648  2 wanpipe,wanrouter
rfcomm 42457  0
l2cap  29505  10 hidp,rfcomm
bluetooth  53925  5 hidp,rfcomm,l2cap
sunrpc145533  1
dm_multipath   24909  0
scsi_dh11713  1 dm_multipath
video  21193  0
hwmon   7365  0
backlight  10049  1 video
sbs18533  0
i2c_ec  9025  1 sbs
i2c_core   23745  1 i2c_ec
button 10705  0
battery13637  0
asus_acpi  19289  0
ac  9157  0
parport_pc 29157  0
lp 15849  0
parport37513  2 parport_pc,lp
hpilo  13389  0
bnx2  173133  0
serio_raw  10693  0
pcspkr  7105  0
dm_raid45  67145  0
dm_message  6977  1 dm_raid45
dm_region_hash 15681  1 dm_raid45
dm_mem_cache9537  1 dm_raid45
dm_snapshot22885  0
dm_zero 6209  0
dm_mirror  24265  0
dm_log 14657  3 dm_raid45,dm_region_hash,dm_mirror
dm_mod 63225  11
dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
cciss  67909  3
sd_mod 25281  0
scsi_mod  141717  3 scsi_dh,cciss,sd_mod
ext3  125001  2
jbd57065  1 ext3
uhci_hcd   25549  0
ohci_hcd   24809  0
ehci_hcd   34125  0


#cat /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter cciss
alias scsi_hostadapter1 usb-storage
install usb-storage :
---

#ls -l /dev
[r...@scb-dr-pbx01 ~]# ll /dev/
total 0
crw--- 1 root root  10,62 Mar  2 18:06 autofs
drwxr-xr-x 3 root root 60 Mar  2 18:06 bus
drwxr-xr-x 2 root root100 Mar  2 18:06 cciss
crw--- 1 root root   5, 1 Mar  2 18:07 console
lrwxrwxrwx 1 root root 11 Mar  2 18:06 core - /proc/kcore
drwxr-xr-x 2 asterisk asterisk   1360 Mar  2 18:06 dahdi
drwxr-xr-x 4 root root 80 Mar  2 18:06 disk
lrwxrwxrwx 1 root root 13 Mar  2 18:06 fd - /proc/self/fd
crw-rw-rw- 1 root root   1, 7 Mar  2 18:06 full
srwxrwxrwx 1 root root  0 Mar  2 18:06 gpmctl
crw--- 1 root root  10,   228 Mar  2 18:06 hpet
drwxr-xr-x 2 root root200 Mar  2 18:06 hpilo
prw--- 1 root root  0 Mar  2 18:06 initctl
drwxr-xr-x 2 root root160 Mar  2 18:06 input
crw--- 1 root root   1,11 Mar  2 18:06 kmsg
srw-rw-rw- 1 root root  0 Mar  2 18:06 log
brw-r- 1 root disk   7, 0 Mar  2 18:06 loop0
brw-r- 1 root disk   7, 1 Mar  2 18:06 loop1
brw-r- 1 root disk   7, 2 Mar  2 18:06 loop2
brw-r- 1 root disk   7, 3 Mar  2 18:06 loop3
brw-r- 1 root disk   7, 4 Mar  2 18:06 loop4
brw-r- 1 root disk   7, 5 Mar  2 18:06 loop5
brw-r- 1 root disk   7, 6 Mar  2 18:06 loop6
brw-r- 1 root disk   7, 7 Mar  2 18:06 loop7
lrwxrwxrwx 1 root root 13 Mar  2 18:06 MAKEDEV -
/sbin/MAKEDEV
drwxr-xr-x 2 root root100 Mar  2 18:06 mapper
brw-r- 1 root disk   9, 0 Mar  2 18:06 md0
crw-r- 1 root kmem   1, 1 Mar  2 18:06 mem
drwxr-xr-x 2 root root 60 Mar  2 18:06 net
crw-rw-rw- 1 root root   1, 3 Mar  2 18:06 null
crw-rw 1 root root  10,   144 Mar  2 18:06 nvram
crw--- 1 root root   1,12 Mar  2 18:06 oldmem
crw-rw 1 root lp99, 0 Mar  2 18:06 parport0
crw-rw 1 root lp99, 1 Mar  2 18:06 parport1
crw-rw 1 root lp99, 2 Mar  2 18:06 parport2
crw-rw 1 root lp99, 3 Mar  2 18:06 parport3
crw-r- 1 root kmem   1, 4 Mar  2 18:06 port
crw--- 1 root root 108, 0 Mar  2 18:06 ppp
crw-rw-rw- 1 root tty5, 2 

Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Dominik Zyla
On Tue, Mar 02, 2010 at 03:04:06PM +, Tony Mountifield wrote:
 In article 4b8d1650.1060...@mcclatchyinteractive.com,
 Tom Georgoulias t...@mcclatchyinteractive.com wrote:
  On 03/02/2010 05:10 AM, Tony Mountifield wrote:
   I have a remote CentOS 4 machine on a network where I can't put a DHCP
   or PXE server, and I want to do a complete reinstall. So what I want to
   do is, from the currently-running system, to invoke an installation
   kernel and initrd in just the same way that GRUB would, giving it a boot
   command line that specifies a remote kickstart file, installation tree,
   and other required info.
  
   If not, are there any other ways to achieve what I've described?
  
  I would use cobbler and koan for this.  Once you have a cobbler server 
  setup for the kickstart (which is super easy to do), you can use koan 
  with the --replace-self and -k options and do exactly what you want.
 
 Can this be done even if I can't put the cobbler server on the same
 network as the box I want to re-install? The information I found on
 cobbler suggested to me that it was a tying together of DHCP, PXE,
 kickstart and install tree. As I understand it, the DHCP and PXE/TFTP
 servers have to be local, and also I have to have the box able to perform
 a PXE boot. So if the box in question is remote and on a network that
 I don't control or have any other boxes on, I suspect cobbler and koan
 wouldn't work.
 
 I could well have misunderstood - I found very little detail about koan
 apart from the command line options.

Hi,

Yes, It must be the same network/vlan.

-- 
Dominik Zyla



pgpmQMYO7b7qH.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Success moving Xen LVMs from 32 to 64bit host

2010-03-02 Thread Kwan Lowe
Thanks Henry...

On Tue, Mar 2, 2010 at 2:10 AM, henry ritzlmayr cen...@rc0.at wrote:
 Next, we copied the /etc/xen/xm_c32_001 configuration file to the
 replacement server.  We generated a new UUID using the uuidgen
 utility. We also created a new MAC address.  Finally, we started the
 instance:

 Since you moved your virtual machine, you wouldn´t have to create a new
 UUID and no new MAC address. This is only required if you copy a virtual
 machine and if you want both up at the same time.


Yes.. It's possible that we may have multiple copies of these
systems..   Also, I un
 xm create xm_c32_001

 Everything came up, but no network.  From the root console we logged
 in then edited the /etc/sysconfig/network-scripts/ifcfg-eth0.  Xen had
 apparently renamed the script and put in a DHCP configuration. We just
 renamed the backup file and commented out the MAC address line and
 restarted networking, *and* ifdown eth0 then ifup eth0.

 This is because you changed the MAC address. If you would have left it
 at the original value, the network would have started right away with
 the old config.


:D

Yes.. My error caused by re-using a script that autogenerated the
config file. I had been playing with VMWare Lab Manager recently and
was looking to emulate the template functionality in Xen.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Success moving Xen LVMs from 32 to 64bit host

2010-03-02 Thread Kwan Lowe
On Tue, Mar 2, 2010 at 4:14 AM, Pasi Kärkkäinen pa...@iki.fi wrote:

 It's not Xen renaming the script :) You changed the MAC address, so the
 centos network init scripts will rename the ifcfg file, and generate
 new default one (with dhcp).

 rhel/centos ifcfg-eth* are based on MAC addresses.

Thanks Pasi...
Pretty cool feature... I was overly enthusiastic in trying to figure
out why I couldn't see the vm after I booted it. If I'd waited or
re-arp'ed it would have worked without my meddling.  Chalk a point up
for CentOS :P
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tom Georgoulias
On 03/02/2010 10:04 AM, Tony Mountifield wrote:
 In article4b8d1650.1060...@mcclatchyinteractive.com,
 Tom Georgouliast...@mcclatchyinteractive.com  wrote:
 On 03/02/2010 05:10 AM, Tony Mountifield wrote:
 I have a remote CentOS 4 machine on a network where I can't put a DHCP
 or PXE server, and I want to do a complete reinstall. So what I want to
 do is, from the currently-running system, to invoke an installation
 kernel and initrd in just the same way that GRUB would, giving it a boot
 command line that specifies a remote kickstart file, installation tree,
 and other required info.

 If not, are there any other ways to achieve what I've described?

 I would use cobbler and koan for this.  Once you have a cobbler server
 setup for the kickstart (which is super easy to do), you can use koan
 with the --replace-self and -k options and do exactly what you want.

 Can this be done even if I can't put the cobbler server on the same
 network as the box I want to re-install? The information I found on
 cobbler suggested to me that it was a tying together of DHCP, PXE,
 kickstart and install tree. As I understand it, the DHCP and PXE/TFTP
 servers have to be local, and also I have to have the box able to perform
 a PXE boot. So if the box in question is remote and on a network that
 I don't control or have any other boxes on, I suspect cobbler and koan
 wouldn't work.

 I could well have misunderstood - I found very little detail about koan
 apart from the command line options.

You can use cobbler and install clients without DHCP/PXE.  When you run 
koan, you pass in all of the normal kickstart options you would use to 
configure a static network interface (ip, netmask, gateway, dns, 
ksdevice, etc.).  Koan will download the kickstart config and 
initrd/vmlinuz images you need to boot up, plus add all of the grub 
entries you need to automatically get into the kickstart after a reboot. 
  On your next reboot, it will choose that entry in grub, immediately go 
into kickstart mode, and follow the config in the ks.cfg file that it 
pulled from the cobbler server.

Tom
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Karanbir Singh
On 03/02/2010 10:10 AM, Tony Mountifield wrote:
 I have a remote CentOS 4 machine on a network where I can't put a DHCP
 or PXE server, and I want to do a complete reinstall. So what I want to
...
 If not, are there any other ways to achieve what I've described?

Try this ( or a process like this ) :

http://www.karan.org/blog/index.php/2005/06/15/

Make sure you test the line you end up using ( like in a local VM ) 
before you do this on the live machine.

The process works, I've used it many times in the past ( and about a 
dozen times in just the last 10 days ).

- KB
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Joshua Baker-LePain
On Tue, 2 Mar 2010 at 10:10am, Tony Mountifield wrote

 I have a remote CentOS 4 machine on a network where I can't put a DHCP
 or PXE server, and I want to do a complete reinstall. So what I want to
 do is, from the currently-running system, to invoke an installation
 kernel and initrd in just the same way that GRUB would, giving it a boot
 command line that specifies a remote kickstart file, installation tree,
 and other required info.

This is simple.  Grab the vmlinuz and initrd.img files from the pxeboot 
directory of the repo you want to install from.  Put those in /boot on the 
server in question.  From there, there are a couple of ways you can go. 
The easiest is to actually put the ks.cfg on the server itself.  Then you 
can add a stanza like the following (you'll need to tailor all the hard 
drive references to your own setup, of course) to your grub.conf:

title reinstall
 root (hd0,0)
 kernel /boot/vmlinuz ks=hd:sda1:/ks.cfg ksdevice=eth0
 initrd /boot/initrd.img

Make that entry the default, reboot, and your kickstart will start. 
Obviously all of your network info needs to be specified in the ks.cfg 
file.

If you want to grab the ks.cfg from a remote server, that can be done too, 
but you'll need to specify the network config options on the kernel line 
above.  I don't have the exact syntax handy, but it's all documented. 
Install the anaconda package and look in 
/usr/share/doc/anaconda-$VERSION/command-line.txt and you can see all the 
options you can pass to the install kernel.  On CentOS-5 installs I 
always use noipv6, since it seems to make things go much faster.

For a one-off like this, installing cobbler is a bit (read: a lot) of 
overkill.

-- 
Joshua Baker-LePain
QB3 Shared Cluster Sysadmin
UCSF
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tony Mountifield
In article 4b8d34be.3090...@mcclatchyinteractive.com,
Tom Georgoulias t...@mcclatchyinteractive.com wrote:
 On 03/02/2010 10:04 AM, Tony Mountifield wrote:
  In article4b8d1650.1060...@mcclatchyinteractive.com,
  Tom Georgouliast...@mcclatchyinteractive.com  wrote:
  On 03/02/2010 05:10 AM, Tony Mountifield wrote:
  I have a remote CentOS 4 machine on a network where I can't put a DHCP
  or PXE server, and I want to do a complete reinstall. So what I want to
  do is, from the currently-running system, to invoke an installation
  kernel and initrd in just the same way that GRUB would, giving it a boot
  command line that specifies a remote kickstart file, installation tree,
  and other required info.
 
  If not, are there any other ways to achieve what I've described?
 
  I would use cobbler and koan for this.  Once you have a cobbler server
  setup for the kickstart (which is super easy to do), you can use koan
  with the --replace-self and -k options and do exactly what you want.
 
  Can this be done even if I can't put the cobbler server on the same
  network as the box I want to re-install? The information I found on
  cobbler suggested to me that it was a tying together of DHCP, PXE,
  kickstart and install tree. As I understand it, the DHCP and PXE/TFTP
  servers have to be local, and also I have to have the box able to perform
  a PXE boot. So if the box in question is remote and on a network that
  I don't control or have any other boxes on, I suspect cobbler and koan
  wouldn't work.
 
  I could well have misunderstood - I found very little detail about koan
  apart from the command line options.
 
 You can use cobbler and install clients without DHCP/PXE.  When you run 
 koan, you pass in all of the normal kickstart options you would use to 
 configure a static network interface (ip, netmask, gateway, dns, 
 ksdevice, etc.).  Koan will download the kickstart config and 
 initrd/vmlinuz images you need to boot up, plus add all of the grub 
 entries you need to automatically get into the kickstart after a reboot. 
   On your next reboot, it will choose that entry in grub, immediately go 
 into kickstart mode, and follow the config in the ks.cfg file that it 
 pulled from the cobbler server.

Cool, that makes sense - thanks! It hadn't occurred to me that I could
add a new kernel and initrd to grub.conf with the required append line,
and then just reboot. Obvious when you think about it!

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tony Mountifield
In article 4b8d36f8.2070...@karan.org,
Karanbir Singh mail-li...@karan.org wrote:
 On 03/02/2010 10:10 AM, Tony Mountifield wrote:
  I have a remote CentOS 4 machine on a network where I can't put a DHCP
  or PXE server, and I want to do a complete reinstall. So what I want to
 ...
  If not, are there any other ways to achieve what I've described?
 
 Try this ( or a process like this ) :
 
 http://www.karan.org/blog/index.php/2005/06/15/
 
 Make sure you test the line you end up using ( like in a local VM ) 
 before you do this on the live machine.
 
 The process works, I've used it many times in the past ( and about a 
 dozen times in just the last 10 days ).

Excellent, thanks! Obvious once you've seen it. :-)

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tom Georgoulias
On 03/02/2010 11:20 AM, Tony Mountifield wrote:

 You can use cobbler and install clients without DHCP/PXE.  When you run
 koan, you pass in all of the normal kickstart options you would use to
 configure a static network interface (ip, netmask, gateway, dns,
 ksdevice, etc.).  Koan will download the kickstart config and
 initrd/vmlinuz images you need to boot up, plus add all of the grub
 entries you need to automatically get into the kickstart after a reboot.
On your next reboot, it will choose that entry in grub, immediately go
 into kickstart mode, and follow the config in the ks.cfg file that it
 pulled from the cobbler server.

 Cool, that makes sense - thanks! It hadn't occurred to me that I could
 add a new kernel and initrd to grub.conf with the required append line,
 and then just reboot. Obvious when you think about it!

Also, look into Joshua's reply for setting up the same thing that koan 
does up w/o the cobbler server part.  If you are just going to do this a 
single time and don't think you'd want cobbler or have something else 
for kickstarts, his advice is great.

Good luck.

Tom
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] {Disarmed} Problem.

2010-03-02 Thread Kai Schaetzl
Damas Ally wrote on Tue, 2 Mar 2010 17:08:22 +0300:

 After running fsck and reboot now it reached:-
 (none) login:
 and if i type root gives   incorrect.

Haven't seen this prompt for a while. Is it possible that it just wants 
the root password? (not root by itself, it will log you in as root 
anyway!)

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using USB Tape drive on Centos 5.3 (kernel 2.6.18-164.10.1.el5PAE)

2010-03-02 Thread John Doe
From: Muro, Sam resea...@businesstz.com
 I have been trying to install HP Storageworks DAT72 on CentOS 5 in vain.
 On system reboot, neither /dev/st not /dev/sg is available. May you please
 lead me through as this is my first time trying to do it

What does lsusb show?
Just a thought; did you check in the BIOS if there are USB options (legacy and 
such)?
Maybe install 'HP StorageWorks LTT' (Library and Tape Tools); it might help 
testing...

JD


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 61, Issue 1

2010-03-02 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of CentOS-announce digest...


Today's Topics:

   1. CESA-2010:0109 Moderate CentOS 5 i386 mysql Update
  (Karanbir Singh)
   2. CESA-2010:0109 Moderate CentOS 5 x86_64 mysql Update
  (Karanbir Singh)
   3. CEBA-2010:0120  CentOS 5 i386 coreutils Update (Karanbir Singh)
   4. CEBA-2010:0120 CentOS 5 x86_64 coreutils Update (Karanbir Singh)
   5. CESA-2010:0122 Important CentOS 5 i386 sudo Update
  (Karanbir Singh)
   6. CESA-2010:0122 Important CentOS 5 x86_64 sudo Update
  (Karanbir Singh)
   7. CEBA-2010:0123  CentOS 5 i386 openssh Update (Karanbir Singh)
   8. CEBA-2010:0123  CentOS 5 x86_64 openssh Update (Karanbir Singh)
   9. CESA-2010:0125 Moderate CentOS 4 i386 systemtap - security
  update (Tru Huynh)
  10. CESA-2010:0125 Moderate CentOS 4 x86_64 systemtap - security
  update (Tru Huynh)


--

Message: 1
Date: Mon, 1 Mar 2010 18:43:17 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2010:0109 Moderate CentOS 5 i386 mysql
Update
To: centos-annou...@centos.org
Message-ID: 20100301184317.ga12...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2010:0109 Moderate

Upstream details at : http://rhn.redhat.com/errata/RHSA-2010-0109.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
37200089252dddfb4a98ed63c2d50cbc  mysql-5.0.77-4.el5_4.2.i386.rpm
bc12d83158cecdbd67370b187a4422db  mysql-bench-5.0.77-4.el5_4.2.i386.rpm
92123a9b03b1b46ada811bc9ad880cf2  mysql-devel-5.0.77-4.el5_4.2.i386.rpm
d17190eb584546cd6619212007f0a4b6  mysql-server-5.0.77-4.el5_4.2.i386.rpm
9995578eb7a594110e7acaadd60702c9  mysql-test-5.0.77-4.el5_4.2.i386.rpm

Source:
a4e45550d082ec47db11f4abb02359b5  mysql-5.0.77-4.el5_4.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 2
Date: Mon, 1 Mar 2010 18:43:17 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2010:0109 Moderate CentOS 5 x86_64
mysql   Update
To: centos-annou...@centos.org
Message-ID: 20100301184317.ga12...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2010:0109 Moderate

Upstream details at : http://rhn.redhat.com/errata/RHSA-2010-0109.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
d3793de989c2bb288faf17fbe0b17131  mysql-5.0.77-4.el5_4.2.i386.rpm
8f2e404cb17cac0b712b73e9d5519487  mysql-5.0.77-4.el5_4.2.x86_64.rpm
0402f2b2fed77e2cb538194fba693494  mysql-bench-5.0.77-4.el5_4.2.x86_64.rpm
993ee197369a1c277e238d61b4ea03d6  mysql-devel-5.0.77-4.el5_4.2.i386.rpm
89246a1a1fd6b6bd85c58bed28576e50  mysql-devel-5.0.77-4.el5_4.2.x86_64.rpm
be976f972a100f1a1edf6e8cd490d9e6  mysql-server-5.0.77-4.el5_4.2.x86_64.rpm
e45474e49ff5d82c444bd9227459ef9d  mysql-test-5.0.77-4.el5_4.2.x86_64.rpm

Source:
a4e45550d082ec47db11f4abb02359b5  mysql-5.0.77-4.el5_4.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 3
Date: Mon, 1 Mar 2010 18:44:02 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CEBA-2010:0120  CentOS 5 i386 coreutils
Update
To: centos-annou...@centos.org
Message-ID: 20100301184402.ga12...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2010:0120 

Upstream details at : http://rhn.redhat.com/errata/RHBA-2010-0120.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
110d59f05de91ad9ac566bc60bc466f0  coreutils-5.97-23.el5_4.2.i386.rpm

Source:
e9e6230d000ed3240098a70bee60766d  coreutils-5.97-23.el5_4.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 4
Date: Mon, 1 Mar 2010 18:44:02 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CEBA-2010:0120 CentOS 5 x86_64 coreutils
Update
To: centos-annou...@centos.org
Message-ID: 20100301184402.ga12...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2010:0120 

Upstream details at : 

Re: [CentOS] Problem.

2010-03-02 Thread John Doe
From: Damas Ally dama...@gmail.com
When the power went off and back then all of my services are not be able to 
run, i visited log files esp for httpd it says read-only and httpd cant start, 
this cause all of my services to stop. i tried to fix by fsck but still i cant 
be able to log in my mails via web access because httpd is not running, in 
short all services stopped.
I need help, what to do so that to change the read-only mode, i cant even 
delete any file.

I think it is read-only because the filesystem has errors...
How did you run fsck? automaticaly or interactively?
You could 'mount -n -o remount,rw /' but it is unsafe if the filesystem is 
unclean...

JD


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kexec for CentOS 4?

2010-03-02 Thread Tony Mountifield
In article alpine.lrh.2.00.1003021050260.7...@hogwarts.egr.duke.edu,
Joshua Baker-LePain jl...@duke.edu wrote:
 On Tue, 2 Mar 2010 at 10:10am, Tony Mountifield wrote
 
  I have a remote CentOS 4 machine on a network where I can't put a DHCP
  or PXE server, and I want to do a complete reinstall. So what I want to
  do is, from the currently-running system, to invoke an installation
  kernel and initrd in just the same way that GRUB would, giving it a boot
  command line that specifies a remote kickstart file, installation tree,
  and other required info.
 
 This is simple.  Grab the vmlinuz and initrd.img files from the pxeboot 
 directory of the repo you want to install from.  Put those in /boot on the 
 server in question.  From there, there are a couple of ways you can go. 
 The easiest is to actually put the ks.cfg on the server itself.  Then you 
 can add a stanza like the following (you'll need to tailor all the hard 
 drive references to your own setup, of course) to your grub.conf:
 
 title reinstall
  root (hd0,0)
  kernel /boot/vmlinuz ks=hd:sda1:/ks.cfg ksdevice=eth0
  initrd /boot/initrd.img
 
 Make that entry the default, reboot, and your kickstart will start. 
 Obviously all of your network info needs to be specified in the ks.cfg 
 file.
 
 If you want to grab the ks.cfg from a remote server, that can be done too, 
 but you'll need to specify the network config options on the kernel line 
 above.  I don't have the exact syntax handy, but it's all documented. 
 Install the anaconda package and look in 
 /usr/share/doc/anaconda-$VERSION/command-line.txt and you can see all the 
 options you can pass to the install kernel.  On CentOS-5 installs I 
 always use noipv6, since it seems to make things go much faster.
 
 For a one-off like this, installing cobbler is a bit (read: a lot) of 
 overkill.

Thanks - much appreciated!

Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Virtual Machine Path Issue

2010-03-02 Thread gene . poole
All,

I'm running CentOS 5.3 x86_64 and I decided to install VMware Server 2.0.2 
and all went without a hitch.

I then created a Virtual Machine and used CentOS 5.4 x86_32 ISO image to 
build it.  While I was customizing the built image, I attempted a 'find' 
command and received a message that the command could not be found. I 
checked root's path statement and found some strange entries (i.e. 
/usr/bini).  Once I corrected those entries all seems to be working fine 
now. I don't have a physical platform to test the ISO on, so I must remain 
in the virtual arena.

How can I tell if this is an error with the ISO or something going crazy 
during the VM build?
 
Thanks,
Gene Poole
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] DHCP client not working with Windows DHCP / dynamic DNS server

2010-03-02 Thread Florin Andrei
# Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:22:19:XX:XX:XX
ONBOOT=yes
DHCP_HOSTNAME=centos.XX.local

In this particular instance, it's a place where Windows is used for DHCP 
and DNS servers. :( I have no control over the Windows side of things.

The Windows sysadmins claim I don't need a fixed IP address, because DNS 
will pick up the name after I make the DHCP request. The problem is, 
that doesn't happen, even though the DHCP client is correctly configured 
(see above). The system is vanilla CentOS 5.4, text-mode install, fully 
updated.

I boot the CentOS system. Then, on another Linux machine, I do host 
centos.XXX.local and it returns host not found. However, if I do 
the same for other hostnames, DNS resolution works fine.

Is there anything else I can do on my side to make it happen? Any 
particular options in dhclient.conf or something like that?

-- 
Florin Andrei
http://florin.myip.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] DHCP client not working with Windows DHCP / dynamic DNS server

2010-03-02 Thread nate
Florin Andrei wrote:

 Is there anything else I can do on my side to make it happen? Any
 particular options in dhclient.conf or something like that?

See the man page ?

DYNAMIC DNS
   The client now has some very limited support for doing DNS
updates  when  a  lease  is  acquired. This is prototypical, and
probably doesn't do what you want.   It also only works if you
happen to have control over your DNS server, which isn't very
likely.

   To make it work, you have to declare a key and zone as in
the DHCP server (see  dhcpd.conf(5)  for details).   You also need
to configure the fqdn option on the client, as follows:

 send fqdn.fqdn grosse.fugue.com.;
 send fqdn.encoded on;
 send fqdn.server-update off;

   The fqdn.fqdn option MUST be a fully-qualified domain name.
You MUST define a zone statement for the zone to be updated.
The fqdn.encoded option may need to be set to on or  off,
depending  on the DHCP server you are using.

--

On my company's windows network the IT guy just assigns static
IPs via MAC addresses to those that want a fixed IP and create
a DNS name associated with it.

Myself I've never liked dynamic DNS, never used it, I like my
zone files organized(and plain text, no binary crap) and I
suspect dynamic DNS would screw it all up. I've seen how
horribly polluted zones can get on windows networks with
dynamic DNS, overlapping names, multiple DNS entries for the
same IP etc.

nate



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using USB Tape drive on Centos 5.3 (kernel 2.6.18-164.10.1.el5PAE)

2010-03-02 Thread Muro, Sam
John Doe wrote:
 From: Muro, Sam resea...@businesstz.com
 I have been trying to install HP Storageworks DAT72 on CentOS 5 in vain.
 On system reboot, neither /dev/st not /dev/sg is available. May you
 please
 lead me through as this is my first time trying to do it

 What does lsusb show?
I have lost the connection to the server but I will post this output later
today

 Just a thought; did you check in the BIOS if there are USB options (legacy
 and such)?
 Maybe install 'HP StorageWorks LTT' (Library and Tape Tools); it might
 help testing...
I have also downloaded the utility and shall let you know how it goes


 JD



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Wireless Made Easy (for Home Desktops)

2010-03-02 Thread Ron Blizzard
For those of you who use a wireless router and may work on one or two
(or even several) machines in your computer room, an AP Client is a
nice solution. When you move to another machine you can just move the
wireless net adapter to the new machine and you're up and running on
the network immediately. I've been using a D-Link G730AP for a while
-- but it's not really made for this -- it's a pocket adapter meant to
carry with you laptop. And, unlike my old Asus WL-330, it won't hook
up to a switch.

Asus also makes a more powerful, larger, wireless
AP/Client/Bridge/Reapeater, the WL-320gE. I bought two of these on
eBay and they work great as Clients (network adapters) or Stations
in Asus talk. They have a range of 850 meters (as compared to the
pocket AP's range of 40 meters) so, in my room, I've got the full
speed of my Cable wirelessly. It's three to four times faster than the
D-Link G730AP, and it's solid (the D-Link was iffy). But, more
importantly, I can hook it up to a wired (standard) switch and have as
many simultaneous network connections as ports in the switch (in this
case, four -- but I only use two). I've also set one up in the back of
the house with a switch for my son's computers -- through several
walls they're still getting very fast service. This is the only way
I've used this device, but a lot of people buy them as repeaters. (I
could mine up a repeater/client and my kids would have an even
stronger single, but it's not necessary.) Another feature of Asus is
that you can use it simultaneously as a bridge and as a wired client.
It works well, the documentation is a bit inadequate, but it doesn't
take long to translate.

Anyhow, I've rambled again. The reason I bring this up is that these
things are currently selling for $25 on eBay -- which is about the
cost of mid-range USB adapter. The seller has nearly 800 of them. (I
have no relationship with the seller, except I'm a customer.)

The eBay link is at http://tinyurl.com/ykysncw

-- 
RonB -- Using CentOS 5.4
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Back to apcupsd

2010-03-02 Thread m . roth
Ok, so another apc UPS 3000 complained about bad batteries, and I changed
them out from the same order that I'd gotten in a couple of months ago.

The APC SmartUPS 3000 started connecting and disconnecting the USB
connection. I brought down and up the service, no joy.

Finally, after googling, I found a *completely* undocumented way to start
apcupsd, that a few years ago someone was told to try, so as to log
debugging info, to send to a developer:
   apcupsd -d1000 -T
I've just skimmed the man page, and the online docs, and there is *no*
mention of either parm. I found nothing in the logs.

However, when I kill -HUPped it, and restarted the service, the USB stuff
had stopped. Ok, one problem down.

The change battery light's still on. I'll see if it still is in the
morning. One thing I did note, while skimming the docs, and comparing my
results from apcaccess, was that while the nominal voltage for the APC
SmartUPS 3000 is 48V, the new batteries are showing 55.4V. Anyone have any
idea if this could be why the replace battery light's on - it's more than
5V difference?

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Back to apcupsd

2010-03-02 Thread John R Pierce
m.r...@5-cent.us wrote:
 ...that while the nominal voltage for the APC
 SmartUPS 3000 is 48V, the new batteries are showing 55.4V. 


lead acid batteries are 2.1-2.15V per cell when fully charged, and the 
trickle charging float voltage is more like 2.3V per cell.  2.3 * 6 
cells/battery * 4 batteries == 55 V

to read the batteries charge state, you would need to disconnect them 
from the charger(UPS) for about 4-6 hours before reading the voltage, 
this lets the surface charge dissipate.   After doing this, you should 
see 12.6-12.8V per 12v battery, or 50.4 to 51.2V for your stack of 4 * 
12V.  All these voltages assume 68-72F battery temperature.48V is 
nearly totally discharged





___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Success moving Xen LVMs from 32 to 64bit host

2010-03-02 Thread Ted Kaczmarek
The network should not have been an issue, are you sure you used the same vm 
config on both hosts?
That means the mac address would stay the same, and their should not be any L2 
related issues, that
are related to vm anyway.

Ted


On Mar 1, 2010, at 2:47 PM, Kwan Lowe wrote:

 Just wanted to share some success I had moving some Xen guests from
 one server to another.
 
 Problem Recap
 We had Xen host on a single core 32-bit CentOS 5.4 installation on an
 AMD Athlon 2.1 GhZ system that was giving hard drive errors and needed
 to move the LVM-backed Xen images to another server. The replacement
 server was a quad-core AMD Phenom system running 64-bit CentOS 5.4.
 
 Our original plan was to use LVM snapshots so that we wouldn't need a
 maintenance window. This worked fine in test, but we decided to bring
 down the Xen guests after all.  After shutting down the systems we
 backed up the LVMs.
 
 To show the backing LV:
 lvdisplay /dev/rootvg/xm_c32_001
 
 From this, we grabbed the Current LE field and LV Size. We used LV
 Size to create a temporary mount point. We used the Current LE
 parameter to create an identically sized LV on the replacement server
 .
 
 On the failing server:
 dd if=/dev/rootvg/xm_c32_001 of=/mnt/backup/xm_c32_001.out
 
 We gzip'ed the resulting .out file and saved it as a backup.
 
 +++Footnote
 BTW, there are many recommendations to do the following on the virtual 
 machine:
   dd if=/dev/zero bs=1024 count= of=/partition.out
   rm partition.out
 
 By creating the large empty file on each partition  *in the guest
 istance* (/var, /, /home, etc.), it will improve the image
 compression.  Space was not much of a concern and we were worried
 about blowing out a production system, so we opted not to do this.
 +++Footnote
 
 Once the backing LVM was created, we created the LV on the replacement server:
 lvcreate -l xxx -n xm_c32_001 rootvg
 
 
 Then used dd to recreate the file:
 dd if=xm_c32_001.out of=/dev/rootvg/xm_c32_001
 
 Next, we copied the /etc/xen/xm_c32_001 configuration file to the
 replacement server.  We generated a new UUID using the uuidgen
 utility. We also created a new MAC address.  Finally, we started the
 instance:
 
 xm create xm_c32_001
 
 Everything came up, but no network.  From the root console we logged
 in then edited the /etc/sysconfig/network-scripts/ifcfg-eth0.  Xen had
 apparently renamed the script and put in a DHCP configuration. We just
 renamed the backup file and commented out the MAC address line and
 restarted networking, *and* ifdown eth0 then ifup eth0.
 
 It took a few seconds for the network to properly discover the new MAC
 address. Once that was done, everything worked beautifully.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem.

2010-03-02 Thread Jobst Schmalenbach

That is the root password you need to specify.
then you need to look BEFORE that line and find out what
fsck cannot check with the -a flag set.

You need to run fsck on the partition in question, then
correct all errors and type exit at the end.

the machine will then reboot.

jobst



On Tue, Mar 02, 2010 at 05:08:22PM +0300, Damas Ally (dama...@gmail.com) wrote:
 Greetings all,
 I am using Centos-5.3 in my server which is running dns, apache and mail.
 When the power went off and back then all of my services are not be able to
 run, i visited log files esp for httpd it says read-only and httpd cant
 start, this cause all of my services to stop. i tried to fix by fsck but
 still i cant be able to log in my mails via web access because httpd is not
 running, in short all services stopped.
 I need help, what to do so that to change the read-only mode, i cant even
 delete any file.
 After running fsck and reboot now it reached:-
 (none) login:
 and if i type root gives   incorrect.
 Please help me so that to get back my mail server online (mails are in this
 server).
 regards,
 Damas
 
 -- 
 ICT4Community, in Community, with Community.
 dama...@hotmail.com/aim.com/juasun.net
 +255 (0) 715 /784 /767 464 678
 QQ 860719395, skype: damas.ally

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


-- 
C is a write-only language.

  | |0| |   Jobst Schmalenbach, jo...@barrett.com.au, General Manager
  | | |0|   Barrett Consulting Group P/L  The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using USB Tape drive on Centos 5.3 (kernel 2.6.18-164.10.1.el5PAE)

2010-03-02 Thread Jobst Schmalenbach

I use a lot of tapes but never a USB, but from my knowledge I would try

 lsusb

then read the output and look at the id's, find the one that
has the usb tape drive attached to it, then use

 lsusb -vv

and find the matching id to get more info.

You could also try:

 modprobe usb_storage

then

 modbrobe st

and then do 

  lsmod | grep storage
  lsmod | grep st

that they are loaded (st should require to load the scsi stuff too).
You could also look into /dev and look at the major numbers (from
memory 9 is tapes??).

  ls -al /dev/tape/by-id

and

  ls -la /dev/.udev

and look through all of those.

check whether there is something with usb-st or so.

jobst













On Tue, Mar 02, 2010 at 06:13:01PM +0300, Muro, Sam (resea...@businesstz.com) 
wrote:
 Hello there
 I have been trying to install HP Storageworks DAT72 on CentOS 5 in vain.
 On system reboot, neither /dev/st not /dev/sg is available. May you please
 lead me through as this is my first time trying to do it
 
 lsmod
 Module  Size  Used by
 ipv6  267617  40
 xfrm_nalgo 13381  1 ipv6
 crypto_api 12609  1 xfrm_nalgo
 autofs429253  2
 hidp   23105  2
 dahdi_echocan_mg2  10248  0
 wanec 306712  0
 af_wanpipe 38080  0
 wanpipe   459296  64
 wanrouter  42336  6 wanec,af_wanpipe,wanpipe
 dahdi 192392  128 dahdi_echocan_mg2,wanpipe
 crc_ccitt   6337  1 dahdi
 sdladrv79648  2 wanpipe,wanrouter
 rfcomm 42457  0
 l2cap  29505  10 hidp,rfcomm
 bluetooth  53925  5 hidp,rfcomm,l2cap
 sunrpc145533  1
 dm_multipath   24909  0
 scsi_dh11713  1 dm_multipath
 video  21193  0
 hwmon   7365  0
 backlight  10049  1 video
 sbs18533  0
 i2c_ec  9025  1 sbs
 i2c_core   23745  1 i2c_ec
 button 10705  0
 battery13637  0
 asus_acpi  19289  0
 ac  9157  0
 parport_pc 29157  0
 lp 15849  0
 parport37513  2 parport_pc,lp
 hpilo  13389  0
 bnx2  173133  0
 serio_raw  10693  0
 pcspkr  7105  0
 dm_raid45  67145  0
 dm_message  6977  1 dm_raid45
 dm_region_hash 15681  1 dm_raid45
 dm_mem_cache9537  1 dm_raid45
 dm_snapshot22885  0
 dm_zero 6209  0
 dm_mirror  24265  0
 dm_log 14657  3 dm_raid45,dm_region_hash,dm_mirror
 dm_mod 63225  11
 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
 cciss  67909  3
 sd_mod 25281  0
 scsi_mod  141717  3 scsi_dh,cciss,sd_mod
 ext3  125001  2
 jbd57065  1 ext3
 uhci_hcd   25549  0
 ohci_hcd   24809  0
 ehci_hcd   34125  0
 
 
 #cat /etc/modprobe.conf
 alias eth0 bnx2
 alias eth1 bnx2
 alias eth2 bnx2
 alias eth3 bnx2
 alias scsi_hostadapter cciss
 alias scsi_hostadapter1 usb-storage
 install usb-storage :
 ---
 
 #ls -l /dev
 [r...@scb-dr-pbx01 ~]# ll /dev/
 total 0
 crw--- 1 root root  10,62 Mar  2 18:06 autofs
 drwxr-xr-x 3 root root 60 Mar  2 18:06 bus
 drwxr-xr-x 2 root root100 Mar  2 18:06 cciss
 crw--- 1 root root   5, 1 Mar  2 18:07 console
 lrwxrwxrwx 1 root root 11 Mar  2 18:06 core - /proc/kcore
 drwxr-xr-x 2 asterisk asterisk   1360 Mar  2 18:06 dahdi
 drwxr-xr-x 4 root root 80 Mar  2 18:06 disk
 lrwxrwxrwx 1 root root 13 Mar  2 18:06 fd - /proc/self/fd
 crw-rw-rw- 1 root root   1, 7 Mar  2 18:06 full
 srwxrwxrwx 1 root root  0 Mar  2 18:06 gpmctl
 crw--- 1 root root  10,   228 Mar  2 18:06 hpet
 drwxr-xr-x 2 root root200 Mar  2 18:06 hpilo
 prw--- 1 root root  0 Mar  2 18:06 initctl
 drwxr-xr-x 2 root root160 Mar  2 18:06 input
 crw--- 1 root root   1,11 Mar  2 18:06 kmsg
 srw-rw-rw- 1 root root  0 Mar  2 18:06 log
 brw-r- 1 root disk   7, 0 Mar  2 18:06 loop0
 brw-r- 1 root disk   7, 1 Mar  2 18:06 loop1
 brw-r- 1 root disk   7, 2 Mar  2 18:06 loop2
 brw-r- 1 root disk   7, 3 Mar  2 18:06 loop3
 brw-r- 1 root disk   7, 4 Mar  2 18:06 loop4
 brw-r- 1 root disk   7, 5 Mar  2 18:06 loop5
 brw-r- 1 root disk   7, 6 Mar  2 18:06 loop6
 brw-r- 1 root disk   7, 7 Mar  2 18:06 loop7
 lrwxrwxrwx 1 root root 13 Mar  2