linux下san存储多路径软件的配置

更新时间:2024-02-29 11:21:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

linux下,san存储多路径软件的配置

linux下,san存储多路径软件的配置

1、使用 ntsysv 命令 将mulitipath服务开启

[*] multipathd

2、启动该服务

[root@mail init.d]# service multipathd start Starting multipathd daemon:

3、修改配置文件/etc/multipath.conf

vi /etc/multipath.conf

# This is a basic configuration file with some examples, for device mapper # multipath.

# For a complete list of the default configuration values, see

# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults # For a list of configuration options with descriptions, see

# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated

# Blacklist all devices by default. Remove this to enable multipathing # on the default devices. blacklist {

[color=Red]# devnode \}

## By default, devices with vendor = \## blacklisted. To enable mulitpathing on these devies, uncomment the ## following lines. #blacklist_exceptions {

4、使用 multipath -F 删除现有路径

5、multipath -v2 格式化路径

6、使用 multipath -ll 查看多路径

[root@mail /]# multipath -ll

mpath0 (3600508b40006ea6e0001a000002a0000) dm-2 HP,HSV210 [size=500G][features=1 queue_if_no_path][hwhandler=0] \\_ round-robin 0 [prio=100][active] \\_ 0:0:2:1 sdc 8:32 [active][ready] \\_ 0:0:3:1 sdd 8:48 [active][ready] \\_ round-robin 0 [prio=20][enabled] \\_ 0:0:0:1 sda 8:0 [active][ready] \\_ 0:0:1:1 sdb 8:16 [active][ready]

7、使用fdisk -l 查看多路径的情况

[root@mail /]# fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes 255 heads, 63 sectors/track, 17844 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/cciss/c0d0p1 * 1 13 104391 83 Linux

/dev/cciss/c0d0p2 14 17844 143227507+ 8e Linux LVM

Disk /dev/cciss/c0d1: 733.9 GB, 733909245952 bytes 255 heads, 63 sectors/track, 89226 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/cciss/c0d1p1 * 1 89226 716707813+ 83 Linux

Disk /dev/sda: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/dm-2: 536.8 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

8、格式化

mkfs -t extx /dev/dm-2

9、挂载即可使用

#fdisk /dev/sdc #m #n #p #l #w #fdisk -l

#mkfs -t ext3 /dev/sdc1 5.配置自动挂载 #mkdir /test

#tune2fs -l /dev/sdc1 |grep uuid

本文来源:https://www.bwwdw.com/article/gtma.html

Top