NetApp FAS 系列Linux DM安装步骤

1、  使用FileZilla上存netapp_linux_unified_host_utilities-7-0.x86_64.rpm包。该包最好选择最新的,可以通过support.netapp.com上下载,下载时注意包对应的系统版本,或者使用U盘,然后在Linux上挂载。

 

2、  U盘方式如下:

使用fdisk –l,查看现有的Device

插上U盘,再使用该命令查看,格式最好是FAT32的,如果是NTFS的话,挂载时命令需要添加参数。

创建一个新的目录用于挂载,挂载U盘到新创建的目录

3、  安装netapp-linux-host-utilities

rpm -ivh netapp_linux_unified_host_utilities-7-0.x86_64.rpm

4、  如果安装了其它/旧版本,可以使用以下命令查询以及卸载:

rpm -qa | grep netapp

rpm -e netapp_linux_host_utilities-*-*.x**_**      //选择-qa出来的包

5、  安装了netapp-linux-host-utilities后,可以使用以下命令确定是否安装成功:

sanlun show

在存储上还没map lun的情况下,该命令输入后会输出该命令的使用语法。

也可以使用sanlun version查看到版本

 

6、  使用以下命令查看mapper是否安装:

rpm -q device-mapper

 

7、  使用以下命令查看mapper-multipath是否安装:

rpm -q device-mapper-multipath

 

8、  如果第4步没有安装,使用yuminstall device-mapper安装

如果第5步没有安装,使用yum install mapper-multipath安装

 

9、  编辑multipath.conf,如果不存在就需要新建。

   cd/etc/multipath.conf 查看该目录下是否存在multipath.conf,如果不存在,使用vi /etc/multipath.conf 命令,粘贴进以下文本进入到该文本内:

defaults {

user_friendly_names yes

max_fds max

flush_on_last_del yes

queue_without_daemon no

dev_loss_tmo infinity

fast_io_fail_tmo 5

}

# All data underblacklist must be specific to your system.

blacklist {

devnode "^hd[a-z]"

devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"

devnode "^cciss.*"

}

devices {

device {

vendor "NETAPP"

product "LUN"

path_grouping_policy group_by_prio

features "3 queue_if_no_path pg_init_retries50"

prio "ontap"

path_checker tur

failback immediate

path_selector "round-robin 0"

hardware_handler "0"

rr_weight uniform

rr_min_io 128

getuid_callout "/lib/udev/scsi_id -g -u -d/dev/%n"

}

}

 

10、             安装sg3,使用yum search sg3搜索一下,使用以下命令安装sg3

yum install sg3_utils

 

11、             安装完毕后,就可以使用以下的命令:

rescan-scsi-bus.sh

 

12、             都安装完毕后,使用以下命令开启/停止multipath

/etc/init.d/multipathd start

/etc/init.d/multipathd stop

这步可能会出现如下图的情况,这是主要是CRT的字符集问题,如果能使用rescan扫出device即可。

 

13、             在存储上map lun后,在linux使用rescan-scsi-bus.sh -a可以重新扫描磁盘

<--重点,这里的rescan命令要加-a,上面的11步可以不加。

 

14、             在linux上使用sanlun lun show可以看到关于lun的路径

 

15、             使用sanlun lun show -p可以看得更详细

 

16、             使用multipath -ll看到多路径

 

[root@DB-1 etc]#chkconfig --list | grep multi

multipathd      0:off  1:off   2:off   3:off  4:off   5:off   6:off

[root@DB-1 etc]#chkconfig multipathd on

[root@DB-1 etc]#chkconfig --list | grep multi

multipathd      0:off  1:off   2:on    3:on   4:on    5:on    6:off

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值