Standard

HP ProLiant DL380 G5 Smart Array P400 Raid Monitor CentOS 6.6 x86_64

[root@centos src]# lspci -nn | grep -i raid
0e:00.0 RAID bus controller [0104]: Hewlett-Packard Company Smart Array Controller [103c:3230] (rev 04)
[root@centos src]# wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1257348637/v71527/hpacucli-9.10-22.0.x86_64.rpm

[root@centos src]# rpm -Uhv ./hpacucli-9.10-22.0.x86_64.rpm
[root@centos src]# hpacucli controller all show status

Smart Array P400 in Slot 3
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
[root@centos src]# hpacucli controller slot=3 logicaldrive all show status

logicaldrive 1 (68.3 GB, RAID 1): OK
logicaldrive 2 (273.3 GB, RAID 6 (ADG)): OK

[root@centos src]# hpacucli controller slot=3 physicaldrive all show status

physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 72 GB): OK
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 72 GB): OK
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 72 GB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 72 GB): OK
physicaldrive 2I:1:5 (port 2I:box 1:bay 5, 72 GB): OK
physicaldrive 2I:1:6 (port 2I:box 1:bay 6, 72 GB): OK
physicaldrive 2I:1:7 (port 2I:box 1:bay 7, 72 GB): OK
physicaldrive 2I:1:8 (port 2I:box 1:bay 8, 72 GB): OK

 

[root@centos src]# date
Fri Apr 17 01:46:10 AZST 2015

Seems like everything is OK :)

 

 

 

 

 

more
Standard

Cacti migration notes

cacti_logo

 

 

 

 

######URL PATH:
/usr/share/cacti/site/include/config.php
ORIGINAL = $url_path = “/cacti/”;
CHANGE TO:
$url_path = “/”;

#####RRD PATH:
/usr/share/cacti/site/include/global.php
ORIGINAL:
$config[“rra_path”] = ‘/var/lib/cacti/rra’;
MAY CHANGE TO:
$config[“rra_path”] = $config[“base_path”] . ‘/rra’;

####OLD
# cd /var/www/cacti/rra
# for i in `find -name “*.rrd”`; do rrdtool dump $i > $i.xml; done
# tar czf cacti-xml.tar.gz ./*xml

###NEW
# cd /var/lib/cacti/rra
# tar xzf ./cacti-xml.tar.gz
# for i in `find -name “*.xml”`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
# mysql -u cacti -p cacti < /tmp/cacti.sql

Cacti – manually rebuild poller cache
#php -q /usr/share/cacti/cli/rebuild_poller_cache.php

###Set the appropriate permissions on cacti’s directories for graph/log generation
#chown -R www-data:www-data /var/lib/cacti/rra

more
Standard

HAProxy with SSL Pass-Through/No SSL offloading Debian 7 to WIN2008R2 with Tomcat clustered configuration

Scenario:


HAProxy_scenario

 

 

 

 

LOG:

root@frontend066:~# curl -k -L -I https://node087
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/”6920-1395175166185″
Last-Modified: Tue, 18 Mar 2014 20:39:26 GMT
Content-Type: text/html
Content-Length: 6920
Date: Thu, 02 Apr 2015 19:52:00 GMT
root@frontend066:~# curl -k -L -I https://node090
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/”6920-1397329391836″
Last-Modified: Sat, 12 Apr 2014 19:03:11 GMT
Content-Type: text/html
Content-Length: 6920
Date: Thu, 02 Apr 2015 19:53:12 GMT

 

root@frontend066:~# lsof -i tcp:443
lsof: no pwd entry for UID 109
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lsof: no pwd entry for UID 109
haproxy 8927 109 4u IPv4 37796 0t0 TCP frontend066.bp.com:https (LISTEN)

 

curl -k https://frontend066.bp.com
curl -k https://10.104.65.109

 

HAProxy conf:

root@frontend066:~# cat /etc/haproxy/haproxy.cfg
global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 109
gid 109

defaults
log global
timeout server 5s
timeout connect 5s
timeout client 5s

###REDIRECT 80 to 443 !must be http mode!
frontend http_to_https_redirect
bind :80
mode http
redirect scheme https if !{ ssl_fc }

frontend https_frontend
bind *:443
mode tcp
option tcplog
default_backend https_backend

backend https_backend
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
option ssl-hello-chk
server node087 10.103.56.209:443 check inter 2000 rise 2 fall 5
server node090 10.104.65.41:443 check inter 2000 rise 2 fall 5

listen stats :1936

balance
mode http
stats enable
stats scope http_to_https_redirect
stats scope https_frontend
stats scope https_backend
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth gus:7Kn2zrgxwGw
stats auth bayil:zZFTGY1h/Lc

STATS:

http://10.104.65.109:1936

 

HAProxy_stats

 

 

 

 

 

 

more