Misc Links
Forum Archive
News Archive
File DB
 

Ads
 

Advertisement
Age of Valor - Ultima Online Free Shard
AoS/SE/ML/Custom - advanced code, dedicated staff, peerless bosses, non overpowered customs + much much more
 

Latest Forum Topics
New PC
Posted by Wren
on Apr 27 2012, 2:58:46 pm

PSA: Ensure your forum email address is valid
Posted by MikeDB
on Apr 09 2012, 8:43:16 am

Recipe's
Posted by MikeDB
on Feb 28 2012, 12:54:29 am

My PC is now ancient
Posted by rovingcowboy
on Feb 27 2012, 8:29:26 am

Hey all
Posted by rovingcowboy
on Feb 27 2012, 8:35:12 am

 

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
16187 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? (50814 reads)
- Text searching in linux with grep (33755 reads)
- SPFDisk (Special Fdisk) Partition Manager (21035 reads)
- Creating your own content management system with php (20578 reads)
- Ultima Online Newbie Guide (19290 reads)
- How to Use MDADM Linux Raid (16187 reads)
- What is Cloud Computing? (15799 reads)
- Dynamic Forum Signatures (version 2) (16176 reads)
- Successfully Hacking your iPhone or iTouch (17338 reads)
- Ultima Online Newbie Guide (19290 reads)
corner image

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