A Project Blog

mdadm Cheatsheet

by @ November 4, 2008. Filed under file systems

Scan a system for RAID arrays and save findings so the array reappears across reboots:

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

Create a RAID5 array out of sdm1, sdj1, and sdk1 (all partitioned with raid-autodetect partitions)

# mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sd[mjk]1

Create a RAID1 array

# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sd[ts]1

Remove a RAID array

# mdadm --stop /dev/md1
# mdadm --zero-superblock /dev/sd[ts]1

Copyright ©2005-2007 Nicholas Brand. All rights reserved.
powered by WordPress.

categories:

links:

blogroll:

search:

archives:

November 2008
M T W T F S S
« Mar   Mar »
 12
3456789
10111213141516
17181920212223
24252627282930

other:

computers:

  • backupbox
  • closetbox (server)
  • routerbox
  • htpc
  • netbook
  • mini
  • shuttle
  • icebox (desktop)
  • thinkpad
  • other devices:

  • nokia 770
  • personal:

    Digg
    Amazon Wishlist
    del.icio.us
    Twitter
    Last.FM

    19 queries. 0.136 seconds