裸机维护

进入BIOS
ipmitool chassis bootdev bios  
ipmitool chassis power reset 

浪潮禁用板载网卡图示如下

 

 点亮/关闭硬盘灯

例如我想给Enclosure Device ID: 134Slot Number: 10的硬盘点灯。 那么只需要执行如下命令:
[root@idc-center009 ~]# /opt/MegaRAID/MegaCli/MegaCli64 PdLocate start physdrv[134:10] -a0
Adapter: 0: Device at EnclId-134 SlotId-10 -- PD Locate Start Command was successfully sent to Firmware

Exit Code: 0x00

判断硬盘 槽位和盘符/dev/sdxxxx的关系

 /opt/MegaRAID/MegaCli/MegaCli64   cfgdsply aall  | grep -Ei 'Target Id|Slot|Device ID|Error|Inquiry'   

 看 Target Id 与  lsscsi  | grep disk 输出中第一列第二个:后面的ID做对比。 相同为同一块盘

 

 

 系统内模拟踢掉硬盘 (删除某个RAID)

https://blog.csdn.net/xinqidian_xiao/article/details/80940306

MegaCli64 -CfgLdDel -LX -a0

X是第几个阵列(VD号:Virtual Drive: X);0表示第一个阵列。

 例如:

/opt/MegaCli/MegaCli64 -CfgLdDel -L1 -a0 删除第一个逻辑盘 

将物理盘下线和上线

# MegaCli64 -PDOffline/PDOnline -PhysDrv [E:S] -a0

下线(failed状态的盘可以下线)

# MegaCli64 -PDOffline -PhysDrv[252:7] -a0

 

上线

# MegaCli64 -PDOnline -PhysDrv[252:6] -a0

 

 

 

13.在线添加磁盘

# MegaCli64 -LDRecon -Start -r5 -Add -PhysDrv[252:7] -L0-a0

 

 

 

查看扩容的进度

# MegaCli64 -LDRecon -progdsply -L0 –a0

 

————————————————
版权声明:本文为CSDN博主「xinqidian_xiao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xinqidian_xiao/article/details/80940306

判断网卡上联口接的交换机口名称

抓包命令:

 sudo tcpdump ether proto 0x88cc -A -s0 -t -c 1 -i eth0

 ubuntu bond网卡配置文件

/etc/network/interfaces
/etc/udev/rules.d/70-persistent-net.rules
xxxxxxxxxxxxxxx:~ [PRODUCTION]$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
bond-master bond1

auto eth1
iface eth1 inet manual
bond-master bond1

auto bond1
iface bond1 inet dhcp
hwaddress 98:03:9b:2b:bc:74
bond-mode 4
bond-miimon 100
#bond-lacp-rate 1
bond-xmit_hash_policy layer3+4
bond-slaves eth0 eth1
#address dhcp
#netmask
#gateway

xxxxxxxxxxxxxxxxxxxx:~ [PRODUCTION]$ cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="98:03:9b:2b:bc:74", ATTR{type}=="1", KERNEL=="*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="98:03:9b:2b:bc:75", ATTR{type}=="1", KERNEL=="*", NAME="eth1"
zhangmingda@kmrec-gpu01.pek01:~ [PRODUCTION]$

 

 

 

posted on 2022-04-20 20:30  zhangmingda  阅读(219)  评论(0编辑  收藏  举报

导航