Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RAID'ing files? "mdadm: /tmp/node0 is not a block device."
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Mon Feb 11, 2008 7:29 pm    Post subject: RAID'ing files? "mdadm: /tmp/node0 is not a block devi Reply with quote

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
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Mon Feb 11, 2008 7:50 pm    Post subject: Reply with quote

I'd guess you need to use losetup to present the file as a block device first.
Back to top
View user's profile Send private message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Mon Feb 11, 2008 8:52 pm    Post subject: Reply with quote

Close, but not portable, and may have problem when I am making 100's of files. Any other ideas?
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Mon Feb 11, 2008 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Mon Feb 11, 2008 9:55 pm    Post subject: Reply with quote

bummer, is the 256 a limitation of the loop back or software RAID?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum