最近看到服务器硬盘红灯闪烁,为了了解下服务器的运行情况以及硬盘,raid是否正常,就用了dell的OpenManager,简称omsa。OpenManage可以用来监控服务器的各个
硬盘设备的运行情况,如电压,温度,内存以及硬盘,raid信息等等。
具体信息请参考:http://linux.dell.com/repo/hardware/omsa.html
首先看下omsa支持的操作系统:
Red Hat Enterprise Linux 5 server Update 9 (both x86 and x86_64)
Red Hat Enterprise Linux 6 server Update 5 (x86_64)
Red Hat Enterprise Linux 7 server (x86_64)
SUSE Linux Enterprise Server 11SP3 (x86_64)
另:在使用yum的时候需要在/etc/yum.conf中设置plugins=1,这里只需知道下就可以,就不做过多解释了。
1安装:
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum install srvadmin-all
我们使用的完全安装,其中还支持:
srvadmin-base:安装omsa基础组件,不包含webserver
srvadmin-webserver:安装web界面
srvadmin-storageservices:安装raid管理界面
srvadmin-rac4:安装dell远程管理组件-4
srvadmin-rac5:安装dell远程管理组件-5
2omsa启动:
srvadmin-services.sh start或者service dataeng start
chkconfig dataeng on 加入开机启动
netstat -ntlp |grep :1311
我们可以看到1311端口启动,https://ip:port即可登陆web界面,账号为root账号;也可以通过omereport 来查看信息
[root@localhost yum]# omereport -? -bash: omereport: command not found [root@localhost yum]# omreport storage vdisk [root@localhost yum]# omreport -? omreport Reports component properties. The available command(s) are: Command Description about Product and version properties. licenses Displays the digital licenses of the installed hardware devices. preferences Report system preferences. system System component properties. chassis Chassis component properties. storage Display storage component properties. Usage: omreport <command...> [name=value...] ... [option...] Valid command line options are: -? Print available command(s) or command help. -fmt <lst|tbl|ssv|cdv|xml> Format for output results, default is lst. Where: lst List format. tbl Table format. ssv Semicolon separated format. cdv Custom delimiter separated format. xml Raw XML format. -outc <file> Redirect output to file, delete old if exists. OR -outa <file> Redirect output to file, append to old if exists. OR Output may also be redirected using Operating System facilities (e.g. |more).
[root@localhost yum]# omreport storage vdisk List of Virtual Disks in the System Controller PERC 6/i Integrated (Embedded) ID : 0 Status : Ok Name : Virtual Disk 0 State : Ready Hot Spare Policy violated : Not Assigned Encrypted : Not Applicable Layout : RAID-1 Size : 931.00 GB (999653638144 bytes) T10 Protection Information Status : No Associated Fluid Cache State : Not Applicable Device Name : /dev/sda Bus Protocol : SAS Media : HDD Read Policy : No Read Ahead Write Policy : Write Back Cache Policy : Not Applicable Stripe Element Size : 64 KB Disk Cache Policy : Disabled ID : 1 Status : Ok Name : vdisk1 State : Ready Hot Spare Policy violated : Not Assigned Encrypted : Not Applicable Layout : RAID-1 Size : 1,862.50 GB (1999844147200 bytes) T10 Protection Information Status : No Associated Fluid Cache State : Not Applicable Device Name : /dev/sdb Bus Protocol : SATA Media : HDD Read Policy : No Read Ahead Write Policy : Write Back Cache Policy : Not Applicable Stripe Element Size : 64 KB Disk Cache Policy : Enabled
原文地址:http://blog.csdn.net/yanggd1987/article/details/44958059