[CentOS-es] KVM networking

2011-02-28 Thread Claudio Ceballos Paz
Hola, a todos.
Instale en CEntOS 5 KVM y funciona perfecto. Tengo 3 MV funcionando muy
bien.
Ahora lo que necesito es que las 3 sean vistas en mi red lan.
Se pueden armar 3 bridges en un dispositivo de red? Como debe ser la
configuracion?
Ademas, debo poder ingresar a la pc host para hacer mantenimientos y demas.
En definitiva: 3 direcciones virtuales + 1 direccion del host, todo visible
desde la red externa.
Saludos, Gracias!
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] KVM networking

2011-02-28 Thread Eduardo Grosclaude
2011/2/28 Claudio Ceballos Paz claudioceb...@gmail.com:
 Hola, a todos.
 Instale en CEntOS 5 KVM y funciona perfecto. Tengo 3 MV funcionando muy
 bien.
 Ahora lo que necesito es que las 3 sean vistas en mi red lan.
 Se pueden armar 3 bridges en un dispositivo de red? Como debe ser la
 configuracion?

Entiendo que lo que necesitas es un bridge, con tres interfaces
virtuales aduntas, más la física.
Yo suelo usar un script como éste:

#!/bin/sh
# numero de mv
NUM=$1
USUARIO=miusuario
TAPDEV=$(/usr/sbin/tunctl -b -u $USUARIO)
/sbin/ifconfig $TAPDEV up

# Agregar la interfaz virtual al bridge br0
/usr/sbin/brctl addif br0 $TAPDEV

DVD=/home/$USUARIO/imagen-del-DVD-de-instalacion.iso
DSK=/home/$USUARIO/imagen-del-disco-virtual.img

BYTE=$((33 + $NUM))

/usr/bin/qemu-kvm -hda $DSK  -cdrom $DVD \
-no-acpi -m 1000 \
-nographic -daemonize \
-net nic,vlan=0,macaddr=52:54:00:11:22:$BYTE \
-net tap,vlan=0,ifname=$TAPDEV,script=no

/sbin/ifconfig $TAPDEV down
/usr/sbin/brctl delif br0 $TAPDEV
# fin

De esta manera cada MV queda acoplada al bridge br0. Variando el
argumento numérico del script consigues diferentes números de MAC. El
script supone que tú configuras las interfaces de los guests,
estáticamente o mediante DHCP. Las diferentes MACs permiten que un
DHCP server provea IPs fijos.

La configuración del br0 en el host la puedes hacer estáticamente en
/etc/sysconfig/network-scripts como se define en las guías de
administración. La conf. de br0 (archivo ifcfg-br0) dice TYPE=Bridge
y la conf. de la interfaz física que da a tu red local dice
BRIDGE=br0

 Ademas, debo poder ingresar a la pc host para hacer mantenimientos y demas.
 En definitiva: 3 direcciones virtuales + 1 direccion del host, todo visible
 desde la red externa.

Este mecanismo debería permitirte todo eso. Quizás alguien tenga un
método más amigable...!

-- 
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] KVM networking

2011-02-28 Thread Oscar Osta Pueyo
Hola,

2011/2/28 Eduardo Grosclaude eduardo.groscla...@gmail.com:
 2011/2/28 Claudio Ceballos Paz claudioceb...@gmail.com:
 Hola, a todos.
 Instale en CEntOS 5 KVM y funciona perfecto. Tengo 3 MV funcionando muy
 bien.
 Ahora lo que necesito es que las 3 sean vistas en mi red lan.
 Se pueden armar 3 bridges en un dispositivo de red? Como debe ser la
 configuracion?

No sé si lo que buscas es
http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/



-- 
Oscar Osta Pueyo
oostap.lis...@gmail.com
_kiakli_
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS-es] Invitación a conectarnos en LinkedIn

2011-02-28 Thread Carlos Alberto Restrepo Márquez a través de LinkedIn
LinkedIn
Carlos Alberto Restrepo Márquez pidió añadirte como contacto en 
LinkedIn:
--

Angelo,

Me gustaría añadirte a mi red profesional en LinkedIn.
 
-Carlos Alberto

Aceptar invitación de Carlos Alberto Restrepo Márquez
http://www.linkedin.com/e/-jms8j1-gkpt8g1w-12/GKsCxDLNgZacynkhG2Lqcs89xGPISFLm/blk/I14984429_70/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_c3tvej8Qd3wVd359bTFfkl0JdCFebPcMdjcMejgNd38LrCBxbOYWrSlI/EML_comm_afe/

Ver invitación de Carlos Alberto Restrepo Márquez
http://www.linkedin.com/e/-jms8j1-gkpt8g1w-12/GKsCxDLNgZacynkhG2Lqcs89xGPISFLm/blk/I14984429_70/0MdRYVczgQe3AQckALqnpPbOYWrSlI/svi/
--

¿SABÍAS que puedes ser el primero en saber cuándo un miembro de tu red cambia 
de empleo? Con las actualizaciones de la red en tu página de inicio LinkedIn, 
serás notificado cada vez que los miembros de tu red cambian de cargo. ¡Sé el 
primero en saber y ponerte en contacto!
http://www.linkedin.com/

 
-- 
(c) 2011, LinkedIn Corporation
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS] Centos 6

2011-02-28 Thread Johnny Hughes
On 02/27/2011 09:13 PM, JD wrote:
 Any word on approximate release date of Centos 6?


The real answer is that 4.9 is ready for release (Already tested by QA).

We are testing 5.6 right now in QA.

There was a particularly nasty bug in anaconda for 5.6 that we were
working on for almost a week with new distro/iso spins at least once a
day during this period.  We seem to have finally fixed this problem and
we are getting good tests with the i386 now.

We expect both of these distros to be released in the upcoming week
(barring any unforeseen issues).

That would then make 6.0 the focus of the team.



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


Re: [CentOS] Centos 6

2011-02-28 Thread Matthew Feinberg

Johnny,

Seriously. You guys are awesome! Thank you for your continued hard work!

Kudos to the Centos team..

Matthew



On 02/28/2011 03:33 AM, Johnny Hughes wrote:

On 02/27/2011 09:13 PM, JD wrote:

Any word on approximate release date of Centos 6?


The real answer is that 4.9 is ready for release (Already tested by QA).

We are testing 5.6 right now in QA.

