LinuxMCE Forums

General => Installation issues => Topic started by: cirion on January 29, 2009, 01:56:57 am

Title: Software RAID in 08.10 not detected.
Post by: cirion on January 29, 2009, 01:56:57 am
Anyone know what to do to get the Software Raid from 07.10 detected in 08.10 alpha1?

cat /proc/mdstat shows my Raid as active, and all drives are used.
No Raid is visible in the Webadmin and LMCE does not find the media on it.
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 03, 2009, 12:27:09 pm
... just got mine working... all you have to do is ssh into your 0810 install, connect your old raid array drives, then run
Code: [Select]
sudo /usr/pluto/bin/checkforRaids.sh

I will be testing this more later, and I can forsee some problems (I.e. different device number for the new array not matching the symlinks). But this will at least get it added back into the database and we can take it from there
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 03, 2009, 12:51:19 pm
I'll try, I'm currently installing 8.10 Alpha2...
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 03, 2009, 01:22:13 pm
Well, Aplha 2 did not find my raid either...

But you are right, running your command adds the Raid to the database and it now shows up in the Webadmin.
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 03, 2009, 07:03:26 pm
yes, thats about where I am at this moment.. but its a start
I'm sure that there is another script or two that we have to run to set up the shares etc... I'll be working
 on it



Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 03, 2009, 09:08:48 pm
just FYI... After sitting for almost an entire day, my videos populated my datagrid. Just give that part some time. Now to see why the symlinks were not generated
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 03, 2009, 09:53:49 pm
more info.... upon looking closer, symlinks were created!  The data is located under /home/public/data/other/software_Raid_5[32]....

Not exactly what I was hoping for, but at least its there and it works!
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 04, 2009, 12:51:44 am
went to the advanced settings of the sofware raid. It was set as Public... Changed this to use LinuxMCE's Directory Structure. I'm going to give it some time, but I think this will put everything right back where it should go.

One note on this though, make sure your user primary keys are the same as they were so that videos end up having the correct permissions. For example, I had 6 users in my house in 0710, but because I had made changes back then, the primary keys were 6,7,8,9,10 and 11. Those same users now under 0810 are 1,2,3,4,5 and 6 respectively. Therefore, as root I changed the directory names in that raid array from user_6 to user_1, user_7 to user_2 and so fourth before I checked the option to use LMCEs directory structure. When it is done updating the media the videos should fall right back in place for each user. I would espect that this part will be finished by the time I get off work and go home in the morning.
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 04, 2009, 06:31:32 am
Cirion - let me know if your Raid media shows up like mine did.

One more thing that I did (which I didn't think had anything to do with it, but may have) was run /usr/pluto/bin/UpdateMediaDaemon.sh on the core manually. You can see if its running or not by running /usr/pluto/bin/UpdateMediaDaemonControl -status (I didn't do this step, it would be interesting to see if it is running on your system or not) - try to see if its running or not before you start UpdateMediaDaemon manually
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 06:39:28 am
It's running, but it's not finding my media on the Raid.

Code: [Select]
linuxmce@dcerouter:~$ /usr/pluto/bin/UpdateMediaDaemonControl.sh -status
Wed, 04 Feb 2009 06:38:10 +0100 UpdateMedia is running (PID - 8391)
linuxmce@dcerouter:~$
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 04, 2009, 07:46:21 am
Update: everything appears where it should now for me, symlinks and all. I let it sit for 8 more hours and nothing changed. When I rebooted, thats when it happened.


Cirion - try doing a full reboot then check the web admin 15 minutes later
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 08:22:42 am
I will... I have not run your command yet to test...
And, yes, I have set the Pluto structure setting :)
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 08:36:37 am
After the reboot, the symlinks where created...
So I guess if I leave it for now and go to work, it's done when I return.
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 08:41:01 am
The checkforRaids.sh command was probably run on every boot by the Launch manager or something. Where is that now?

In 7.10 if I had a problem with the raid media, I just shutdown disconnected the raid and then deleted it from the webadmin. When I plugged it in again LMCE found it, and I set it to use the pluto structure in the webadmin and a new reboot. After a while all media was back.
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 04, 2009, 08:45:30 am
Launch_manager is no more. It was discussed that having something specifically written in QT wasn't good as it locked LMCE to Kubuntu (there was discussion on getting LMCE to run on Ubuntu) so now there are some commandline scripts that will take the place of launch_manager. Unfortunately right now they are incomplete - thats why checkforRaids.sh wasn't run automatically, and thats why UpdateMedia doesn't run on a schedule like it should.

Anyways, my raid is back online complete with symlinks and all private media in the right place, yours should be also now before too long
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 10:50:54 am
It has still not detected my media, and I can see the symlink in media sync, but it's not been detected as a folder yet...
I have not pressed resync or run UpdateMediaDaemon.sh yet, just to se if it kicks in by itself.
I have tried a new restart jus to see.
UpdateMedia is still running...
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 04, 2009, 07:12:52 pm
i would reboot at least one more time if I were you - every time I rebooted it seemed like it got a step closer to completing
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 04, 2009, 10:56:31 pm
Still nothing... I have rebooted at least 5 times, and the last time it has had 4 hours of nothing... I don't think it will happen automagically...

I'll try running
Code: [Select]
/usr/pluto/bin/UpdateMediaDaemon.sh now...
Title: Re: Software RAID in 08.10 not detected.
Post by: cirion on February 05, 2009, 09:20:18 am
Still nothing...
So I did a umount and a e2fsck on the raid, and after a reboot the media started showing up :)
Title: Re: Software RAID in 08.10 not detected.
Post by: jondecker76 on February 05, 2009, 09:38:10 am
I believe after I ran UpdateMediaDaemon I rebooted before my media showed up as well. Now to figure out what needs to be running to have to reboot for the media to appear so we can fix it for 0810