How to get md RAID array to rebuild even if read errors

Well hope this will help someone like me because I really didn’t find exactly all information on internet. So .. My situation was like this raid 1 software . On smartctl both hard drive look pretty mess up so I decide to switch sdb first. So, I remove the sdb from raid, make the tiket to datacenter and they say won’t change the hard drive because is ok. So I put the sdb back in place but my surprise was big. The raid didn’t build and get a failed . And the sdb was put in (S) spare . cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdb4[2] sda4[0] 1851802943 blocks super...
read more

chkconfig list ubuntu

Well on ubuntu I didn’t find a corresponding command to chkconfig list. So a, easy way to find out what is running on startup is to run this: runlevel N X And after you see what runlevel is you list the directory : ls -ialh ls -ialh /etc/rcX.d/ Where X is the answer from runlevel Also some equivalent command: chkconfig –add chkconfig –level 345 on chkconfig –del update-rc.d defaults update-rc.d start 20 3 4 5 update-rc.d -f...
read more

mod_rpaf and Amazon ELB

Well is clear that if you want to use the amazon elb, you will not see the $REMOTE_ADDR correctly and you will need mor_rpaf enabled and installed. If you have a centos / redhat server I found this nice tutorial on this page mod_rpaf and Amazon ELB mod_rpaf-0.6-0.7.x86_64.rpm And add this LoadModule rpaf_module modules/mod_rpaf-2.0.so RPAFenable On RPAFsethostname On RPAFproxy_ips 10. RPAFheader...
read more

Memcached on centos 6.5

I am trying to install the memcached not the memcache on centos 6.5 Well if you try with pecl install memcached a error will appear and you can’t install it. A solution is to install it from source. libmemcached release 1.0.16 – installed from source php-memcached release 2.1.0 – installed from source & Added memcached.so in php.ini So basically you download libmemcached and run: configure ; make; make install And php-memcached and run: phpize; configure; make; make install After this you can add to /etc/php.d/memcached.ini the line...
read more

domain has no valid mail exchangers

Today I face a strange problem with e-mail won’t be deliver, to a client . I have tested from yahoo, gmail and other service and everything was fine however one client from gmx was complain that he can’t send e-mail to that account A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address failed: “user@domain.com”: domain has no valid mail exchangers So, first impresion was to check if domain.com have a mx . So a short dig mx domain.com output a DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1...
read more

apache child pid exit signal Segmentation fault

Well today I face a strange problem. My apache start throw some segmentation fault into error log. So how to find out what is the problem ? Well first of all we have to enable the coredump for apache, so in orde to do this we can add this line at the start of httpd.conf CoreDumpDirectory /path ( Some put the path to /tmp directory but please be aware that for me core have 2.2G , so if you have a small /tmp partition you can put it in other place , but it have to be into a directory with same user/group as apache run ) . We restart the apache and wait to see a segmentation fault again into error_log,...
read more

« Previous Entries