There was a particularly nasty bug in anaconda for 5.6 that we were
working on for almost a week with new distro/iso spins at least once a
day during this period.  We seem to have finally fixed this problem and
we are getting good tests with the i386 now.

We expect both of these distros to be released in the upcoming week
(barring any unforeseen issues).

That would then make 6.0 the focus of the team.



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



--
Matthew Feinberg
matt...@choopa.com
AIM: matthewchoopa

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


[CentOS] Logwatch reporting spamassassin messages as unmatched entries

2011-02-28 Thread Steve Searle
I've recently switched to using spamassassin via a sendmail milter,
rather than using procmail to invoke it. This means that I get a number
of messages appearing in my maillog, and then being reported by logwatch
as unmatched entries.

An example of such a messages is:


Feb 27 04:33:09 quail sendmail[24780]: p1R4X46P024780[2]: URIBL blacklist\n\t*  
[URIs: tablettoxicspillsrx.ru]\n\t*  1.5 URIBL_WS_SURBL Contains an URL 
listed in the WS SURBL blocklist\n\t*  [URIs: tablettoxicspillsrx.ru]\n\t*  
1.5 URIBL_JP_SURBL Contains an URL listed in the JP SURBL blocklist\n\t*  
[URIs: tablettoxicspillsrx.ru]\n\t*  1.5 URIBL_SBL Contains an URL listed in 
the SBL blocklist\n\t*  [URIs: tablettoxicspillsrx.ru]\n\t*  0.3 
DRUGS_ERECTILE Refers to an erectile drug to \n\t*  3.5 BAYES_99 BODY: Bayesian 
spam probability is 99 to 100%\n\t*  [score: 1.]\n\t*  0.3 DRUG_ED_CAPS 
BODY: Mentions an E.D. drug\n\t*  1.6 DRUG_ED_GENERIC BODY: Mentions Generic 
Viagra\n\t*  2.0 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in 
bl.spamcop.net\n\t*  [Blocked - see 
http://www.spamcop.net/bl.shtml?93.159.243.52]\n\t*  0.9 RCVD_IN_PBL RBL: 
Received via a relay in Spamhaus PBL\n\t*  [93.159.243.52 listed in 
zen.spamhaus.org]\n\t*  3.0 RCVD_IN_XBL RBL: Received via a  ...

Is there a best approach to dealing with this; for instance stopping
spamassassin reporting these to the maillog, or changing logwatch to
recognise the messages. And how do I change it.

Thanks

Steve

-- 
 
Website:  www.stevesearle.com
Twitter:  @ReddishShift
Facebook: www.facebook.com/steve.searle

 09:11:55 up 6 days, 10:39,  1 user,  load average: 0.08, 0.02, 0.01


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


[CentOS] cronjob to intiiate checkdisk ?

2011-02-28 Thread Roland RoLaNd

Dear all,

I'm trying to find a way to automate checkdisk every 1 month on a weekend.
in other words i want checkdisk to run every saturday morning.

i can of course change the default mount/count though that wont let me control 
WHEN it will happen.

so i need your expert opinion with the following if possible: 

1. reboot into single user mode
2. start checkdisk for all disks
3. once done, reboot into runlevel 3

i've did a certain script that force checkdisk at night if there's a bad sector 
using the badblocks command though that's not enough.



PS: i was thinking of something of this sort:

1 4 * sat /bin/touch /forcefsck;reboot
1  1 * sun rm /forcefsck

Would the above work? for all disks?


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


[CentOS] can't disconnec iSCSI targets, please help

2011-02-28 Thread Rudi Ahlers
Hi,

I'm trying to disconnect some iSCSI targets, but can't seem to.

[root@localhost ~]# iscsiadm -m session
tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
tcp: [3] 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
tcp: [5] 192.168.2.200:3260,1
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb

I need to disconnect all 4 of these

[root@localhost ~]# iscsiadm -m node -T   192.168.2.200:3260,1
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb -p 196.34.136.200
--logout

The target is still there, even though I tell it to disconnect.

[root@localhost ~]# iscsiadm -m session
tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
tcp: [3] 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
tcp: [5] 192.168.2.200:3260,1
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb

I can't delete it either:
[root@localhost ~]# iscsiadm -m node --op delete --targetname
192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
iscsiadm: no records found!

Restarting iscsi gives some odd errors:


[root@localhost ~]# /etc/init.d/iscsi restart
Logging out of session [sid: 1, target:
iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
Logging out of session [sid: 3, target:
iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
192.168.2.200,3260]
Logging out of session [sid: 4, target:
iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
Logging out of session [sid: 5, target:
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
192.168.2.200,3260]
Logout of [sid: 1, target: iqn.2011.01.22.freenas.nvr:500gb, portal:
192.168.2.202,3260]: successful
Logout of [sid: 3, target:
iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
192.168.2.200,3260]: successful
Logout of [sid: 4, target: iqn.2011.01.22.freenas.nvr:extent0, portal:
192.168.2.202,3260]: successful
Logout of [sid: 5, target:
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
192.168.2.200,3260]: successful
Stopping iSCSI daemon:
iscsid dead but pid file exists[  OK  ]
Starting iSCSI daemon: [  OK  ]
   [  OK  ]
Setting up iSCSI targets: Logging in to [iface: default, target:
iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
Logging in to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
192.168.2.200,3260]
Logging in to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
192.168.2.200,3260]
Logging in to [iface: default, target:
iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
Logging in to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
192.168.2.200,3260]
Logging in to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
192.168.2.200,3260]
Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:500gb,
portal: 192.168.2.202,3260]: successful
iscsiadm: Could not login to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
192.168.2.200,3260]:
iscsiadm: initiator reported error (19 - encountered non-retryable
iSCSI login failure)
Login to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
192.168.2.200,3260]: successful
Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:extent0,
portal: 192.168.2.202,3260]: successful
Login to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
192.168.2.200,3260]: successful
iscsiadm: Could not login to [iface: default, target:
iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
192.168.2.200,3260]:
iscsiadm: initiator reported error (19 - encountered non-retryable
iSCSI login failure)
iscsiadm: Could not log into all portals. Err 19.




Interestingly, the targets which iscsi reports as not existing, does exist:

[root@localhost ~]# iscsiadm -m discovery -t sendtargets -p  192.168.2.200
192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb
192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb





Is there any other way to force these disconnects, and re-connect them?
The machine runs on CentOS 5.5 x64 + XEN:

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.el5xen #1 SMP Fri Apr 2
15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#



-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532

