LinuxMCE Forums

General => Installation issues => Topic started by: l3mce on September 23, 2012, 11:29:32 am

Title: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 23, 2012, 11:29:32 am
Now, my drives never went offline, but I am pretty sure I know why some were.

I have rewritten StorageDevices_Radar.sh. It works pretty different now. Please download this on your core, and place in the /usr/pluto/bin directory, then cp /usr/pluto/bin/StorageDevices_Radar.sh /usr/pluto/diskless/*/usr/pluto/bin

Get your drives online and reboot. Please report your results.
wget http://svn.linuxmce.org/trac.cgi/export/26498/people/l3mce/StorageDevices_Radar.sh
make sure you chmod +x StorageDevices_Radar.sh  or cat it into your existing file.

Look forward to feedback while I work on hdmi audio.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: maverick0815 on September 23, 2012, 03:34:47 pm
I followed your instructions to the letter...but my drives still go offline :-(
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 23, 2012, 04:01:37 pm
That is unfortunate.

I will have to look at the other radars now. Thank you for testing.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: maverick0815 on September 23, 2012, 04:19:41 pm
if you need anything, logs or so...just let me know
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 24, 2012, 10:19:27 pm
Ok... pretty confident I get it now. On core as root (sudo -i)

Code: [Select]
rm /usr/pluto/diskless/*/etc/cron.d/StorageDevicesFileServerRadar
wget http://svn.linuxmce.org/trac.cgi/export/26504/branches/LinuxMCE-1004/src/PlutoStorageDevices/StorageDevices_StatusRadar.sh
wget http://svn.linuxmce.org/trac.cgi/export/26498/people/l3mce/StorageDevices_Radar.sh
chmod +x {StorageDevices_Radar.sh,StorageDevices_StatusRadar.sh}
find /usr/pluto/diskless/*/usr/pluto/bin -type d -exec cp {StorageDevices_Radar.sh,StorageDevices_StatusRadar.sh} {} \;
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Armor Gnome on September 24, 2012, 10:58:39 pm
Will test tonight.

I have been getting the media offline problem in a unsupported setup. ~ Storage disk on an MD.

The last script from your first post didn't resolve it.  I will let you know how this one goes.  Sometime this week I will be gathering drives to populate a NAS and hoping that this issue doesn't effect media shares that are always available...
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: maverick0815 on September 25, 2012, 10:30:29 am
thumbs up! Everything seems to be in order now. I believe even Mythtv is a little less bitchy, but that could be only my perception.
Good job! Thank you very much.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: davegravy on September 25, 2012, 04:01:22 pm
Sweet. I ran this too and will let you know how it goes on my next MD reboot.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Armor Gnome on September 25, 2012, 10:58:41 pm
No luck with the latest, to be honest its worse now L3top.  I know you hate to hear that but it is for me anyways.

The "online" box is coming up as checked but my media is still not showing.  Before when my media didn't display I could check to make it online and reload to fix it.  Now that a missing check is not the problem I can not fix it.  I will continue to test anything you come up with, though in the meantime is there a way to revert to a state before running your new scirpt?  I didn't do a clone as I normally do before testing and was hoping a sqlCVS update might set me straight temporarily?
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 26, 2012, 12:05:19 am
ummm...


what?


Make sure you replace your core versions of these files in /usr/pluto/bin and make sure they have chmod +x
http://svn.linuxmce.org/trac.cgi/export/26509/branches/LinuxMCE-1004/src/PlutoStorageDevices/StorageDevices_Radar.sh
http://svn.linuxmce.org/trac.cgi/export/26509/branches/LinuxMCE-1004/src/PlutoStorageDevices/StorageDevices_StatusRadar.sh
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: davegravy on September 26, 2012, 06:04:27 am
Seems to have fixed it here. I've done multiple MD reboots and no disappearing media.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: b4rney on September 27, 2012, 12:47:30 am
Been having this problem too. Whenever an md boots up the drive goes offline and has to be manually turned on then reload router.

The new scripts don't make any difference to me. I made a backup of the originals, copied only to the core. Rebooted (core and mds) and have the exact same problem.

 ???
Barney
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Marie.O on September 27, 2012, 01:39:51 pm
barney,

the MD needs to be taken care of as well!
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: b4rney on September 28, 2012, 12:58:26 am
Thanks posde and l3mce.

Applied to mds as well and it works perfectly.
Barney
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Armor Gnome on September 28, 2012, 02:45:20 am
Ouch,

This is looking like it may have broken more than the detection of media.  Since making changes to the pluto boot scripts I haven't had taken any time to turn on the display in the home theater room.  So tonight when I sat down to watch a movie I discovered I can not PXE boot any longer at all.  The images all look good (web-admin>media directors, /usr/pluto/diskless/47, etc all seem normal.  My MD in the home theater even starts to connect and announces properly with the correct IP of 192.168.80.2.  All other devices in my network under LMCE that do not rely on net booting work flawlessly.

Going to see if I can pull the orginal bootscripts somehow and not be forced to fall back to a clone restore point where I would loose a lot of recent additions...
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 28, 2012, 03:25:03 am
Um... no.

The problems you are having are unrelated to these two file changes.

For one... StorageDevices_Radar.sh is ONLY looking at locally available drives with a specific label type.
The other changes were to remove the cron job on mds that looked for file servers, and to only run NFS and SAMBA queries if PK_Device = 1, meaning they only run on the core.

pxe boot would have NOTHING to do with this.
As to your shares not being used, though things are listed online... I mean.. Do this... edit StorageDevices_StatusRadar.sh... hash out the backgrounding bit at the beginning, and sudo -i, then bash -x /usr/pluto/bin/StorageDevices_StatusRadar.sh | tee > /var/log/pluto/status_radar.log

You will eventually have to stop it with ctrl c, but let it get a couple of loops in. We can fix whatever is wrong most likely... but... I simply cannot imagine it has to do with these simple changes.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Armor Gnome on September 28, 2012, 06:55:00 am
Just a few minutes after posting when I got into the core to resolve some problems I realized exactly what you responded with L3mce.  My change to boot-scripts was unrelated to the topic covered by this thread.  I had a few issues going on all at the same time and posted issues unrelated to storage device detection in a thread about storage device detection.

I have the system working again.  Using your latest radar scripts, the drive containing 1TB of my videos is being detected almost immediately upon waking that MD.  If I am inpatient and try to pull the video list too soon after bootup in the home theater room it will show empty.  If I then get up and go make popcorn, it will populate by the time I return.  So even though this configuration is not supported and does not fit the true diskless MD definition:

StorageDevicesRadar.sh changes have resolved my media going offline issue.  All devices in my home capable of playing audio and video have access to audio and video which resides on a HDD connected to a MD that boots from the core.  Thank you for that improvement!



-I hopefully can catch you in IRC some night soon, there are certain drives in my system that I would like to purposefully like radars to overlook.  The best example is a 8 disk raid array on the core which is intended for backups and other files that have special importance for me.  Another ridiculous example is a 7 disk networked cd-tower we are putting on the network to compliment our theme of oddities few people have seen function before regardless of their usefullness or efficiency.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: l3mce on September 28, 2012, 02:01:01 pm
Well... that radar is particularly difficult... at least for me. It is intended for the universe, to find ANY such drives (re RAID) attached to the system and ask you if you want to add it. All you have to do is say "no never ask again" for that. The DVD drives... that doesn't even query you... just adds them. I cannot imagine how we would break the optical radar to find your local dvds attached to the machines, and ignore that set of them. As annoying as it may be to you to have them listed in the device tree... I am afraid you will just have to set each device to "disabled". Sorry.
Title: Re: Core drive detected, media drives going offline? I think I have it.
Post by: Armor Gnome on September 28, 2012, 09:10:59 pm
Think I may have found a way.  If I delete the raid array and let LMCE rediscover it, I can then say "Internal HDD>Use only when told to."

If it is a big problem then I have a few possible options such as: Pop the hdd caddies for those 8 drives, Perm. ignore using unknown devices as a cage until I need to write to it, find a file format that LMCE can not understand but my NAS can and set up the array as a share?