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

[Xen-devel] lvm management of block devices in dom0 not working as well

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] lvm management of block devices in dom0 not working as well as it should
From: Adam Heath <doogie@xxxxxxxxxxxxx>
Date: Fri, 14 Jan 2005 13:15:58 -0600 (CST)
Delivery-date: Fri, 14 Jan 2005 20:26:06 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
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>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
We are using lvm2(dm) on 2.6 to manage block devices.  If we extend such a
device, the guest kernel does not see the change.

config: dom0:/dev/space/kaffe-swap-0 -> guest:/dev/hda

guest: swapoff -a
dom0: lvextend /dev/space/kaffe-swap-0 -L+100M
  Extending logical volume kaffe-swap-0 to 612.00 MB
  Logical volume kaffe-swap-0 successfully resized
(this shows it was 512m previously)
dom0: mkswap /dev/space/kaffe-swap-0
Setting up swapspace version 1, size = 641724 kB
no label, UUID=246f699d-7fc2-4909-9c31-359ed45b203e
guest: swapon -a
swapon: /dev/hda: Invalid argument
guest: dmesg | tail -1
Swap area shorter than signature indicates

Is it possible to add additional commands over the emulation channel to
support querying sizes?  Or is there some command I need to run to kick the
guest into seeing the new size?



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel