Misc Links
Forum Archive
News Archive
File DB
 

Ads
 

Advertisement
 

Latest Forum Topics
wow 56 k modems are
Posted by Red Squirrel
on Oct 14 2013, 11:52:23 pm

I Need A Program
Posted by rovingcowboy
on Sep 23 2013, 5:37:59 pm

having trouble witn lan
Posted by rovingcowboy
on Sep 23 2013, 5:40:56 pm

new problem for me
Posted by rovingcowboy
on Sep 23 2013, 5:54:09 pm

RBC Royal Bank
Posted by Red Squirrel
on Aug 13 2013, 6:48:08 pm

 

How to Use MDADM Linux Raid
A highly resilient raid solution!
By Red Squirrel


mdadm cheat/reference sheet

Create a 6 drive raid 5 array called /dev/md0 with chunk size of 16384: (typically, bigger chunk sizes are better for bigger files, default is 512)

mdadm --create --level=5 --chunk=16384--raid-devices=6 /dev/md0 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg

Assemble raid array that is not in the config file:

mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg

Create config file:

mdadm --detail --scan > /etc/mdadm.conf

Add new disk and grow raid array:

mdadm --add /dev/md0 /dev/sdh
mdadm --grow /dev/md0 --raid-devices=7

Mark drive as failed, and remove from array. (this can be good if you want to replace a drive even though it has not failed)

mdadm --fail /dev/md0 /dev/sdg
mdadm --remove /dev/md0 /dev/sdg

Stop array: (must ensure the file system is dismounted first)

mdadm --stop /dev/md0

Start array:

mdadm --run /dev/md0

Get details on an array:

mdadm --detail /dev/md0

Monitor all arrays: (to get emails of failures and such)

mdadm --monitor --scan --mail=[email address] --delay=1800 &

View rebuild speed limit:

sysctl dev.raid.speed_limit_max

Modify rebuild speed limit:

sysctl -w dev.raid.speed_limit_max=value

Increase performance before a rebuild operation:

mdadm --grow --bitmap=internal /dev/md0

Once rebuild is done:

mdadm --grow --bitmap=none /dev/md0






spacer
29067 Hits Pages: [1] [2] [3] [4] 0 Comments
spacer


Latest comments (newest first)
Be the first to post a comment!


Top Articles Latest Articles
- What are .bin files for? (669062 reads)
- Text searching in linux with grep (161180 reads)
- Big Brother and Ndisuio.sys (150471 reads)
- PSP User's Guide (139547 reads)
- SPFDisk (Special Fdisk) Partition Manager (117240 reads)
- How to Use MDADM Linux Raid (188 reads)
- What is Cloud Computing? (1225 reads)
- Dynamic Forum Signatures (version 2) (8769 reads)
- Successfully Hacking your iPhone or iTouch (18714 reads)
- Ultima Online Newbie Guide (35906 reads)
corner image

This site best viewed in a W3C standard browser at 800*600 or higher
Site design by Red Squirrel | Contact
© Copyright 2017 Ryan Auclair/IceTeks, All rights reserved