[mythtv-users] adding a second hard disk

Jay R. Ashworth jra at baylink.com
Tue Aug 31 16:28:11 EDT 2004


On Tue, Aug 31, 2004 at 03:18:35PM -0400, Peter Lee wrote:
> I have been (very happily) running Mythtv .15.1 on FC1, with a pvr-250 and
> 160GB hard disk.  I've now come into possession of a new 200GB hard disk and
> want to add it.  While doing so, I thought I should use lvm and also make
> the switch from ext3 to xfs on the old video partition, in the hopes of
> making the deletes go faster.
> 
> I believe I am clear on how to add the new disk and use it with lvm.  After
> setting it up I am planning to copy all of the myth files in /var and /video
> over to it, set up the old partitions for lvm, and then finally reformat for
> xfs.  I am assuming that this will allow me to group the old and new
> partitions all together into a single big partition for all my shows and
> videos.

You'd install the new disk, make one physical partition, give that to
LVM as an PV in a VG, put an LV on it, make the XFS FS on that, and
then move your current files to it, yes. You could then nuke the old
partition, add it to the VG and use it to extend the LV; then grow the
XFS filesystem.

One caveat: you cannot *shrink* an XFS filesystem while it's live.

Another caveat: the names of your VG's and LV's *appear in /dev as
nodes* -- DO NOT USE names that collide with standard device names or
you'll be sorry, and the error messages will suck (3 hours :-).

I used video-vg and video-lv; I was pretty sure those wouldn't collide.  :-)

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

	"You know: I'm a fan of photosynthesis as much as the next guy,
	but if God merely wanted us to smell the flowers, he wouldn't 
	have invented a 3GHz microprocessor and a 3D graphics board."
					-- Luke Girardi


More information about the mythtv-users mailing list