[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Tim Deegan <Tim.Deegan@xxxxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.