Re: [CentOS] cronjob to intiiate checkdisk ?

2011-02-28 Thread Johnny Hughes
On 02/28/2011 03:49 AM, Roland RoLaNd wrote:
 Dear all,
 
 I'm trying to find a way to automate checkdisk every 1 month on a weekend.
 in other words i want checkdisk to run every saturday morning.
 
 i can of course change the default mount/count though that wont let me
 control WHEN it will happen.
 
 so i need your expert opinion with the following if possible:
 
 1. reboot into single user mode
 2. start checkdisk for all disks
 3. once done, reboot into runlevel 3
 
 i've did a certain script that force checkdisk at night if there's a bad
 sector using the badblocks command though that's not enough.
 
 
 
 PS: i was thinking of something of this sort:
 
 1 4 * sat /bin/touch /forcefsck;reboot
 1  1 * sun rm /forcefsck
 
 Would the above work? for all disks?

I would personally not automate this ... there are times when fsck does
not complete cleanly and needs user interaction.

I only fsck important machines when I can touch them ... at least via a
remote console.  If it completes automatically, great.  If not, I am
there to try to fix it and get the filesystem running.

I'm sure others think it is OK to do this automatically, but that is my
advise.



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


Re: [CentOS] Centos 6

2011-02-28 Thread Digimer
On 02/28/2011 03:33 AM, Johnny Hughes wrote:
 On 02/27/2011 09:13 PM, JD wrote:
 Any word on approximate release date of Centos 6?
 
 
 The real answer is that 4.9 is ready for release (Already tested by QA).
 
 We are testing 5.6 right now in QA.
 
 There was a particularly nasty bug in anaconda for 5.6 that we were
 working on for almost a week with new distro/iso spins at least once a
 day during this period.  We seem to have finally fixed this problem and
 we are getting good tests with the i386 now.
 
 We expect both of these distros to be released in the upcoming week
 (barring any unforeseen issues).
 
 That would then make 6.0 the focus of the team.

Cheers!

When you guys get some down time (lol, I know), I hope you get a chance
to look at an official structure that would facilitate contributions
from companies. I know that I would like to contribute.

Someone floated the idea of a hardware wish list, iirc. Perhaps have a
funky little webpage where all the hardware, down to cables, up to
servers and all the bits in between could be clicked on. Then let people
say I'll buy that for the CentOS folks, click on it, pay for it and
have it shipped directly to you.

Anyway, the hard work of you guys it much appreciated. The antryness of
many is a sign of just how much your work is needed. Please do keep up
the good work and don't mind the rumblings from the crowd. :)

-- 
Digimer
E-Mail: digi...@alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] opened OpenSSL port

2011-02-28 Thread Kevin Thorpe
On 27/02/2011 09:50, erikmccaskey64 wrote:

 Main question: is it safe, to open a port for an openssl server?
Don't rely on this, but put it on a non-standard port. If you have sshd 
on the default
port 22 you will get a long list of login attempts on it. This 
suggestion is not security,
it simply cuts down hugely on the list of exceptions you need to wade 
through. You
ought to probably use something like fail2ban to cut off repeated failed 
logins.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't disconnec iSCSI targets, please help

2011-02-28 Thread Rudi Ahlers
On Mon, Feb 28, 2011 at 12:02 PM, Rudi Ahlers r...@softdux.com wrote:
 Hi,

 I'm trying to disconnect some iSCSI targets, but can't seem to.

 [root@localhost ~]# iscsiadm -m session
 tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 tcp: [3] 192.168.2.200:3260,1 
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
 tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
 tcp: [5] 192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb

 I need to disconnect all 4 of these

 [root@localhost ~]# iscsiadm -m node -T   192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb -p 196.34.136.200
 --logout

 The target is still there, even though I tell it to disconnect.

 [root@localhost ~]# iscsiadm -m session
 tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 tcp: [3] 192.168.2.200:3260,1 
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
 tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
 tcp: [5] 192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb

 I can't delete it either:
 [root@localhost ~]# iscsiadm -m node --op delete --targetname
 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 iscsiadm: no records found!

 Restarting iscsi gives some odd errors:


 [root@localhost ~]# /etc/init.d/iscsi restart
 Logging out of session [sid: 1, target:
 iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
 Logging out of session [sid: 3, target:
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
 192.168.2.200,3260]
 Logging out of session [sid: 4, target:
 iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
 Logging out of session [sid: 5, target:
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
 192.168.2.200,3260]
 Logout of [sid: 1, target: iqn.2011.01.22.freenas.nvr:500gb, portal:
 192.168.2.202,3260]: successful
 Logout of [sid: 3, target:
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
 192.168.2.200,3260]: successful
 Logout of [sid: 4, target: iqn.2011.01.22.freenas.nvr:extent0, portal:
 192.168.2.202,3260]: successful
 Logout of [sid: 5, target:
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
 192.168.2.200,3260]: successful
 Stopping iSCSI daemon:
 iscsid dead but pid file exists                            [  OK  ]
 Starting iSCSI daemon:                                     [  OK  ]
                                                           [  OK  ]
 Setting up iSCSI targets: Logging in to [iface: default, target:
 iqn.2011.01.22.freenas.nvr:500gb, portal: 192.168.2.202,3260]
 Logging in to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
 192.168.2.200,3260]
 Logging in to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
 192.168.2.200,3260]
 Logging in to [iface: default, target:
 iqn.2011.01.22.freenas.nvr:extent0, portal: 192.168.2.202,3260]
 Logging in to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
 192.168.2.200,3260]
 Logging in to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
 192.168.2.200,3260]
 Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:500gb,
 portal: 192.168.2.202,3260]: successful
 iscsiadm: Could not login to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb, portal:
 192.168.2.200,3260]:
 iscsiadm: initiator reported error (19 - encountered non-retryable
 iSCSI login failure)
 Login to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba, portal:
 192.168.2.200,3260]: successful
 Login to [iface: default, target: iqn.2011.01.22.freenas.nvr:extent0,
 portal: 192.168.2.202,3260]: successful
 Login to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb, portal:
 192.168.2.200,3260]: successful
 iscsiadm: Could not login to [iface: default, target:
 iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb, portal:
 192.168.2.200,3260]:
 iscsiadm: initiator reported error (19 - encountered non-retryable
 iSCSI login failure)
 iscsiadm: Could not log into all portals. Err 19.




 Interestingly, the targets which iscsi reports as not existing, does exist:

 [root@localhost ~]# iscsiadm -m discovery -t sendtargets -p  192.168.2.200
 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin1.vg0.2tb
 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
 192.168.2.200:3260,1 iqn.2011-2.za.co.securehosting:RAID.thin2.vg0.1tb





 Is there any other way to force these disconnects, and re-connect them?
 The machine runs on CentOS 5.5 x64 + XEN:

 [root@localhost ~]# cat /etc/redhat-release
 CentOS release 5.5 (Final)
 [root@localhost ~]# uname -a
 Linux localhost.localdomain 2.6.18-194.el5xen #1 SMP Fri Apr 2
 15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
 [root@localhost 

Re: [CentOS] Centos 6

2011-02-28 Thread Rudi Ahlers
On Mon, Feb 28, 2011 at 2:37 PM, Digimer li...@alteeve.com wrote:
 On 02/28/2011 03:33 AM, Johnny Hughes wrote:
 On 02/27/2011 09:13 PM, JD wrote:
 Any word on approximate release date of Centos 6?


 The real answer is that 4.9 is ready for release (Already tested by QA).

 We are testing 5.6 right now in QA.

 There was a particularly nasty bug in anaconda for 5.6 that we were
 working on for almost a week with new distro/iso spins at least once a
 day during this period.  We seem to have finally fixed this problem and
 we are getting good tests with the i386 now.

 We expect both of these distros to be released in the upcoming week
 (barring any unforeseen issues).

 That would then make 6.0 the focus of the team.

 Cheers!

 When you guys get some down time (lol, I know), I hope you get a chance
 to look at an official structure that would facilitate contributions
 from companies. I know that I would like to contribute.

 Someone floated the idea of a hardware wish list, iirc. Perhaps have a
 funky little webpage where all the hardware, down to cables, up to
 servers and all the bits in between could be clicked on. Then let people
 say I'll buy that for the CentOS folks, click on it, pay for it and
 have it shipped directly to you.

 Anyway, the hard work of you guys it much appreciated. The antryness of
 many is a sign of just how much your work is needed. Please do keep up
 the good work and don't mind the rumblings from the crowd. :)

 --
 Digimer
 E-Mail: digi...@alteeve.com
 AN!Whitepapers: http://alteeve.com
 Node Assassin:  http://nodeassassin.org
 ___

There's already a page for this: http://wiki.centos.org/Contribute ;)

Check this one out as well: http://wiki.centos.org/Donate


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] opened OpenSSL port

