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-devel

Re: [Xen-devel] A snapshot is not (really) a cow

To: Wm <bill@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] A snapshot is not (really) a cow
From: Peri Hankey <mpah@xxxxxxxxxxxxxx>
Date: Mon, 27 Sep 2004 12:29:37 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 27 Sep 2004 12:45:25 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <20040927103914.GA8152@xxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1CBgok-0007pm-00@xxxxxxxxxxxxxxxxx> <4157D211.3090507@xxxxxxxxxxxxxx> <20040927103914.GA8152@xxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115
That looks like it.

The xen0 default kernel config used to build nbd as a module. That meant that there were no nbd devices available at boot or at any time until you explictly loaded the nbd module. So they weren't visible to the lvm code that scans block devices. With the nbd devices available, the lvm stuff starts happily scanning and rescanning all 128 of them.

So far I have managed to show this by inadvertently putting a syntax error in lvm.conf - my attempts to reject nb* and accept others continued to scan everything. But I think I'm on the right track.

Thanks
-- Peri

Wm wrote:

On Mon, Sep 27, 2004 at 09:40:49AM +0100, Peri Hankey wrote:
A further point - I mentioned in my last mail that attempts to access an nbd device start very early in the boot sequence. I now also notice after looking at several boot sequences that the first seems always to be an attempt to access nbd60, sector 0 (but the sector 0 may be a red herring). I suspect something is trying to acccess block device 43,60 hoping to find something other than a non-existent nbd device).

Could it be the lvm / device mapper initalistation scripts seaching for
block devices with pvs on them?

Can you have a look in /etc/lvm/lvm.conf in there you can tell
lvm to only scan devices that you know might have pvs on them.


bill





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel