Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-19 Thread Jay R. Ashworth
On Fri, Dec 17, 2004 at 12:01:44AM -0800, Brad Templeton wrote:
 On Fri, Dec 17, 2004 at 06:52:40AM +, Terry Barnaby wrote:
  I didn't think that the overlay file system was supported yet with the
  linux 2.6 kernels ?
  If it is where can I get it ?
 
 I would be curious too, I thought those projects were mostly on hold.
 
 In QNX, another unix-inspired OS with a microkernel architecture,
 filesystems are inherently overlay, it's not a special filesystem.  In
 unix/linux, when you mount a filesystem at /mnt, whatever files were
 in /mnt at the time become invisible.   In QNX, they remain visible.
 
 This seems to me the right behaviour, nothing special needed.  if you
 wanted to mount on an empty directory you can do that.

I'd say this depends on the write semantics.  As long as they're clear
it's less confusing.

But there is the I'm transplanting this directory to a new partition
and mounting it in the same place situation, wherein you'll have two
duplicate copies of everything, which can get a little messy...

Mostly, though, it's that people don't *expect* mounts to be
transparent.  Where, by people, I mean  *nix admins.

 Indeed, we might see people using USB2 disks for Myth routinely if
 there were a way to allocate files to external disks down the road, as
 the way to build the video library instead of burning DVDs.

Indeed.  A little more semantics on that would be nice.

 You could for example, have a feature in myth to say you want to take
 a recording offline.  It stays in the database, but the file is moved
 to a removable medium (USB disk or DVD or CD-R).  You allow browse of
 the archived materials, and when you pick one it says, Go get
 DVD #5 or Get USB disk #2

Yes!  This is precisely what we were wanting to do.  We were
considering writing a script that moved the file to a DVD, told you how
to label it, and then building a 10-second or so MPEG placeholder file
to plug into that slot on the drive--which told you the name of the
disc you'd archived it to.

Cheers,
-- jra
-- 
Jay R. Ashworth[EMAIL PROTECTED]
Designer  Baylink RFC 2100
Ashworth  AssociatesThe Things I Think'87 e24
St Petersburg FL USA  http://baylink.pitas.com +1 727 647 1274

  If you can read this... thank a system adminstrator.  Or two.  --me
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-17 Thread Brad Templeton
On Fri, Dec 17, 2004 at 06:52:40AM +, Terry Barnaby wrote:
 I didn't think that the overlay file system was supported yet with the
 linux 2.6 kernels ?
 If it is where can I get it ?

I would be curious too, I thought those projects were mostly on hold.

In QNX, another unix-inspired OS with a microkernel architecture,
filesystems are inherently overlay, it's not a special filesystem.  In
unix/linux, when you mount a filesystem at /mnt, whatever files were
in /mnt at the time become invisible.   In QNX, they remain visible.

This seems to me the right behaviour, nothing special needed.  if you
wanted to mount on an empty directory you can do that.
 
 My first disk is 200G and the second disk is 200G. The first is full
 with recordings (although a lot will expire). I need to have 200+200G
 available for recordings, so I can't just mount the second disk over the
 first disks recordings directory.

If you had an overlay you possibly could, but anyway, with your 2 disks
equal you can just barely pull off the LVM switcheroo we described here.

However, the warning about xfs was an important one, you can't shrink it,
so you had better stick with ext2/ext3 for when you pull the disk.

You might, to be safe, want to have slightly less than 200gb on the
original disk when you do this, though in theory it could be full
and still do the giant move.   You have to move the files so you can
wipe it and convert it  -- or the video partition -- to lvm.

If your new disk were smaller than your old video, you could pull this
off if you had some other spare space you could grab temporily, perhaps
on a USB2 external disk -- those are getting really cheap now, I have
seen the cases for $30.   

Indeed, we might see people using USB2 disks for Myth routinely if
there were a way to allocate files to external disks down the road, as
the way to build the video library instead of burning DVDs.

