- 论坛徽章:
- 0
|
linux下,san存储多路径软件的配置\r\n\r\n1、使用 ntsysv 命令\r\n将mulitipath服务开启\r\n\r\n multipathd \r\n\r\n2、启动该服务\r\n\r\n[root@mail init.d]# service multipathd start\r\nStarting multipathd daemon: \r\n\r\n3、修改配置文件/etc/multipath.conf \r\n\r\nvi /etc/multipath.conf\r\n\r\n# This is a basic configuration file with some examples, for device mapper\r\n# multipath.\r\n# For a complete list of the default configuration values, see\r\n# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults\r\n# For a list of configuration options with descriptions, see\r\n# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated\r\n\r\n\r\n# Blacklist all devices by default. Remove this to enable multipathing\r\n# on the default devices.\r\nblacklist {\r\n# devnode \"*\"\r\n}\r\n\r\n## By default, devices with vendor = \"IBM\" and product = \"S/390.*\" are\r\n## blacklisted. To enable mulitpathing on these devies, uncomment the\r\n## following lines.\r\n#blacklist_exceptions {\r\n\r\n4、使用 multipath -F 删除现有路径 \r\n\r\n5、multipath -v2 格式化路径\r\n\r\n6、使用 multipath -ll 查看多路径\r\n\r\n[root@mail /]# multipath -ll\r\nmpath0 (3600508b40006ea6e0001a000002a0000) dm-2 HP,HSV210\r\n[size=500G][features=1 queue_if_no_path][hwhandler=0]\r\n\\_ round-robin 0 [prio=100][active]\r\n \\_ 0:0:2:1 sdc 8:32 [active][ready]\r\n \\_ 0:0:3:1 sdd 8:48 [active][ready]\r\n\\_ round-robin 0 [prio=20][enabled]\r\n \\_ 0:0:0:1 sda 8:0 [active][ready]\r\n \\_ 0:0:1:1 sdb 8:16 [active][ready]\r\n\r\n7、使用fdisk -l 查看多路径的情况\r\n\r\n[root@mail /]# fdisk -l\r\n\r\nDisk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes\r\n255 heads, 63 sectors/track, 17844 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\n Device Boot Start End Blocks Id System\r\n/dev/cciss/c0d0p1 * 1 13 104391 83 Linux\r\n/dev/cciss/c0d0p2 14 17844 143227507+ 8e Linux LVM\r\n\r\nDisk /dev/cciss/c0d1: 733.9 GB, 733909245952 bytes\r\n255 heads, 63 sectors/track, 89226 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\n Device Boot Start End Blocks Id System\r\n/dev/cciss/c0d1p1 * 1 89226 716707813+ 83 Linux\r\n\r\nDisk /dev/sda: 536.8 GB, 536870912000 bytes\r\n255 heads, 63 sectors/track, 65270 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\nDisk /dev/sda doesn\'t contain a valid partition table\r\n\r\nDisk /dev/sdb: 536.8 GB, 536870912000 bytes\r\n255 heads, 63 sectors/track, 65270 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\nDisk /dev/sdb doesn\'t contain a valid partition table\r\n\r\nDisk /dev/sdc: 536.8 GB, 536870912000 bytes\r\n255 heads, 63 sectors/track, 65270 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\nDisk /dev/sdc doesn\'t contain a valid partition table\r\n\r\nDisk /dev/sdd: 536.8 GB, 536870912000 bytes\r\n255 heads, 63 sectors/track, 65270 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\nDisk /dev/sdd doesn\'t contain a valid partition table\r\n\r\nDisk /dev/dm-2: 536.8 GB, 536870912000 bytes\r\n255 heads, 63 sectors/track, 65270 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\nDisk /dev/dm-2 doesn\'t contain a valid partition table\r\n\r\n8、格式化\r\n\r\nmkfs -t extx /dev/dm-2\r\n\r\n9、挂载即可使用\n\n[ 本帖最后由 CLQ1013 于 2009-3-23 11:00 编辑 ] |
|