## dmesg -c && echo 1 > /var/log/messages
## dmesg > dmesg_.txt
## cat /var/log/messages > messages_.txt
******************************100******************************
lspci | grep -i fibre
cat /sys/class/fc_host/host*/symbolic_name
cat /sys/class/fc_host/host*/port_state
cat /sys/class/fc_host/host*/port_name
cat /sys/class/fc_host/host*/port_type
cat /sys/class/fc_host/host*/speed
cat /sys/class/fc_host/host*/node_name
cat /sys/class/fc_host/host*/fabric_name
systool -c fc_host -v
lspci -s 3b:00.0 -xxxvvv | grep -i speed
lspci -s 3b:00.1 -xxxvvv | grep -i speed
lspci -x -n -s 3b:00.0
lspci -x -n -s 3b:00.1
lspci -s 3b:00.0 -xxxvvv | grep -i speed
lspci -s 3b:00.1 -xxxvvv | grep -i speed
lspci -s 3b:00.0 -xxx -vvv
lspci -s 3b:00.1 -xxx -vvv
lspci -s 3b:00.0 -xxx -vvv | grep -i region
lspci -s 3b:00.1 -xxx -vvv | grep -i region
******************************200******************************
cat /sys/class/fc_host/host*/symbolic_name
hbacmd download 10:00:00:10:9b:ba:8b:c6 lancerg6_A12.6.240.42.grp
hbacmd PortAttributes 10:00:00:10:9b:ba:8b:c6 | egrep -i "State|Speed"
hbacmd PortAttributes 10:00:00:10:9b:ba:8b:c7 | egrep -i "State|Speed"
hbacmd PortAttributes 10:00:00:10:9b:ba:8b:c6 3/4/5(4G/8G/16G)
hbacmd PortAttributes 10:00:00:10:9b:ba:8b:c6 3/4/5(4G/8G/16G)
hbacmd SetPortSpeed 10:00:00:10:9b:ba:8b:c6 16
hbacmd SetPortSpeed 10:00:00:10:9b:ba:8b:c7 16
hbacmd loopbacktest 10:00:00:10:9b:ba:8b:c6 0 1000 0
hbacmd loopbacktest 10:00:00:10:9b:ba:8b:c7 0 1000 0
******************************400******************************
rpm -ivh ***.rpm
rpm -qa | grep lpfc
rpm -e ***
sh -x 402_***.sh > 402.txt
sh -x 3rw_rwmixread20.sh
sh OneCapture_Linux.sh
## Emulex->"Onecapture"
sh OneCapture_Linux.sh
## RHEL->"SOSReport"
sosreport
## Suse:supportconfig
VMware->"VM-Support"
vm-support
NPIV:
hbacmd createvport 10:00:00:10:9b:ba:8b:c6 20:01:00:90:fa:f0:93:ae 20:00:00:90:fa:f0:93:ae
hbacmd createvport 10:00:00:10:9b:ba:8b:c7 20:01:00:90:fa:f0:93:af 20:00:00:90:fa:f0:93:af
sh fc_npiv_create_emulex.sh
fio --name=test2 --ioengine=psync --size=100% --direct=1 --iodepth=32 --numjobs=56 --rw=read --bs=1024k --loop=1000000 --runtime=120 --filename=/dev/sdst
fio --name=test2 --ioengine=psync --size=100% --direct=1 --iodepth=32 --numjobs=56 --rw=write --bs=1024k --loop=1000000 --runtime=120 --filename=/dev/sdst
多路径:
rpm -ivh UltraPath-***.rpm
mv multipath.conf /etc/
chmod 777 /etc/multipath.conf
systemctl restart multipathd.service
systemctl status multipathd.service
multipath -ll
rpm -qa | grep multipath
rpm -e multipath-***... --nodeps
multipath -ll | grep -i 12c5(mpathw)
multipath -ll | grep -i 12c6(mpathv)
multipath -ll | grep -i 18a3(mpathb)
multipath -ll | grep -i 18a4(mpathd)
fdisk /dev/mapper/mpathv
mkfs.ext4 /dev/mapper/mpathv1
fdisk /dev/mapper/mpathd
mkfs.ext4 /dev/mapper/mpathd1
fio --name=test2 --ioengine=psync --size=50% --direct=1 --iodepth=32 --numjobs=56 --rw=write --bs=1024k --loop=1 --time_based --runtime=36000 --filename=/dev/mapper/mpathw
fio --name=test2 --ioengine=psync --size=50% --direct=1 --iodepth=32 --numjobs=56 --rw=rw --rwmixread=20 --bs=1024k --loop=1 --time_based --runtime=36000 --filename=/dev/mapper/mpathv1
multipath -ll /dev/mapper/mpathw
multipath -ll /dev/mapper/mpathv1
fio --name=test2 --ioengine=psync --size=50% --direct=1 --iodepth=32 --numjobs=56 --rw=write --bs=1024k --loop=1 --time_based --runtime=36000 --filename=/dev/mapper/mpathb
fio --name=test2 --ioengine=psync --size=50% --direct=1 --iodepth=32 --numjobs=56 --rw=rw --rwmixread=20 --bs=1024k --loop=1 --time_based --runtime=36000 --filename=/dev/mapper/mpathd1
multipath -ll /dev/mapper/mpathb
multipath -ll /dev/mapper/mpathd
******************************500******************************
sh overnight.sh
******************************600******************************
modprobe -r lpfc
modprobe lpfc lpfc_log_verbose=0x300cf
sh overnight.sh
fio --name=rw_rwmixread20 --ioengine=psync --size=100% --direct=1 --iodepth=32 --numjobs=56 --rw=rw --rwmixread=20 --bs=1024k --loop=1 --runtime=4000 --filename=/dev/sdb --time_base