MD devices. Synching disks to backup in Ubuntu.

– Install mdadm easy by

apt-get install mdadm

– Change a disk to md format:

fdisk /dev/sdd
press "n" to create
press "t" to change format, choose "fd"

– Create a new synching disks. Paired:

mdadm –create –verbose /dev/md3 –level=1 –raid-devices=2 /dev/sdb1 /dev/sdd1

shutdown –r now

– Check all md devices:

cat /proc/mdstat

– Format

mkfs -t reiserfs /dev/md3

– View md device detail :

mdadm –detail /dev/md3

– Add device

mdadm –manage –add /dev/md3 /dev/sdd1

– Check disk’s status

fdisk -l | more

Ready to go? Let’s do it!!!

Oliver

del.icio.us Tags: ,,,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: