Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6, promise pdc 20268 and dmsetup
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
unz
l33t
l33t


Joined: 28 Jul 2004
Posts: 819
Location: Roma, Italia

PostPosted: Wed Jul 28, 2004 12:40 am    Post subject: help! Reply with quote

i'd like to thank mr vlad_tepes that helped me with my 80+80gb on pdc20276 controller. But i got some questions more 8O :
@ booting i got some strange errors and i am adviced to /sbin/depscan.sh .. i do but nothing .. errors just continue, but it's only extetic [ i hope]
-your script creates a partition for every partion found, but i need only 2, how can i custumize it? [ i need only raid0p5, raid0p6]
-another problem is that only root can really use those partitions, normal user can only read [just the same icon for all the files] ... my fstab is ignored.

thanks a lot guy, without your how-to i'd not installed 2.6.7 ;)

unz
Back to top
View user's profile Send private message
danone
Guru
Guru


Joined: 18 Jan 2004
Posts: 398
Location: Germany

PostPosted: Wed Jul 28, 2004 6:12 am    Post subject: Reply with quote

As i posted before does someone got a RAID1 Mirrorset working?How to use dmsetup to crate a mirrortaget I lokked ito man pages and so but no luck
_________________
[:: Processor: Intel Core 2 Duo E6300 ]::[ Mainboard: ASUS P5B Deluxe ]::[ GPU: nVidia 7900GTO ::]
[:: RAM: HyperX DDR2 800 ]::[ Samsung SH-183A SATA:: CREATiVE X-Fi XtremeMusic :: ]
Back to top
View user's profile Send private message
unz
l33t
l33t


Joined: 28 Jul 2004
Posts: 819
Location: Roma, Italia

PostPosted: Wed Jul 28, 2004 12:39 pm    Post subject: RAID0 with pdc20276 and two partitions ... success!!! Reply with quote

ok, i've done ... :D
it's not elegant ... but works!

my way differs a bit from vlad, 'cos his script didn't work for me ... i changed stripe-mapper.sh in a ugly

Code:

#!/bin/sh
echo 0 $(expr $(blockdev --getsize /dev/hde) '*' 2) striped 2 128 /dev/hde 0 /dev/hdg 0 > /etc/stripemaps/raid.devmap
dmsetup create raid0 /etc/stripemaps/raid.devmap
dmsetup create raid0p1 /etc/stripemaps/raid0p1.devmap
dmsetup create raid0p5 /etc/stripemaps/raid0p5.devmap
dmsetup create raid0p6 /etc/stripemaps/raid0p6.devmap
mount -t vfat -o,uid=1000 /dev/mapper/raid0p5 /windows/E
mount -t vfat -o,uid=1000 /dev/mapper/raid0p6 /windows/F


solving all the problems about chmodes and the right size of my partitions

cheers
_________________
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Back to top
View user's profile Send private message
mauricec
n00b
n00b


Joined: 20 Mar 2004
Posts: 20
Location: Nieuwerbrug, Holland

PostPosted: Sun Sep 26, 2004 12:44 pm    Post subject: Reply with quote

Great howto.....

I've installed Gentoo with 2.4.27-gentoo-r1 and enabled the device-mapper, so I can test it with ataraid and dev-mapper ( and be able to boot from disk ).

All seems great, expected results given in this topic, but I'm unable to mount any of my paritions....
And I really want to change to 2.6

What i did :
Read the topic very well :wink:
Using Vlad_tepes scripts, wich works fine
Code:
echo 0 $(expr $(blockdev --getsize /dev/hde) '*' 2) striped 2 128 /dev/hde 0 /dev/hdg 0 > /etc/stripemaps/raid0.devmap


Create disk in devmapper :
Code:
dmsetup create raid0 /etc/stripemaps/raid0.devmap


sfdisk gives me this:
Code:
/dev/mapper/raid0p1 : start=       63, size=   499905, Id=83
/dev/mapper/raid0p2 : start=   499968, size=  4007808, Id=83
/dev/mapper/raid0p3 : start=  4507776, size=  9773568, Id=83
/dev/mapper/raid0p4 : start= 14281344, size=305883648, Id= 5
/dev/mapper/raid0p5 : start= 14281407, size=  2007873, Id=82
/dev/mapper/raid0p6 : start= 16289343, size= 39070017, Id=83
/dev/mapper/raid0p7 : start= 55359423, size=264805569, Id=83


So i made the file /etc/stripemapper/raid0p1.devmap containing this :
Code:
0 499905 linear /dev/mapper/raid0 63


Using /etc/init.d/ataraid to create the mapper devices.

Now i should be able to :

Code:
mount -t ext3 /dev/mapper/raid0p1 /mnt/floppy


But it returns :
Code:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/raid0p1,
       or too many mounted file systems


And that really pisses me off .....


Anyone any idea ???
Because now I'm stuck with the ataraid driver ( wich works fine ), and I'm not able to move on .... ie not able to use 2.6 kernel...
Back to top
View user's profile Send private message
smog_at
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 215

PostPosted: Wed Nov 08, 2006 4:16 pm    Post subject: Reply with quote

Has anyone tested it with a mirror?

It's a good how-to but i need a mirror instead of an stripe. Need I only change the argument?
From:
Code:

echo 0 $(expr $(blockdev --getsize /dev/hde) '*' 2) striped 2 128 /dev/hde 0 /dev/hdg 0 > devmap.raid

to
Code:

echo 0 $(expr $(blockdev --getsize /dev/hde) '*' 2) mirrored 2 128 /dev/hde 0 /dev/hdg 0 > devmap.raid

?

lg smog_at
Back to top
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Wed Nov 08, 2006 6:18 pm    Post subject: Reply with quote

You don't have the option to use mdadm instead of dmraid?

Because if you can, you should.
Back to top
View user's profile Send private message
smog_at
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 215

PostPosted: Wed Nov 08, 2006 6:51 pm    Post subject: Reply with quote

Hmmm... i've the option, but I didn't found any tutorials or how-tows about mdadm

Lg smog_at
Back to top
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Wed Nov 08, 2006 8:18 pm    Post subject: Reply with quote

Creating an array with mdadm is very simple. Something like "mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1" does the job, provided you have the kernel modules and mdadm installed.

Gentoo-wiki also contains information, which should be helpful even if you don't try to install gentoo on a raid array.
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
Goto page Previous  1, 2
Page 2 of 2

 
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