2011-02-28 Thread Barry Brimer
 Main question: is it safe, to open a port for an openssl server?

You might consider stunnel.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] log time formats - where is this defined

2011-02-28 Thread Rob Kampen

Albert McCann wrote:

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
Behalf Of Rob Kampen
Sent: Sunday, February 27, 2011 3:34 PM
To: CentOS mailing list
Subject: [CentOS] log time formats - where is this defined

One of my servers is using ISO datetime formats
(2011-02-27T15:22:15.519857-05:00) in the logs
the rest use the default redhat/CentOS format (Feb 27 15:10:21).
After a couple of hours searching google I cannot find where this is
defined.
I know I changed it some months ago as an experiment but forgotten
where this was done.



  

the ISO format breaks logwatch - thus I need to revert.



I had problems with that, here's the fix:

Add to first line of /etc/rsyslog.conf:

$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat


  
Exactly my problem - thanks for the heads up - hopefully later versions 
of logwatch learn how to tell the time.



Here's the Bugzilla for this problem:

https://bugzilla.redhat.com/show_bug.cgi?id=583621

Al

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


Re: [CentOS] log time formats - where is this defined

2011-02-28 Thread Rob Kampen

Spiro Harvey wrote:

On Sun, 27 Feb 2011 15:33:57 -0500
Rob Kampen rkam...@kampensonline.com wrote:

  
One of my servers is using ISO datetime formats 
(2011-02-27T15:22:15.519857-05:00) in the logs

the rest use the default redhat/CentOS format (Feb 27 15:10:21).
After a couple of hours searching google I cannot find where this is 
defined.

I know I changed it some months ago as an experiment but forgotten
where this was done.
the ISO format breaks logwatch - thus I need to revert.



Have you changed that box to use rsyslog instead of the default syslog?

If so, there's a post on HowToForge with some info on how to put it
back into traditional format:

http://www.howtoforge.com/forums/showthread.php?t=49642

  

another way to fix the problem - thanks for the link.

More detail is in man rsyslog.conf in the TEMPLATES section.


  



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


[CentOS] Centos Project : STEM

2011-02-28 Thread Always Learning
On https://projects.centos.org/trac/stem/ there is a brief mention of
Stem and VOIP with a request for dial-in numbers.

However there are no links on the page describing STEM. Stem sounds a
bit like the Dutch word for 'voice'.

What type of dialing-in, from the PSTN, numbers are required and how can
they be used to benefit Centos?

-- 

With best regards,

Paul.
England,
EU.



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


[CentOS] php53 and Fileinfo

2011-02-28 Thread Alexander Farber
Hello,

for drupal 7 installation at CentOS 5.5
(I have 32 bit and 64 bit machines)
I have to upgrade PHP to 5.3.

I've followed the CentOS wiki:

1) Created this file -

grep -v ^# /etc/yum.repos.d/CentOS-Testing.repo
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

2) Uninstalled the old PHP -

rpm -qa|grep php| xargs sudo yum -y erase

3) Installed new php53:

# rpm -qa |grep php
php53-pgsql-5.3.3-1.el5
php53-gd-5.3.3-1.el5
php53-pdo-5.3.3-1.el5
php53-xml-5.3.3-1.el5
php53-cli-5.3.3-1.el5
php53-common-5.3.3-1.el5
php53-mbstring-5.3.3-1.el5

4) Verified php works:

php -v
PHP 5.3.3 (cli) (built: Jan 20 2011 23:02:42)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Unfortunately I need Fileinfo module too, for my script.

I do not see pecl though and also
yum install php-pecl-Fileinfo fails with wrong version error.

Any help please on how to install Fileinfo?

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


Re: [CentOS] php53 and Fileinfo

2011-02-28 Thread Alexander Farber
I see though:

# rpm -ql php53-common-5.3.3-1.el5 | grep modules
/usr/lib/php/modules
/usr/lib/php/modules/curl.so
/usr/lib/php/modules/fileinfo.so
/usr/lib/php/modules/json.so
/usr/lib/php/modules/phar.so
/usr/lib/php/modules/zip.so

