Page 1 of 1

Setting up RAID??

Posted: Tue Oct 06, 2009 5:43 pm
by reezin14
OK I want to setup RAID 1, using 2x 640GB Western Digital for the array & a 120GB hdd for the OS.First would it be a good idea to do this via webmin,bios or install process? How or is it even possible to move my shares to the RAID array so that the data is being written there instead of the disk with the OS on it.If anyone can point me in the right direction or give some insight it would be greatly appreciated. :?

Re: Setting up RAID??

Posted: Wed Oct 07, 2009 3:40 am
by moredruid
Well, not with the BIOS, it's called fakeraid and usually depends on a (Windows only) device driver.
You can install the OS first and create the RAID 1 array later (I find the GUI tools very confusing) on the command line with mdadm.
You can then create a mount point for /var/hda/files on just that array. You can also add another layer on top of the RAID with LVM, so you can easily expand the filesystem later if you want/need. The concept is quite elegant and simple once you "get it" but I found it pretty hard to understand at first.

I've chosen to mount /var/hda on a LV which - currently - spans 2 disks, 1 750G & 1 1TB, the OS is installed on a different physical disk.
This is because the pba app doesn't store its files in /var/hda/files but in /var/hda/apps/pba/backups/data. I would've mounted it on /var/hda/files but I tend to keep some backup history which is somewhere around 140GB, that wouldn't fit on my 80GB "OS" disk... :)

Re: Setting up RAID??

Posted: Wed Oct 07, 2009 9:07 pm
by reezin14
Thanks for the info moredruid I'm seem to have everything running(I think).I transferred some files just to see where they would be store & it is going to the raid array.But I do have another question,the 120G OS disk says it is /media/disk and the array says that it is /(root) is this how it's suppose to go?I thought it would be the other way around. We need a rep system around here so that I could give you some(just a thought). :D

Re: Setting up RAID??

Posted: Thu Oct 08, 2009 12:52 am
by moredruid
not quite sure what you mean by the "rep" thing, but if you post your /etc/fstab I might glean the necessary info from that.

Re: Setting up RAID??

Posted: Fri Oct 09, 2009 12:18 pm
by reezin14
Is this what your looking for? Rep is just something that other forums use to show that a person is helpful, the more rep the more a person has been helpful to members of the forum.

vol_id(8) for more info # /dev/VolGroup00/LogVol00 /
ext3 defaults 1 1
UUID=3d12f6a3-0fe8-4959-b935-700c29253bbe /boot
ext3 defaults 1 2 tmpfs /dev/shm
tmpfs defaults 0 0 devpts /dev/pts
devpts gid=5,mode=620 0 0 sysfs /sys
sysfs defaults 0 0 proc /proc
proc defaults 0 0 /dev/VolGroup00/LogVol01 swap
swap defaults 0 0