| 1 | [[PageOutline]] |
| 2 | |
| 3 | = RAID1 = |
| 4 | == sample RAID1 device == |
| 5 | * see wiki:TipAndDoc/HA/NFS#mdadm for how to make device |
| 6 | |
| 7 | * mitty@ubuntu-haa:~$ sudo mdadm -D /dev/md0 |
| 8 | {{{ |
| 9 | /dev/md0: |
| 10 | Version : 00.90 |
| 11 | Creation Time : Thu Mar 24 17:31:36 2011 |
| 12 | Raid Level : raid1 |
| 13 | Array Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 14 | Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 15 | Raid Devices : 2 |
| 16 | Total Devices : 2 |
| 17 | Preferred Minor : 0 |
| 18 | Persistence : Superblock is persistent |
| 19 | |
| 20 | Update Time : Thu Mar 24 21:25:32 2011 |
| 21 | State : clean |
| 22 | Active Devices : 2 |
| 23 | Working Devices : 2 |
| 24 | Failed Devices : 0 |
| 25 | Spare Devices : 0 |
| 26 | |
| 27 | UUID : 32578407:6f33f50b:893cf340:745f5dce (local to host ubuntu-haa) |
| 28 | Events : 0.34 |
| 29 | |
| 30 | Number Major Minor RaidDevice State |
| 31 | 0 8 17 0 active sync /dev/sdb1 |
| 32 | 1 8 33 1 active sync /dev/sdc1 |
| 33 | }}} |
| 34 | |
| 35 | * mitty@ubuntu-haa:~$ sudo mdadm --stop /dev/md0 |
| 36 | {{{ |
| 37 | mdadm: stopped /dev/md0 |
| 38 | }}} |
| 39 | |
| 40 | * mitty@ubuntu-haa:~$ sudo mdadm -E /dev/sd[bc]1 |
| 41 | {{{ |
| 42 | /dev/sdb1: |
| 43 | Magic : a92b4efc |
| 44 | Version : 00.90.00 |
| 45 | UUID : 32578407:6f33f50b:893cf340:745f5dce (local to host ubuntu-haa) |
| 46 | Creation Time : Thu Mar 24 17:31:36 2011 |
| 47 | Raid Level : raid1 |
| 48 | Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 49 | Array Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 50 | Raid Devices : 2 |
| 51 | Total Devices : 2 |
| 52 | Preferred Minor : 0 |
| 53 | |
| 54 | Update Time : Thu Mar 24 21:25:32 2011 |
| 55 | State : clean |
| 56 | Active Devices : 2 |
| 57 | Working Devices : 2 |
| 58 | Failed Devices : 0 |
| 59 | Spare Devices : 0 |
| 60 | Checksum : e3889399 - correct |
| 61 | Events : 34 |
| 62 | |
| 63 | |
| 64 | Number Major Minor RaidDevice State |
| 65 | this 0 8 17 0 active sync /dev/sdb1 |
| 66 | |
| 67 | 0 0 8 17 0 active sync /dev/sdb1 |
| 68 | 1 1 8 33 1 active sync /dev/sdc1 |
| 69 | /dev/sdc1: |
| 70 | Magic : a92b4efc |
| 71 | Version : 00.90.00 |
| 72 | UUID : 32578407:6f33f50b:893cf340:745f5dce (local to host ubuntu-haa) |
| 73 | Creation Time : Thu Mar 24 17:31:36 2011 |
| 74 | Raid Level : raid1 |
| 75 | Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 76 | Array Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 77 | Raid Devices : 2 |
| 78 | Total Devices : 2 |
| 79 | Preferred Minor : 0 |
| 80 | |
| 81 | Update Time : Thu Mar 24 21:25:32 2011 |
| 82 | State : clean |
| 83 | Active Devices : 2 |
| 84 | Working Devices : 2 |
| 85 | Failed Devices : 0 |
| 86 | Spare Devices : 0 |
| 87 | Checksum : e38893ab - correct |
| 88 | Events : 34 |
| 89 | |
| 90 | |
| 91 | Number Major Minor RaidDevice State |
| 92 | this 1 8 33 1 active sync /dev/sdc1 |
| 93 | |
| 94 | 0 0 8 17 0 active sync /dev/sdb1 |
| 95 | 1 1 8 33 1 active sync /dev/sdc1 |
| 96 | }}} |