• 在线配置raid


    Exit Code: 0x00

    rpm -ivh MegaCli-8.07.14-1.noarch.rpm
    ls /opt/MegaRAID/MegaCli/
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAL
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll | more
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:0] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -Nolog|grep '^Firm'
    /opt/MegaRAID/MegaCli/MegaCli64 -AdpGetProp -enablejbod -aALL
    /opt/MegaRAID/MegaCli/MegaCli64 -h
    /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp -EnableJBOD -o -aALL
    /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp -EnableJBOD -0 -aALL
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -Nolog|grep '^Firm'
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:0] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:1] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:2] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:3] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:4] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:5] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:6] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:7] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:8] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:9] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:10] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [22:11] WB Direct -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -Nolog|grep '^Firm'
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -Nolog|grep '^RAID'
    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -Nolog|grep '^RAI'
    /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll | grep RAID
    /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll | grep Size


    ./MegaCli64 -pdInfo -PhysDrv[22:8] –a0

    ./MegaCli64 -cfglddel -L9 -a0

    umount /dev/sdj
    ./MegaCli64 -CfgLdDel -L9 -a0
    ./MegaCli64 -pdInfo -PhysDrv[22:8] –a0
    格式化
    重新挂盘
    创建目录

    Enclosure Device ID: 22
    Slot Number: 2

    [root@dyhadoop14 MegaCli]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda3 427G 76G 330G 19% /
    tmpfs 63G 0 63G 0% /dev/shm
    /dev/sda1 194M 34M 151M 19% /boot
    /dev/sdb1 3.7T 1.4T 2.1T 40% /disk1
    /dev/sdc1 3.7T 1.2T 2.4T 33% /disk2
    /dev/sdd1 3.7T 1.4T 2.1T 40% /disk3
    /dev/sde1 3.7T 1.3T 2.2T 38% /disk4
    /dev/sdf1 3.7T 608G 2.9T 18% /disk5
    /dev/sdg1 3.7T 1.4T 2.1T 41% /disk6
    /dev/sdh1 3.7T 1.3T 2.2T 38% /disk7
    /dev/sdi1 3.7T 1.4T 2.1T 41% /disk8
    /dev/sdj1 3.7T 1.4T 2.1T 40% /disk9
    /dev/sdl1 3.7T 1.4T 2.1T 41% /disk11
    /dev/sdm1 3.7T 183G 3.3T 6% /disk12
    /dev/sdk1 3.7T 438G 3.1T 13% /disk10

    #查看磁盘组和槽位关系
    /opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply –aALL | grep -E "DISK GROUP|Slot Number"

    fdisk -l | grep GPT | sort

    -PDlist -aALL | grep "ID" | uniq


    netstat -an | grep 9000

    /etc/fstab

  • 相关阅读:
    Android开发学习笔记-关于Android的消息推送以及前后台切换
    C#文件操作工具类
    c#取得应用程序根目录
    Visual Studio 2012中使用GitHub
    C#邮件发送
    jquery判断某个属性是否存在 hasAttr
    js 如何让两个等长的数组产生键值对关系
    js判断一个元素是否在数组中
    日期控件
    react 生命周期函数的一些心得体会
  • 原文地址:https://www.cnblogs.com/qpanda/p/7832522.html
Copyright © 2020-2023  润新知