Re: [CentOS] CentOS 5 Testing repo

2012-03-18 Thread John R. Dennison
On Fri, Mar 16, 2012 at 01:22:45PM +1300, Spiro Harvey wrote:
 
 Looks like we'll have to upgrade the lot and hope for the best. This
 time, I'll put any testing packages we use in our own repos. Once
 bitten, twice paranoid. :)

Or don't use testing packages on production boxes in the first place.

It's far too easy to let such packages get stale and out of date and
subject yourself to security vulnerabilities.

IUS has had a maintained php-5.2 out for a long time now, there is
really no reason or excuse to have been using the years out of date 
junk that was in c5-testing.




John
-- 
@Evilpig when you let one idiot correct another idiot you just get two
@Evilpig clueless morons in a circle jerk.
@Dagmar  Fire gets the stains out real good.


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


[CentOS] Fail2ban problem

2012-03-18 Thread Timothy Murphy
If there is a serious power failure, eg during an electric storm,
and the internet goes down
then my CentOS-6.2 server seems to take an inordinate time, maybe forever,
to get past fail2ban.
It is as though there is an extremely long - maybe an hour - timeout
if fail2ban cannot connect to the internet.

(I usually stop the machine with the power-button,
re-boot into a different OS (Fedora) and chkconfig off fail2ban.)

This only occurs once or twice a year, so I don't worry about it much;
but I was wondering if there is a timeout that I can change
somewhere in the fail2ban setup?


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Patrick Lists
On 03/18/2012 12:17 PM, Timothy Murphy wrote:
 If there is a serious power failure, eg during an electric storm,
 and the internet goes down
 then my CentOS-6.2 server seems to take an inordinate time, maybe forever,
 to get past fail2ban.
 It is as though there is an extremely long - maybe an hour - timeout
 if fail2ban cannot connect to the internet.

Just a wild guess but could it be that fail2ban is trying to resolve all 
the IP addresses in it's database? Iirc there is a config option called 
use_dns. Try setting it to no or warn.

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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Thomas Göttgens
Hi Timothy,

fail2ban will go through all defined logfiles during startup. If they
are large, it will take some time. You may be able to speed that
process up by installing a file alteration monitor like gamut.
fail2ban will use it if it finds it.

-- 
Mit freundlichen Grüßen
Thomas Göttgens
mailto:tgoettg...@gmail.com

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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Timothy Murphy
Patrick Lists wrote:

 If there is a serious power failure, eg during an electric storm,
 and the internet goes down
 then my CentOS-6.2 server seems to take an inordinate time, maybe
 forever, to get past fail2ban.
 It is as though there is an extremely long - maybe an hour - timeout
 if fail2ban cannot connect to the internet.
 
 Just a wild guess but could it be that fail2ban is trying to resolve all
 the IP addresses in it's database? Iirc there is a config option called
 use_dns. Try setting it to no or warn.

Thanks for the suggestion.
But I couldn't find any option like that anywhere below /etc/fail2ban
in fail2ban-0.8.4-28.el6 .


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Timothy Murphy
Thomas Göttgens wrote:

 fail2ban will go through all defined logfiles during startup. If they
 are large, it will take some time. You may be able to speed that
 process up by installing a file alteration monitor like gamut.
 fail2ban will use it if it finds it.

Thanks very much for your response.
I see the logfile is defined in /etc/fail2ban/fail2ban.conf
as SYSLOG.
This can get very large.
I've changed the fail2ban logfile to /var/log/fail2ban.log
and will see if that makes any difference.

My server is in Italy (where I am at the moment)
and I don't think this is the time for electric storms,
so hopefully the issue won't arise any day soon!

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Patrick Lists
On 03/18/2012 02:08 PM, Timothy Murphy wrote:
 Patrick Lists wrote:

 If there is a serious power failure, eg during an electric storm,
 and the internet goes down
 then my CentOS-6.2 server seems to take an inordinate time, maybe
 forever, to get past fail2ban.
 It is as though there is an extremely long - maybe an hour - timeout
 if fail2ban cannot connect to the internet.

 Just a wild guess but could it be that fail2ban is trying to resolve all
 the IP addresses in it's database? Iirc there is a config option called
 use_dns. Try setting it to no or warn.

 Thanks for the suggestion.
 But I couldn't find any option like that anywhere below /etc/fail2ban
 in fail2ban-0.8.4-28.el6 .

More info on the wiki:
http://www.fail2ban.org/wiki/index.php/Hostnames_or_IP_Addresses

Regards,
Patrick

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


Re: [CentOS] Fail2ban problem

2012-03-18 Thread Timothy Murphy
Patrick Lists wrote:

 Just a wild guess but could it be that fail2ban is trying to resolve all
 the IP addresses in it's database? Iirc there is a config option called
 use_dns. Try setting it to no or warn.

 Thanks for the suggestion.
 But I couldn't find any option like that anywhere below /etc/fail2ban
 in fail2ban-0.8.4-28.el6 .
 
 More info on the wiki:
 http://www.fail2ban.org/wiki/index.php/Hostnames_or_IP_Addresses

