[mythtv-users] Moving a LVM harddrive (F10)

Jongi jongitech at gmail.com
Wed Mar 11 00:23:42 UTC 2009


I have currently a back and frontend running which I thought would be the
main main myth box for a while. However I realised I bought a microATX case
which meant I needed to reconfigure when I upgraded.

So it has meant I am going to build a new myth box. The thing is that I
built the old one with a 8GB HD for the OS and a 250GB HD for the myth
related files (eg video,music etc). Furthermore the 250GB was setup as a LVM
in anticipation of adding more to this existing box. However it is woefully
inadeqaute and the 250GB will have to move to the new box. So as it stands
things look like this:

[root at localhost ~]#
lvdisplay

  --- Logical volume ---
  LV Name                /dev/mythtv/lvol0
  VG Name                mythtv
  LV UUID                zDY2Hg-bLHe-58c3-UsG5-e75c-fy2I-FUm1Yq
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                230.52 GB
  Current LE             59012
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

[root at localhost ~]# vgdisplay
  --- Volume group ---
  VG Name               mythtv
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               230.52 GB
  PE Size               4.00 MB
  Total PE              59012
  Alloc PE / Size       59012 / 230.52 GB
  Free  PE / Size       0 / 0
  VG UUID               1jd5kb-xnxU-yDck-LIct-UbDG-EZAS-7vhXoF

[root at localhost ~]# fdisk -l

Disk /dev/sda: 8621 MB, 8621850112 bytes
240 heads, 63 sectors/track, 1113 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x5d5e5d5e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1112     8406688+  83  Linux

Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e6151

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1           30281       30401      971932+  82  Linux swap / Solaris
/dev/sdb2   *           1       30092   241713958+  8e  Linux LVM
/dev/sdb3           30093       30280     1510110    5  Extended
/dev/sdb5           30093       30280     1510078+  82  Linux swap / Solaris

Partition table entries are not in disk order

[root at localhost ~]#

I am thinking I should be able to install the /dev/sdb HDD into the new
computer, load LVM tools and have it pick up without issue? What are the
pitfalls I should look out for? BTW I think it is formatted as ReiserFS.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090311/859c862b/attachment.htm>


More information about the mythtv-users mailing list