首页 > 其他 > 详细

分享一个RAID1恢复的终端记录过程

时间:2021-02-28 21:44:59      阅读:35      评论:0      收藏:0      [点我收藏+]

终端1记录
[***@archlinux ~]$ mdadm
Usage: mdadm --help
  for help
[***@archlinux ~]$ mdadm --help
mdadm is used for building, managing, and monitoring
Linux md devices (aka RAID arrays)
Usage: mdadm --create device options...
            Create a new array from unused devices.
       mdadm --assemble device options...
            Assemble a previously created array.
       mdadm --build device options...
            Create or assemble an array without metadata.
       mdadm --manage device options...
            make changes to an existing array.
       mdadm --misc options... devices
            report on or modify various md related devices.
       mdadm --grow options device
            resize/reshape an active array
       mdadm --incremental device
            add/remove a device to/from an array as appropriate
       mdadm --monitor options...
            Monitor one or more array for significant changes.
       mdadm device options...
            Shorthand for --manage.
Any parameter that does not start with ‘-‘ is treated as a device name
or, for --examine-bitmap, a file name.
The first such name is often the name of an md device.  Subsequent
names are often names of component devices.

 For detailed help on the above major modes use --help after the mode
 e.g.
         mdadm --assemble --help
 For general help on options use
         mdadm --help-options
[***@archlinux ~]$

终端2记录
[***@archlinux ~]$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda       8:0    0 223.6G  0 disk  
├─sda1    8:1    0    75G  0 part  
├─sda2    8:2    0    75G  0 part  /
└─sda3    8:3    0  73.6G  0 part  
sdb       8:16   0 465.8G  0 disk  
└─sdb1    8:17   0 465.8G  0 part  
  └─md0   9:0    0 465.6G  0 raid1 /mnt/WDRAID1
sdc       8:32   0 465.8G  0 disk  
└─sdc1    8:33   0 465.8G  0 part  
[***@archlinux ~]$

终端3记录
[***@archlinux ~]$ sudo mdadm --incremental
[sudo] password for ***:
mdadm: --incremental requires a device.
[***@archlinux ~]$ sudo mdadm --incremental /dev/sdc1
mdadm: not adding /dev/sdc1 to active array (without --run) /dev/md/0
[***@archlinux ~]$ sudo mdadm --incremental /dev/sdc1 --run /dev/md/0
mdadm: /dev/sdc1 attached to /dev/md/0 which is already active.
[***@archlinux ~]$

终端4记录
[***@archlinux ~]$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda       8:0    0 223.6G  0 disk  
├─sda1    8:1    0    75G  0 part  
├─sda2    8:2    0    75G  0 part  /
└─sda3    8:3    0  73.6G  0 part  
sdb       8:16   0 465.8G  0 disk  
└─sdb1    8:17   0 465.8G  0 part  
  └─md0   9:0    0 465.6G  0 raid1 /mnt/WDRAID1
sdc       8:32   0 465.8G  0 disk  
└─sdc1    8:33   0 465.8G  0 part  
  └─md0   9:0    0 465.6G  0 raid1 /mnt/WDRAID1
[***@archlinux ~]$




分享一个RAID1恢复的终端记录过程

原文:https://www.cnblogs.com/zhangshaojian/p/14459711.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!