Thanks very much.
I'll see if changing the logfile has any effect,
and if it doesn't I'll add use_dns = no to the config file.

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


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


[CentOS] LVM

2012-03-18 Thread madu...@gmail.com
I need to shrink /home(755G) to 150GB and use free space to add to the
existing /(50G).
#df -kh
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/vg_web-lv_root 50G  7.8G   40G  17% /
tmpfs 7.8G  384K  7.8G   1% /dev/shm
/dev/sda2 485M   79M  381M  18% /boot
/dev/sda1 200M  256K  200M   1% /boot/efi
/dev/mapper/vg_web-lv_home755G  6.2G  711G   1% /home

Need to have the step, can this be done online or need to go offline
(umount) the file systems.

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


Re: [CentOS] LVM

2012-03-18 Thread John R Pierce
On 03/18/12 10:34 AM, madu...@gmail.com wrote:
 I need to shrink /home(755G) to 150GB and use free space to add to the
 existing /(50G).
 #df -kh
 Filesystem   Size  Used Avail Use% Mounted on
 /dev/mapper/vg_web-lv_root 50G  7.8G   40G  17% /
 tmpfs 7.8G  384K  7.8G   1% /dev/shm
 /dev/sda2 485M   79M  381M  18% /boot
 /dev/sda1 200M  256K  200M   1% /boot/efi
 /dev/mapper/vg_web-lv_home755G  6.2G  711G   1% /home

 Need to have the step, can this be done online or need to go offline
 (umount) the file systems.

IMHO, the only sane way to shrink a file system is to back it up to 
other media, delete it, then recreate it at the new smaller size and 
restore the backup.

my /'s are rarely bigger than 18GB, but I usually mount other file 
systems for stuff like /var/www, /var/pgsql-x.y/data, etc.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Re: [CentOS] LVM

2012-03-18 Thread Markus Falb
On 18.3.2012 18:34, madu...@gmail.com wrote:
 I need to shrink /home(755G) to 150GB and use free space to add to the
 existing /(50G).
 #df -kh
 Filesystem   Size  Used Avail Use% Mounted on
 /dev/mapper/vg_web-lv_root 50G  7.8G   40G  17% /
 tmpfs 7.8G  384K  7.8G   1% /dev/shm
 /dev/sda2 485M   79M  381M  18% /boot
 /dev/sda1 200M  256K  200M   1% /boot/efi
 /dev/mapper/vg_web-lv_home755G  6.2G  711G   1% /home
 
 Need to have the step, can this be done online or need to go offline
 (umount) the file systems.

What filesystem? Assuming ext3, this cannot shrunk without unmounting.
I believe the following *should* work for ext3

$ umount /home
$ e2fsck -f /dev/vg_web/lv_home
$ resize2fs /dev/vg_web/lv_home 150g
$ lvresize -L 150g /dev/vg_web/lv_home
$ mount /home

I am not sure how safe it is. Take care!
-- 
Kind Regards, Markus Falb



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


Re: [CentOS] LVM

2012-03-18 Thread Markus Falb
On 18.3.2012 18:53, John R Pierce wrote:
 On 03/18/12 10:34 AM, madu...@gmail.com wrote:
 I need to shrink /home(755G) to 150GB and use free space to add to the
 existing /(50G).
 #df -kh
 Filesystem   Size  Used Avail Use% Mounted on
 /dev/mapper/vg_web-lv_root 50G  7.8G   40G  17% /
 tmpfs 7.8G  384K  7.8G   1% /dev/shm
 /dev/sda2 485M   79M  381M  18% /boot
 /dev/sda1 200M  256K  200M   1% /boot/efi
 /dev/mapper/vg_web-lv_home755G  6.2G  711G   1% /home

 Need to have the step, can this be done online or need to go offline
 (umount) the file systems.
 
 IMHO, the only sane way to shrink a file system is to back it up to 
 other media, delete it, then recreate it at the new smaller size and 
 restore the backup.

Thats a safe way to do it. Anyway, regardless of how the goal will be
achieved, I agree that a restorable backup should exist.
-- 
Kind Regards, Markus Falb



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


Re: [CentOS] Odd thing with Realtek Ethernet card

2012-03-18 Thread Kahlil Hodgson
On Fri, 2012-03-16 at 19:41 +, Ken Smith wrote:
 After reconfiguring the network settings I find that on boot up the 8169 
 interface does not start. The startup script says something like The 
 8169 is not available...
 
 ifconfig -a shows a device with the right mac address called 
 __tmpsomethingorother

