munakata@mythen:~/repos/recurse.git$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Dec 11 23:04:19 2011
Raid Level : raid1
Array Size : 1953512400 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953512400 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Sun Dec 22 21:28:33 2013
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : mythen:0 (local to host mythen)
UUID : 4cd693e9:dd3ad1a9:3a5a23a9:62ce3a05
Events : 397
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1munakata@mythen:~/repos/recurse.git$ sudo mdadm /dev/md0 --manage --fail /dev/sdb1 mdadm: set /dev/sdb1 faulty in /dev/md0 munakata@mythen:~/repos/recurse.git$ sudo mdadm /dev/md0 --manage --remove /dev/sdb1 mdadm: hot removed /dev/sdb1 from /dev/md0
munakata@mythen:~/repos/recurse.git$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Dec 11 23:04:19 2011
Raid Level : raid1
Array Size : 1953512400 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953512400 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Sun Dec 22 21:32:45 2013
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : mythen:0 (local to host mythen)
UUID : 4cd693e9:dd3ad1a9:3a5a23a9:62ce3a05
Events : 413
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 1 removedserver-admin@mythen:~$ sudo parted /dev/sdb GNU Parted 2.3 /dev/sdb を使用 GNU Parted へようこそ! コマンド一覧を見るには 'help' と入力してください。 (parted) mklabel gpt (parted) unit TB (parted) mkpart primary 0.0TB 4.0TB (parted) print モデル: ATA WDC WD40EZRX-00S (scsi) ディスク /dev/sdb: 4001GB セクタサイズ (論理/物理): 512B/4096B パーティションテーブル: gpt 番号 開始 終了 サイズ ファイルシステム 名前 フラグ 1 1049kB 4001GB 4001GB ext4 primary (parted) quit
server-admin@mythen: sudo mkfs.ext4 -m 1 /dev/sd**
server-admin@mythen: sudo mdadm /dev/md0 --manage --add /dev/sd**
server-admin@mythen:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Dec 11 23:04:19 2011
Raid Level : raid1
Array Size : 1953512400 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953512400 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Mon Dec 23 09:14:21 2013
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : mythen:0 (local to host mythen)
UUID : 4cd693e9:dd3ad1a9:3a5a23a9:62ce3a05
Events : 810
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
2 8 17 1 active sync /dev/sdb1server-admin@mythen:~$ sudo grub-install /dev/sdb /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!. /usr/sbin/grub-setup: エラー: embedding is not possible, but this is required for cross-disk install.
server-admin@mythen:~$ sudo mdadm /dev/md0 --manage --fail /dev/sd**
mdadm: set /dev/sda1 faulty in /dev/md0
server-admin@mythen:~$ sudo mdadm /dev/md0 --manage --remove /dev/sda1
mdadm: hot removed /dev/sda1 from /dev/md0
server-admin@mythen:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Dec 11 23:04:19 2011
Raid Level : raid1
Array Size : 1953512400 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953512400 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Mon Dec 23 09:43:41 2013
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : mythen:0 (local to host mythen)
UUID : 4cd693e9:dd3ad1a9:3a5a23a9:62ce3a05
Events : 812
Number Major Minor RaidDevice State
0 0 0 0 removed
2 8 17 1 active sync /dev/sdb1server-admin@mythen:~$ sudo partprobe /dev/sda
server-admin@mythen:~$ sudo mdadm /dev/md0 --manage --add /dev/sda1
mdadm: added /dev/sda1
server-admin@mythen:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[3] sdb1[2]
1953512400 blocks super 1.2 [2/1] [_U]
[>....................] recovery = 0.0% (1338176/1953512400) finish=291.7min speed=111514K/sec
unused devices: <none>munakata@mythen:~$ sudo mdadm --grow /dev/md0 --size=max
mdadm: component size of /dev/md0 has been set to 3906885632K
munakata@mythen:~$ sudo cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[3] sdb1[2]
3906885632 blocks super 1.2 [2/2] [UU]
[==========>..........] resync = 50.0% (1954290576/3906885632) finish=334.5min speed=97272K/sec
unused devices: <none>
munakata@mythen:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Dec 11 23:04:19 2011
Raid Level : raid1
Array Size : 3906885632 (3725.90 GiB 4000.65 GB)
Used Dev Size : 3906885632 (3725.90 GiB 4000.65 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Mon Dec 23 16:30:59 2013
State : clean, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Resync Status : 50% complete
Name : mythen:0 (local to host mythen)
UUID : 4cd693e9:dd3ad1a9:3a5a23a9:62ce3a05
Events : 1458
Number Major Minor RaidDevice State
3 8 1 0 active sync /dev/sda1
2 8 17 1 active sync /dev/sdb1