LinuxMCE Forums
May 22, 2013, 07:25:31 am 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]
  Print  
Author Topic: Appearing/Disappearing Hard Drives  (Read 428 times)
gurumaia
Regular Poster
**
Posts: 33


View Profile
« on: January 17, 2012, 04:25:22 pm »

I think I finally got enough information on this to open up a thread and see if I can get some help. Here's a description of the issue I'm encountering:
On any MD, when I go Media > Video, only 1 out of my 2 hard drives appear at any time. And they switch back and forth.

Let's go a bit more in-depth about my setup:
I'm running 0810 final.
I have 1 core and 1 MD.
All HDDs are plugged in to the core internally.
There are 2 hard drives configured on the system (apart from the OS hdd).
sdb1 - 2TB SATA Hard Drive known as device #46. This device's name is "2000"
sdc1 - 1.5TB SATA Hard Drive known as device #45. This device's name is "1500"

The system switches between them every 2 minutes.
I've tracked this down to the UpdateMedia execution. Every time UpdateMedia is run, they switch places (i.e. 1500 disappears and 2000 appears).
Here is an interesting excerpt of the UpdateMedia execution log during which 2000 appears and 1500 disappears. http://pastebin.com/b1feFdQQ
In it you can see that it tries to re-use PK_File 7875 for 2000. I can confirm that, prior to this execution, this same record on the File table of the pluto_media db referred to the 1500 symlink and that it got updated to refer to 2000, thus leaving 1500 out of the db.

Without knowing how UpdateMedia works (or perhaps some other lmce component I'm not aware of), I feel like there's not much else I can do to find out what's going on here. It seems that it gets the information (PK_File 7875) from some sort of id3 file but I don't know how that works.
If someone could enlighten me on how this stuff works, perhaps I can find out what's going on.

Thanks in advance!
ps. I know I talked to some people on the IRC channel about this before but time is really tight right now so I figure maybe the forum is a more appropriate tool this time.
Logged
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #1 on: January 18, 2012, 10:37:10 am »

Hey,

I noticed a bit the same when I added a 1TB to my system.
My monitoring sees the disk mostly as 'down', and from time to time it was there.

For the moment I removed it again since i didn't trust the situation...
So I certainly will follow up this topic for the results...  Wink

Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
gurumaia
Regular Poster
**
Posts: 33


View Profile
« Reply #2 on: January 18, 2012, 03:50:13 pm »

Hey,

I noticed a bit the same when I added a 1TB to my system.
My monitoring sees the disk mostly as 'down', and from time to time it was there.

For the moment I removed it again since i didn't trust the situation...
So I certainly will follow up this topic for the results...  Wink

Hey Brononi, it seems to me we're having different problems. I guess I forgot to add an extremely important piece of information in my original post. The drives themselves are always mounted and available for direct access (i.e. via shell).
The problem lies in lmce's database not recognizing them even though they're working normally.
Another thing I forgot to mention is that the sdc1 drive is 100% empty. All it has is the lmce directory structure.
sdb1 on the other hand has all kinds of stuff in all kinds of naming schemes. But the files themselves all (at least the 100 or so that I manually checked) get recognized just fine. It's the symbolic link created at /home/public/data/videos that gets this odd behavior, thus making it impossible to navigate the system by filename through the orbiter.

Now, I know navigating by filename is not optimal but my media is not tagged as of yet and from what I can gather, for TV Shows it seems to be the only way to go. Since my TV Show recordings are nicely organized in their respective folder, navigating by filename is a breeze for me.

About your issue, did you test that drive on another system? Is it working properly?
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: January 18, 2012, 07:55:24 pm »

Please understand fellas, the hard drives are mounted AS NEEDED by autofs. The UpdateMedia system understands this, and it continually scans the connected filesystems, so you'll see the disks periodically mount and unmount.

-Thom
Logged
gurumaia
Regular Poster
**
Posts: 33


View Profile
« Reply #4 on: January 18, 2012, 08:20:59 pm »

Please understand fellas, the hard drives are mounted AS NEEDED by autofs. The UpdateMedia system understands this, and it continually scans the connected filesystems, so you'll see the disks periodically mount and unmount.

-Thom

Yes, this was explained to me by l3top on IRC the other day. That's not the issue here as there is no problem accessing the drives via shell. What is going on is that the symbolic links that point to the correct directory in the drive do not appear on the orbiter and are in fact missing from the database. Every time UpdateMedia runs, it updates PK_File 7875 from the File table to point to either one of the two hdds.
Logged
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #5 on: January 19, 2012, 07:14:50 am »

Please understand fellas, the hard drives are mounted AS NEEDED by autofs. The UpdateMedia system understands this, and it continually scans the connected filesystems, so you'll see the disks periodically mount and unmount.
-Thom

Explains a lot. No, wait. Explains everything...

At least for my situation...
Thanks!


Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #6 on: January 19, 2012, 07:33:23 am »

and no, do not attempt to statically mount your disks, or circumvent this system. No. Just. No. Don't. You will break everything.

-Thom
Logged
gurumaia
Regular Poster
**
Posts: 33


View Profile
« Reply #7 on: February 03, 2012, 04:53:27 pm »

Just to let everybody know, installing 1004 did nothing to resolve the issue. After adding the drives to lmce, they continued with the same behavior of appearing/disappearing from all orbiters.
Then I figured maybe if I formatted them as ext3, it would make a difference. I proceeded to format 2 out of the 3 drives and that seems to have resolved my issue. I don't know exactly why them being in xfs gave me troubles, but this is what solved it for me.
Thanks for the help.
Logged
Pages: [1]
  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!