Feeds:
Posts
Comments

Archive for the ‘GNU/Linux’ Category

# cat /proc/driver/cciss/cciss0
cciss0: HP Smart Array 5i Controller
Board ID: 0x40800e11
Firmware Version: 2.66
IRQ: 10
Logical drives: 3
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 128
Max # commands on controller since init: 128
Max SG entries since init: 31

Sequential access devices: 0

cciss/c0d0:       69.45GB       RAID 1(0+1)
cciss/c0d1:       69.45GB       RAID 1(0+1)
cciss/c0d2:       69.45GB       RAID 1(0+1)

 

Download

HP Array Configuration Utility for Linux

Hp Array Configuration Utility CLI for Linux

HP Array Diagnostics Utility for Linux

HP System management HomePage for Linux (x86)

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3291842&prodTypeId=15351&prodSeriesId=396616&swLang=8&taskId=135&swEnvOID=1097#7832

 

Install the System management Homepage

# rpm -ivh hpsmh-< version >.linux.i386.rpm

To run HPSMH

#/etc/init.d/hpsmhd start

 

Install HP Array Configuration Utility for Linux

# rpm -ivh cpqacuxe-8.25-5.noarch.rpm

The software resides in /usr/lib, /opt/compaq/cpqacuxe and the executable name is cpqacuxe which is located in /usr/sbin.

The password resetting utility is hphmmopasswd that is located in /opt/compaq/cpqacuxe/bld.

 

Running the Array Configuration Utility

Use “cpqacuxe” for the local access only or

“cpqacuxe -R” for remote access

 

Type "http://SERVERNAME:2301" into the url field. The servername should 
be the IP address or server name of the host on which the ACU server
is running.
Use root Username and Password for login

Supported Controllers

  Smart Array 5312 Controller
  Smart Array 5302 Controller
  Smart Array 5304 Controller
  Smart Array 532 Controller
  Smart Array 5i Controller
  Integrated Smart Array Controller
  Smart Array 4200 Controller
  Smart Array 4250ES Controller
  Smart Array 431 Controller
  Smart Array 3200 Controller
  MSA500 Controller
  MSA1000 Controller
  Smart Array 641 Controller
  Smart Array 642 Controller
  Smart Array 6400 Controller
  Smart Array 6400 EM Controller
  Smart Array 6i Controller
  MSA500 G2 Controller
  MSA1500 CS Controller
  MSA20 Controller
  Smart Array P600 Controller
  Smart Array P400 Controller
  Smart Array P400i Controller
  Smart Array E200 Controller
  Smart Array E200i Controller
  Smart Array P800 Controller
  Smart Array E500 Controller

Read Full Post »

Just happened on couple of SLES 9 servers after installing the followings 
the server just came back with postfix plugin.

perl-Net-Server-0.87-29.4.i586.rpm
munin-node-1.2.4-1.sles9.rpm

 
But by default munin plugins are
cpu entropy forks if_eth0 iostat memory mysql_slowqueries  open_files processes df exim_mailqueue
if_err_eth0  if_eth1 irqstats mysql_bytes mysql_threads open_inodes
swap df_inode  exim_mailstats if_err_eth1 interrupts load mysql_queries 
netstat postfix_mailvolume vmstat

Then I manually did symbolic links from /etc/munin/plugins to /usr/share/munin/plugins

beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/cpu cpu
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/df df
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/df_inode df_inode
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/load load
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/memory memory
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/processes processes
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_eth0 if_eth0
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_err_eth0 if_err_eth0
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_eth1 if_eth1
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_err_eth1 if_err_eth1

Now after this the munin-node crashed and failed to show graph even for postfix.

