Let's reinforce what was said previously in this thread: <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. Purchased 300GB
drive to expand the storage. 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>
1. Ran fdisk to create an LVM partition on the new 300GB drive<br>
2. Created physical volume: pvcreate /dev/hdc1<br>
3. Created volume group: vgcreate vg<br>
4. Created logical volume: lvcreate /vg/video<br>
5. Created xfs file system /dev/vg/video (mkfs.xfs /dev/vg/video)<br>
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. Now, /video is unused and /video2 is the mythtv video
storage location. The next steps reformat the original storage
and add it to the volume group:<br>
<br>
1. Using fdisk, deleted /dev/hda4 partition<br>
2. Using fdisk, created /dev/hda4 as LVM<br>
3. Created physical volume: pvcreate /dev/hda4<br>
4. Extended volume group: vgextend vg /dev/hda4<br>
5. Ran vgdisplay to see amount of free space that needs to be extended (18214 in my case)<br>
6. unmount the volume group: umount /dev/vg/video<br>
7. extend: lvextend -l +18214 /dev/vg/video<br>
8. mount /dev/vg/video<br>
9. grow the xfs file system: xfs_grow /dev/vg/video<br>
10. Remove /video from /etc/fstab<br>
<br>
Now, df -k shows the new space:<br>
<br>
[root@mythtv ~]# df -k<br>
Filesystem
1K-blocks Used Available Use% Mounted on<br>
/dev/hda2
10080520 2938120 6630332 31% /<br>
/dev/hda1
101086 16752
79115 18% /boot<br>
none
257908
0 257908 0% /dev/shm<br>
/dev/mapper/vg-video 442105856 113816336 328289520 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. I had to adapt.<br>
<br><br><div><span class="gmail_quote">On 8/8/05, <b class="gmail_sendername">jacko</b> <<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>> 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 <<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>> wrote:<br>> On 8/7/05, jacko <<a href="mailto:emailgeek@gmail.com">emailgeek@gmail.com</a>> wrote:<br>> > I have come to a point where I am running out of space on my /dev/hda
<br>> > due to the amount of video I have recorded (only 80 gigs). I would<br>> > like to add a new 160g HD to my system but lack the know how to add a<br>> > disk to an XFS partition in FC2. I found a good tutorial for FC3 off
<br>> > of Jarod's site. Should this be the same FC2? If so, can someone<br>> > explain what VolGroup00 is when using vgextend?<br>> ><br>> > <a href="http://svn.wilsonet.com/projects/mythtvology/ticket/87">
http://svn.wilsonet.com/projects/mythtvology/ticket/87</a><br>> ><br>> > Thanks in advance...<br>> ><br>><br>> My partition setup is as follows just as Jarod suggested:<br>><br>>
Partition Mount
Point
Size
Format<br>> /dev/hda1
/boot
50-100MB ext3<br>>
/dev/hda2
swap
512MB swap<br>>
/dev/hda3
/
8-12GB
ext3<br>> /dev/hda5
/video
Everything else xfs<br>><br>> So would add a volume group for hda5 and then extend it? Sorry,<br>> totally confused after reading last link and where it talks about<br>> using ext3.<br>><br><br>tried to do a 'vgcreate mythvideo /dev/hda5' and I get the following error:
<br><br> No physical volume label read from /dev/hda5<br> /dev/hda5 not identified as an existing physical volume<br> 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>