The __tmpsomethingoroth names are used by udev to shuffle the device
names (like when you set HWADDR in the conf file). Looks like it saw
enough of the device to start the process but the device disappeared
before it could finish.  Had this happen with an onboard Gbit Realteak
NIC that was slowly dying.  Rebooting would sometimes get it to work.
After a week of mucking around with setting HWADRR and writing udev
rules, it eventually died completely.  A new card would have been a lot
cheaper than my time.

Kal

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


Re: [CentOS] LibreOffice rpm's vs Centos testing repo

2012-03-18 Thread nux
Johan Vermeulen writes:

 Dear All,
 
 I thought the advantage from using CentOS-Testing repository would be:
 * I then have a Selinux module
 * Automatic update with yum update. Although that's maybe not a good idea, 
 because I'd have to leave the Testing-repo enabled.
 
 I tried installing from Libreoffice.org before, but got into trouble when 
 logging in with ssh -X and
 then opening LibreOffice.
 
 greetings, J.

Hi,

I've just updated the RPMs for Libreoffice to match version 3.4.5 (from 
Fedora 16). If you have my repo[1] installed simply do a:
yum --enablerepo=nux-libreoffice-testing update libreoffice*

If you have RPMs from libreoffice.org in use ignore this message as you 
will run into conflicts!

[1] - 
http://li.nux.ro/download/nux/libreoffice/el6/x86_64/nux-libreoffice-release-0-2.el6.nux.noarch.rpm

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

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


Re: [CentOS] LibreOffice rpm's vs Centos testing repo

2012-03-18 Thread nux
n...@li.nux.ro writes:

 Johan Vermeulen writes:
 
 Dear All,
 
 I thought the advantage from using CentOS-Testing repository would be:
 * I then have a Selinux module
 * Automatic update with yum update. Although that's maybe not a good idea, 
 because I'd have to leave the Testing-repo enabled.
 
 I tried installing from Libreoffice.org before, but got into trouble when 
 logging in with ssh -X and
 then opening LibreOffice.
 
 greetings, J.
 
 Hi,
 
 I've just updated the RPMs for Libreoffice to match version 3.4.5 (from 
 Fedora 16). If you have my repo[1] installed simply do a:
 yum --enablerepo=nux-libreoffice-testing update libreoffice*
 
 If you have RPMs from libreoffice.org in use ignore this message as you 
 will run into conflicts!
 
 [1] - 
 http://li.nux.ro/download/nux/libreoffice/el6/x86_64/nux-libreoffice-release-0-2.el6.nux.noarch.rpm

Hopefuly Karanbir will quickly incorporate this in Centos-testing.. :)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LibreOffice rpm's vs Centos testing repo

2012-03-18 Thread Jake Shipton
On Mon, 19 Mar 2012 01:33:36 +
n...@li.nux.ro wrote:
 
 Hi,
 
 I've just updated the RPMs for Libreoffice to match version 3.4.5
 (from Fedora 16). If you have my repo[1] installed simply do a:
 yum --enablerepo=nux-libreoffice-testing update libreoffice*
 
 If you have RPMs from libreoffice.org in use ignore this message as
 you will run into conflicts!
 

Thanks for your efforts Nux :-). 

If at some point it would be possible for you to support 3.5 that would
be great :-). I am currently using the 3.5.1 official RPM's in a home
repo (so it's also shared to another CentOS box). But none-the-less
it's good to see some progress regarding Libreoffice  CentOS :-).

-- 
Jake Shipton (JakeMS)
GPG Key: 0xE3C31D8F
GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F


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


Re: [CentOS] LVM

2012-03-18 Thread Ray Van Dolson
On Sun, Mar 18, 2012 at 08:04:14PM +0100, Markus Falb wrote:
 On 18.3.2012 18:34, madu...@gmail.com wrote:
  I need to shrink /home(755G) to 150GB and use free space to add to the
  existing /(50G).
  #df -kh
  Filesystem   Size  Used Avail Use% Mounted on
  /dev/mapper/vg_web-lv_root 50G  7.8G   40G  17% /
  tmpfs 7.8G  384K  7.8G   1% /dev/shm
  /dev/sda2 485M   79M  381M  18% /boot
  /dev/sda1 200M  256K  200M   1% /boot/efi
  /dev/mapper/vg_web-lv_home755G  6.2G  711G   1% /home
  
  Need to have the step, can this be done online or need to go offline
  (umount) the file systems.
 
 What filesystem? Assuming ext3, this cannot shrunk without unmounting.
 I believe the following *should* work for ext3
 
 $ umount /home
 $ e2fsck -f /dev/vg_web/lv_home
 $ resize2fs /dev/vg_web/lv_home 150g
 $ lvresize -L 150g /dev/vg_web/lv_home
 $ mount /home
 
 I am not sure how safe it is. Take care!

I was under the impression that you needed to unmount the file system
to shrink it with resize2fs (you can grow it online however).

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