HP DL380 G5 – Smart Array P400 – Linux随机高负载挂起

现在2-3个星期以来,我的主服务器挂了没有明显的原因。 在此之前,连续工作超过4个月没有问题。 每次,一个简单的重新启动修复问题。

当前设置:

  • HP DL380 G5,2 x Xeon 4C 3GHz,16GB内存,6 x 146GB(RAID 0 + 1)
  • Slackware 14.0

我把服务器的PuTTy打开并运行,当它挂起时(大约每天1-3次),我看到一个高负载,大约60多个,所有的Web服务(HTTP,DNS,SMTP,IMAP,POP3等)没有反应。 当与PuTTy连接时,我可以login,但提示不会出现在本地提示(键盘+屏幕)上同样的事情。 另外,我也看到驱动器上的绿色LED同时以约0.5Hz – 1Hz的频率闪烁(通常它们闪烁的方式更快,而且是随机的)。

我首先怀疑是DDoS攻击等,增加了很多fail2banvalidation,外部防火墙TCP请求限制等。之后,我对固件版本(包括P400)进行了validation,升级到最新版本,问题依然存在。 我也同步到另一台DL380 G5(除了4个450GB驱动器之外的相同硬件)来replace服务器,同样的问题再次。

我使用topvalidation,iostat,iotop仍然没有线索。 当负载很高时,几乎没有CPU使用率(顶部),没有磁盘活动(iostat)。

现在我想知道是否可以在我使用的版本中可能有问题的CCISS驱动程序?

以下是一些可能有用的信息:

控制器的详细信息:

root@hyperion:~# hpapucli => ctrl all show status Smart Array P400 in Slot 1 Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK => ctrl all show detail Smart Array P400 in Slot 1 Bus Interface: PCI Slot: 1 Serial Number: P61620G9SVM38V Cache Serial Number: PA2270H9SVI198 RAID 6 (ADG) Status: Enabled Controller Status: OK Hardware Revision: D Firmware Version: 6.86 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 15 secs Surface Scan Mode: Idle Wait for Cache Room: Disabled Surface Analysis Inconsistency Notification: Disabled Post Prompt Timeout: 0 secs Cache Board Present: True Cache Status: OK Cache Ratio: 25% Read / 75% Write Drive Write Cache: Disabled Total Cache Size: 512 MB Total Cache Memory Available: 464 MB No-Battery Write Cache: Disabled Cache Backup Power Source: Batteries Battery/Capacitor Count: 1 Battery/Capacitor Status: OK SATA NCQ Supported: True => ctrl all show config Smart Array P400 in Slot 1 (sn: P61620G9SVM38V) array A (SAS, Unused Space: 0 MB) logicaldrive 1 (838.3 GB, RAID 1+0, OK) physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 450 GB, OK) physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 450 GB, OK) physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 450 GB, OK) physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 450 GB, OK) 

司机详情

 root@hyperion:~# modinfo cciss filename: /lib/modules/3.2.29/kernel/drivers/block/cciss.ko license: GPL version: 3.6.26 description: Driver for HP Smart Array Controllers author: Hewlett-Packard Company srcversion: D553A90CDE37829B37A9C27 alias: pci:v0000103Cd00003230sv0000103Csd0000323Dbc*sc*i* alias: pci:v0000103Cd00003230sv0000103Csd00003237bc*sc*i* alias: pci:v0000103Cd00003238sv0000103Csd00003215bc*sc*i* alias: pci:v0000103Cd00003238sv0000103Csd00003214bc*sc*i* alias: pci:v0000103Cd00003238sv0000103Csd00003213bc*sc*i* alias: pci:v0000103Cd00003238sv0000103Csd00003212bc*sc*i* alias: pci:v0000103Cd00003238sv0000103Csd00003211bc*sc*i* alias: pci:v0000103Cd00003230sv0000103Csd00003235bc*sc*i* alias: pci:v0000103Cd00003230sv0000103Csd00003234bc*sc*i* alias: pci:v0000103Cd00003230sv0000103Csd00003223bc*sc*i* alias: pci:v0000103Cd00003220sv0000103Csd00003225bc*sc*i* alias: pci:v00000E11d00000046sv00000E11sd0000409Dbc*sc*i* alias: pci:v00000E11d00000046sv00000E11sd0000409Cbc*sc*i* alias: pci:v00000E11d00000046sv00000E11sd0000409Bbc*sc*i* alias: pci:v00000E11d00000046sv00000E11sd0000409Abc*sc*i* alias: pci:v00000E11d00000046sv00000E11sd00004091bc*sc*i* alias: pci:v00000E11d0000B178sv00000E11sd00004083bc*sc*i* alias: pci:v00000E11d0000B178sv00000E11sd00004082bc*sc*i* alias: pci:v00000E11d0000B178sv00000E11sd00004080bc*sc*i* alias: pci:v00000E11d0000B060sv00000E11sd00004070bc*sc*i* depends: intree: Y vermagic: 3.2.29 SMP mod_unload parm: cciss_tape_cmds:number of commands to allocate for tape devices (default: 6) (int) parm: cciss_simple_mode:Use 'simple mode' rather than 'performant mode' (int) 

悬挂时输出最高

 top - 10:39:45 up 43 min, 2 users, load average: 24.58, 7.14, 2.88 Tasks: 282 total, 1 running, 281 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 32894436k total, 17964512k used, 14929924k free, 97732k buffers Swap: 0k total, 0k used, 0k free, 10694424k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3928 root 20 0 37164 2988 2444 S 0 0.0 0:00.41 sshd 4478 root 20 0 17608 1540 1060 R 0 0.0 0:07.62 top 1 root 20 0 4316 696 600 S 0 0.0 0:00.98 init 2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0 0.0 0:00.01 ksoftirqd/0 5 root 20 0 0 0 0 S 0 0.0 0:00.02 kworker/u:0 6 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0 7 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/1 9 root 20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 11 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/2 13 root 20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2 14 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/3 16 root 20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3 17 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/4 19 root 20 0 0 0 0 S 0 0.0 0:00.01 ksoftirqd/4 20 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/5 22 root 20 0 0 0 0 S 0 0.0 0:00.01 ksoftirqd/5 23 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/6 25 root 20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/6 26 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/7 28 root 20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/7 29 root 0 -20 0 0 0 S 0 0.0 0:00.00 cpuset 30 root 0 -20 0 0 0 S 0 0.0 0:00.00 khelper 31 root 20 0 0 0 0 S 0 0.0 0:00.00 kdevtmpfs 32 root 0 -20 0 0 0 S 0 0.0 0:00.00 netns 33 root 20 0 0 0 0 S 0 0.0 0:00.00 kworker/u:1 495 root 20 0 0 0 0 D 0 0.0 0:05.24 sync_supers 497 root 20 0 0 0 0 S 0 0.0 0:00.00 bdi-default 499 root 0 -20 0 0 0 S 0 0.0 0:00.00 kblockd 654 root 0 -20 0 0 0 S 0 0.0 0:00.00 ata_sff 661 root 20 0 0 0 0 S 0 0.0 0:00.00 khubd 667 root 0 -20 0 0 0 S 0 0.0 0:00.00 md 676 root 20 0 0 0 0 S 0 0.0 0:00.40 kworker/3:1 677 root 20 0 0 0 0 S 0 0.0 0:00.12 kworker/4:1 678 root 20 0 0 0 0 S 0 0.0 0:00.65 kworker/5:1 679 root 20 0 0 0 0 S 0 0.0 0:00.16 kworker/6:1 680 root 20 0 0 0 0 S 0 0.0 0:00.21 kworker/7:1 774 root 0 -20 0 0 0 S 0 0.0 0:00.00 rpciod 826 root 20 0 0 0 0 S 0 0.0 0:00.00 khungtaskd 832 root 20 0 0 0 0 S 0 0.0 0:00.00 kswapd0 

DL380 G6与P410i迁移

我还尝试过使用另一台HP服务器,直接移动硬盘驱动器,在/etc/fstab/etc/lilo.conf通过/dev/sda*更改/dev/cciss/c0d0* ,仍然是同样的问题。

控制器的详细信息:

注:是的caching被禁用,我现在只是没有电池的服务器。

 root@hyperion:~# modprobe sg root@hyperion:~# hpacucli ctrl all show detail Smart Array P410i in Slot 0 (Embedded) Bus Interface: PCI Slot: 0 Serial Number: 50123456789ABCDE Cache Serial Number: PAAVP9VYBAU0 RAID 6 (ADG) Status: Disabled Controller Status: OK Hardware Revision: C Firmware Version: 6.64 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 15 secs Surface Scan Mode: Idle Queue Depth: Automatic Monitor and Performance Delay: 60 min Elevator Sort: Enabled Degraded Performance Optimization: Disabled Inconsistency Repair Policy: Disabled Wait for Cache Room: Disabled Surface Analysis Inconsistency Notification: Disabled Post Prompt Timeout: 0 secs Cache Board Present: True Cache Status: OK Cache Ratio: 100% Read / 0% Write Drive Write Cache: Disabled Total Cache Size: 512 MB Total Cache Memory Available: 400 MB No-Battery Write Cache: Disabled Battery/Capacitor Count: 0 SATA NCQ Supported: True 

司机详情

 root@hyperion:~# modinfo hpsa filename: /lib/modules/3.2.29/kernel/drivers/scsi/hpsa.ko license: GPL version: 2.0.2-1 description: Driver for HP Smart Array Controller version 2.0.2-1 author: Hewlett-Packard Company srcversion: 624DA19A5286F6BDA1645F3 alias: pci:v0000103Cd*sv*sd*bc01sc04i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003356bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003355bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003354bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003353bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003352bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003351bc*sc*i* alias: pci:v0000103Cd0000323Bsv0000103Csd00003350bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003233bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd0000324Bbc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd0000324Abc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003249bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003247bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003245bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003243bc*sc*i* alias: pci:v0000103Cd0000323Asv0000103Csd00003241bc*sc*i* depends: intree: Y vermagic: 3.2.29 SMP mod_unload parm: hpsa_allow_any:Allow hpsa driver to access unknown HP Smart Array hardware (int) parm: hpsa_simple_mode:Use 'simple mode' rather than 'performant mode' (int) 

可能的原因

昨天通过在不同的进程testing,我禁用postfix和服务器停止挂起。 一旦我再次启动,服务器被吊死。 看起来像是有一个不好的configuration或可疑的smtp请求。

HP ProLiant G5服务器系列是非常旧的设备,从各个合理的angular度来看都不支持。 该设备在2009年报废。

但是,如果您不介意不被支持,并且系统是四代以上的,那么服务器仍然可以运行。

对于您的情况,您正在对RAID控制器上的固件进行错误的修改 。 我build议您将RAID控制器的固件升级到最新版本(2012) 。

通常情况下,您可以在操作系统内部完成此操作,但是HP也完全不支持Slackware。 如果你能find更新固件的方法,这可能会解决这个问题。


在这里输入图像说明