SATA RAID With Mandrake 10.1
#1
Posted 03 May 2005 - 11:49 AM
I then booted the computer with the first Mandrake disk, to install. Immediately, Mandrake installed the drivers for the VT8237. The install process went along just fine...everything appeared normal. At completion of the install, Mandrake advised me to remove all disks and reboot, which I did. The system went through the BIOS fine..but when Mandrake goes to start, rather than starting, I merely see about half a screen full of the number "9". Nothing more.
I then went back and deleted the array and created a RAID1 array in the BIOS. I reinstalled Mandrake, VT8237 drivers installed fine, as did the disks. At the end of the install, I removed all disks and rebooted. Mandrake works fine! No "9's" on the screen. Apparently, it works fine as a RAID1 array, as the problem is only with the RAID0 array.
Looking at the partitions when in RAID1 array, the first disk shows all the partitions. If I move to the second tab, the second drive is there, but no partitions appear. So, not knowing anything about RAID, I'm wondering if it's actually a mirror, as it's supposed to be in RAID1.
Anyway, I'm totally confused. I am a Linux noobe and even less skilled in RAID. This is my first attempt with RAID. I really would like to figure this out and use a RAID0 array.
As I say, in the BIOS and RAID setup, both hard drives appear...are named and serial numbers, size, etc. all are correct, so I believe they are working okay.
Any help would really be appreciated!
#2
Posted 03 May 2005 - 09:32 PM
I'm not really much of a guru when it comes to onboard-SATA-RAID issues, as I only get in contact with them good old DPT-SCSI RAID boards or dedicated SATA controller cards, of which we have a good number in the machines here. But anyway ...
The infamous "9"s ...
This usually indicates that the linux-loader (lilo or grub) isn't happy with the partition type/filesystem it wants to read its startup code from. In your case, the bootloader seems to considers the RAID0 stripe set as something "invalid".
Why does it work on a RAID-1 mirror-set then?
Basically, my guess is that your installation doesn't utilize SATA-RAID at all. Due to the specs of "mirroring" the disks are nevertheless available ... or at least one disk is. If the mirror set would be properly set up you wouldn't even see your second drive in a regular disk manager (though I admit that this could be possible with SATA-drives; dunno).
What to do now?
Foremost I strongly advise you to NOT install anything important onto a plain RAID-0 stripe set! RAID-0 is only a valid option if you also mirror the stripe set (RAID0+1). This, of course needs at least 4 disks (2 x for RAID0, 2 x to mirror the RAID0-set).
It's also a good idea to use "plain" boot partition with a standard file system on it (ext3 recommended). This boot part. doesn't need to be overly large, a handful of gigs are more than enough.
Let's say you have 2 x 80GB drives, then a partitioning as follows might be handy (all mentioned partitions are to be created on both drives) ...
partition 1: 1-2GB (will be stripe-swap-space later)
partition 2: 1-2GB (ext3, boot partition)
partition 3: the rest (will be the RAID0- set later; or RAID1)
(all partitions as "primary")
In your RAID controller BIOS, set up a RAID 0 set by combining both partitions #3. If you're the adventurous kind of person, you can also stitch together the parts. #1 as a RAID-0 swap-volume.
Leave the boot-partitions (on both drives) as they are, format those as EXT3 during the OS-setup, and have the OS-setup proggie install the boot-loader to partition 2 on drive 1 (the Mandrake setup-prog should ask you about this towards the end of the setup).
As mountpoints you use "swap" for the RAID-set created with both part. #1, and "/" is the mountpoint for the RAID0/RAID1 set that you created from both parts. #3.
This way the bootloader can read it's data from a "real", "non-logical" volume, while the system itself resides on whatever RAID-volume you created (keep in mind that RAID0 doubles the chances for complete and total data-annihilation)
With a setup like this, you should at least be able to avoid the "9"s. If the system will make use of the RAID set? Who knows
Hope that helps
#3
Posted 04 May 2005 - 01:24 AM
When I go to look at the Mount Points - Partitions, here is what I see:
sda 74GB
Mount Point: Home
Device sda6
Type: Journalised FS: ext3
Size: 67GB (90%)
Formatted
Mounted
When I look at the second tab, I see:
sdb
Empty
Size: 74GB
Cylinder 0 to 9728
When I went into the Bios Utility to set up the RAID, I had a choice between RAID0 and RAID1. There may be other options, but I was not aware of them. When I chose RAID0, or RAID1, the array was created automatically. In this RAID1 I am now using, the second drive was shown as a mirror. In the RAID0, which I want, both were striping.
I know, but have never tried changing...that when installing Mandrake 10.1, the partitioning I believe, can be done custom or automatic. I have always just chosen automatic and let Mandrake create partitions, etc., as it chose to do. I do remember in the Mandrake install, there was some question asked where you could determine what partition to boot from....If I understood what I saw correctly. But, I'm not real sure.
If I understand your suggestions, I think the thing to do is to go back to the BIOS RAID utility....delete the RAID1 array and create a RAID0 array. Then, start the install of Mandrake 10.1. Then, I'm sort of lost on your instructions about using a plain poot partition with a standard file system on it. Not sure how I go about that. Also, not sure about the partitioning to mention...Partition 1,2 and 3...with the rest in RAID0..set later...and all the partitions as "primary."
Must I then go back into the Bios RAID utility and combine both partitions #3? I'm lost there.
I'm really sorry for my lack of understanding on this...so any further assistance would be appreciated.
Regards,
zenarcher
#4
Posted 04 May 2005 - 02:33 PM
first of all, I have to apologize for bits and parts of ym first post. I have written it after 16+hrs of hardcore programming, and obviously my first post lacks one or two key infos
Firstly: It sounds as if it was possible to combine logical partitions to RAID volumes with the RAID-controller-BIOS. The VIA chip we are talking about is most probably not capable of that. What I was talking about (and which I simply forgot to mention with at least a single word
The VIA southbridge-chip "VT8237" (as used on your mobo) is only the first part in the onboard-RAID chain. To be able to use this feature at all, a secondary "software-layer" (a driver) is needed.
Under Windows this is usually no big deal. Under Linux this driver-layer is a profound source for major setup problems. And if this wasn't bad enough already: Almost any onboard RAID chip (be it SIL, VIA or whatever) is error-prone under linux, but the VIA controllers are legendary for a fundamentally horrible linux-compatibility, and at that: the VT8237 is one of the worst. But no use in bashing a rotten onboard chip. Let's see what can be done now ...
Check the loaded modules
First thing to do in your current situation is to check if the VIA driver is loaded properly. Just because the setup proggie says "installed" doesn't mean it's actually "installed properly". Open a console (as root) and type ...
root@comp# lsmod
This command produces a list of all loaded modules and also provides info about how the modules are utilized. In your case check for list entries that contain the string "sata_<something>", where <something> is the name of the sata-chip vendor. In your case the module to check for should be named "sata_via".
Result A: module is loaded
If you indeed have this module listed, do check if it is referenced/used by any other module. You can determine this by the number and names in the column "used by". If no module uses the via-sata-module, your onboard RAID setup is very close to uselessness.
If the module is used and you still see 2 seperate drives instead of one large RAID-1-volume, then something else went astray. Unfortunately I don't have a clue as to how to solve this then.
Result B: module is not loaded
If no sata_via thing is found in the lsmod output, then you can try to insert it. To do so, enter the command ...
root@comp# modprobe sata_via
Two things can happen after this:
a) the computer hangs
To circumnavigate this it would be a good thing to boot the OS with the noapic-parameter and try the modprobe-command again
b) you get a lot of error messages
Which will either tell you that the module wasn't found or could not be loaded due to some freaky reason.
Whatever may come up, keep us informed so that we get a clearer picture about the status your puter's in now. There are still a few other things one could do, like installing a third drive and install the system onto this disk. With such a setup you could compile a custom kernel with the via support built in, which might enable you to add the main drives as RAID volumes later.
In the meantime you might want to inform yourself about this "LVM" thing. If you ask me, it would be the better option anyway, as it is just as performant as the onboard solution but much more stable and less error prone.
#5
Posted 04 May 2005 - 03:45 PM
Here is the listing I got in the terminal...maybe if we take it one step at a time, I won't mess anything up. Anyway, I will let you take a look at this...and maybe you can tell where to go from here. Looks like the VIA is there to me...
[root@localhost zenarcher]# lsmod
Module Size Used by
nls_iso8859-1 3680 0
isofs 31352 0
vfat 11168 0
fat 39776 1 vfat
md5 3584 1
ipv6 230916 10
rfcomm 32348 0
l2cap 19876 5 rfcomm
bluetooth 39076 4 rfcomm,l2cap
snd-seq-oss 31232 0
snd-seq-midi-event 6080 1 snd-seq-oss
snd-seq 47440 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 49480 0
snd-mixer-oss 17376 1 snd-pcm-oss
snd-via82xx 22372 1
snd-ac97-codec 69392 1 snd-via82xx
snd-pcm 81800 2 snd-pcm-oss,snd-via82xx
snd-timer 20356 2 snd-seq,snd-pcm
snd-page-alloc 7400 2 snd-via82xx,snd-pcm
gameport 3328 1 snd-via82xx
snd-mpu401-uart 5856 1 snd-via82xx
snd-rawmidi 19300 1 snd-mpu401-uart
snd-seq-device 6344 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 45988 13 snd-seq-oss,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 7008 1 snd
parport_pc 30976 1
lp 9548 2
parport 33896 2 parport_pc,lp
af_packet 16072 2
floppy 55088 0
via-rhine 17572 0
mii 4224 1 via-rhine
ide-cd 37280 0
cdrom 37724 1 ide-cd
usb-storage 65504 0
loop 12520 0
supermount 34804 1
via-agp 7360 1
agpgart 27752 2 via-agp
nvidia 4805012 12
ehci-hcd 26244 0
uhci-hcd 28752 0
usbcore 103172 5 usb-storage,ehci-hcd,uhci-hcd
ext3 120680 2
jbd 49080 1 ext3
sd_mod 19008 4
sata_via 4644 3
libata 38020 1 sata_via
scsi_mod 103404 3 usb-storage,sd_mod,libata
Looks like 1 sata_via....but then, I have everything set up as RAID1 in BIOS right now...if that would make a difference, since I can't start Mandrake, if I have it set up as a RAID0 array...that is when I get all the 0's on the screen, when Mandrake is supposed to boot up. If necessary, I do have a small IDE drive I could install to start things...but it's only a little 4Gig test drive I keep around, so can't install everything I use on it.
Will watch for your next comment.
zenarcher
P.S. On an additional note, here are a few other things I'm questioning. As I said, when I set up the RAID0 array in the RAID utility in BIOS, everything looked fine. When I began installing Mandrake, everything also looked fine...and if I recall correctly, I think I saw somewhere in that installation process that Mandrake was saying that I had something like 149.5 G of hard drive space...which seems right for the pair of SATA 80Gig hard drives. Further, Mandrake went through installing all six CD's and there appeared to be no errors in the install. After the install was complete, I removed the final CD, per the Mandrake box which came up on the screen and rebooted, per the button in that box. When the computer rebooted...I saw the BIOS info come up, indicating the two RAID drives in RAID0 array...then, as Mandrake was supposed to start...that is when I got the screen half full of the number 9. I'm wondering if that meant that Mandrake could not find the boot partition, or something like that? Especially, since it seemed to install all okay. When Mandrake was setting up, I let Mandrake automatically determine the partitions and such. Not knowing if this had to be done a particular way with the RAID0 config, I was afraid to try to be "custom." I just wanted to provide this info, in case I wasn't clear in my earlier posts.
#6
Posted 04 May 2005 - 04:15 PM
I see from your lsmod output that the driver module is indeed loaded and also in use. Brings up the question why there are still 2 seperate drives available. Anyone? Hello?
Just out of interest: Do you still rememeber what drive/partition you had chosen to boot from after your first attempt to install MDK on the RAID-0 set?
For the moment I have to dig the net about further infos concenrning the VIA RAID chip. Til now all I have found is either VIA-bashing or LVM-related (the latter one is interesting though but not our current problem
I'll be back
(and I'm allowed to say that as I'm Austrian too
#7
Posted 04 May 2005 - 05:02 PM
Well, at least you were able to figure out what I have going from the lsmod. That's a step forward....remembering that it is in RAID1 array right now, as that's the only way I could install Mandrake and make it work.
I know there is/was a lot of VIA bashing, as with the Western Digital WD800JD SATA hard drives...and only that model, VIA8237 was not able to recognize the drives. In fact, WD has been replacing the drives with the 120Gig model, at no charge, since it's their problem and they can't fix it. But, mine were recognized with no problem. I can look at the serial numbers of the drives, create the array and everything, just fine. Also, from what I've read, Mandrake 10.1 is supposed to work fine with the VIA8237 for RAID.
I did not choose which drive/partition to boot from, but let Mandrake do that. As best as I can recall, it said it would boot from sda. That's the best I can remember...but I think that may be where part of the problem lies. Don't think it could find the boot partition.
Now, that I'm using a RAID1 array, I don't know why the second drive appears, but shows empty. I guess that means it isn't serving as a mirror, as I think it should in RAID1 configuration, if my understanding is correct.
I know a lot of people don't like RAID0, due to the risk of losing data in a crash. I always back up my important files in Home, so I'm not concerned about that. RAID1, to me would be find if you had real critical data files, which I do not. I'd like to be able to use the RAID0 to learn more about the speed of this configuration and increase my hard drive size, which RAID0 would be seeing both drives as a single size (i.e. the 148.5Gig that appears when installing Mandrake).
I'll watch for what you learn about this, as you understand way more than I do about this RAID. The help is appreciated!
And, maybe you can run for political office here, with that "I'll be back" line. It seems to have worked once!:)
#8
Posted 04 May 2005 - 11:29 PM
Start over, and don't use the onboard RAID. Use Linux software RAID. Cheap onboard RAID like that is not actually run on a dedicated hardware controller, it just steals CPU cycles like software RAID would, so it has no real performance benefits and tends to introduce compatibility headaches. Wipe the RAID configuration out, re-install MDK, and use the RAID configuration available in the installer to set up Linux software RAID. Good luck.
I am guessing that I would have to delete the RAID1 array I set up in the RAID BIOS utility, then at reboot, ignore the attempt to have me set up a RAID array there...Start a Mandrake install...and I guess Mandrake will give me some options for setting up a RAID array.....I wonder if I would let Mandrake set the partitions and such the way it wants, or if I would have to manually select? Any ideas appreciated!
zenarcher
#10
Posted 05 May 2005 - 12:52 PM
Your explanation is actually clear and I understand what you are saying. I'm really glad you could confirm what was said on the Mandrake forum, as well.
Now, I understand much more. I can merely go into the BIOS utility and delete the RAID array I have now. Actually, I have a small IDE drive with Mandrake installed, so if I really mess up, I can hook it up and ask for help...or risk using my wife's computer.:)
I was feeling confident about all this, until I went to the website you suggested. Then, I felt dumb again. Looking at RAID0 there, it talks about setting up the "/etc/raidtab" file, then running "mkraid /dev/mdo" to initialize. These instructions, along with their talking about downloading RAID utilities, loses me again, I guess. Is this all something I have to do, or will Mandrake take care of this? I see they are primarily talking about the kernel 2.4, which of course is not current with Mandrake 10.1. I don't understand if they are talking about editing files, creating files, or what..let alone downloading something. If you could translate their information, as well as you explained software/hardware RAID, I think I could manage!
Have a good day off!
zenarcher
#11
Posted 07 May 2005 - 01:11 AM
Thanks,
zenarcher
#12
Posted 07 May 2005 - 09:16 AM
Ad MDADM: This package is the "frontend" for the linux software-RAID driver "md". The latter one is part of the kernel ever since kernel version 2.6.x so you should be able to use MDADM on your Mandrake box and configure some sweet software-RAID clusters with it.
Here's a nice page on mdadm, its invocation from commandline and its options ...
Link:
MDADM explained in easy terms and depth
I think the best news is that this tool seems to have replaced the "raidtools" and setting up raid-drives is now supposed to be a whole lot easier, using mdadm instead.
If you take a look at the above site you will notice that you can easily test the created RAID arrays as mdadm lets yu start and stop the arrays from the shell too. In your case a procedure as follows is required ...
Note: Before we go any further ... it would strongly advisable to have some sort of "Live-CD" at hand that would allow you to boot your machine from in case something goes wrong. With a live CD you could still edit the various config files and reset your Mandrake to a usable state.
1. Resetting disk-config in the VIA-controller
Even though you already have setup your box nicely and have Mandrake up and running, I'd suggest you start from scratch again, beginning with the deletion of the raid array in your controller BIOS.
TIP: You can, of course, try to boot the machine after you have deleted the RAID-setup in your VIA-controller proggie. As it doesn't work properly anyway, chances are good that Mandrake is still there and alive after this step which would save you at least the time of re-installing the OS again.
2. Partition your drives
If the system still boots, you will have to re-partition your drives so that you can play around with software RAID a bit. If the system won't boot ... well, in that case you'll have to start all over again and do the partitioning from within the Mandrake installer.
2.1 Partition layout
In all cases I'd recommend a "failsafe"-partitioning. That means to start out with a pretty basic disk-setup that Mandrake can surely use. You can launch and tweak software RAID later on. Using whatever partitioning tool is available create something like that (assuming your both SATA drives are "sda" and "sdb") ...
Part/Disk 1: NR SIZE TYPE.......DEVICE..... FILESYS. MOUNT POINT 01 1 GB primary .. /dev/sda0 . Swap ... swap 02 9 GB primary .. /dev/sda1 . Ext3 ... / 03 70GB primary .. /dev/sda2 . Ext3 ... none (for now) Part/Disk 2: NR SIZE TYPE.......DEVICE..... FILESYS. MOUNT POINT 01 1 GB primary .. /dev/sdb0 . Swap ... none (for now) 02 9 GB primary .. /dev/sdb1 . Ext3 ... none (for now) 03 70GB primary .. /dev/sdb2 . Ext3 ... none (for now)
Note: we will not use /dev/sdb1 for a RAID volume. It's gonna be a backup-storage space for the upcoming procedures.
3. Installing the OS
After you have created the partition structures as laid out above, install Madrake onto the small 9GB partition, named "sda1". Also, keep in mind to install the boot-loader into the MBR of a disk and not at the start of any partition (the installer should use the MBR anyway).
After this step you have the OS with all the fancy folders and files installed on "sda1", and the system should boot easily as no RAID is involved yet.
4. Creating the RAID volume
Boot into your Mandrake system and create some software-RAID volumes, using the mdadm utility. In fact you only have to create one volume ...
RAID volume to create NR USING PARTITIONS......SIZE..RAID TYPE..MOUNT POINT 01 /dev/sda2 + /dev/sdb2 140GB RAID-0 ... none (for now)
The command to issue to create the RAID device would be ...
# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda2 /dev/sdb2
If there are no errors reported you can continue to step 4.1
4.1 Storing RAID info in mdadm.conf
As pointed out on the above mentioned page you should utilize a configuration file named "mdadm.conf" which is located either in "/etc" or "/etc/mdadm". You will have to check where it actually is after you have installed the MDADM-package. In case there is none, check if there's at least a folder called "mdadm" under "/etc". If so, create the file there (you can make symbolic link to that file under /etc later).
In the next step, open a suitable text-editor (kate or whatever floats your boat) and add the following text ..
DEVICE /dev/sda2 /dev/sdb2
This starts a "RAID device description" for mdadm and all you need is to add the specs for the drive-array. This is accomplished by opening a console and issuing the command ...
# mdadm --detail --scan
Copy the line beginning with "ARRAY ..." and add it as second line in the text-file. After that, save the file under "/etc/mdadm/mdadm.conf". Just to be on the safe side, create a sym-link to this conf-file unter "/etc" by running the command ...
# ln -s /etc/mdadm/mdadm.conf /etc/mdadm.conf
4.2 Starting the RAID device
At this point you have created a RAID-device and stored info about it in a config file. All you need to do now, is to start the array with the following command ...
# mdadm -As /dev/md0
5. Integrating the RAID device into your system
If all goes well up to here, you can begin to make your RAID-volume availbale at boot time. Unfortunately I'm not absolutely sure as to what is necessary for this. It could be that a simple entry to the "/etc/fstab" file is sufficient (and you need to add an entry there anway). And it could also be that you need to add startup scripts in the "/etc/rc.d" or "/etc/init.d" directories.
5.1 Mounting the RAID-device
For the time being let's start out with creating the mountpoint and the entry for "/etc/fstab". Open the file and add this line ...
/dev/md0 /raid ext3 defaults 0 0
While editing the fstab-file, add another entry for the backup partition which will be used later ...
/dev/sdb1 /save ext3 defaults 0 0
... and save it. In the next step create the folders to mount the raid volume and the backup-volume to. Open the console again and launch the commands ...
# mkdir /raid /save
At this point you should be able to "mount" your backup-partition and your RAID array with the commands "mount /dev/sdb1" and "mount /dev/md0". If you get errors about the drive not being formatted properly, it could be necessary to re-format the device. Use whatever tool Mandrake offers for that task or issue the command "mkfs.ext3 /dev/md0" in the console and re-mount the array with the above mentioned "mount"-command.
5.2 Testing the RAID-device
Now is the time to start the first tests with the new RAID-device. As your first go, copy somthing over to the RAID volume and see if that works out ok ...
# cp -R /usr /raid
This will make a copy of /usr on the RAID array. After the files are copied, do something very "Microsoft-ish": reboot your box to check if the RAID is available already when the system boots (due to the entry in /etc/fstab).
If you can access all the files and folders under /raid/usr properly, you can begin to copy over all the folders from your root-drive to the RAID volume.
If all folders are copied, you can begin to populate the RAID-volume with the files 'n folders from the root partition. Do this folder-by-folder and create a symlink to the new location after each folder has successfully been saved and moved.
IMPORTANT: Do not copy or move folders that represent special filesystems (e.g. "/proc", "/dev", "/initrd" or "/mnt").
It's perfectly ok if you stick to the following folders:
/bin, /etc, /home, /lib, /opt, /root, /sbin, /tmp, /usr/ and /var
These represent all performance-critical sections of the OS anyway that would benefit from being placed on a fast RAID-0 array.
As an example, the command sequence for the folder /usr would look like ...
# cp -R /usr /save # mv /usr /raid # ln -s /raid/usr /usr
What this procedure does is in brief words: The "cp"-line copies the /usr-folder to your backup partition "sdb2" (remember the entry in fstab). The "mv"-cmd moves the /usr-folder to the RAID volumen, thus "making space" for the sym-link, which is then created with the "ln- s"-command. Simple as that.
After all the copying you should have a system that still boots from an unproblematic SATA drive, but all the system and user files are stored on the fast RAID-0 volume.
6. Bad things that might happen
Possible problems in the above procedure might arise when the system doesn't recognize and start the RAID-volume at boot-time. In such a case the aforementioned addition of a RAID-start-script to an "/etc/init.d/rcX.d"-folder or the file /etc/inittab" might be necessary.
I don't want to discourage you, but in the case the RAID-volume fails to initialize at boot-time via the fstab-entry things could get a bit complex (determining WHAT rcX.d-folder is the right one to store a startup script into etc.).
So if you run into problems, take a break at that point and keep us informed. In a fortnight or so, my new workstation should arrive anyway which would give me the opportunity to investigate the Software-RAID on a practical level with a quick MDK-test installation that I could then document well with screenshots and all that.
6.1 Restoring an operational status-quo
If you stumble into problems, this solution - combined with a Live-CD - will allow you to restore your old system again in almost no time. To do so, boot the Live-CD, mount your regular root-partition (the non-RAID thingie), delete the symlinks to the folders on the RAID-volume and move the saved folders back to "/".
7. "Homework"
If you succeed wih the procedure, you can do likewise with the 2 swap partitions by combining them to a single and fast RAID-0 array. If you need to re-format, use "mkswap /dev/sdb0" and run the "mdadm"-procedure again. Don't forget to alter the entry for the swap partition in "/etc/fstab".
I hope this lengthy sermon will lead you to a usable RAID system. I truly would not want you to have to use your wife's puter. We all know what that means: desktop backgrounds, dynamically loaded every 2 minutes from the internet, showing the bubbly behinds of male models, pink or mauve window title-bars and "Shelly Allegro" at "18pt/italic" as menu font. That - especially in combination with the usual amount of fluffy toys placed on top and at least a dozen of screaming yellow "post-it" notes all around the monitor - is more than a man could possibly handle :))
Hope that helps
#13
Posted 07 May 2005 - 01:21 PM
Your explanation and instructions here are the best I've ever found, anywhere I've looked! If this works, you're going to have to put out a book on Mandrake RAID! I see that several people have the same question on the Mandrake forums and others and are met with "I don't know."
I know what I'm going to be trying here today. I'll get my wife off to work, then begin trying your instructions. I'm pretty patient, as far as doing re-installs, so if it fails, I don't mind trying a few times. I'd be thrilled to get it working. I have been printing everything out, as I know if I get this working, my wife will want the same on her system, even though she doesn't know what it is.:) Also, later this year, I plan to rebuild her system and mine (she always has to have the same identical system as mine, or she is suspicious that she has a second rate computer. In that rebuild, I'm planning to go to a new motherboard and 64 bit AMD processor. I believe the new MSI motherboard I'm looking at will support either 4 or 6 SATA drives. I'll probably move up to a full sized server case, so I have more working room, as I also want to eventually install liquid cooling. It's just my hobby.
Yes, the wife's computer is not a place to be. My wife is a cosmetologist and doesn't want explanations about how it works. If there is a problem, I just find a yellow sticky note on my monitor with detailed instructions, such as "Fix it.":) I switched her over to Linux before and she freaked! She couldn't possibly use Firefox....it HAD to be Internet Explorer! So, back to Windows XP. Then, switched her to Firefox...until she got comfortable with that. Then, over to Star Office....instead of MS Office 2003..she liked it. THEN, over to Linux, using Star Office and Firefox! That worked! NOW she understands Linux!:) She misses a couple of little MS games, so I'm patching an old computer together, with Windows XP and the couple of games, as she's pretty happy with the Linux games. That's her world of computers...games and websurfing. I don't even think I'll put that one on the network...I get tired of removing spyware and such.
Anyway, have a great day there and I will have a busy day ahead here. Thanks so much for all this info and the time you've spent helping me. I'll be back later today with the result of how this went. If I have problems, I can always go back to this configuration, until we can sort it out, or I have an old 4 Gig IDE hard drive with my basic Mandrake setup already installed. I can just hook it up and leave it lying on the desk!
Regards,
zenarcher
Email: zenarcher@cableone.net
#14
Posted 07 May 2005 - 07:41 PM
1) I have removed all the hardware RAID, which worked just fine.
2) I have removed all partitions of existing Mandrake install and started anew.
3) I partitioned Disk 1 and Disk 2, exactly to the size and descriptions shown in the 2.1 Partition layout. All went just fine.
4) I have installed Mandrake 10.1 PowerPack on the 9 GB partition of Disk 1 (sda1)
5) The bootloader installed to /dev/sda which I believe is correct, rather than to sda1 or one of the partitions.
6) I have removed install disks and rebooted the system, which came right up, however, I have no RAID installed as of yet, so am now ready to go for the RAID install.
7) Incidentally, mdadm did install a configuration file called mdadm.conf in /etc/mdadm, so I believe that is correct.
Now, here is my problem. I am a bit confused in Step 4. "Boot into your Mandrake system and create some software-RAIF volumes, using the mdadm utility. In fact, you only have to create one volume. Following that instruction, there is some information, but not sure what I'm supposed to do here. Following that, is the command ti issue to create the RAID device shown as:
# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb2
If I run that command right now, I get the following error:
You haven't given enough devices(real or missing)to create this array. Looking at the mdadam website, I think I have to specify sda and sdb, but I'm not sure.
So, if anyone can help, I need to know if I should be trying this command, or if I should be creating some software-RAID volumes first and if so, how??
Thanks,
zenarcher
#15
Posted 07 May 2005 - 11:05 PM
Here is something I just discovered, which may explain some of the previous post situation.
The device names are not the same as what was explained, when I was supposed to set them up. Here is what they are:
Disk 1
1 GB primary /dev/sda1 Swap swap
9 GB primary /dev/sda5 Ext3 /
67 GB primary /dev/sda6 Ext3 none
Disk 2
1 GB primary /dev/sdb1 Swap none
9 GB primary /dev/sdb5 Ext3 none
67 GB primary /dev/sdb6 Ext3 none
Maybe that info will help some...
I could not figure how to change them to sda0, sda1, sda2.
Thanks,
zenarcher
#16
Posted 08 May 2005 - 06:14 AM
little thing, big trouble
The partition numbering scheme in linux depends on what part-type a respective partition is. 1st Primary Partition on drive SATA-0 is called "sda0", the second one is "sda1" and so on ... so I assumed at least. With SATA all seems to be a bit different, and so the 2nd and 3rd part. can be numbered differently (didn't dig into that too much as I consider SATA a loss of an approved standard and therefore pain in the you know where
Or maybe the funky numbers come from the VIA controller, I have no idea, but the good thing is: it's no big deal, keep your HDD-setup as it is with the partitioning scheme as layed out.
Disk 1
1 GB primary /dev/sda1 Swap swap
9 GB primary /dev/sda5 Ext3 /
67 GB primary /dev/sda6 Ext3 none
Disk 2
1 GB primary /dev/sdb1 Swap none
9 GB primary /dev/sdb5 Ext3 none
67 GB primary /dev/sdb6 Ext3 none
If Mandrake thinks it's got to be sda/b5 and 6 then just let it
About MDADM error msg
Well, as said above: You will have to obey the will of the mighty operating system here. That means to the explanation in my last post:
"sda0" becomes "sdb1", "sda1" becomes "sda5" and "sda2" becomes "sda6" on your puter. Same goes for the "sdb"-partitions.
The mdadm-command to create the RAID array would therefore be:
# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda6 /dev/sdb6
According the this command that produced an error in your case ...
[code]# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb2
[code]
Error Msg: "You haven't given enough devices (real or missing) to create this array."
That message is true, you specified that the array consists of 2 devices ("--raid-devices=2") but only specified one, and even that was invalid due to MDKs SATA-partition numbering scheme.
So as I said, it's no big ting. Just use the partition numbers Mandrake has assigned instead of the ones I used in my last post. Those were meant more "logically" (to have any kind of numbering) than real-world numbers.
Keep up the good work, it looks quite good so far and
keep us informed
#17
Posted 08 May 2005 - 12:46 PM
One more question, since I'm not assuming anything, before I continue here. In your section 4, Creating a RAID volume, you say, "Boot into your Mandrake system and create some software-RAID volumes, using the mdadm utility. In fact, you only have to create one volume." My question is this were I do the # mdadm --create --verbose /dev/md0 --level+0 --raid-devices=2 /dev/sdb5 or is there something I need to do first?
I have to say, it was a good thing to do 4 complete clean installs yesterday. This is the best install I've ever had! Everything seems to be working perfectly! While I've been waiting for your reply, I have gone ahead and done all Mandrake updates, installed mdadm and tweaked a lot of my configurations. It's the best Mandrake install I've had yet. I'm getting experience at that, as well!
I would recommend, for anyone attempting this SATA RAID proecdure, that you do not run out of beer, nor should this be attempted on coffee or tea, alone! This is a beer project and running out at a crucial time could be devastating!:)
Will watch for your reply, blackpage...and again, thank you so much for the help!
Regards,
zenarcher
#18
Posted 08 May 2005 - 04:47 PM
You can create the RAID array any time. That is: create them once the OS is installed properly and boots flawlessly, which seems to be the case now. Just boot into Mandrake and combine the partitions sda6 and sdb6. It should be no prob anymore now.
have a good day
#19
Posted 09 May 2005 - 01:49 AM
Regards,
zenarcher
#20
Posted 10 May 2005 - 04:26 AM
Everything was going fine....in fact, I did create the RAID array and even had a difficult time getting rid of it when I went to remove all partitions to begin a new install.
Everything went fine until Step 5.1 At that point, I did have to use the command mkfs.ext /dev/md0 and also mkfs.ext /dev/sdb5 After doing so, I was able to run the mount command just fine. No errors. So, again, I thought I was well on my way.
I then tested the RAID device and all was well. I even did the reboot and all was fine. No problem....Mandrake came right up as it should.
Now, for the real problem area! I ran the # cp -R /usr /save then the # mv /usr /raid which went fine...and finally the #ln -s /raid/usr /usr There were no errors during this process.
I then attempted to run the same command for /bin....running the above commands but replacing /usr with /bin When I did, I got the error "No such file or directory found when I tried to run the mv command. I then tried to run the same commands on the /home with the same error statement.
I then closed the terminal and tried to re-open the terminal, which I could not do. Just got a white screen and no prompt.
I rebooted the computer...and when Mandrake attempted to start, I got a Logon command. I attempted to logon, but would not accept the logon.
I am thinking this probably has something to do with the script I did add the script I was told to add in /etc/fstab but blackpage had a feeling a script might be needed in /etc/rd.d or /etc/init.d and I am thinking that might be the problem.
As I say, the RAID array was created just fine. No problem was apparent there.
Anyway, I had to remove all partitions and reinstall Mandrake Powerpack 10.1 I am now back running as normal.
I won't worry about it, as I just ordered Mandriva 2005 PowerPack, the 6 disk set, which should be here the end of this week. I will clear all of this install out and install the new Mandriva 2005, which will give blackpage a bit of time to maybe think of a solution. Also, I have a couple of Windows computers to build for customers, so I'll stay out of trouble with Linux!
Anyway, blackpage, I wanted to bring you up to date. I'm getting real fast at installing Mandrake Linux...and even pretty good at going through your instructions for creating the RAID array!:) Now, if we can just resolve the issue of what happened right here at the end, I think it may work. I do think we're getting close! Maybe I'm just an optimist!
Regards,
zenarcher

Help










