正德厚生,臻于至善

存储日常操作

日立存储Linux平台命令如下:
ls -l /sys/class/fc_host
ls -l /sys/class/scsi_host
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan
echo "- - -" > /sys/class/scsi_host/host4/scan

ls /sys/class/fc_host
ls -l /sys/class/fc_host/host*
cat /sys/class/fc_host/host*/port_name
cat /sys/class/fc_host/host*/port_type
cat /sys/class/fc_host/host*/port_state

/opt/DynamicLinkManager/bin/dlnkmgr view -sys
/opt/DynamicLinkManager/bin/dlnkmgr view -path
/sbin/dlmcfgmgr -r
/opt/DynamicLinkManager/bin/dlnkmgr view -path
/opt/DynamicLinkManager/bin/dlnkmgr view -drv
/opt/DynamicLinkManager/bin/dlnkmgr set -afb on
/opt/DynamicLinkManager/bin/dlnkmgr view -lu

for i in `ls /dev/sddlm*1`
do echo $i `/usr/lib/udev/scsi_id -g -u -d $i`
done

删除无效磁盘
###此步骤慎重###
for i in `/opt/DynamicLinkManager/bin/dlnkmgr view -lu|grep  "(E)"|awk -F/ '{print $3}'|awk '{print $1}'`; do echo 1 > /sys/block/$i//device/delete;done
/opt/DynamicLinkManager/bin/dlnkmgr delete -path -s
dlmcfgmgr -r
/opt/DynamicLinkManager/bin/dlnkmgr view -lu
华为存储Linux平台命令如下:
rpm -qa|grep UltraPath
upadmin show path
upadmin show vlun
upadmin show vlun id=?
upadmin show upconfig
upLinux showDiskAlias

华为存储AIX平台命令如下
upadm show phypath
upadm start phypathcheck id=?

upadm show path
upadm show vlun

upadm show iostat
upadm show upconfig
EMC存储命令如下:
EMC PowerPath是用于进行路径选择,冗余和负载均衡的管理软件。
1)安装rpm包 # rpm -Uvh EMCpower.LINUX*.x86_64.rpm
2)注册PowerPathLicense:# emcpreg -install
	根据提示输入PowerPath license key: BZPV-ZB4K-BFTK-QOME-ML9O-UYFB
3)加载PowerPath模块:# /etc/init.d/PowerPath start
	查看是否出现新的伪设备:# fdisk -l |grep emcpower
	检查负载平衡和故障切换策略:# powermt display dev=all

powermt display
powermt display dev=all
赞(0) 打赏
未经允许不得转载:徐万新之路 » 存储日常操作

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册