zoukankan      html  css  js  c++  java
  • Add 4 multipath LUNs into RHEL

    1. SSH to oracle-node1 and run the following commands:

    # echo "- - -" > /sys/class/scsi_host/host3/scan
    # echo "- - -" > /sys/class/scsi_host/host4/scan
    # service multipathd reload
    # multipath -ll

    Look for output from the multipath -ll command similar to what is listed below:

    mpath30 (360060e801038f270057f59f70000000e) dm-30 HITACHI,DF600F
    mpath31 (360060e801038f270057f59f70000000d) dm-31 HITACHI,DF600F
    mpath32 (360060e801038f270057f59f70000000e) dm-32 HITACHI,DF600F
    mpath33 (360060e801038f270057f59f70000000e) dm-33 HITACHI,DF600F

    2. Make a backup copy of the existing /etc/multipath.conf file by running the following command listed below:

    # cp /etc/multipath.conf /etc/multipath.conf-backup

    3. Edit /etc/multipath.conf and create a device mapper alias for the following LUN as listed below:

    vol 0124 DG3_1
    vol 0125 DG3_2
    vol 0126 DG3_3
    vol 0127 DG3_4

    Example syntax:

    multipath {
    wwid 360060e80104b3ab004f322b300000001
    alias DG3_1
    }
    multipath {
    wwid 360060e80104b3ab004f322b300000001
    alias DG3_2
    }
    multipath {
    wwid 360060e80104b3ab004f322b300000001
    alias DG3_3
    }
    multipath {
    wwid 360060e80104b3ab004f322b300000001
    alias DG3_4
    }


    Replace the WWID in the example syntax listed above with the correct WWID from the output of multipath -ll obtained in step 1.

    4. Run the command 'service multipathd reload' and verify the new devices appear in the /dev/mapper directory (DG3_1, DG3_2, DG3_3, DG3_4)

    # service multipathd reload
    # ls /dev/mapper

    5. Label and partition the disk for ASM use

    # parted /dev/mapper/DG3_1
    mklabel msdos
    mkpart pri
    63
    25g
    Exit

    Repeat step 5 for /dev/mapper/DG3_2
    Repeat step 5 for /dev/mapper/DG3_3
    Repeat step 5 for /dev/mapper/DG3_4

    6. We need to repeat step1-5 on oracle-node2
    7. If necessary, run the command
    partprobe /dev/mapper/DG3_1
    partprobe /dev/mapper/DG3_2
    partprobe /dev/mapper/DG3_3
    partprobe /dev/mapper/DG3_4

  • 相关阅读:
    组件封装小试:使用Vue CLI3基于Element-ui进行组件封装
    <四>docker中的mysql和mongodb挂载
    <五>.netcore webapi连接部署在docker中的mysql
    <三>docker安装mysql
    <二>docker 安装mongodb
    <一>docker基础及centos安装docker
    <十一>将identityserver4的一些权限配置持久化到数据库
    <十>使用profileserver获取用户数据
    <九>集成ASP.NETCore Identity 作为授权账户持久到数据库
    <一>初试Identity
  • 原文地址:https://www.cnblogs.com/oskb/p/4563000.html
Copyright © 2011-2022 走看看