[mythtv-users] Need advice for preserving LVM partitions during FC7 installation

Joseph Benavidez hasuf at pobox.com
Sat Sep 15 03:38:46 UTC 2007

On 9/14/07, Larry K <lunchtimelarry at gmail.com> wrote:
> I have an FC3 box that I am about to reinstall with FC7 so that I can
> upgrade myth and get past this zap2it problem.  Anyway,  I've backed up all
> my configuration files, but I have too many recordings on an LVM setup to
> make this kind of backup feasible with existing hardware.  I am running a
> two drive LVM with about 400GB of recording space.
> Is it possible to only destroy the root, boot, and swap partitions when I
> run the FC7 install and therefore preserve the partitions (/dev/hda4 and
> /dev/hdb1) that are participating in the LVM volume?  My thought was that
> post-install, I could restore the LVM config file from backup to bring the
> LVM configuration back to status quo.
> Here is my fdisk output:
> Disk /dev/hda: 163.9 GB, 163928604672 bytes
> 255 heads, 63 sectors/track, 19929 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1          13      104391   83  Linux
> (boot)
> /dev/hda2              14        1288    10241437+  83  Linux
> (root)
> /dev/hda3            1289        1353      522112+  82  Linux swap
> /dev/hda4            1354       19929   149211720   8e  Linux LVM
> Disk /dev/hdb: 300.0 GB, 300069052416 bytes
> 255 heads, 63 sectors/track, 36481 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hdb1               1       36481   293033601   8e  Linux LVM
> I am not sure if what I am thinking about doing is possible, and if so,
> what partitioning strategy to choose during installation to preserve my LVM
> partitions.  I would think I need to select manual partitioning, but after
> that I am not sure what choices to make.   If automatic partitioning is an
> option, I am not sure what defines a Linux partition, since I can choose to
> only destroy those partitions during installation.  Are my LVM partitions
> considered to be "Linux" partitions?
> Thanks for any guidance from myth-land...
> Larry

Hi Larry,

It goes pretty much how you describe it... Sounds like your existing
partitions are sound... throw away the idea of doing automatic partitioning
(you want to be in charge, here.)

When you boot up the F7 install disk... after you choose the language, etc,
and it gets to the part where you partition the disk, choose the option
where you manually partition. From there, anaconda should give you a view of
your disks, AND, along with your non-LVM partitions, it should recognize
your LVM partition.

Now, you mentioned you will re-install (as opposed to upgrade), so you know
the ramifications of having to re-set up your repos, re-yum-installing your
favorite programs along with mythtv-suite, restoring pertinent /etc files,
etc etc.

So back to the partitioning tool, I you can reformat your /boot and /
partitions (re-designating their respective mount points). You will want to
also select your LVM logical volume and restore its former mount point
(obviously, you won't be reformatting that guy.)

Anyway, that's all from memory. (I recently upgraded my backend to F7). Hope
that helps.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070914/dcf821fb/attachment.htm 

More information about the mythtv-users mailing list