Dell戴尔SAS 6/iR RAID状态

在Dell戴尔1950与R410上测试RAID卡通过,系统为Centos 6.4 64bit

查看控制器是否LSI Logic

  1. lspci -v| grep SCSI
  2. 02:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)

用lsiutils查询控制器状态,megacli无法用于此类控制器。

  1. wget http://mirror.cogentco.com/pub/misc/lsiutil.x86_64 && chmod 700 lsiutil.x86_64
  2. ./lsiutil.x86_64 1
  3.  
  4. LSI Logic MPT Configuration Utility, Version 1.60, July 11, 2008
  5.  
  6. 1 MPT Port found
  7.  
  8.      Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
  9.  1. /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      00192f00     0
  10.  
  11. Current active firmware version is 00192f00 (0.25.47)
  12. Firmware image's version is MPTFW-00.25.47.00-IE
  13.   LSI Logic
  14. x86 BIOS image's version is MPTBIOS-6.22.03.00 (2008.08.06)
  1. wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/aevseev/CentOS_CentOS-6/x86_64/mpt-status-1.2.0-6.3.x86_64.rpm
  2. rpm -ivh mpt-status-1.2.0-6.3.x86_64.rpm
  3. #需要daemonize.x86_64
  4.  
  5. [root@localhost]# mpt-status
  6. ioc0 vol_id 0 type IM, 2 phy, 278 GB, state OPTIMAL, flags ENABLED
  7. ioc0 phy 1 scsi_id 9 SEAGATE  ST3300657SS      ES64, 279 GB, state ONLINE, flags NONE
  8. ioc0 phy 0 scsi_id 1 SEAGATE  ST3300657SS      ES64, 279 GB, state ONLINE, flags NONE

lftp客户端Making data connection

lftp是一个优秀轻巧的开源FTP客户端,并且支持http https ftp sftp等协议进行文件传输;
由于默认使用了ssl 但大部分提供ftp的服务器并未开启ssl,造成瞬间卡住或者延迟显示;

  1. `ls' at 0 [Making data connection...]
  2. lftp -e "set ftp:ssl-allow off;" -u 用户名,密码 IP
  3. 或者直接写进配置文件 /etc/lftp.conf
  4. set ftp:ssl-allow false

centos6彻底禁止ipv6

在centos6.x上 wget很慢 yum很慢 ping dig nslookup解析很慢 ssh很慢的解决办法.

无论在wget yum dig等操作下,tcpdump抓包就能看到向dns 8.8.8.8查询的时候带有一堆的AAAA请求

  1. 06:59:49.576542 IP My_Server_IP.19386 > google-public-dns-a.google.com.domain: 52066+ AAAA? mirrors.hust.edu.cn. (37)
  2. 06:59:54.581342 IP My_Server_IP.19386 > google-public-dns-a.google.com.domain: 52066+ AAAA? mirrors.hust.edu.cn. (37)
  3. 06:59:59.581265 IP My_Server_IP.7213 > google-public-dns-a.google.com.domain: 52066+ AAAA? mirrors.hust.edu.cn. (37)
  4. 07:00:04.617841 IP My_Server_IP.18852 > google-public-dns-a.google.com.domain: 31615+ AAAA? ftp.riken.jp. (30)
  5. 07:00:09.618578 IP My_Server_IP.18852 > google-public-dns-a.google.com.domain: 31615+ AAAA? ftp.riken.jp. (30)
  6. 07:00:14.618085 IP My_Server_IP.44953 > google-public-dns-a.google.com.domain: 31615+ AAAA? ftp.riken.jp. (30)
  7. 07:00:19.741115 IP My_Server_IP.7737 > google-public-dns-a.google.com.domain: 42754+ AAAA? ftp.jaist.ac.jp. (33)
  8. 07:00:24.742248 IP My_Server_IP.7737 > google-public-dns-a.google.com.domain: 42754+ AAAA? ftp.jaist.ac.jp. (33)
  9. 07:00:29.742465 IP My_Server_IP.14624 > google-public-dns-a.google.com.domain: 42754+ AAAA? ftp.jaist.ac.jp. (33)
  10. 07:00:34.881076 IP My_Server_IP.29094 > google-public-dns-a.google.com.domain: 16330+ AAAA? mirrors.neusoft.edu.cn. (40)
  11. 07:00:39.886034 IP My_Server_IP.29094 > google-public-dns-a.google.com.domain: 16330+ AAAA? mirrors.neusoft.edu.cn. (40)
  12. 07:00:44.890210 IP My_Server_IP.44688 > google-public-dns-a.google.com.domain: 16330+ AAAA? mirrors.neusoft.edu.cn. (40)
  13.  
  14. 1)
  15. 增加 /etc/sysctl.conf
  16. net.ipv6.conf.all.disable_ipv6 = 1
  17. net.ipv6.conf.default.disable_ipv6 = 1
  18.  
  19. 2)
  20. 修改 /etc/sysconfig/network
  21. 增加 NETWORKING_IPV6=no
  22.  
  23. 3)
  24. 新建 /etc/modprobe.d/ipv6.conf
  25. alias net-pf-10 off
  26. alias ipv6 off
  27.  
  28. 4)
  29. 打开 /etc/wgetrc
  30. 增加 inet4_only=on
  31.  
  32. 5)
  33. 打开 /etc/yum.conf
  34. 修改 keepcache=1
  35.  
  36. 6)
  37. 打开 /etc/resolv.conf
  38. options single-request
  39. nameserver     8.8.8.8
  40.  
  41. 7)
  42. 重启
1 1