查看HBA卡信息和驱动(RHEL6)

Check HBA card and its driver’s info on linux(RHEL6)

http://fibrevillage.com/storage/9-check-hba-card-and-its-driver-s-info-in-linux-rhel6

This article also can be used for other cards with little or without change

Check if the host has HBA card installed and which type of card installed,

# lspci | grep -i fibre
15:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
15:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)

physical slot, driver, module information

继续阅读“查看HBA卡信息和驱动(RHEL6)”

路由增删改

原来:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.250.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
10.0.0.0 10.250.0.1 255.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.250.0.1 0.0.0.0 UG 0 0 0 eth1

需求:服务器10.250.0.31的默认网关指向10.250.0.252,同时新增路由访问内网10.0.0.0/8的下一跳为10.250.0.1 继续阅读“路由增删改”

快速删除大量文件/var/spool/postfix/maildrop/

目标目录:/var/spool/postfix/maildrop/,此目录生成大量文件导致inode写满。
mkdir /tmp/blank
rsync –delete-before -d /tmp/blank/ /var/spool/postfix/maildrop/
(在旧版rsync中可执行rsync –delete -rlptD /opt/testda/ /var/spool/clientmqueue)
rmdir /tmp/blank

将/etc/crontab中的MAILTO改成MAILTO=””
重启cron服务/etc/init.d/crond restart
maildrop目录就不会再产生文件

MooseFS错误一例

业务报障所挂载的mfs目录无法读写。
登录主机10.153.1.84查看mfsmaster进程已不在。
尝试启动mfsmaster失败,提示can’t find metadata.mfs – try using option ‘-a’
执行以下命令,再启动mfsmaster
cp /usr/local/mfs/var/mfs/metadata.mfs.back.1 /usr/local/mfs/var/mfs/metadata.mfs

继续阅读“MooseFS错误一例”

Pages: Prev 1 2 3 4 5 6 7 8 9 10 ... 51 52 53 Next