Let's reinforce what was said previously in this thread:&nbsp; <br>
<br>
<span style="font-style: italic;">If you don't have lvm and want to convert to one the easies way is to</span><br style="font-style: italic;">
<span style="font-style: italic;">add the new drive as first phisical volume of lvm, create a single</span><br style="font-style: italic;">
<span style="font-style: italic;">logical volume on top of that, format it using xfs and then copy files</span><br style="font-style: italic;">
<span style="font-style: italic;">over from the old partition/disk. When everything is on the new drive</span><br style="font-style: italic;">
<span style="font-style: italic;">- add the old drive/partition as next phisical volume and then extend</span><br style="font-style: italic;">
<span style="font-style: italic;">the logical one to span across both drives.</span><br>
<br>
This is exactly how I did mine. My mythtv was initally set up using
150GB xfs partition /dev/hda4 mounted as /video.&nbsp; Purchased 300GB
drive to expand the storage.&nbsp; Linux Volume Manager (LVM) will hook
these 2 together as one. <br>
<br>
References: <br>
<br>
<a href="http://www.tldp.org/HOWTO/LVM-HOWTO">http://www.tldp.org/HOWTO/LVM-HOWTO</a><br>
<a href="http://www.knoppmythwiki.org/index.php?page=LvmHowTo">http://www.knoppmythwiki.org/index.php?page=LvmHowTo</a><br>
<br>
<br>
Here are the steps I went thru, more or less.<br>
<br>
&nbsp;&nbsp; 1. Ran fdisk to create an LVM partition on the new 300GB drive<br>
&nbsp;&nbsp; 2. Created physical volume:&nbsp; pvcreate /dev/hdc1<br>
&nbsp;&nbsp; 3. Created volume group:&nbsp; vgcreate vg<br>
&nbsp;&nbsp; 4. Created logical volume: lvcreate /vg/video<br>
&nbsp;&nbsp; 5. Created xfs file system /dev/vg/video (mkfs.xfs /dev/vg/video)<br>
&nbsp;&nbsp; 6. Mounted /dev/vg/video as /video2 via /etc/fstab (also, ad-hoc by mount -t xfs /dev/vg/video /video2)<br>
<br>
<br>
Copied all video files from /video to /video2 and pointed mythtv to
/video2.&nbsp; Now, /video is unused and /video2 is the mythtv video
storage location.&nbsp; The next steps reformat the original storage
and add it to the volume group:<br>
<br>
&nbsp;&nbsp; 1. Using fdisk, deleted /dev/hda4 partition<br>
&nbsp;&nbsp; 2. Using fdisk, created /dev/hda4 as LVM<br>
&nbsp;&nbsp; 3. Created physical volume:&nbsp; pvcreate /dev/hda4<br>
&nbsp;&nbsp; 4. Extended volume group:&nbsp; vgextend vg /dev/hda4<br>
&nbsp;&nbsp; 5. Ran vgdisplay to see amount of free space that needs to be extended (18214 in my case)<br>
&nbsp;&nbsp; 6. unmount the volume group:&nbsp; umount /dev/vg/video<br>
&nbsp;&nbsp; 7. extend:&nbsp; lvextend -l +18214 /dev/vg/video<br>
&nbsp;&nbsp; 8. mount /dev/vg/video<br>
&nbsp;&nbsp; 9. grow the xfs file system:&nbsp; xfs_grow /dev/vg/video<br>
&nbsp; 10. Remove /video from /etc/fstab<br>
<br>
Now, df -k shows the new space:<br>
<br>
[root@mythtv ~]# df -k<br>
Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1K-blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Used Available Use% Mounted on<br>
/dev/hda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
10080520&nbsp;&nbsp; 2938120&nbsp;&nbsp; 6630332&nbsp; 31% /<br>
/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
101086&nbsp;&nbsp;&nbsp;&nbsp; 16752&nbsp;&nbsp;&nbsp;&nbsp;
79115&nbsp; 18% /boot<br>
none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
257908&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp; 257908&nbsp;&nbsp; 0% /dev/shm<br>
/dev/mapper/vg-video 442105856 113816336 328289520&nbsp; 26% /video2<br>
<br>
<br>The knoppmyth wiki cited in this thread is pretty helpful, altho it
deviates a bit since it is talking ext3, not xfs.&nbsp; I had to adapt.<br>
<br><br><div><span class="gmail_quote">On 8/8/05, <b class="gmail_sendername">jacko</b> &lt;<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


On 8/8/05, jacko &lt;<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>&gt; wrote:<br>&gt; On 8/7/05, jacko &lt;<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>&gt; wrote:<br>&gt; &gt; I have come to a point where I am running out of space on my /dev/hda
<br>&gt; &gt; due to the amount of video I have recorded (only 80 gigs).&nbsp;&nbsp;I would<br>&gt; &gt; like to add a new 160g HD to my system but lack the know how to add a<br>&gt; &gt; disk to an XFS partition in FC2.&nbsp;&nbsp;I found a good tutorial for FC3 off
<br>&gt; &gt; of Jarod's site.&nbsp;&nbsp;Should this be the same FC2?&nbsp;&nbsp;If so, can someone<br>&gt; &gt; explain what VolGroup00 is when using vgextend?<br>&gt; &gt;<br>&gt; &gt; <a href="http://svn.wilsonet.com/projects/mythtvology/ticket/87">


http://svn.wilsonet.com/projects/mythtvology/ticket/87</a><br>&gt; &gt;<br>&gt; &gt; Thanks in advance...<br>&gt; &gt;<br>&gt;<br>&gt; My partition setup is as follows just as Jarod suggested:<br>&gt;<br>&gt;
Partition&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mount
Point&nbsp;&nbsp;&nbsp;&nbsp;
Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Format<br>&gt; /dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
50-100MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext3<br>&gt;
/dev/hda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
512MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap<br>&gt;
/dev/hda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
8-12GB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ext3<br>&gt; /dev/hda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/video&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Everything else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xfs<br>&gt;<br>&gt; So would add a volume group for hda5 and then extend it?&nbsp;&nbsp;Sorry,<br>&gt; totally confused after reading last link and where it talks about<br>&gt; using ext3.<br>&gt;<br><br>tried to do a 'vgcreate mythvideo /dev/hda5' and I get the following error:
<br><br>&nbsp;&nbsp;No physical volume label read from /dev/hda5<br>&nbsp;&nbsp;/dev/hda5 not identified as an existing physical volume<br>&nbsp;&nbsp;Unable to add physical volume '/dev/hda5' to volume group 'mythvideo'.<br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>