It is currently Mon May 20, 2013 3:14 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Software RAID
PostPosted: Wed Oct 03, 2007 6:13 pm 
Zenwalk Spin-offs
Zenwalk Spin-offs

Joined: Sun Oct 29, 2006 10:59 pm
Posts: 427
Location: Hendersonville, NC
Unfortunately, the only way to run any script before `mount -a` is to add it directly to /etc/rc.d/rc.S before line 196. rc.local is hackish, but there is no "rc.beforemount" in Zenwalk or standard Slackware :-(.

Cheers,
sega01

_________________
Go Beyond
Zenserver
Digg


 Profile Send private message  
 
 Post subject: Re: Software RAID
PostPosted: Fri Oct 05, 2007 2:16 pm 
Zenwalker
Zenwalker
User avatar

Joined: Tue Oct 02, 2007 2:47 pm
Posts: 6
Location: montana
Thank you much for your help! rc.local should be the best place for the raid setup, but now i should not have to put a mknod in rc files.

I appreciate everybody's time and assistance!


 Profile Send private message  
 
 Post subject: Re: Software RAID
PostPosted: Sat Oct 06, 2007 9:06 am 
Zenwalk Spin-offs
Zenwalk Spin-offs

Joined: Mon May 08, 2006 3:35 pm
Posts: 233
hi,

i have raid1 setup with zw 4.6 without using any mknod or rc.local

here is what you need to do....

set partitions you want to have in ride to fd type (raid auto detect)
let say you want to have ride 1 between sdb1 and sdc1:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sd[bc]1

mkfs ..... /dev/md0 ......mount

thats it ...the ride array will auto start after every reboot

hope it helps
rado.


 Profile Send private message  
 
 Post subject: Re: Software RAID
PostPosted: Sat Oct 13, 2007 3:23 pm 
Zenwalker
Zenwalker
User avatar

Joined: Tue Oct 02, 2007 2:47 pm
Posts: 6
Location: montana
xrado,
zenserver seems to differ from zenwalk in this regard, as well as others. the device node md0 is not present. therefore if you just use mdadm it throws an error stating that /dev/md0 does not exist. it cannot create or reassemble the array. if you then manually make the node using mknod you can use mdadm to create and reassamble it. however, on reboot it is gone. it has to be re-created at each boot thus using rc files is how it is easily done.

i can not explain why that is, maybe missing a module that zenwalk and most distros have, but that is the way it is. thank you for your thoughts though.


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


 Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
 
cron