[mythtv-users] mythtv-users Digest, Vol 57, Issue 20
Joe Borne
joe.borne at gmail.com
Wed Dec 5 18:34:38 UTC 2007
>
> "Craig Huff" <huffcslists at gmail.com> wrote:
>
> I have my BE running on one PATA harddrive and just took
> the plunge to get a second HD, this time a SATA2 HD so I
> can separate the video recording storage from the OS and
> mySQL storage.
>
> How do I go about moving the /video partition, which is currently
> in an LVM on the old drive onto the new drive in a normal ext3
> partition and convert the LVM partition into a normal ext3 partition
> for other file storage?
>
> My plan for the initial steps is to power down the system, connect
> the new drive, and reboot to a live-CD based distro, like knoppix.
> Then I use something like qtparted to format the new HD and make
> a single partition out of the whole disk for use as the new /video.
>
> How do I get from there to where I'm ready to add the new partition
> to /etc/fstab with /video as it's mountpoint and reboot into the
> normal operating environment?
>
> It seems that dd would be inappropriate since I want to move files,
> not a disk image, but should I use tar, dump, or something else?
>
> Also, how do I go about dismantling the LVM settings so I can
> redefine the partition as an ext3 partition?
>
> Craig.
>
>
I would simply power down, install the new hard drive, power up and check
dmesg to see where it is in /dev.
Then I'd use fdisk to partition it and mkfs to format it ext3. (or use
gparted to do both)
Mount the drive to a point of your choice and be sure to put it all into
your /etc/fstab as well.
Once that's finished, use "rsync -avz <source> <dest>" to move the contents.
(Read the rsync man file, it's one of the better man files out there).
Confirm your data is where it's supposed to be and it's all there. (Running
rsync a second time with the exact same command is a good way to verify,
other comparison tools exist I am sure, or you can use a combination of cat,
ls and diff if you are a masochist).
Unmount the original /video partition and use fdisk to delete the partition
and create a new one. Use mkfs to format it ext3. (or use gparted to do
both)
Remount it at the point of your choice and put the proper entries into
/etc/fstab.
Now use "ln -s <new video location> /video" to make a soft link that myth
can use to get back to it's data.
I have my Myth box set up in a similar way, except I have a 30GB system
drive and an 800GB RAID/LVM. My /video points to the RAID/LVM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20071205/1e2fe1ef/attachment.htm
More information about the mythtv-users
mailing list