You could for example, have a feature in myth to say you want to take
a recording offline.  It stays in the database, but the file is moved
to a removable medium (USB disk or DVD or CD-R).  You allow browse of
the archived materials, and when you pick one it says, Go get
DVD #5 or Get USB disk #2
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-17 Thread Bruce Markey
Terry Barnaby wrote:
...
My first disk is 200G and the second disk is 200G. The first is full
with recordings (although a lot will expire). I need to have 200+200G
available for recordings, so I can't just mount the second disk over the
first disks recordings directory.
Why mount the new disk on another mount point, move the biggest,
oldest files that you don't anticipate deleteing any time soon
into the new directory and make symlinks for each moved file.
--  bjm
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


RE: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-17 Thread William

 Sorry, the system is Linux Fedora2 using ext3 file system.
 
 I didn't think that the overlay file system was supported yet 
 with the linux 2.6 kernels ? If it is where can I get it ?
 
 My first disk is 200G and the second disk is 200G. The first 
 is full with recordings (although a lot will expire). I need 
 to have 200+200G available for recordings, so I can't just 
 mount the second disk over the first disks recordings directory.
 
 Cheers

This is just my opinion, your milage may vary. The way I would add the extra
drive is to add the drive and then create a LVM. Add the new drive to the
LVM and then transfer all your files to the new drive. Once the old drive is
empty you can reformat it and add it to the LVM. That is how I added a
second drive to my system. Once everything is transfered change the
recording location to your new drive group.

I see you are using ext3, you will probably get a decent improvement in
performance if you set up your LVM with either xfs or jfs. Both of those
handle large files better than ext3.

Bill


___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-17 Thread Jason Ramey
One thing to remember with XFS, particularly for short-term storage, is 
that XFS partitions cannot be shrank, only enlarged. I'm running into 
this problem right now on my myth box, I want to re-allocate some space 
to another partition.
William wrote:

This is just my opinion, your milage may vary. The way I would add the extra
drive is to add the drive and then create a LVM. Add the new drive to the
LVM and then transfer all your files to the new drive. Once the old drive is
empty you can reformat it and add it to the LVM. That is how I added a
second drive to my system. Once everything is transfered change the
recording location to your new drive group.
I see you are using ext3, you will probably get a decent improvement in
performance if you set up your LVM with either xfs or jfs. Both of those
handle large files better than ext3.
Bill
   

--
Jason Ramey
[EMAIL PROTECTED]
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas

2004-12-17 Thread jedi
 
 One thing to remember with XFS, particularly for short-term storage, is 
 that XFS partitions cannot be shrank, only enlarged. I'm running into 
 this problem right now on my myth box, I want to re-allocate some space 
 to another partition.
 William wrote:

I've yet to encounter any filesystem that does not have this problem.
This just seems to be a general issue with LVM. This issue also crops up on 
high end SAN storage systems.

Don't ever expect to be able to shrink a filesystem.

[deletia]

___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas

2004-12-17 Thread Jason Ramey
Never had any problems with shrinking reiserfs under LVM...
[EMAIL PROTECTED] wrote:
	I've yet to encounter any filesystem that does not have this problem.
This just seems to be a general issue with LVM. This issue also crops up on 
high end SAN storage systems.

Don't ever expect to be able to shrink a filesystem.
[deletia]
 

--
Jason Ramey
[EMAIL PROTECTED]
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas

2004-12-17 Thread Mark Cooke
On Fri, 2004-12-17 at 16:09, [EMAIL PROTECTED] wrote:

   I've yet to encounter any filesystem that does not have this problem.
 This just seems to be a general issue with LVM. This issue also crops up on 
 high end SAN storage systems.
 
   Don't ever expect to be able to shrink a filesystem.

I have not had a problem using e2resize to shrink an unmounted ext3
filesystem and then using LVM to reallocate PE's.

I did have some issues using 'pvmove' to free a disk from LVM because of
incompatibilities of kernel.org kernels vs LVM-patched RedHat kernels. 
The workaround I used was just to boot single user mode with a patched
redhat kernel for the pvmove operation.

Cheers,

Mark

