continuing problems with software raid
As i described in another thread, i work with a software stripeset on a dual boot system (debian based / windows). Still no real solution to the problem from the other thread. Instead i just entered my manual workaround in rc.local. Worked - so far.
Now there is a new problem. Yesterday, i did a normal linux shutdown and today a normal linux boot - no windows boot in between. And suddenly the array is inaccessible from linux. Works normal with windows, though.
If anyone here can tell me how to start to tackle this problem, please reply.
edit: added --examine --scan info
I suggest you should spend sometime read the following link:
You also read the mdadm manpage (man mdadm).
With this link, are you suggesting i should better create the array from scratch instead of trying to fix what used to work until today? I have no problem with moving data, doing it new, moving data (besides the time spent, if i can be sure it works as expected afterwards!), because it's really the first software array i made and it is possible that i did something wrong. But in that case i don't understand why the array worked in the first place.
The whole story why i use it in this particular way:
Initially i wanted to have a two-disk SATA RAID0 because i was low on disk space and wanted a faster working space at the same time. It has to work in a linux/windows dual boot environment. I expected this to be no problem because i know how to use ext2 in windows (ext2 IFS for windows) and the SATA RAID is already on my mainboard. Later i learned the hard way that the mainboard really has BIOS software raid and that the relevant software (dmraid) did not recognise it. So i found a website (similar to the one you gave me) on how to create software RAID. So i did and to my surprise the array also worked with the BIOS and therefore is accessible from windows. Then i switched to a different distribution (from UbuntuStudio to 64Studio i think). And now the array is being auto-assembled as "md0" although i have auto off and the name should be "md_d0".
I needed a long frustrating time to get it to work (two times). Now the question is, will it work in windows if i re-do it exactly as described in the various how-tos?
...i should have said:
Please be more specific with your answers. Otherwise you're not being helpful. I could RTFM again and again and it wouldn't help because the specific problem is not adressed there. And besides that, most manpages are hardly to be called manuals at all (as is the case with mdadm, where hundreds of websites have to be written to explain the use of it).
I'm now out to re-do the array. Will post the outcome.
Well, when I first read your post, I thought you did something completely wrong, since I never use md in such manner. However, after I spend a bit of time reading the man page, I realised, what you did is something I never done before, and since I never done such setup before, I should keep my mouth shut and let other more experience users to give suggestions (I am hoping to read others input so I can learn something new). Surprisingly, none came forward...
Anyway, perhaps a little background on how I usually setup my software raid. What I will be talking here will be just a simple raid1 configuration.
1) Use fdisk or cfdisk to partition the disk into the structure that I like. For example, 4 partitions: sda1 sda2 <sda5 sda6 sda7> (where sda2 is an extended partition and sda5 to sda7 is logical partition. sda1 is primary partition).
2) Do the same for sdb with same partition size. So, now sda1+sdb1 will be md0 and mount as /. sda5+sdb5 is /var/ will be md1. sda6+sdb6 is /home/ will be md2. The last group will be used for swap, md3 (sda7+sdb7).
From here, I run mdadm to create the md devices and make sure my fstab is correctly setup (usually is done by the installer, there should not be much for me to work on it).
For your case, you are creating a partitionable software array, as I quote man page:
However, computer do not lie, if it said as not found, it means, it really not found. Have you check the /dev/ directory and verify md devices are there? Could it be, for your setup, all your devices are in /dev/md/ folder?
Anyway, good luck, hope someone else able to provide a better suggestion than me.
Just curious, where did you learn about partitionable array? Any reason why you decided to go for such setup?
|All times are GMT -5. The time now is 08:29 AM.|