[CentOS] JOB | Permanent Database Engineer (the Netherlands)

2017-08-08 Thread James Tobin
Hello, I'm working with an employer that is looking to hire someone to
become their lead on Apache Cassandra in the Netherlands.
Consequently I had hoped that some members of this mailing list may
like to discuss further off-list using "JamesBTobin (at) Gmail (dot)
com".  Kind regards, James
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Power Fail Protection

2017-08-08 Thread John R Pierce

On 8/8/2017 5:06 PM, John R Pierce wrote:
NUT is in EPEL... 



oh, NUT supports virtually every UPS made, too.


--
john r pierce, recycling bits in santa cruz

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


Re: [CentOS] Power Fail Protection

2017-08-08 Thread Valeri Galtsev

On Tue, August 8, 2017 6:50 pm, Chris Olson wrote:
>
> Some of our largest systems run Windows because it supports engineering
> applications that we use regularly.  These applications have unattended
> runs that often take between ten and fifteen hours to complete.  We have
> taken the recommendation of the application supplier and equipped these
> Windows machines with UPS protection for 30 minutes at full load.
>
> The UPSs are Ethernet connected.  A support application on the Windows
> engineering machine communicates with the UPS to detect and address any
> facility power failure.  The long run engineering application is then
> suspended at a restart point and the system is shut down.  We initiate
> job completion manually from the suspension restart point after the
> system has reliable power and is rebooted.
>
> If we wanted to protect our CentOS systems from facility power failure
> in a similar way, is there operating system or other standard support
> that we might employ?  Most of the Linux-based applications are not as
> critical as the engineering applications on the Windows machines. There
> is a significant amount of processor idle time on several of the CentOS
> systems during non-work hours when the systems are unattended.  Several
> CentOS systems are supported currently with UPSs, but they run out and
> the system loses power if it is unattended.

I used a lot APC smart UPSes. They have serial or USB connection through
which some daemon you run on your machine (apcupsd) can detect UPS on
battery, and can initiate clean system shutdown when battery is below some
charge level (you define which in configuration). Apcupsd is free open
source software, I never used APC's software that does the same. When
power returns (if UPS fully drained its battery) system can be configured
to boot on power restored. If you have more than one machine behind the
same UPS, apcupsd daemons on other machines can run in "slave" mode and
get information from master apcupsd.

Depending on your UPS make/model there may be similar daemon that can do
the same.

Valeri

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



Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

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


Re: [CentOS] Power Fail Protection

2017-08-08 Thread John R Pierce

On 8/8/2017 4:50 PM, Chris Olson wrote:

If we wanted to protect our CentOS systems from facility power failure
in a similar way, is there operating system or other standard support
that we might employ?  Most of the Linux-based applications are not as
critical as the engineering applications on the Windows machines. There
is a significant amount of processor idle time on several of the CentOS
systems during non-work hours when the systems are unattended.  Several
CentOS systems are supported currently with UPSs, but they run out and
the system loses power if it is unattended.


NUT aka NetworkUPS Tools is the way to go on Linux, for UPS power 
management.   you can configure NUT as master/slave, so one linux system 
talks with the UPS, either USB, Serial, or Ethernet, and it in turn 
tells the other linux systems to shut down cleanly when its time.   Or 
if each box has its own UPS, you can just run NUT in standalone mode on 
each box.


NUT is in EPEL...



--
john r pierce, recycling bits in santa cruz

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


[CentOS] Power Fail Protection

2017-08-08 Thread Chris Olson

Some of our largest systems run Windows because it supports engineering
applications that we use regularly.  These applications have unattended
runs that often take between ten and fifteen hours to complete.  We have
taken the recommendation of the application supplier and equipped these
Windows machines with UPS protection for 30 minutes at full load.

The UPSs are Ethernet connected.  A support application on the Windows
engineering machine communicates with the UPS to detect and address any
facility power failure.  The long run engineering application is then
suspended at a restart point and the system is shut down.  We initiate
job completion manually from the suspension restart point after the
system has reliable power and is rebooted.