___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-17 Thread Brad Templeton
On Fri, Dec 17, 2004 at 05:35:54AM -0500, William wrote:
 
 This is just my opinion, your milage may vary. The way I would add the extra
 drive is to add the drive and then create a LVM. Add the new drive to the
 LVM and then transfer all your files to the new drive. Once the old drive is
 empty you can reformat it and add it to the LVM. That is how I added a
 second drive to my system. Once everything is transfered change the
 recording location to your new drive group.
 
 I see you are using ext3, you will probably get a decent improvement in
 performance if you set up your LVM with either xfs or jfs. Both of those
 handle large files better than ext3.

Just to repeat, since this suggestion has been made several times and I
guess in the flood of messages in this list folks are not reading the
earlier messages -- for this particular application, you need a filesystem
you can shrink back down, which xfs won't do, but ext2 will.   JFS can't
be shrunk either.

I must admit, the symlink plan (mount your new filesystem, point your
myth box to that new directory, symlink in all the old files to the new
directory) is the quickest and simplest, though you will not be able
to delete shows directly from the old disk until you reverse the process.
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-16 Thread Fa Yoeu
MythTv doesn't support multiple directories.  You should really have
used LVM upon the initial setup of your system.  It isn't hard and
truely is flexible.  I have expanded my volumes 3 times since I
originally installed MythTV from 100GB to 300GB to 500GB.  Anyhow the
information on how to LVM is in the MythTV Documentation section and
is pretty straight forward.

On Thu, 16 Dec 2004 15:58:20 +, Terry Barnaby [EMAIL PROTECTED] wrote:
 Hi,
 
 I would like to add an extra disk, temporarily, to my server for Christmas
 recording storage.
 I would like to do something like add multiple directororys to the
 MythTv Directory to hold recordings setting like:
 
 /data/video:/extra/video
 
 Has anyone any ideas on how to easily do this ?
 This is temporary, and so I don't want to get involved in raid etc etc
 
 Cheers
 
 Terry
 
 
 ___
 mythtv-users mailing list
 [EMAIL PROTECTED]
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
 
 

___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-16 Thread Peter Lee
Switching over to LVM has to be done carefully, but I've done it and
so it can't really be all that hard.  The basic steps:

1) install the new disk, and set it up for LVM as a big physical
volume in a volume group.

2) make a single big logical volume on this, and then format for your
favorite filesystem (I use xfs, as suggested by Jarod's guide).

3) hopefully your current video files will fit on this new filesystem,
so that you can copy them all over to it.  this took some time on my
system.

4) then, destroy the old video partition and add it to the LVM volume
group to extend the logical volume.

5) grow your xfs (or whatever) file system to span both your new disk
and the old partition.

I found the how-to document at http://www.tldp.org/HOWTO/LVM-HOWTO/ to
be very helpful.

Peter



On Thu, 16 Dec 2004 11:24:20 -0800, Fa Yoeu [EMAIL PROTECTED] wrote:
 MythTv doesn't support multiple directories.  You should really have
 used LVM upon the initial setup of your system.  It isn't hard and
 truely is flexible.  I have expanded my volumes 3 times since I
 originally installed MythTV from 100GB to 300GB to 500GB.  Anyhow the
 information on how to LVM is in the MythTV Documentation section and
 is pretty straight forward.
 
 On Thu, 16 Dec 2004 15:58:20 +, Terry Barnaby [EMAIL PROTECTED] wrote:
  Hi,
 
  I would like to add an extra disk, temporarily, to my server for Christmas
  recording storage.
  I would like to do something like add multiple directororys to the
  MythTv Directory to hold recordings setting like:
 
  /data/video:/extra/video
 
  Has anyone any ideas on how to easily do this ?
  This is temporary, and so I don't want to get involved in raid etc etc
 
  Cheers
 
  Terry
 
 
  ___
  mythtv-users mailing list
  [EMAIL PROTECTED]
  http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
 
 
 
 
 
 ___
 mythtv-users mailing list
 [EMAIL PROTECTED]
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
 
 

___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Adding extra recorder disk space for Christmas !

2004-12-16 Thread Terry Barnaby
Hi,
I would like to add an extra disk, temporarily, to my server for Christmas
recording storage.
I would like to do something like add multiple directororys to the
MythTv Directory to hold recordings setting like:
/data/video:/extra/video
Has anyone any ideas on how to easily do this ?
This is temporary, and so I don't want to get involved in raid etc etc
Cheers
Terry
___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users