Neil Brown wrote:
On Thursday May 15, djani22@xxxxxxxxxxxx wrote:
I only want to help for some people to get back the data.
I only need to build, not to create.
And this you can do ... but not with mdadm at the moment
unfortunately.
What carefully :-)
--------------------------------------------------------------
/tmp# cd /sys/block/md0/md
/sys/block/md0/md# echo 65536 > chunk_size
/sys/block/md0/md# echo 2 > layout
/sys/block/md0/md# echo raid5 > level
/sys/block/md0/md# echo none > metadata_version
/sys/block/md0/md# echo 5 > raid_disks
/sys/block/md0/md# ls -l /dev/sdb
brw-rw---- 1 root disk 8, 16 2008-05-16 11:13 /dev/sdb
/sys/block/md0/md# ls -l /dev/sdc
brw-rw---- 1 root disk 8, 32 2008-05-16 11:13 /dev/sdc
/sys/block/md0/md# echo 8:16 > new_dev
/sys/block/md0/md# echo 8:32 > new_dev
/sys/block/md0/md# echo 8:48 > new_dev
/sys/block/md0/md# echo 8:64 > new_dev
/sys/block/md0/md# echo 8:80 > new_dev
/sys/block/md0/md# echo 0 > dev-sdb/slot
/sys/block/md0/md# echo 1 > dev-sdc/slot
/sys/block/md0/md# echo 2 > dev-sdd/slot
/sys/block/md0/md# echo 3 > dev-sde/slot
/sys/block/md0/md# echo 4 > dev-sdf/slot
/sys/block/md0/md# echo 156250000 > dev-sdb/size
/sys/block/md0/md# echo 156250000 > dev-sdc/size
/sys/block/md0/md# echo 156250000 > dev-sdd/size
/sys/block/md0/md# echo 156250000 > dev-sde/size
/sys/block/md0/md# echo 156250000 > dev-sdf/size
/sys/block/md0/md# echo readonly > array_state
/sys/block/md0/md# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md0 : active (read-only) raid5 sdf[4] sde[3] sdd[2] sdc[1] sdb[0]
624999936 blocks super non-persistent level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
unused devices: <none>
----------------------------------------------------------
Wow, this is big :) Is it correct to state that today most of mdadm's tasks
can be carried out by toying with sysfs? Fascinating!
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html