If we wanted to protect our CentOS systems from facility power failure
in a similar way, is there operating system or other standard support
that we might employ?  Most of the Linux-based applications are not as
critical as the engineering applications on the Windows machines. There
is a significant amount of processor idle time on several of the CentOS
systems during non-work hours when the systems are unattended.  Several
CentOS systems are supported currently with UPSs, but they run out and
the system loses power if it is unattended.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Acroread9 crash in CentOS7

2017-08-08 Thread wwp
Hello,


I'm getting a crash with acroread on my CentOS7 (AdobeReader_enu-9.5.5-1.i486).
I install the official rpms from ftp://ftp.adobe.com/pub/adobe/reader/unix/,
tried 9.5.5, and former v9, v8, v7.

/usr/bin/acroread loads well, but when you click a menu, bang. Same if
you start acroread w/ a .pdf filename in parameter, the window opens up
then crashes.

I modified the acroread script to run the binary from within gdb, I get
this:

 Program received signal SIGSEGV, Segmentation fault.
 0xf5437cee in compute_face () from /lib/libcairo.so.2

Unfortunately, the system completely hangs when it happens (acroread
from gdb) and I must kill acroread from a tty, so I cannot get a more
detailed backtrace for now.

Is that something somebody here already saw?


Regards, 

-- 
wwp


pgppOPNgHmvqr.pgp
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Troubleshooting php-fpm with apache on Centos 7

2017-08-08 Thread Nikolaos Milas

On 8/8/2017 9:16 πμ, Nikolaos Milas wrote:


For your reference, I am also including the php-fpm configuration


I now browsed today's php-fpm log file (/var/log/php-fpm/www-error.log - 
which is rotated daily) and I found two PHP records about this website, 
with the following content:


--
...
[08-Aug-2017 05:11:45 Europe/Athens] PHP Fatal error: Uncaught Error: 
Call to undefined function get_header() in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php:10

Stack trace:
#0 {main}
  thrown in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php on line 10
[08-Aug-2017 05:11:45 Europe/Athens] PHP Fatal error: Uncaught Error: 
Call to undefined function get_header() in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php:10

Stack trace:
#0 {main}
  thrown in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php on line 10

...


It appears as a single entry recorded twice (for some unknown reason).

So, even this one (double) entry means that THERE IS (at least some) PHP 
logging about this website!


But there are many questions:

- Why there is only one error entry about this website (in the last two 
and a half days)?

- Why is it double?
- Why there is nothing else (PHP-related) logged about this website?
- Why no other debugging info is being logged?
- Could php-fpm somehow be "blacklisting" the website PHP application 
(WordPress) due to this (and possible other) errors?


Any ideas?

Thanks,
Nick

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


[CentOS] CentOS6, IP6tables, Routing, TPROXY (squid34 epel package)

2017-08-08 Thread Walter H.

Hello,

how do achieve this:

how must files /etc/sysconfig/network-scripts/ look like to be the same as
entering the following two commands ...
ip -f inet6 rule add fwmark 1 lookup 100
ip -f inet6 route add local ::/0 dev lo table 100
is there the localhost device lo correct, or does it have to be br0?

e.g.
a file route-br0 with
192.168.1.0/24 via 10.10.10.1 dev br0
does the routing to the segment 192.168.1.0/24 via 10.10.10.1

/etc/sysconfig/ip6tables

*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]

-N DIVERT
-A DIVERT -j MARK --set-mark 1
-A DIVERT -j ACCEPT

-A PREROUTING -i br0 -p tcp -m socket -j DIVERT
-A PREROUTING -i br0 -p tcp -d  2a02:1788:2fd::b2ff:5302 --dport 80 -j TPROXY 
--tproxy-mark 0x1/0x1 --on-port 3129

COMMIT

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]