While checking the log for munin in /var/log/munin/munin-node.log, I got the following error message

Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:09:52 Plugin timeout: df config: Interrupted system call
(pid 16888)
2008/08/07-18:09:52 Server closing!
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:02 Plugin timeout: cpu config: Interrupted system call
(pid 16894)
2008/08/07-18:10:02 Server closing!
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:12 Plugin timeout: load config: Interrupted system call
(pid 16901)
2008/08/07-18:10:12 Server closing!
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:22 Plugin timeout: swap config: Interrupted system call
(pid 16908)
2008/08/07-18:10:22 Server closing!
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:32 Plugin timeout: forks config: Interrupted system call
(pid 16911)
2008/08/07-18:10:32 Server closing!
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:42 Plugin timeout: entropy config: Interrupted system call
(pid 16912)
2008/08/07-18:10:42 Server closing!
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:52 Plugin timeout: netstat config: Interrupted system call
(pid 16917)
2008/08/07-18:10:52 Server closing!
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:02 Plugin timeout: iostat config: Interrupted system call
(pid 16986)
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:14 Plugin timeout: df_inode config: Interrupted system call
(pid 16991)
2008/08/07-18:11:14 Server closing!
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:24 Plugin timeout: memory config: Interrupted system call
(pid 16997)
2008/08/07-18:11:24 Server closing!
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:34 Plugin timeout: vmstat config: Interrupted system call
(pid 17014)
2008/08/07-18:11:34 Server closing!
2008/08/07-18:14:33 CONNECT TCP Peer: “XX.XX.XX.7:52286″ Local: “XX.XX.XX.145:4949″
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 2.
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 3.
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 4.
Can’t exec “/etc/munin/plugins/postfix_mailvolume”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 5.
Can’t exec “/etc/munin/plugins/postfix_mailqueue”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 6.
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 7.
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 8.
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 9.
Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 10.
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 11.
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 12.
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 13.
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 14.
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 15.
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 16.
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 17.
Can’t exec “/etc/munin/plugins/postfix_mailqueue”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 18.
Can’t exec “/etc/munin/plugins/postfix_mailvolume”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 19.
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 20.
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 21.
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 22.
Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 23.
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 24.
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 25.
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 26.
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 27.
2008/08/07-18:14:33 Plugin “swap” exited with status 13. —-
2008/08/07-18:14:33 Plugin “netstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df” exited with status 13. —-
2008/08/07-18:14:33 Plugin “memory” exited with status 13. —-
2008/08/07-18:14:33 Plugin “iostat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “forks” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailvolume” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailqueue” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df_inode” exited with status 13. —-
2008/08/07-18:14:33 Plugin “entropy” exited with status 13. —-
2008/08/07-18:14:33 Plugin “cpu” exited with status 13. —-
2008/08/07-18:14:33 Plugin “load” exited with status 13. —-
2008/08/07-18:14:33 Plugin “vmstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “swap” exited with status 13. —-
2008/08/07-18:14:33 Plugin “netstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df” exited with status 13. —-
2008/08/07-18:14:33 Plugin “memory” exited with status 13. —-
2008/08/07-18:14:33 Plugin “iostat” exited with status 13. -
2008/08/07-18:14:33 Plugin “forks” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailqueue” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailvolume” exited with status 13. —-
2008/08/07-18:14:33 Plugin “cpu” exited with status 13. —-
2008/08/07-18:14:33 Plugin “entropy” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df_inode” exited with status 13. —-

 

If you ever get these kinds of errors don’t forget to add plugins and permissions in /etc/munin/plugin-conf.d/munin-node file.

$cat /etc/munin/plugin-conf.d/munin-node
#
# This file contains configuration options for the plugins. Three
# options are understood by munin-node itself:
#
#       user <user>         # Set the user to run the plugin as
#       group <group>       # Set the group to run the plugin as
#       command <command>   # Run <command> instead of the plugin. %c
#                             expands to what would normally be run.
#   env.<variable>      # Sets <variable> in the plugin’s environment, see the
#                         individual plugins to find out which variables they
#                         care about.
#
#

[mysql*]
#env.mysqlopts -u someuser

[exim*]
group mail

[cps*]
user root

[apt]
user root

[vlan*]
user root

[postfix*]
user root
env.logfile mail

[cpu*]
user root

[memory*]
user root

[load*]
user root

[if_*]
user root

[if_err_*]
user root

[df*]
user root

[process*]
user root

[dhcpd]
env.leasefile /var/lib/dhcp/db/dhcpd.leases

 

You have to do this only when you get those error messages :) Cheers

Read Full Post »

daemontools is a collection of tools for managing UNIX services.

supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.

multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.

 

Click the link for more

http://cr.yp.to/daemontools.html

Read Full Post »

Linux rlimit problem

On Linux, we have started experiencing the following problem:

Jun 11 14:07:52 10.1.123.234 kernel: open files rlimit 1024 reached for uid 0 pid 7127 (seen 2 times)

The following seems to fix the problem after a reboot:

Modify /etc/init.d/cron and add the line in red.

case “$1″ in
    start)
ulimit -n 65536
        echo -n “Starting CRON daemon”
        ## Start daemon with star

Create /etc/initscript with the following:

# Increase the hard filedescriptor limit for all processes
# to 65536.  The soft limit is still 1024, but any unpriviliged
# process can increase it’s soft limit up to the hardlimit
# with “ulimit -Sn xxx” (needs a 2.2.13 or later Linux kernel).
ulimit -Hn 65536

# Execute the program.
eval exec “$4″

Read Full Post »

Just Steps

1.  Boot from SUSE Linux Install CD
2.  Select Rescue Mode
3.  Login as “root” to rescue mode (no password)
4.  Manually mount your non-LVM disks   
    a.  mkdir /mnt/root
    b.  mount /dev/sda1 /mnt/root/boot

5.  Manually mount your LVM stuff:
    b.  vgscan
    c.  vgchange -a -y rootvg
    d.  mount /dev/rootvg/lvroot /mnt/root/boot
    d.  mount /dev/rootvg/lvusr /mnt/root/boot/usr
    d.  mount /dev/rootvg/lvopt /mnt/root/boot/opt
    d.  mount /dev/rootvg/lvhome /mnt/root/boot/home
    d.  mount /dev/rootvg/lvvar /mnt/root/boot/var

** You can now update your configuration to recover your system from what 
   ever you did to get to this point..

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.