View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Pointers on LVM please.
PostPosted: Mon Dec 17, 2007 3:09 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi

Ages ago I completely roached my mythbox by trying to add an additional hard drive. As a result I am rather nervous about trying this.

I have a 500g SATA drive with content on it and I want to expand my storage space by adding 2 hard drives to this. Both are 250g one is SATA and the other PATA. I want like to save the content I have on my 500g drive.

The history of this is I managed to set up a LVM setup on my test rig, by following the steps on the wiki. So I tried to add a second hard drive to my main machine. Which went wrong, partially because the drive had content on it but also due to me not really understand what I was doing.

I've just had another look at the instructions over on the wiki and I am still not feeling confident.

To get around this lack of understanding, could someone help me get through this with some pointers, (or if you prefer some idiot proof instructions I can't get wrong)?

I am using .XFS for storage.

Thanks for advice in advance.

Regards Chris

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 4:44 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Well, I suppose the first thing you need to determine is how you want the system laid out - Do you want one big filesystem for /myth, or do you want to split say /myth/tv and /myth/video for example into separate filesystems? Keep in mind that if you use LVM for your /myth content and any of those drives fails, chances are good you will have lost all of that content. I'm not saying LVM is a bad choice, but it does have it's issues. Other posts regarding LVM:
http://knoppmyth.net/phpBB2/viewtopic.php?t=17161
http://knoppmyth.net/phpBB2/viewtopic.php?t=16908

I assume you currently have content on the 500Gb drive in /myth/XXX that you are trying to save?

Do the 250Gb drives have content on them that you are trying to save?

One note: the upcoming .21 release will include "Storage Groups" which, depending on your storage needs, you may find more to your liking - http://svn.mythtv.org/trac/changeset/12151


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 11:20 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi slowtolearn,

The two other drives I have do not have content on them. The 500g one does.

Ideally I'd like one of the 250s (pref the sata one) to have /myth/video and the 500g to have /myth/tv. My PATA drive would have the operating system and the swap file etc.

The storage groups sound cool. But I'll be waiting for R6 release for that though.

So how do I go about this, especially as I want to keep the TV recordings - the DVD's I can re-rip.

Regards Chris.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 1:25 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Based on the above I don't think you want LVM at all. Couple of questions:

1 - Does the 500Gb drive currently have KnoppMyth installed and running on it?

2 - Are you finding that your recordings (just the recordings) are exceeding the amount of space available in /myth?

Assuming the answer to #1 is yes and #2 is no, the easiest thing to do would be to copy whatever videos (NOT recordings) you want to save over to a temporary directory, mount one of the 250Gb drives into the /myth/video directory, then copy the files back. Now you have 250Gb for /myth/video and the 500Gb has more free space for recordings.

A (very) short HowTo on mounting an additional drive: http://www.knoppmythwiki.org/index.php? ... driveHowTo


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 4:02 pm 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 434
Location: Charlotte, NC
Annother good read for adding drives --> http://www.linuxplanet.com/linuxplanet/ ... ls/4232/1/

At the end of the day you have to fdisk the drives to an LVM type which means that you will (probably) lose any data on them. It is possible to move the data around from drive to drive to keep it but that won't work on a boot drive. I have built many systems ( and converted many) to and from LVM. It is not hard but is time consuming. The most important thing is to, as slowtolearn says, decide how you want the machine laid out. On my production machine I use a dedicated (non-lvm) drive as boot (knoppmyth) and an LVM cluster (500 SATA, 320 SATA, 320 IDE) for all data. I have had to replace one of the 320's due to a drive failure (that is another story...).

The wiki post works fine to build a cluster. Make sure you follow it step by step and don't try to add more than one drive at a time to the cluster (you can go ahead and fdisk and format all at once if you want - will save time).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 6:55 pm 
Offline
Joined: Tue Mar 27, 2007 11:55 am
Posts: 40
http://www.knoppmythwiki.org/index.php?page=LvmHowTo

This tells you how you can keep your data, scroll down to the Manual steps

I followed this, had data on a couple of drives and ended up not losing any


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu