Online resize logicaldrive on Smart Array P410i
On my HP Proliant server I have hot added 2 extra drives. To expand the current raid 1 array I used the following commands: hpacucli ctrl slot=0 logicaldrive 1 modify raid=1+0 hpacucli ctrl slot=0 ld 1 add drives=allunassigned Now the logicaldrive looks like this: # hpacucli ctrl slot=0 logicaldrive 1 showSmart Array P410i in Slot 0 (Embedded)array A Logical Drive: 1 Size: 136.7 GB Fault Tolerance: RAID 1+0 Heads: 255 Sectors Per Track: 32 Cylinders: [...]
Continue Reading »Error in invoking javac – Debian Squeeze
I am trying to solve this issue: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required We have a third-party Java app that uses a Jetty server but looks like either the JDK is missing or not reachable where it is located? In /usr/bin I see: java javaws jexec No javac so probably no JDK installed. The box is Debian “Squeeze” with the following: java -version java version [...]
Continue Reading »sshd ignores match block
I have the problem that sshd somehow ignores a match block. The configuration of sshd is kind of basic. You can find it here: http://pastebin.com/bNUYhQnx My goal is that every user except root should only be able to login with pubkey authentication. But even with the configuration mentioned above I’m still able to login with a user which is not root only with a password. Version of sshd is: OpenSSH_5.5p1 Debian-6+squeeze2, OpenSSL 0.9.8o 01 Jun [...]
Continue Reading »How important is it to keep size of log files down?
I have a LAMP server where logrotate does its job once per week, and I notice some logs tend to get quite large. For example, the apache access-log is 73MB. Is it better that I tell logrotate to rotate it daily? Does size matter for the performance (cpu load) or are we talking marginal differences (daily vs weekly rotation)? The file system is ext3. Asked by charly gordon I’ve never seen any apache webserver whose [...]
Continue Reading »reset locale in debian under Squeeze
I have problems with locale in debian. I tried many thing but it doesn’t anything for me : locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory C POSIX en_US.utf8 I try to set en_US.utf8 without success with this : dpkg-reconfigure locales -plow perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = “en_US”, LC_ALL = (unset), LC_CTYPE = “UTF-8″, LANG = (unset) are supported [...]
Continue Reading »Upgrading Lenny to Squeeze over ssh
I am running an ISPConfig3 server with Lenny which I want to upgrade the Squeeze, however… I am not at the terminal and the server is in my server-hall. Can I upgrade Lenny to Squeeze over SSH? I checked the update list and both openssh-client & openssh-server are being kept back… however, I feel unsure to if I can and should proceed. This is what apt-get shows me when running apt-get upgrade: The following packages [...]
Continue Reading »How does ulimit come into effect on the fly?
I have added 2 lines in /etc/security/limits.confmyuser soft nofile 16384 myuser hard nofile 16384 …which has no effect: su – sysctl -p su myuser ulimit -n 1024 It is important that this comes into effect without the user having to log in first, i.e. as root I start a script on his behalf. Asked by recalcitrant Add this to /etc/security/limits.conf: * soft nofile 16384 * hard nofile 16384 And add something like this to /etc/profile [...]
Continue Reading »postfix check warm me that some file differ
If I run postfix check on my debian squeeze server, I get this: postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_nisplus-2.11.3.so and /lib/libnss_nisplus-2.11.3.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_files-2.11.3.so and /lib/libnss_files-2.11.3.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_compat-2.11.3.so and /lib/libnss_compat-2.11.3.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_hesiod-2.11.3.so and /lib/libnss_hesiod-2.11.3.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_nis-2.11.3.so and /lib/libnss_nis-2.11.3.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/libnss_dns-2.11.3.so and /lib/libnss_dns-2.11.3.so differ Somebody know a solution to fix this ? Asked by Nicolas BADIA /var/spool/postfix is a chroot where postfix can optionally run, The idea is that if [...]
Continue Reading »cURL newest version on Debia Squeeze
Why Debian Squeeze repositories points to cURL version 7.21.0 which is from June 2010 and not the version 7.26.0 which is from May of this year(cURL Changelog)?? I want to update to the version 7.26 to avoid NTLM bugs, can I do this or it will crash the system in any way? If yes, how do I do it?? Asked by PlxDontVoteMeDown Debian 6.0 (squeeze) was released in 2011, so it can not come with [...]
Continue Reading »How to use a custom status command for a service in puppet?
I am using debian squeeze with PostgreSQL 9.1 from backports. Puppet has version 2.7.14. Unfortunatly the init script returns the wrong exit code for status. Therefore I wrote a custom status command to detect whether postgresql is running or not. service { ‘postgresql’: ensure => running, enable => true, hasstatus => false, hasrestart => true, status => “pg_lsclusters -h | awk ‘BEGIN {rc=0} {if ($4 != \”online\”) rc=3} END { exit rc }’”, provider => [...]
Continue Reading »Recent Posts
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address
- 100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)



