da1:~ # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1959 15735636 83 Linux
/dev/sda2 1960 2482 4200997+ 82 Linux swap / Solaris
/dev/sda3 2483 2495 104422+ 83 Linux
/dev/sda4 2496 19457 136247265 5 Extended
/dev/sda5 2496 2508 104391 8e Linux LVM
/dev/sda6 2509 2521 104391 8e Linux LVM
/dev/sda7 2522 2534 104391 8e Linux LVM
/dev/sda8 2535 2547 104391 fd Linux raid autodetect
/dev/sda9 2548 2560 104391 fd Linux raid autodetect
/dev/sda10 2561 2573 104391 fd Linux raid autodetect
/dev/sda11 2574 2586 104391 83 Linux
da1:~ # clear

da1:~ # mdadm –hlp
mdadm: unrecognized option `–hlp’
Usage: mdadm –help
for help
da1:~ # 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 a device to 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
da1:~ # mdadm –create /dev/md0 –level=1 –raid-devices=2 /dev/sda8 /dev/sda9
mdadm: array /dev/md0 started.
da1:~ # array /dev/md
md0 md11 md14 md17 md2 md22 md25 md28 md30 md5 md8
md1 md12 md15 md18 md20 md23 md26 md29 md31 md6 md9
md10 md13 md16 md19 md21 md24 md27 md3 md4 md7
da1:~ # more /proc/partitions
major minor #blocks name

8 0 156290904 sda
8 1 15735636 sda1
8 2 4200997 sda2
8 3 104422 sda3
8 4 1 sda4
8 5 104391 sda5
8 6 104391 sda6
8 7 104391 sda7
8 8 104391 sda8
8 9 104391 sda9
8 10 104391 sda10
8 11 104391 sda11
9 0 104320 md0
da1:~ # mdadm –misc–query /dev/md0
mdadm: unrecognized option `–misc–query’
Usage: mdadm –help
for help
da1:~ # mdadm –misc –query /dev/md0
/dev/md0: 101.88MiB raid1 2 devices, 0 spares. Use mdadm –detail for more detai l.
da1:~ # mdadm –misc –details /dev/md0
mdadm: unrecognized option `–details’
Usage: mdadm –help
for help
da1:~ # mdadm –misc –detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Tue Aug 5 13:57:12 2008
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Aug 5 13:57:15 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 10d82e2a:61ed1aa3:59a6c3d9:358f3540
Events : 0.2

Number Major Minor RaidDevice State
0 8 8 0 active sync /dev/sda8
1 8 9 1 active sync /dev/sda9
da1:~ # more /proc/partitions
major minor #blocks name

8 0 156290904 sda
8 1 15735636 sda1
8 2 4200997 sda2
8 3 104422 sda3
8 4 1 sda4
8 5 104391 sda5
8 6 104391 sda6
8 7 104391 sda7
8 8 104391 sda8
8 9 104391 sda9
8 10 104391 sda10
8 11 104391 sda11
9 0 104320 md0
da1:~ # mdadm –manage /dev/md0 –fail /dev/sda8
mdadm: set /dev/sda8 faulty in /dev/md0
da1:~ # mdadm –misc –query /dev/md0
/dev/md0: 101.88MiB raid1 2 devices, 0 spares. Use mdadm –detail for more detai l.
da1:~ # mdadm –misc –detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Tue Aug 5 13:57:12 2008
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Aug 5 14:00:22 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0

UUID : 10d82e2a:61ed1aa3:59a6c3d9:358f3540
Events : 0.3

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 9 1 active sync /dev/sda9

2 8 8 – faulty spare /dev/sda8
da1:~ # mdadm –manage /dev/md0 –fail /dev/sda9
mdadm: set /dev/sda9 faulty in /dev/md0
da1:~ # mdadm –manage /dev/md0 –remove /dev/sda8
mdadm: hot removed /dev/sda8
da1:~ # mdadm –misc –detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Tue Aug 5 13:57:12 2008
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Aug 5 14:03:07 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 10d82e2a:61ed1aa3:59a6c3d9:358f3540
Events : 0.4

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 9 1 active sync /dev/sda9
da1:~ # mdadm –manage /dev/md0 –remove /dev/sda9
mdadm: hot remove failed for /dev/sda9: Device or resource busy
da1:~ # mdadm –stop /dev/md0
mdadm: stopped /dev/md0
da1:~ # more /proc/partitions
major minor #blocks name

8 0 156290904 sda
8 1 15735636 sda1
8 2 4200997 sda2
8 3 104422 sda3
8 4 1 sda4
8 5 104391 sda5
8 6 104391 sda6
8 7 104391 sda7
8 8 104391 sda8
8 9 104391 sda9
8 10 104391 sda10
8 11 104391 sda11
da1:~ # mdadm –create /dev/md1 –level=5 –raid-devices=3 /d
ev/sda8 /dev/sda9 / dev/sda10 –spare-devices=1 /dev/sda11
mdadm: /dev/sda8 appears to be part of a raid array:
level=raid1 devices=2 ctime=Tue Aug 5 13:57:12 2008
mdadm: /dev/sda9 appears to be part of a raid array:
level=raid1 devices=2 ctime=Tue Aug 5 13:57:12 2008
Continue creating array? y
mdadm: array /dev/md1 started.
da1:~ # mdadm –misc –detail /dev/md1 /dev/md1:
Version : 00.90.03
Creation Time : Tue Aug 5 14:07:37 2008
Raid Level : raid5
Array Size : 208640 (203.78 MiB 213.65 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 3
Total Devices : 4
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Tue Aug 5 14:07:44 2008
State : clean
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 64K

UUID : ec1fadec:c6148148:b00cbf42:a733e2d8
Events : 0.2

Number Major Minor RaidDevice State
0 8 8 0 active sync /dev/sda8
1 8 9 1 active sync /dev/sda9
2 8 10 2 active sync /dev/sda10

3 8 11 – spare /dev/sda11
da1:~ # mdadm –manage /dev/md0 –fail /dev/sda10 mdadm: cannot get array info for /dev/md0
da1:~ # mdadm –manage /dev/md1 –fail /dev/sda10
mdadm: set /dev/sda10 faulty in /dev/md1
da1:~ # mdadm –misc –detail /dev/md1
/dev/md1:
Version : 00.90.03
Creation Time : Tue Aug 5 14:07:37 2008
Raid Level : raid5
Array Size : 208640 (203.78 MiB 213.65 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 3
Total Devices : 4
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Tue Aug 5 14:09:00 2008
State : clean, degraded, recovering
Active Devices : 2
Working Devices : 3
Failed Devices : 1
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 64K

Rebuild Status : 74% complete

UUID : ec1fadec:c6148148:b00cbf42:a733e2d8
Events : 0.3

Number Major Minor RaidDevice State
0 8 8 0 active sync /dev/sda8
1 8 9 1 active sync /dev/sda9
4 8 11 2 spare rebuilding /dev/sda11

3 8 10 – faulty spare /dev/sda10
da1:~ # mdadm –manage /dev/md1 –add /dev/sda
sda sda10 sda2 sda4 sda6 sda8
sda1 sda11 sda3 sda5 sda7 sda9
da1:~ # mdadm –manage /dev/md1 –add /dev/sda
mdadm: Cannot open /dev/sda: Device or resource busy
da1:~ # clear

da1:~ # cd /etc/
da1:/etc # ll mdadm.conf
/bin/ls: mdadm.conf: No such file or directory
da1:/etc # echo ‘DEVICE /dev/sda8 /dev/sda9 /dev/sda10’ > mdadm.conf
da1:/etc # more mdadm.conf
DEVICE /dev/sda8 /dev/sda9 /dev/sda10
da1:/etc # mdadm –details –scan >> mdadm.conf
mdadm: unrecognized option `–details’
Usage: mdadm –help
for help
da1:/etc # mdadm –detail –scan >> mdadm.conf
da1:/etc # more mdadm.conf
DEVICE /dev/sda8 /dev/sda9 /dev/sda10
ARRAY /dev/md1 level=raid5 num-devices=3 UUID=ec1fadec:c6148148:b00cbf42:a733e2d
8
da1:/etc #

By akuadi

101 thoughts on “RAID”
  1. Hi,just found your Post when i google something and wonder what web hosting do you use for your blog,the speed is more faster than my website, i really want to know it.will back to check it out,thank you!

  2. You’re blogging has really come on when I look back over previous posts. Actually I arrived here from a forum on an unrelated topic. Worth surfing sometimes. Thanks.

  3. This kind of put up can be fantastic. I find that a strategies are very in addition to diligently held, besides one of these; flowers?!In .! Think about it, how do you actually remain the place you execute with this thoughts and opinions. Or simply possibly even strive escalating red roses? I do not suppose you may have, as if you’d probably need would’ve realized which will maturing rose bushes genuinely an impressive procedure.

  4. I am a person from Monaco. I have been going to investing property in United States. My partner purchased a duplex there a year ago and has made a great return there.

  5. I loved as much as you will receive carried out right hereThe sketch is attractive, your authored material stylishnonetheless, you command get bought an edginess over that you wish be delivering the followingunwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.

  6. Win on Google and make money if you’re a interessed by that … read this on my own site

  7. I like what you guys are up too. Such smart work and reporting! Carry on the excellent works guys I’ve incorporated you guys to my blogroll. I think it’ll improve the value of my site :).

  8. If someone else nevertheless thinks that there is tiny area regarding digressions through the design, this settles the actual dispute.The fact that the other rankings everyone is beginning to take, we surely tend to be seeing any radical change.

  9. Looking through “What May be the What” should certainly ensure it is hopeless to be able to make-believe in which Valentino Achak Deng along with the some other Missing Boys as well as all the males and females and also young children who may have suffered, in addition to always experience, fates like his / her don’t can be found

  10. Do you have a spam damage on this page? I also use Blogger, and I was speculating about your experiences; we have developed some great techniques and we are looking to exchange practices with others, please Email me if interested. Practically anywhere you turn – whether it is in a grocery store, in the phone book or on the internet – you can find challenging blogs with problems.

  11. I even have just study the data provided during this website. I have to say I’m very awed with all the condition of contented. It includes me a lot of acumen about my wisdom. I had been do not know this certainly before during my life span. Thank you very much because of this. My group is looking forward for further refreshes. Sustain the coolest deliver the results.

  12. Keeping your Android phone safe ought to be a vital concern. You might have a lot of valuable data that’s stored on that. You don’t only n’t want your special information getting yourself into the hands with the wrong person. Therefore , you don’t need for it to cost money on replacing your phone. Afterward you have got to re-enter all of your current data into this new phone that is a total waste. I am going to show you the apps and keep your phone safe.

  13. I like what you guys are up also. Such smart work and reporting! Keep up the excellent works guys I¡¦ve incorporated you guys to my blogroll. I think it’ll improve the value of my site 🙂

  14. Thats deninitely true what you have said. I agree with what you have stated. You made the points looks easy, thats what we all are expecting. Will be subscribing your feeds. do keep updating with such topics.

  15. I wish to point out my respect for your kindness supporting persons that need assistance with this important area. Your personal dedication to passing the solution along had become amazingly interesting and has always empowered men and women much like me to reach their objectives. Your new warm and helpful help and advice indicates this much to me and extremely more to my fellow workers. Thanks a ton; from everyone of us.

  16. When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a remark is added I get four emails with the same comment. Is there any means you possibly can remove me from that service? Thanks!

  17. The very heart of your writing whilst appearing agreeable in the beginning, did not settle well with me personally after some time. Somewhere within the paragraphs you actually managed to make me a believer but just for a short while. I still have got a problem with your jumps in logic and one would do well to help fill in those breaks. When you actually can accomplish that, I could surely end up being amazed.

  18. For other individuals, it is a thick stew. White chili is created with chicken or pork. Mole chili, which originated in Mexico, is made up of unsweetened cocoa. Every single home cook has his or her twist on the recipe.

  19. This system strength of character at present be present to be had to facilitate track bringing up the rear prank callers or unwanted callers. Every a user spirit call for is an google connection. In order as soon as track these disruptive callers the user extra uses individual of the reputable cellular phone reorder

  20. Squander this technology as soon as prevent sales calls phoning your residence next to both hours! Uncover by the side of the companies number complete a lookup, cell phone them back along with request you are taken off their call database

  21. that refers so when a quantity of a few mobile phone number. This means with the aim of as soon as you have got a cell phone number in addition to you look forward to whilst check commencing regardless of whether there exists a corresponding ave address before even more details

Leave a Reply

Your email address will not be published. Required fields are marked *