So json and fileinfo are probably built-in now?

Sorry, I'm not very proficient in PHP (and many other things :-)

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


[CentOS] Samba quota for AD users

2011-02-28 Thread system minami
Can someone please help how to enable samba quota for Active Directory
users' home directory automatically ?

Many thanks,

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


[CentOS] Samba quota for AD users

2011-02-28 Thread system minami
Can someone please help how to enable samba quota for Active Directory
users' home directory automatically ?

Many thanks,

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


[CentOS] how to control sftp's user file folder

2011-02-28 Thread Yang Yang
hi,i have a question want to ask

if i add a user like:

useradd test
groupadd test -g www

and how to control user test only can see and write only folder(like
/home/htdocs/test,he can not see /home/htdocs or other folder)


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


[CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread Yang Yang
hi,every

i have a php project and use centos to go

and how to make folder's privilage and make it saft

like: /home/htdocs/test

chown -R www:www /home/htdocs/test

chmod -R 644 /home/htdocs/test

etc


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


Re: [CentOS] how to control sftp's user file folder

2011-02-28 Thread Eero Volotinen
2011/2/28 Yang Yang dapiy...@gmail.com:
 hi,i have a question want to ask

 if i add a user like:

 useradd test
 groupadd test -g www

 and how to control user test only can see and write only folder(like
 /home/htdocs/test,he can not see /home/htdocs or other folder)

for example using chrooted scponly or tweaking filesystem acls and
selinux settings.

scponly chrooted is the easiest way.

--
Eero,
RHCE
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't disconnec iSCSI targets, please help

2011-02-28 Thread Marcelo Roccasalva
On Mon, Feb 28, 2011 at 09:44, Rudi Ahlers r...@softdux.com wrote:

 On Mon, Feb 28, 2011 at 12:02 PM, Rudi Ahlers r...@softdux.com wrote:
  Hi,
 
  I'm trying to disconnect some iSCSI targets, but can't seem to.
 
  [root@localhost ~]# iscsiadm -m session
  tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
  tcp: [3] 192.168.2.200:3260,1 
  iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
  tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
  tcp: [5] 192.168.2.200:3260,1
  iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
  I can't delete it either:
  [root@localhost ~]# iscsiadm -m node --op delete --targetname
  192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
  iscsiadm: no records found!

I think your node names are wrong. I can logout and delete a target
exactly with this two lines:

iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 --logout
iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 -o delete

note that the parameter to -T is the string starting with iqn up to the space.

Hope this helps

--
Marcelo

¿No será acaso que ésta vida moderna está teniendo más de moderna que
de vida? (Mafalda)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP6 Anyone?

2011-02-28 Thread Cameron Kerr

On 28/02/2011, at 10:30 AM, Les Mikesell wrote:

 On 2/27/11 12:50 PM, John R Pierce wrote:
 On 02/27/11 9:16 AM, Les Mikesell wrote:
 Is there any difference in efficiency in how well the NIC hardware filters 
 the
 assigned addresses?

Yes, as mentioned below, the NIC is given a list of Ethernet MAC addresses. 
Some [old, cheap] cards had a very small filter list [occassionally just a 
single entry], so the NIC would have to pass up pretty much any multicast so 
the next-layer (IP) could decide if it was wanted or not. This shouldn't be an 
issue today, unless you're using very old or very cheap cards.

 NIC's work in MAC addresses, not IP.
 
 Sort-of.  Most NICs know enough about IPv4 multicast to at least help filter 
 unwanted addresses without bothering the CPU.

Not quite. NICs have a list of Ethernet multicast MAC addresses that it can be 
assigned to pass on up the stack. These Ethernet multicast MAC addresses are 
determined from the IPv6 or IPv4 multicast address, but this is a kernel/driver 
issue, the NIC still does't have to know anything about IP.

Although, there certainly are NICs which know about higher-level protocols 
(TCP-offload engine), but that's a separate issue.

Ethernet _switches_, on the other hand, really need to know enough about IPv4/6 
multicast in order to figure out which switch ports it should forward multicast 
traffic to (otherwise it floods, and we end up with the same traffic flow as 
broadcast). In IPv4, the switch needs to implement what is commonly called IGMP 
snooping. IGMP being the IPv4 protocol client devices use for subscribing to 
multicast groups. In IPv6, IGMP is instead part of ICMPv6 called Multicast 
Listener Discovery (typically version 2), and the switch feature to look for is 
called MLD[v2] snooping.

Hope this helps to clear up any misunderstanding.
Cameron
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Logwatch reporting spamassassin messages as unmatched entries

2011-02-28 Thread Cameron Kerr

On 28/02/2011, at 10:19 PM, Steve Searle wrote:

 I've recently switched to using spamassassin via a sendmail milter,
 rather than using procmail to invoke it. This means that I get a number
 of messages appearing in my maillog, and then being reported by logwatch
 as unmatched entries.
 
 An example of such a messages is:

It's being reported by sendmail, not by spamassassin, it seems. Or perhaps is 
just passing through to the logs what spamassassin in outputting.

Assumably you're calling out to spamass-milter. Are you passing any debug (-d) 
flags?

As to whether to prevent it being logged, or to ignore it in the logs, you 
would need to consider whether or not you want it in your logs... it could 
total to a fairly large amount and could in itself become a vector for a 
disk-filling attack.

 Feb 27 04:33:09 quail sendmail[24780]: p1R4X46P024780[2]: URIBL blacklist

To filter it in logcheck, you could act just on this part

 

^\w{3} [ :0-9]{11} [,_[:alnum:]-]+ sendmail\[[0-9]+\]: [a-zA-Z0-9]\[[0-9]+\]: 
URIBL blacklist

(This has not been tested, the first part comes from a standard Ubuntu install 
of logcheck, which is likely to also be the case in CentOS)

Sorry, I can't help you with the sendmail part of it.

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


Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread Cameron Kerr

On 1/03/2011, at 4:51 AM, Yang Yang wrote:

 hi,every
 
 i have a php project and use centos to go
 
 and how to make folder's privilage and make it saft
 
 like: /home/htdocs/test
 
 chown -R www:www /home/htdocs/test
 
 chmod -R 644 /home/htdocs/test

Almost correct, but directories also need the 'execute' permission. 644 for 
files, 755 for directories.

chmod 755 /home/htdocs/test/


You seem new to this, so I should also point you to the following, which will 
give you a good head-start.

http://phpsec.org/projects/guide/
http://www.owasp.org/index.php/Main_Page

and this is a tutorial for PHP in a Chinese context, although on a Windows 
platform.

http://www.herongyang.com/PHP-Chinese/

再见!
胡鑫
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Samba quota for AD users

2011-02-28 Thread John R Pierce
On 02/28/11 7:28 AM, system minami wrote:
 Can someone please help how to enable samba quota for Active Directory
 users' home directory automatically ?

Samba has quota support?  Good luck with that.   Quotas are generally a 
file system thing, enforced on system users.  In my experience they 
cause more problems then they solve.


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


Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread John R Pierce
On 02/28/11 7:51 AM, Yang Yang wrote:
 hi,every

 i have a php project and use centos to go

 and how to make folder's privilage and make it saft

 like: /home/htdocs/test

 chown -R www:www /home/htdocs/test


bad idea, the webserver should NOT own or have write access to web files.


 chmod -R 644 /home/htdocs/test

as someone else said, directories need 'execute' privilege (which really 
means permission to list the dir).  also, the webserver needs +r access 
to any directory above the http directory.

 chmod o+r /home/htdocs


I'm curious, is htdocs a user account?   putting web pages in a non 
standard place like this will trip up selinux bigtime.   the standard 
http directory on CentOS is /var/www/html/   ...   I generally put 
application websites other than the system default site in 
/home/(owner-of-application)/public_html  but this also requires some 
tinkering with selinux, and of course, a file in /etc/httpd/conf.d with 
the virtual host specifications


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


Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread James Hogarth

 as someone else said, directories need 'execute' privilege (which really
 means permission to list the dir).

Not quite... +r allows listing of the directory and +x allows
traversing (cd) into/through the directory.

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


Re: [CentOS] can't disconnec iSCSI targets, please help

2011-02-28 Thread Rudi Ahlers
On Mon, Feb 28, 2011 at 7:26 PM, Marcelo Roccasalva
marcelo-cen...@irrigacion.gov.ar wrote:
 On Mon, Feb 28, 2011 at 09:44, Rudi Ahlers r...@softdux.com wrote:

 On Mon, Feb 28, 2011 at 12:02 PM, Rudi Ahlers r...@softdux.com wrote:
  Hi,
 
  I'm trying to disconnect some iSCSI targets, but can't seem to.
 
  [root@localhost ~]# iscsiadm -m session
  tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
  tcp: [3] 192.168.2.200:3260,1 
  iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
  tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
  tcp: [5] 192.168.2.200:3260,1
  iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
  I can't delete it either:
  [root@localhost ~]# iscsiadm -m node --op delete --targetname
  192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
  iscsiadm: no records found!

 I think your node names are wrong. I can logout and delete a target
 exactly with this two lines:

 iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 
 --logout
 iscsiadm -m node -T iqn.1992-08.com.netapp:sn.151737287 -p 172.16.1.10 -o 
 delete

 note that the parameter to -T is the string starting with iqn up to the space.

 Hope this helps

 --


I don't understand, how are the node names wrong? They're get wrapped
in this email though, but those are setup on the SAN device and I
don't have much control over them, other than the date (i.e.
2011.01.22) the .freenas.nvr gets edded automatically ( that's the
server's name) and then I need to specify a unique name to the target
itself (i.e. the 500gb)  - from 2011.01.22.freenas.nvr:500gb


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Sorting by date

2011-02-28 Thread erikmccaskey64

Original:
Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
Jun 26 2009 SOMETHING 2009.06.25.avi
Feb 12 2010 SOMETHING 2010.02.11.avi
Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
Feb 27 2011 23:05 SOMETHING 2011.02.24.avi


Output:
Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
Feb 12 2010 SOMETHING 2010.02.11.avi
Jun 26 2009 SOMETHING 2009.06.25.avi


How could I get the output where the newest file is at the top?

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


Re: [CentOS] Sorting by date

2011-02-28 Thread Bob Beers
On Mon, Feb 28, 2011 at 3:35 PM, erikmccaskey64 erikmccaske...@zoho.com wrote:
 How could I get the output where the newest file is at the top?

man ls,

  -t sort by modification time

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


Re: [CentOS] Sorting by date

2011-02-28 Thread Kwan Lowe
On Mon, Feb 28, 2011 at 3:35 PM, erikmccaskey64 erikmccaske...@zoho.com wrote:

 Original:
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
[snip]
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 How could I get the output where the newest file is at the top?

If this is a text file, you can seed an array with the month names as
the index then sort using that index...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Sorting by date

2011-02-28 Thread Robert Heller
At Mon, 28 Feb 2011 12:35:24 -0800 CentOS mailing list centos@centos.org 
wrote:

 
 
 
 
 Original:
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
 
 
 Output:
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 
 
 How could I get the output where the newest file is at the top?

ls -lt

man ls

 
 
 MIME-Version: 1.0
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


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


Re: [CentOS] Sorting by date

2011-02-28 Thread Mark
On Mon, Feb 28, 2011 at 12:35 PM, erikmccaskey64
erikmccaske...@zoho.com wrote:

 Original:
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
 Output:
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 How could I get the output where the newest file is at the top?

You keep asking your questions in (at least) both CentOS and Ubuntu
lists.  Which OS are you using?  More importantly, have you considered
looking things like this up in the man pages, then on the web where
really basic questions like this are easily found, with answers?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Sorting by date

2011-02-28 Thread Dr. Ed Morbius
on 13:23 Mon 28 Feb, Mark (mhullr...@gmail.com) wrote:
 On Mon, Feb 28, 2011 at 12:35 PM, erikmccaskey64
 erikmccaske...@zoho.com wrote:
 
  Original:
  Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
  Jun 26 2009 SOMETHING 2009.06.25.avi
  Feb 12 2010 SOMETHING 2010.02.11.avi
  Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
  Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
  Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
  Output:
  Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
  Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
  Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
  Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
  Feb 12 2010 SOMETHING 2010.02.11.avi
  Jun 26 2009 SOMETHING 2009.06.25.avi
  How could I get the output where the newest file is at the top?
 
 You keep asking your questions in (at least) both CentOS and Ubuntu
 lists.  

And Debian.

At least he didn't cross-post, but yes, this is tiresome.

 Which OS are you using?  More importantly, have you considered
 looking things like this up in the man pages, then on the web where
 really basic questions like this are easily found, with answers?

Bravo.

-- 
Dr. Ed Morbius, Chief Scientist /|
  Robot Wrangler / Staff Psychologist| When you seek unlimited power
Krell Power Systems Unlimited|  Go to Krell!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Dhcp 3.0.5 on 5.x

2011-02-28 Thread Jason Pyeron
I am looking to use the update-conflict-detection false; directive in the
dhcpd.conf.

It is supported in EL6 or and dhcp =3.1.0a1.

Since I am not going to get permission to switch to EL6 or dhcp 3.1 what are my
options?

Background:

I have a DNS/DHCPD system which its conf files are generated automagically.
Depending on which network a device is on the ip address will change. It is
always required to have an A record for every device.

I see my only 2 possible options to be:

1, trick dhcpd into thinking that the records in dns are its, hence updatable.

2, backport the update-conflict-detection false logic into dhcp-3.0.5-23.el5_5.2

Any suggestions?

TIA

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



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


Re: [CentOS] Octet - off topic

2011-02-28 Thread Michael Klinosky
Larry Vaden wrote:
 I have always hoped to find someone who was involved with COBOL back
 in the days to ask this question of:

 What influence did Commander Grace Hopper have on COBOL?

http://en.wikipedia.org/wiki/Grace_Hopper

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


Re: [CentOS] can't disconnec iSCSI targets, please help

2011-02-28 Thread Dr. Ed Morbius
on 12:02 Mon 28 Feb, Rudi Ahlers (r...@softdux.com) wrote:
 Hi,
 
 I'm trying to disconnect some iSCSI targets, but can't seem to.
 
 [root@localhost ~]# iscsiadm -m session
 tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 tcp: [3] 192.168.2.200:3260,1 
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
 tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
 tcp: [5] 192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
 
 I need to disconnect all 4 of these
 
 [root@localhost ~]# iscsiadm -m node -T   192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb -p 196.34.136.200
 --logout

That's a logout to a specific node and dataport.  If you're wrong about
the IQN and/or dataport, it's not going to work.

I think you want:

iscsiadm -m node -u

And for good measure:

iscsiadm -m session -u

If you do want to delete specific discovery records and need to identify
the dataport associated with them:

iscsiadm -m discoverydb

... will print them.
 
 The target is still there, even though I tell it to disconnect.
 
 [root@localhost ~]# iscsiadm -m session
 tcp: [1] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 tcp: [3] 192.168.2.200:3260,1 
 iqn.2011-2.za.co.securehosting:RAID.thin3.vg0.1tba
 tcp: [4] 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:extent0
 tcp: [5] 192.168.2.200:3260,1
 iqn.2011-2.za.co.securehosting:RAID.iscsi0.vg0.500gb
 
 I can't delete it either:
 [root@localhost ~]# iscsiadm -m node --op delete --targetname
 192.168.2.202:3260,1 iqn.2011.01.22.freenas.nvr:500gb
 iscsiadm: no records found!
 
 Restarting iscsi gives some odd errors:

If you're going to that extent, you can umount all remote targets,
disable iscsid and iscsi services, reboot, and clear out the various
entries under /var/lib/iscsi/.  Leave the directories
(/var/lib/iscsi/*/), but remove the files beneath them.

Note that this is a bit like doing brain surgery with a sledgehammer.
Lacking in finess, but for some jobs, effective.


You might also try posting to the open-iscsi mailing list.  I've found
that iscsi is very tempermental and poorly understood by most.
 
-- 
Dr. Ed Morbius, Chief Scientist /|
  Robot Wrangler / Staff Psychologist| When you seek unlimited power
Krell Power Systems Unlimited|  Go to Krell!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Sorting by date

2011-02-28 Thread Sean Hart
On 2/28/11 12:35 PM, erikmccaskey64 wrote:
 Original:
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi


 Output:
 Feb 27 2011 23:05 SOMETHING 2011.02.24.avi
 Feb 11 2011 20:06 SOMETHING 2011.02.10.avi
 Jan 29 2011 09:17 SOMETHING 2011.01.27.avi
 Jan 23 2011 10:42 SOMETHING 2007.12.20.avi
 Feb 12 2010 SOMETHING 2010.02.11.avi
 Jun 26 2009 SOMETHING 2009.06.25.avi


 How could I get the output where the newest file is at the top?

Assuming you are getting the time from the ls -l command...

To sort within the ls command (man ls):
ls -lt

To sort after the ls command (man ls):
ls -al --full-time | awk '{print $6   $7   $9}' | sort -r

Not using ls:
To take that input and sort you'd have to do some hashing to translate
the months to a sortable format (like numbers) I think.  Alternatively,
you could use the listed date to generate a UTF date via the date command.  

~Sean



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


Re: [CentOS] cronjob to intiiate checkdisk ?

2011-02-28 Thread Ross Walker
On Feb 28, 2011, at 4:49 AM, Roland RoLaNd r_o_l_a_...@hotmail.com wrote:

 Dear all,
 
 I'm trying to find a way to automate checkdisk every 1 month on a weekend.
 in other words i want checkdisk to run every saturday morning.
 
 i can of course change the default mount/count though that wont let me 
 control WHEN it will happen.
 
 so i need your expert opinion with the following if possible: 
 
 1. reboot into single user mode
 2. start checkdisk for all disks
 3. once done, reboot into runlevel 3
 
 i've did a certain script that force checkdisk at night if there's a bad 
 sector using the badblocks command though that's not enough.
 
 
 
 PS: i was thinking of something of this sort:
 
 1 4 * sat /bin/touch /forcefsck;reboot
 1  1 * sun rm /forcefsck

I would take a snapshot and run fsck against the snapshot, if it reports clean 
then nothing needs done, if it reports dirty then you need to bring it into 
maintenance mode and do a fsck with cleanup options.

-Ross

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


[CentOS] unable to assign static IPv6

2011-02-28 Thread Lars Nordin
I'm having a problem permanently assigning a static IPv6 address to my  CentOS 
v5.5 box. I have IPv6 enabled and the link local address is automatically 
brought up. I can manually ifconfig the address but when I configure it in 
ifcfg-eth0 and restart the network init script the IPv6 address is not 
assigned. 

Anyone have any ideas on how to fix this?

/etc/sysconfig/network-scripts/ifcfg-eth0:
IPV6INT=yes
IPV6ADDR=fdca:fefe:dace:07b1::0002:B339:2817

$ cat /etc/sysconfig//network
NETWORKING=yes
NETWORKING_IPV6=yes

$ lsb_release -a
LSB Version::core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-
noarch
Distributor ID: CentOS
Description:CentOS release 5.5 (Final)
Release:5.5
Codename:   Final

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


Re: [CentOS] unable to assign static IPv6

2011-02-28 Thread Stephen Harris
On Mon, Feb 28, 2011 at 09:16:59PM -0500, Lars Nordin wrote:
 /etc/sysconfig/network-scripts/ifcfg-eth0:
 IPV6INT=yes

Typo; IPV6INIT=yes

-- 

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


Re: [CentOS] unable to assign static IPv6

2011-02-28 Thread John R. Dennison
On Mon, Feb 28, 2011 at 09:16:59PM -0500, Lars Nordin wrote:
 
 /etc/sysconfig/network-scripts/ifcfg-eth0:
 IPV6INT=yes
 IPV6ADDR=fdca:fefe:dace:07b1::0002:B339:2817

That should be IPV6INIT=yes.

May also want to add IPV6_AUTOCONF=no and ensure you have a
valid IPV6-DEFAULTGW configured.




John

-- 
To do just the opposite is also a form of imitation.

-- Georg Christoph Lichtenberg (1742-1799), German scientist,
   satirist and philosopher, Notebook D (1773-1775)


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


Re: [CentOS] Dhcp 3.0.5 on 5.x

2011-02-28 Thread Nico Kadel-Garcia
On Mon, Feb 28, 2011 at 4:56 PM, Jason Pyeron jpye...@pdinc.us wrote:
 I am looking to use the update-conflict-detection false; directive in the
 dhcpd.conf.

 It is supported in EL6 or and dhcp =3.1.0a1.

 Since I am not going to get permission to switch to EL6 or dhcp 3.1 what are 
 my
 options?

 Background:

 I have a DNS/DHCPD system which its conf files are generated automagically.
 Depending on which network a device is on the ip address will change. It is
 always required to have an A record for every device.

 I see my only 2 possible options to be:

 1, trick dhcpd into thinking that the records in dns are its, hence updatable.

 2, backport the update-conflict-detection false logic into 
 dhcp-3.0.5-23.el5_5.2

Set A records, and PTR's, for the addresses in your DHCP range. The
client becomes dhcp-0-101.example.com for IP address 10.0.0.101 in
the first DHCP range, and dhcp-1-101 for IP address 10.0.1.101 in
the second range.

There's a lot you can do with this, but hat is key.

The other useful trick is to set DHCP reservations: Reserve a
particular IP address for a particular MAC address when it's plugged
into a specific zone, so the same client always gets the same IP
addresses in that zone and SSH and SSL keys remain consistent with
that client host.

 Any suggestions?

 TIA

 --
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 -                                                               -
 - Jason Pyeron                      PD Inc. http://www.pdinc.us -
 - Principal Consultant              10 West 24th Street #100    -
 - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
 -                                                               -
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 This message is copyright PD Inc, subject to license 20080407P00.



 ___
 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] Dhcp 3.0.5 on 5.x

2011-02-28 Thread Jason Pyeron

 -Original Message-
 From: centos-boun...@centos.org 
 [mailto:centos-boun...@centos.org] On Behalf Of Nico Kadel-Garcia
 Sent: Monday, February 28, 2011 21:47
 To: CentOS mailing list
 Subject: Re: [CentOS] Dhcp 3.0.5 on 5.x
 
 On Mon, Feb 28, 2011 at 4:56 PM, Jason Pyeron 
 jpye...@pdinc.us wrote:
  I am looking to use the update-conflict-detection false; 
 directive in 
  the dhcpd.conf.
 
  It is supported in EL6 or and dhcp =3.1.0a1.
 
  Since I am not going to get permission to switch to EL6 or dhcp 3.1 
  what are my options?
 
  Background:
 
  I have a DNS/DHCPD system which its conf files are 
 generated automagically.
  Depending on which network a device is on the ip address 
 will change. 
  It is always required to have an A record for every device.
 
  I see my only 2 possible options to be:
 
  1, trick dhcpd into thinking that the records in dns are 
 its, hence updatable.
 
  2, backport the update-conflict-detection false logic into 
  dhcp-3.0.5-23.el5_5.2
 
 Set A records, and PTR's, for the addresses in your DHCP 
 range. The client becomes dhcp-0-101.example.com for IP 
 address 10.0.0.101 in the first DHCP range, and dhcp-1-101 
 for IP address 10.0.1.101 in the second range.
 

Thank you, but the issue I am tackling is that dhcpd is trying to validate a
dhcid against the dns zone. And the records are either missing or invalid
(depending on my efforts so far tonight).


 
  Any suggestions?
 
  TIA
 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


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


[CentOS] kernel eclipse segfault

2011-02-28 Thread sync
Hi, all :


My user called Tom, and his vnc desktop suddenly did not work just now.
Then I went to see the server  log message , and found the following
message:

kernel: Xvnc[2779]: segfault at 008 rip 0077af44 rsp
7fff5ee310c0 error 4
kernel: eclipse[25300]: segfault at 008 rip 03210cfbc6c rsp
7fff470c66a0 error 4
gconfd( tom-2764): Gconf server is not in use , shutting down
gconfd: Exitting ..


By the way, my server os is CentOS 5.3 x86_64 and kernel version is :
2.6.18-128.el5


It looks it is the eclipse tool  problem which cause the kernel crash, isn't
it ?

Could someone can give me some suggestion which can avoid that message
happend again?


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


Re: [CentOS] Alternative to cPanel

2011-02-28 Thread Arun Khan
On Wed, Feb 23, 2011 at 8:19 PM, Trutwin, Joshua jtrut...@csbsju.edu wrote:

 I'm looking to setup a new CentOS box for a buddy of mine who
 wants to do hosting on a server via CoLo, Years ago I whipped up a CP of my
 own on a Debian box he colo’d running a basterdized qmail/tinydns and custom
 built httpd/mysql/etc (I was young).  It worked ok but time to move on and I
 don't have time to maintain all those packages.  I also don't have
 time to write another CP or port my PoS to it.  I’m also just going to use
 the

Joining the discussion somewhat late.

I have not seen OPENLSM mentioned in any of the responses.

http://openlsm.sourceforge.net/features.php

It is on my back burner 2 do list so I have not had a chance to use
it and comment on it.

Take it for a spin and see if it meets your requirements.

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