-A INPUT -i br0 -m tcp -p tcp --dport 22 -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m tcp -p tcp --dport 80 -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m tcp -p tcp --dport 443 -m state --state NEW -j ACCEPT

-A INPUT -i br0 -m tcp -p tcp --dport 3129 -m state --state NEW -j ACCEPT



the goal should be, that for specific IPv6 hosts (destination), the packets are 
redirected through the proxy
running on the router box, other destinations should be just forwarded without 
proxy ...

LAN port = br0 (dual stack), HE tunnel port = sit1 (ipv6 only), WAN port = eth1 
(ipv4 only)

Thanks,
Walter




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


Re: [CentOS] BUG: soft lockup - CPU#0 stuck for 36s! [swapper/0:0]

2017-08-08 Thread KM
Never saw this emailDid anyone get it?  anyone know how to fix this?thanks 
again.

  From: KM 
 To: CentOS mailing list  
 Sent: Monday, August 7, 2017 11:26 AM
 Subject: Re: [CentOS] BUG: soft lockup - CPU#0 stuck for 36s! [swapper/0:0]
   
All,This happens on all of our CentOS 7 VMs.  but as stated in the email trail, 
the file softlockup_thresh does not exist.  Should it be added?  What is the 
best way to get rid of this behavior.
Thanks in advance and sorry if I missed something along the way.KM

  From: correomm 
 To: CentOS mailing list  
 Sent: Thursday, August 18, 2016 1:55 PM
 Subject: Re: [CentOS] BUG: soft lockup - CPU#0 stuck for 36s! [swapper/0:0]
   
Yes, I tried it, but does not exists:

vmguest # cat /proc/sys/kernel/softlockup_thresh
cat: /proc/sys/kernel/softlockup_thresh: No such file or directory

On Thu, Aug 18, 2016 at 2:06 PM, Carlos A. Carnero Delgado <
carloscarn...@gmail.com> wrote:

> 2016-08-18 12:39 GMT-04:00 correomm :
>
> > This bug is reported only on the VM's with CentOS 7 running on on VMware
> > ESXi 5.1.
> > The vSphere performance graph shows high CPU consume and disk activity
> only
> > on VM's with CentOS 7. Sometimes I can not connect remotely with ssh
> > (timeout error).
> >
>
> I'm also seeing those errors in several servers, running under 5.5.
> Currently investigating if this
>  do?language=en_US=displayKC=1009996>
> has anything to do (the resource overcommit bit).
>
> HTH,
> Carlos.
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


   

|  | Virus-free. www.avg.com  |



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


Re: [CentOS] What replaces the "grub" command

2017-08-08 Thread Dave Cross
On 8 August 2017 at 10:56, Scott Robbins  wrote:
> On Tue, Aug 08, 2017 at 09:01:30AM +0100, Dave Cross wrote:
>> I recently had a failing disk replaced in my colo server. The server
>> is running Centos 7.3.
>>
>> After the replacement, I was following these instructions to rebuild
>> the RAID array that the disk was part of.
>>
>> https://help.1and1.co.uk/servers-c40665/dedicated-server-linux-c40577/rescue-and-recovery-c40581/rebuild-the-software-raid-array-after-a-drive-replacement-a729756.html
>>
>> Everything went fine until I reached the final section ("Grub Setup").
>> This section talks about running a command line program called "grub"
>> to change the Grub configuration. And that program doesn't seem to be
>> installed on this server.
>>
>
> grub2 install /dev/sda
> grub2 install /dev/sdb
>
> should do it, assuming the two actual physical disks are seen as
> /dev/sda and /dev/sdb

Thanks. That's what my independent research was showing me too.

I assume it's already installed to /dev/sda (as it was sdb which was
recently replaced and the system is rebooting quite happily). Is there
a command that shows which disks already have Grub2 installed?

Dave...

-- 
Dave Cross :: d...@dave.org.uk
http://dave.org.uk/
@davorg
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] What replaces the "grub" command

2017-08-08 Thread Scott Robbins
On Tue, Aug 08, 2017 at 09:01:30AM +0100, Dave Cross wrote:
> I recently had a failing disk replaced in my colo server. The server
> is running Centos 7.3.
> 
> After the replacement, I was following these instructions to rebuild
> the RAID array that the disk was part of.
> 
> https://help.1and1.co.uk/servers-c40665/dedicated-server-linux-c40577/rescue-and-recovery-c40581/rebuild-the-software-raid-array-after-a-drive-replacement-a729756.html
> 
> Everything went fine until I reached the final section ("Grub Setup").
> This section talks about running a command line program called "grub"
> to change the Grub configuration. And that program doesn't seem to be
> installed on this server.
> 

grub2 install /dev/sda
grub2 install /dev/sdb

should do it, assuming the two actual physical disks are seen as
/dev/sda and /dev/sdb



-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

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


[CentOS] What replaces the "grub" command

2017-08-08 Thread Dave Cross
I recently had a failing disk replaced in my colo server. The server
is running Centos 7.3.

After the replacement, I was following these instructions to rebuild
the RAID array that the disk was part of.

https://help.1and1.co.uk/servers-c40665/dedicated-server-linux-c40577/rescue-and-recovery-c40581/rebuild-the-software-raid-array-after-a-drive-replacement-a729756.html

Everything went fine until I reached the final section ("Grub Setup").
This section talks about running a command line program called "grub"
to change the Grub configuration. And that program doesn't seem to be
installed on this server.

I admit that my knowledge of Grub is somewhat lacking. I know that
Centos 7 uses Grub2 rather than the original Grub, but I don't know
what replaced the "grub" command (or perhaps nothing replaced it and I
just need to install a missing RPM).

Any advice would be gratefully received.

Thanks,

Dave...

-- 
Dave Cross :: d...@dave.org.uk
http://dave.org.uk/
@davorg
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Troubleshooting php-fpm with apache on Centos 7

2017-08-08 Thread Nikolaos Milas

On 8/8/2017 8:57 πμ, John R Pierce wrote:


does the user apache is running as have write access to that folder ?


Thank you for your reply, John.

Yes, there is write access:

# ls -l /var/webs/wwwgreekgeo/log/php*
-rw-rw 1 root apache 0 Aug  7 22:58 
/var/webs/wwwgreekgeo/log/php_error_log


# ls -l /var/webs/wwwgreekgeo/
total 8
drwxrwx---  2 wftpuser apache 4096 Aug  8 03:46 log
drwxrwx--- 10 wftpuser apache 4096 Dec  5  2014 www

For your reference, I am also including the php-fpm configuration:

   # cat /etc/php-fpm.d/www.conf

   include=/etc/php-fpm.d/*.conf

   [global]
   pid = /run/php-fpm/php-fpm.pid

   error_log = /var/log/php-fpm/error.log
   log_level = debug
   daemonize = yes

   [www]

   user = apache
   group = apache

   listen = 127.0.0.1:9000
   listen.allowed_clients = 127.0.0.1

   pm = dynamic
   pm.max_children = 50
   pm.start_servers = 2
   pm.min_spare_servers = 2
   pm.max_spare_servers = 4
   pm.process_idle_timeout = 10s;
   pm.max_requests = 500
   pm.status_path = /fpm-status

   slowlog = /var/log/php-fpm/www-slow.log
   request_slowlog_timeout = 5s
   request_terminate_timeout = 20s

   catch_workers_output = yes

   security.limit_extensions = .php .php3 .php4 .php5 .php7 .htm .html

   php_admin_value[error_log] = /var/log/php-fpm/www-error.log
   php_admin_flag[log_errors] = on
   php_value[session.save_handler] = files
   php_value[session.save_path]= /var/lib/php/session
   php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache

   php_admin_value[post_max_size] = 40M
   php_admin_value[short_open_tag] = On

   php_value[date.timezone] = "Europe/Athens"


Nick

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