Chinaunix首页 | 论坛 | 博客
  • 博客访问: 195919
  • 博文数量: 33
  • 博客积分: 2020
  • 博客等级: 大尉
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-20 14:56
文章分类

全部博文(33)

文章存档

2010年(26)

2009年(7)

我的朋友

分类: LINUX

2010-05-07 16:19:25

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 {
    #        devnode "*"
    }

    ## By default, devices with vendor = "IBM" and product = "S/390.*" are
    ## 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、挂载即可使用
  • 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 {
    #        devnode "*"
    }

    ## By default, devices with vendor = "IBM" and product = "S/390.*" are
    ## 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、挂载即可使用
  •  
     
    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 {
    #        devnode "*"
    }
    ## By default, devices with vendor = "IBM" and product = "S/390.*" are
    ## 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、挂载即可使用
    阅读(2579) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~