Author Topic: How is media stored? Multiple hard drives question  (Read 5911 times)

Crash

  • Regular Poster
  • **
  • Posts: 32
    • View Profile
How is media stored? Multiple hard drives question
« on: June 16, 2008, 05:39:48 pm »
I'm in the process of setting up a hybrid system that has multiple hard drives.  As much as I'd like to have them raided, I don't want to spend the extra cash for a raid controller (unless someone has an inexpensive suggestion).  I have a 160GB hard drive for the OS, and 2 identical Seagate 7200 250GB drives for media.  Without these drives being raided, if I was just to just throw some media on them, would LMCE be able to pick it up, etc, etc? 

Basically I'm wondering how LMCE handles media files on hard drives, especially in the instance of having multiple drives.

Thanks,

crash

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: How is media stored? Multiple hard drives question
« Reply #1 on: June 16, 2008, 05:54:14 pm »
You can use software raid in lmce.



Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #2 on: June 16, 2008, 06:43:25 pm »
I have a 160GB hard drive for the OS, and 2 identical Seagate 7200 250GB drives for media.  Without these drives being raided, if I was just to just throw some media on them, would LMCE be able to pick it up, etc, etc? 

 Sure. Shut the server down, install the two new drives, and assuming you have them set up with a compatible file system, your core will ask you if you want to use the drives after bootup.

 You can say Yes, or Yes -> Use LinuxMCE File System

 It's easier to let LinuxMCE utilize the drives with the LinuxMCE File system....

 Now when you browse your media by Filename, you'll see two extra boxes, one for each drive.

 I think, though, if your users are copying files to the core over Samba Shares, they still have to pay attention to which drive they are using. Which means, I don't believe they can just load up their main share and have LinuxMCE spread the contents around all 3 drives you'll have.

 The good news is, if you sort your media by Title and use the filters, from that point of view, it makes no difference to the GUI what drive your files are stored on.

 The wiki has a detailed page of info relating to how media files are organized:

http://wiki.linuxmce.org/index.php/How_are_media_files_organized%3F

Crash

  • Regular Poster
  • **
  • Posts: 32
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #3 on: June 16, 2008, 06:55:15 pm »
Much appreciated, both of you. 

Ill check out that wiki page.

So is it just better to install the OS on one drive, without having the 2 media drives even installed? Then afterwards, power down, install the drives, raid them in BIOS, and boot up?  Will LMCE recognize the BIOS raid automatically as if it was one drive? 

Thanks!

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #4 on: June 16, 2008, 07:56:10 pm »
do NOT use the BIOS facilities to raid the drives!
DO NOT USE THE BIOS FACILITIES TO RAID THE DRIVES!

LinuxMCE has a built in facility for doing RAID. so install the system drive...install the software on it...then connect the other disks..and use the web admin to set them up using LinuxMCE's RAID facility.

-Thom

Crash

  • Regular Poster
  • **
  • Posts: 32
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #5 on: June 16, 2008, 08:10:04 pm »
Much appreciated Thom, will do.

Thanks again!

crash

royw

  • Guru
  • ****
  • Posts: 261
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #6 on: June 17, 2008, 12:42:48 am »
So is it just better to install the OS on one drive, without having the 2 media drives even installed?

Yes.  It makes upgrading/reinstall a lot easier if there is no media stored on the system drive.

Then afterwards, power down, install the drives, raid them in BIOS, and boot up?

Not necessary to power media drives down (as long as you can identify the system drive during install, either by drive id or name). 

HTH,
Roy

Crash

  • Regular Poster
  • **
  • Posts: 32
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #7 on: June 20, 2008, 06:23:26 am »
Ok, I got the OS installed on one drive and working as I want it.  Now I enabled the other two drives, the two that I want to raid, but one has a bunch of junk on it.  So I go into the KDE desktop, to to the disk and file system utility, select the drive, and now it's asking me what mount point I want, and I'm not sure what a good choice would be for the LMCE file system.  Annnd...can I just drag/drop media onto the raided drive when I'm finished LMCE will sort it out? Or how exactly does adding media work? 

Thanks!

royw

  • Guru
  • ****
  • Posts: 261
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #8 on: June 20, 2008, 07:37:02 am »
I haven't tried LinuxMCE's RAID so will let others respond...

On the mount points.  Now it is time for the automount to do it's magic. 

What should happen is that your core discovers the new drives and on the media director asks if you want to use it.  You should respond yes.  Then I usually say to just use pluto's structure (/public|user_n/data/*) as that is most convenient.  Now what happens is that the automount will mount the drive on /mnt/device/NN where NN is the device number - when the drive is accessed.  Also you should see some links to the mount point under /home/public/data/*.  Here examples from my system that has 2 NFS shares and one additional internal drive:
Code: [Select]
linuxmce@dcerouter:~$ ls -l /home/public/data/videos/
total 4
lrwxrwxrwx 1 root public   33 2008-06-19 22:15 NFS Share [39] -> /mnt/device/39/public/data/videos
lrwxrwxrwx 1 root public   33 2008-06-19 22:15 NFS Share [41] -> /mnt/device/41/public/data/videos
drwxrwsr-x 2 root public 4096 2008-05-30 02:49 tv_shows_1
lrwxrwxrwx 1 root public   33 2008-06-19 22:15 WDC_WD10EACS-00Z (sdb1)-CORE [33] -> /mnt/device/33/public/data/videos
linuxmce@dcerouter:~$ ls /mnt/device
33  39
linuxmce@dcerouter:~$ ls /mnt/device/41
HOWDY  lost+found  MEDIA_LV  public  user_1  user_2
linuxmce@dcerouter:~$ ls /mnt/device
33  39  41
This shows both the links and that automount mounted device 41 when I tried to access it.

HTH,
Roy

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #9 on: June 20, 2008, 01:24:04 pm »
now, go into the web admin, and go into the Advanced > configuration > RAID section

you can then create a new array, assign the disks to it, and they will be wiped and formatted, and mounted appropriately.

-Thom

Crash

  • Regular Poster
  • **
  • Posts: 32
    • View Profile
Re: How is media stored? Multiple hard drives question
« Reply #10 on: June 20, 2008, 08:13:34 pm »
Thanks both of you, I'll try it out over the weekend when I get some time. 

-crash