WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] FIXED: Centos + Xen 3.0 + Root on md = bad

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] FIXED: Centos + Xen 3.0 + Root on md = bad
From: larsks.21230602@xxxxxxxxxxxxx
Date: 15 Dec 2005 16:27:06 -0000
Delivery-date: Thu, 15 Dec 2005 16:29:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> ioctl() call to the md driver, but it's returning ENODEV. The

> compiling
in of modules is a good enough solution for me, so

> I haven't looked more
into this.



It turns out that a fairly simply change to the 'init' script
on the initrd will take care of this problem.



(1) Add mdadm.static (or
mdadm + libc) to the initrd.



(2) Add lvm.static to the initrd.



(3) Copy
a valid mdadm.conf to the initrd.  I suspect one that explicitly provides
device names will work best.



(4) Create the md device nodes by hand (just
after /sbin/udevstart).  For some reason, the mdadm '--auto=yes' option won't
create these, despite what the documentation indicates, so:



  mknod /dev/md0
b 9 0

  mknod /dev/md1 b 9 1



(5) Manually assemble the md devices:



  mdadm --assemble --scan



(6) Scan and activate the LVM volumes:



  /sbin/lvm.static
vgscan --mknodes --ignorelockingfailure

  /sbin/lvm.static vgchange -a y
--ignorelockingfailure



And voila, the md devices are available, the LVM
devices are available, and everything is happy.



-- Lars



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] FIXED: Centos + Xen 3.0 + Root on md = bad, larsks . 21230602 <=