| 260 | |
| 261 | == degraded RAID1 == |
| 262 | === devices === |
| 263 | * root@Knoppix:~# ls -l /dev/sd? |
| 264 | {{{ |
| 265 | brw-rw---- 1 root disk 8, 0 Mar 25 2011 /dev/sda |
| 266 | }}} |
| 267 | |
| 268 | === modprobe === |
| 269 | * root@Knoppix:~# cat /proc/mdstat |
| 270 | {{{ |
| 271 | cat: /proc/mdstat: No such file or directory |
| 272 | }}} |
| 273 | |
| 274 | * root@Knoppix:~# modprobe md_mod |
| 275 | |
| 276 | * root@Knoppix:~# cat /proc/mdstat |
| 277 | {{{ |
| 278 | Personalities : |
| 279 | unused devices: <none> |
| 280 | }}} |
| 281 | |
| 282 | * root@Knoppix:~# mdadm -E /dev/sda1 |
| 283 | {{{ |
| 284 | /dev/sda1: |
| 285 | Magic : a92b4efc |
| 286 | Version : 00.90.00 |
| 287 | UUID : 32578407:6f33f50b:893cf340:745f5dce |
| 288 | Creation Time : Thu Mar 24 17:31:36 2011 |
| 289 | Raid Level : raid1 |
| 290 | Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 291 | Array Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 292 | Raid Devices : 2 |
| 293 | Total Devices : 2 |
| 294 | Preferred Minor : 0 |
| 295 | |
| 296 | Update Time : Thu Mar 24 21:25:32 2011 |
| 297 | State : clean |
| 298 | Active Devices : 2 |
| 299 | Working Devices : 2 |
| 300 | Failed Devices : 0 |
| 301 | Spare Devices : 0 |
| 302 | Checksum : e3889399 - correct |
| 303 | Events : 0.34 |
| 304 | |
| 305 | |
| 306 | Number Major Minor RaidDevice State |
| 307 | this 0 8 17 0 active sync /dev/sdb1 |
| 308 | |
| 309 | 0 0 8 17 0 active sync /dev/sdb1 |
| 310 | 1 1 8 33 1 active sync /dev/sdc1 |
| 311 | }}} |
| 312 | |
| 313 | * root@Knoppix:~# mdadm -Es |
| 314 | {{{ |
| 315 | ARRAY /dev/md0 level=raid1 num-devices=2 UUID=32578407:6f33f50b:893cf340:745f5dce |
| 316 | }}} |
| 317 | |
| 318 | === method 1 === |
| 319 | * root@Knoppix:~# mdadm -A /dev/md0 -u 32578407:6f33f50b:893cf340:745f5dce |
| 320 | {{{ |
| 321 | mdadm: /dev/md0 has been started with 1 drive (out of 2). |
| 322 | }}} |
| 323 | |
| 324 | === method 2 === |
| 325 | * root@Knoppix:~# mdadm -A /dev/md0 /dev/sda1 |
| 326 | {{{ |
| 327 | mdadm: /dev/md0 has been started with 1 drive (out of 2). |
| 328 | }}} |
| 329 | |
| 330 | === result === |
| 331 | * root@Knoppix:~# cat /proc/mdstat |
| 332 | {{{ |
| 333 | Personalities : [raid1] |
| 334 | md0 : active raid1 sda1[0] |
| 335 | 2047936 blocks [2/1] [U_] |
| 336 | |
| 337 | unused devices: <none> |
| 338 | }}} |
| 339 | * root@Knoppix:~# mdadm -Ds |
| 340 | {{{ |
| 341 | ARRAY /dev/md0 level=raid1 num-devices=2 UUID=32578407:6f33f50b:893cf340:745f5dce |
| 342 | }}} |
| 343 | * root@Knoppix:~# mdadm -D /dev/md0 |
| 344 | {{{ |
| 345 | /dev/md0: |
| 346 | Version : 00.90.03 |
| 347 | Creation Time : Thu Mar 24 17:31:36 2011 |
| 348 | Raid Level : raid1 |
| 349 | Array Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 350 | Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB) |
| 351 | Raid Devices : 2 |
| 352 | Total Devices : 1 |
| 353 | Preferred Minor : 0 |
| 354 | Persistence : Superblock is persistent |
| 355 | |
| 356 | Update Time : Thu Mar 24 21:25:32 2011 |
| 357 | State : clean, degraded |
| 358 | Active Devices : 1 |
| 359 | Working Devices : 1 |
| 360 | Failed Devices : 0 |
| 361 | Spare Devices : 0 |
| 362 | |
| 363 | UUID : 32578407:6f33f50b:893cf340:745f5dce |
| 364 | Events : 0.34 |
| 365 | |
| 366 | Number Major Minor RaidDevice State |
| 367 | 0 8 1 0 active sync /dev/sda1 |
| 368 | 1 0 0 1 removed |
| 369 | }}} |