View previous topic :: View next topic |
Author |
Message |
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Mon Feb 11, 2008 7:29 pm Post subject: RAID'ing files? "mdadm: /tmp/node0 is not a block devi |
|
|
Going off the deep end today. Build up a few blank files and try to RAID them together. Complains that the blank files are not block devices. I know that. Is there any way to get past this problem?
Code: |
dd if=/dev/zero of=/tmp/node0 count=204800
mdadm --create --level=5 --raid-devices=4 /tmp/node0 /tmp/node1 /tmp/node2 /tmp/node3 /dev/md0
mdadm: /tmp/node0 is not a block device.
|
|
|
Back to top |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Mon Feb 11, 2008 7:50 pm Post subject: |
|
|
I'd guess you need to use losetup to present the file as a block device first. |
|
Back to top |
|
|
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Mon Feb 11, 2008 8:52 pm Post subject: |
|
|
Close, but not portable, and may have problem when I am making 100's of files. Any other ideas? |
|
Back to top |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Mon Feb 11, 2008 9:42 pm Post subject: |
|
|
DingbatCA wrote: | Close, but not portable, and may have problem when I am making 100's of files. Any other ideas? |
You realize mdadm isn't portable, right? If you need more than 256 files then you are probably trying to hammer a square peg into a round hole. Just make a large RAID device from partitions and carve them up into millions of logical volumes with lvm. |
|
Back to top |
|
|
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Mon Feb 11, 2008 9:55 pm Post subject: |
|
|
bummer, is the 256 a limitation of the loop back or software RAID? |
|
Back to top |
|
|
|