lkml.org 
[lkml]   [2007]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Moving MD/LVM from PPC to x86
On Saturday June 30, turbo@bayour.com wrote:
> Quoting Alasdair G Kergon <agk@redhat.com>:
>
> > On Thu, Jun 28, 2007 at 11:02:39PM +0200, Turbo Fredriksson wrote:
> >> 2. How do I move a VG/PV/LV from PPC to x86?
> >
> > The on-disk LVM2 metadata should be accessible from both
> > architectures.
>
> Well, when I move the disks, the intel machine say that one of
> the disks don't have a partition table and that the other don't
> have any MD superblock...

Version 0.90 MD superblocks (still the default) uses host-endian
values so you cannot move between architectures directly. However
isn't too hard to make it work.
Firstly, use
mdadm --examine --metadata=0.swap /dev/DEVICE

to check that you have the right devices.
Then

mdadm --assemble /dev/md0 --update=byteorder /dev/DEV0 /dev/DEV1 ....

That should assemble the array and update the superblocks so that they
are in the right byteorder and will assemble easily in future.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-30 11:37    [W:0.099 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site