LinuxMCE Forums
May 18, 2013, 09:14:01 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1] 2
  Print  
Author Topic: Core drive detected, media drives going offline? I think I have it.  (Read 1877 times)
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« on: September 23, 2012, 10: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.
Logged

I never quit... I just ping out.
maverick0815
Guru
****
Posts: 453


View Profile
« Reply #1 on: September 23, 2012, 02:34:47 pm »

I followed your instructions to the letter...but my drives still go offline :-(
Logged
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« Reply #2 on: September 23, 2012, 03:01:37 pm »

That is unfortunate.

I will have to look at the other radars now. Thank you for testing.
Logged

I never quit... I just ping out.
maverick0815
Guru
****
Posts: 453


View Profile
« Reply #3 on: September 23, 2012, 03:19:41 pm »

if you need anything, logs or so...just let me know
Logged
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« Reply #4 on: September 24, 2012, 09:19:27 pm »

Ok... pretty confident I get it now. On core as root (sudo -i)

Code:
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} {} \;
« Last Edit: September 24, 2012, 09:38:58 pm by l3mce » Logged

I never quit... I just ping out.
Armor Gnome
Guru
****
Posts: 281


View Profile
« Reply #5 on: September 24, 2012, 09: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...
Logged

I made a wiki!  Click here to check out my system.
maverick0815
Guru
****
Posts: 453


View Profile
« Reply #6 on: September 25, 2012, 09: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.
Logged
davegravy
Guru
****
Posts: 451


View Profile
« Reply #7 on: September 25, 2012, 03:01:22 pm »

Sweet. I ran this too and will let you know how it goes on my next MD reboot.
Logged
Armor Gnome
Guru
****
Posts: 281


View Profile
« Reply #8 on: September 25, 2012, 09: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?
Logged

I made a wiki!  Click here to check out my system.
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« Reply #9 on: September 25, 2012, 11:05:19 pm »

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
Logged

I never quit... I just ping out.
davegravy
Guru
****
Posts: 451


View Profile
« Reply #10 on: September 26, 2012, 05:04:27 am »

Seems to have fixed it here. I've done multiple MD reboots and no disappearing media.
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #11 on: September 26, 2012, 11:47:30 pm »

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.

 Huh
Barney
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2620


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #12 on: September 27, 2012, 12:39:51 pm »

barney,

the MD needs to be taken care of as well!
Logged

b4rney
Guru
****
Posts: 454


View Profile
« Reply #13 on: September 27, 2012, 11:58:26 pm »

Thanks posde and l3mce.

Applied to mds as well and it works perfectly.
Barney
Logged
Armor Gnome
Guru
****
Posts: 281


View Profile
« Reply #14 on: September 28, 2012, 01: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...
Logged

I made a wiki!  Click here to check out my system.
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!