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

Re: [Xen-users] How was CoW implemented on the Demo LiveCD (3.0) ??

To: Tim Deegan <Tim.Deegan@xxxxxxxxxxxx>
Subject: Re: [Xen-users] How was CoW implemented on the Demo LiveCD (3.0) ??
From: Anand <xen.mails@xxxxxxxxx>
Date: Thu, 26 Jan 2006 21:30:22 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 Jan 2006 16:09:29 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=YgNcbeow/peqJo4GQpCuqo7j/anHCuEl19vb0sjToY6QcciA0UJjs/0GeHKPowwbNIQjf5M/WDjMepG2512lPfwqItHO7qgHd1L33ZWqkNCMfmodz6vQMeAkbKVbO3kwmzyXiCdA2rNGWNZMeAkWoNIawOtRnFGfnaRDJj9K5b4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <acb757c00601260757y64177d5bncd2fd87e1bd9a77d@xxxxxxxxxxxxxx>
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>
References: <dr4vq3$uco$1@xxxxxxxxxxxxx> <20060124112445.GD19563@xxxxxxxxxxxxxxxxx> <acb757c00601241125o17bb4feyf65ce1f7e85c03ab@xxxxxxxxxxxxxx> <20060125101452.GA10362@xxxxxxxxxxxxxxxxx> <acb757c00601250414x2ca9c00em28f0fdf8d64a3d11@xxxxxxxxxxxxxx> <20060126103900.GA22508@xxxxxxxxxxxxxxxxx> <acb757c00601260546t585acdd1o7ab0991ac1180206@xxxxxxxxxxxxxx> <20060126140315.GB22508@xxxxxxxxxxxxxxxxx> <acb757c00601260757y64177d5bncd2fd87e1bd9a77d@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Still same error :(

[root@xen ~]# bash -x /usr/sbin/create_cow -i /root/xen/centos.4-2.img -n cent01 -s 50
+ set -e
+ BACKING_DIR=/tmp/cow_backing
+ mkdir -p /tmp/cow_backing
+ getopts qhi:n:b:s: opt
+ case $opt in
+ SOURCE=/root/xen/centos.4-2.img
+ getopts qhi:n:b:s: opt
+ case $opt in
+ TARGET=cent01
+ getopts qhi:n:b:s: opt
+ case $opt in
+ BACKING_SIZE=50
+ getopts qhi:n:b:s: opt
+ '[' -z /root/xen/centos.4- 2.img -o -z cent01 -o -z 50 ']'
+ check_prereq dmsetup
+ which dmsetup
+ check_prereq losetup
+ which losetup
+ check_prereq blockdev
+ which blockdev
+ dmsetup mknodes
+ '[' -e /dev/mapper/cent01 -o -e /tmp/cow_backing/cent01-storage ']'
+ '[' -b /root/xen/centos.4-2.img ']'
+ '[' -f /root/xen/centos.4-2.img ']'
++ find_free_loop_device
+++ ls -1 /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/loop6 /dev/loop7
++ for device in '`ls -1 /dev/loop*`'
++ losetup /dev/loop0
++ echo /dev/loop0
++ return
+ SOURCE_DEVICE=/dev/loop0
+ quiet echo 'Putting /root/xen/centos.4-2.img onto loopback device /dev/loop0'
+ '[' -n '' ']'
+ eval echo Putting /root/xen/centos.4- 2.img onto loopback device /dev/loop0
++ echo Putting /root/xen/centos.4-2.img onto loopback device /dev/loop0
Putting /root/xen/centos.4-2.img onto loopback device /dev/loop0
+ losetup /dev/loop0 /root/xen/centos.4- 2.img
+ echo /dev/loop0
++ blockdev --getsize /dev/loop0
+ SOURCE_SIZE=2050048
+ echo /dev/loop0
+ grep -q /dev/mapper/
+ quiet echo 'Creating a device mapper device for /dev/loop0'
+ '[' -n '' ']'
+ eval echo Creating a device mapper device for /dev/loop0
++ echo Creating a device mapper device for /dev/loop0
Creating a device mapper device for /dev/loop0
+ SOURCE_DM_DEVICE=cent01-master
+ echo '0 2050048 linear /dev/loop0 0'
+ dmsetup create cent01-master
+ echo cent01-master
+ '[' -z '' ']'
+ quiet echo 'Creating backing file'
+ '[' -n '' ']'
+ eval echo Creating backing file
++ echo Creating backing file
Creating backing file
+ BACKING_FILE=/tmp/cow_backing/cent01-storage
+ dd if=/dev/zero of=/tmp/cow_backing/cent01-storage bs=512 count=1 seek=102400
1+0 records in
1+0 records out
++ find_free_loop_device
+++ ls -1 /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/loop6 /dev/loop7 /dev/loop8 /dev/loop9
++ for device in '`ls -1 /dev/loop*`'
++ losetup /dev/loop0
++ for device in '`ls -1 /dev/loop*`'
++ losetup /dev/loop1
++ echo /dev/loop1
++ return
+ BACKING_DEVICE=/dev/loop1
+ losetup /dev/loop1 /tmp/cow_backing/cent01-storage
+ echo /dev/loop1
+ quiet echo 'Creating snapshot'
+ '[' -n '' ']'
+ eval echo Creating snapshot
++ echo Creating snapshot
Creating snapshot
+ '[' -n ']'
+ dmsetup suspend cent01-master
+ echo '0 2050048 snapshot /dev/mapper/cent01-master /dev/loop1 p 50'
+ dmsetup create cent01
device-mapper ioctl cmd 9 failed: Invalid argument
Command failed

--

regards,

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