Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Creating pseudo raid devices for Jakob to play with

Author:mike - Sun Jan 21 15:57:06 2007

jal@alminde.com siger:
Du må lige hjælpe mig med at sætte pseudo RAID op. Det aner jeg ikke hvordan man gør.

MC @ Feta siger:
ok:

dd if=/dev/zero of=./loop1 bs=1024 count=10k
dd if=/dev/zero of=./loop2 bs=1024 count=10k

127-0-0-1:~# losetup /dev/loop0 ./loop1
127-0-0-1:~# losetup /dev/loop1 ./loop2

apt-get install mdadm

127-0-0-1:~# mdadm --create /dev/md0 --chunk=32 --level=1 --raid-devices=2 /dev/loop0 /dev/loop1
mdadm: array /dev/md0 started.

127-0-0-1:~# mkfs.ext2 /dev/md0

127-0-0-1:~# mount /dev/md0 /mnt/
127-0-0-1:~# df -h | grep md0
/dev/md0              9.7M   13K  9.2M   1% /mnt


127-0-0-1:~# mdadm /dev/md0 --manage --fail /dev/loop0
mdadm: set /dev/loop0 faulty in /dev/md0

127-0-0-1:~# mdadm /dev/md0 --manage --remove /dev/loop0
mdadm: hot removed /dev/loop0

127-0-0-1:~# mdadm /dev/md0 --manage --add /dev/loop0
mdadm: hot added /dev/loop0
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk