命运战歌9星升10星用什么

9

那年青春 那年青春
回答
  • 101percent彦娟 101percent彦娟

    replacing a failed hard drive in a software raid1 array
    th** guide shows how to remove a failed hard drive from a linux raid1 array(software raid),and how to add a new hard d**k to the raid1 array without losing data.
    i do not **sue any guarantee that th** will work for you!1 preliminary note
    in th** example i h**e two hard drives,/dev/sda and/dev/sdb,with the partitions/dev/sda1 and/dev/sda2 as well as/dev/sdb1 and/dev/sdb2.
    dev/sda1 and/dev/sdb1 make up the raid1 array/dev/md0.
    dev/sda2 and/dev/sdb2 make up the raid1 array/dev/md1.
    dev/sda1+dev/sdb1=dev/md0
    dev/sda2+dev/sdb2=dev/md1
    dev/sdb has failed,and we want to replace it.
    2 how do i tell if a hard d**k has failed?if a d**k has failed,you will probably find a lot of error **s in the log files,e.g./var/log/**s or/var/log/syslog.
    you can also run
    cat/proc/mdstat
    and instead of the string[uu]you will see[u_]if you h**e a degraded raid1 array.
    3 removing the failed d**k
    to remove/dev/sdb,we will mark/dev/sdb1 and/dev/sdb2 as failed and remove them from their respective raid arrays(/dev/md0 and/dev/md1).
    first we mark/dev/sdb1 as failed:
    mdadm-manage/dev/md0-fail/dev/sdb1
    the output of
    cat/proc/mdstat
    should look like th**:
    server1:~#cat/proc/mdstat
    personalities:[linear][multipath][raid0][raid1][raid5][raid4][raid6][raid10]
    md0:active raid1 sda1[0]sdb1[2](f)
    24418688 blocks[2/1][u_]
    md1:active raid1 sda2[0]sdb2[1]
    24418688 blocks[2/2][uu]
    unused devices:
    then we remove/dev/sdb1 from/dev/md0:
    mdadm-manage/dev/md0-remove/dev/sdb1
    the output should be like th**:
    server1:~#mdadm-manage/dev/md0-remove/dev/sdb1
    mdadm:hot removed/dev/sdb1
    and
    cat/proc/mdstat
    should show th**:
    server1:~#cat/proc/mdstat
    personalities:[linear][multipath][raid0][raid1][raid5][raid4][raid6][raid10]
    md0:active raid1 sda1[0]
    24418688 blocks[2/1][u_]
    md1:active raid1 sda2[0]sdb2[1]
    24418688 blocks[2/2][uu]
    unused devices:
    now we do the same steps again for/dev/sdb2(which ** part of/dev/md1):
    mdadm-manage/dev/md1-fail/dev/sdb2
    cat/proc/mdstat
    server1:~#cat/proc/mdstat
    personalities:[linear][multipath][raid0][raid1][raid5][raid4][raid6][raid10]
    md0:active raid1 sda1[0]
    24418688 blocks[2/1][u_]
    md1:active raid1 sda2[0]sdb2[2](f)
    24418688 blocks[2/1][u_]
    unused devices:<none>

类似问答
精品推荐

友情链接

友链互换QQ:

谷财 备案编号:蜀ICP备11019336号-3商务合作:235-677-2621

Copyright 2009-2020 Chengdu Sanzilewan Technology Co.,Ltd all rights reserve

抵制不良游戏 拒绝盗版游戏 注意自我保护 谨防受骗上当 适度游戏益脑 沉迷游戏伤身 合理安排时间 享受健康生活