lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18054.9063.45466.586046@notabene.brown>
Date:	Sat, 30 Jun 2007 19:33:27 +1000
From:	Neil Brown <neilb@...e.de>
To:	Turbo Fredriksson <turbo@...our.com>
Cc:	Alasdair G Kergon <agk@...hat.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: Moving MD/LVM from PPC to x86

On Saturday June 30, turbo@...our.com wrote:
> Quoting Alasdair G Kergon <agk@...hat.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