[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) ??
On 1/26/06, Tim Deegan <Tim.Deegan@xxxxxxxxxxxx> wrote: What is the actual dmsetup command that fails? What's the output of Here is the output. I used cent02 since cent01 was already present in /dev/mapper/ bash -x /usr/sbin/create_cow -i /root/xen/centos.4-2.img -n cent02 -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=cent02 + 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 cent02 -o -z 50 ']' + check_prereq dmsetup + which dmsetup + check_prereq losetup + which losetup + check_prereq blockdev + which blockdev + dmsetup mknodes + '[' -e /dev/mapper/cent02 -o -e /tmp/cow_backing/cent02-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/loop10 /dev/loop100 /dev/loop101 /dev/loop102 /dev/loop103 /dev/loop104 /dev/loop105 /dev/loop106 /dev/loop107 /dev/loop108 /dev/loop109 /dev/loop11 /dev/loop110 /dev/loop111 /dev/loop112 /dev/loop113 /dev/loop114 /dev/loop115 /dev/loop116 /dev/loop117 /dev/loop118 /dev/loop119 /dev/loop12 /dev/loop120 /dev/loop121 /dev/loop122 /dev/loop123 /dev/loop124 /dev/loop125 /dev/loop126 /dev/loop127 /dev/loop13 /dev/loop14 /dev/loop15 /dev/loop16 /dev/loop17 /dev/loop18 /dev/loop19 /dev/loop2 /dev/loop20 /dev/loop21 /dev/loop22 /dev/loop23 /dev/loop24 /dev/loop25 /dev/loop26 /dev/loop27 /dev/loop28 /dev/loop29 /dev/loop3 /dev/loop30 /dev/loop31 /dev/loop32 /dev/loop33 /dev/loop34 /dev/loop35 /dev/loop36 /dev/loop37 /dev/loop38 /dev/loop39 /dev/loop4 /dev/loop40 /dev/loop41 /dev/loop42 /dev/loop43 /dev/loop44 /dev/loop45 /dev/loop46 /dev/loop47 /dev/loop48 /dev/loop49 /dev/loop5 /dev/loop50 /dev/loop51 /dev/loop52 /dev/loop53 /dev/loop54 /dev/loop55 /dev/loop56 /dev/loop57 /dev/loop58 /dev/loop59 /dev/loop6 /dev/loop60 /dev/loop61 /dev/loop62 /dev/loop63 /dev/loop64 /dev/loop65 /dev/loop66 /dev/loop67 /dev/loop68 /dev/loop69 /dev/loop7 /dev/loop70 /dev/loop71 /dev/loop72 /dev/loop73 /dev/loop74 /dev/loop75 /dev/loop76 /dev/loop77 /dev/loop78 /dev/loop79 /dev/loop8 /dev/loop80 /dev/loop81 /dev/loop82 /dev/loop83 /dev/loop84 /dev/loop85 /dev/loop86 /dev/loop87 /dev/loop88 /dev/loop89 /dev/loop9 /dev/loop90 /dev/loop91 /dev/loop92 /dev/loop93 /dev/loop94 /dev/loop95 /dev/loop96 /dev/loop97 /dev/loop98 /dev/loop99 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop0 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop1 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop10 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop100 ++ echo /dev/loop100 ++ return + SOURCE_DEVICE=/dev/loop100 + quiet echo 'Putting /root/xen/centos.4-2.img onto loopback device /dev/loop100' + '[' -n '' ']' + eval echo Putting /root/xen/centos.4- 2.img onto loopback device /dev/loop100 ++ echo Putting /root/xen/centos.4-2.img onto loopback device /dev/loop100 Putting /root/xen/centos.4-2.img onto loopback device /dev/loop100 + losetup /dev/loop100 /root/xen/centos.4- 2.img + echo /dev/loop100 ++ blockdev --getsize /dev/loop100 + SOURCE_SIZE=2050048 + echo /dev/loop100 + grep -q /dev/mapper/ + quiet echo 'Creating a device mapper device for /dev/loop100' + '[' -n '' ']' + eval echo Creating a device mapper device for /dev/loop100 ++ echo Creating a device mapper device for /dev/loop100 Creating a device mapper device for /dev/loop100 + SOURCE_DM_DEVICE=cent02-master + echo '0 2050048 linear /dev/loop100 0' + dmsetup create cent02-master + echo cent02-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/cent02-storage + dd if=/dev/zero of=/tmp/cow_backing/cent02-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/loop10 /dev/loop100 /dev/loop101 /dev/loop102 /dev/loop103 /dev/loop104 /dev/loop105 /dev/loop106 /dev/loop107 /dev/loop108 /dev/loop109 /dev/loop11 /dev/loop110 /dev/loop111 /dev/loop112 /dev/loop113 /dev/loop114 /dev/loop115 /dev/loop116 /dev/loop117 /dev/loop118 /dev/loop119 /dev/loop12 /dev/loop120 /dev/loop121 /dev/loop122 /dev/loop123 /dev/loop124 /dev/loop125 /dev/loop126 /dev/loop127 /dev/loop13 /dev/loop14 /dev/loop15 /dev/loop16 /dev/loop17 /dev/loop18 /dev/loop19 /dev/loop2 /dev/loop20 /dev/loop21 /dev/loop22 /dev/loop23 /dev/loop24 /dev/loop25 /dev/loop26 /dev/loop27 /dev/loop28 /dev/loop29 /dev/loop3 /dev/loop30 /dev/loop31 /dev/loop32 /dev/loop33 /dev/loop34 /dev/loop35 /dev/loop36 /dev/loop37 /dev/loop38 /dev/loop39 /dev/loop4 /dev/loop40 /dev/loop41 /dev/loop42 /dev/loop43 /dev/loop44 /dev/loop45 /dev/loop46 /dev/loop47 /dev/loop48 /dev/loop49 /dev/loop5 /dev/loop50 /dev/loop51 /dev/loop52 /dev/loop53 /dev/loop54 /dev/loop55 /dev/loop56 /dev/loop57 /dev/loop58 /dev/loop59 /dev/loop6 /dev/loop60 /dev/loop61 /dev/loop62 /dev/loop63 /dev/loop64 /dev/loop65 /dev/loop66 /dev/loop67 /dev/loop68 /dev/loop69 /dev/loop7 /dev/loop70 /dev/loop71 /dev/loop72 /dev/loop73 /dev/loop74 /dev/loop75 /dev/loop76 /dev/loop77 /dev/loop78 /dev/loop79 /dev/loop8 /dev/loop80 /dev/loop81 /dev/loop82 /dev/loop83 /dev/loop84 /dev/loop85 /dev/loop86 /dev/loop87 /dev/loop88 /dev/loop89 /dev/loop9 /dev/loop90 /dev/loop91 /dev/loop92 /dev/loop93 /dev/loop94 /dev/loop95 /dev/loop96 /dev/loop97 /dev/loop98 /dev/loop99 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop0 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop1 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop10 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop100 ++ for device in '`ls -1 /dev/loop*`' ++ losetup /dev/loop101 ++ echo /dev/loop101 ++ return + BACKING_DEVICE=/dev/loop101 + losetup /dev/loop101 /tmp/cow_backing/cent02-storage + echo /dev/loop101 + quiet echo 'Creating snapshot' + '[' -n '' ']' + eval echo Creating snapshot ++ echo Creating snapshot Creating snapshot + '[' -n ']' + dmsetup suspend cent02-master + echo '0 2050048 snapshot /dev/mapper/cent02-master /dev/loop101 p 50' + dmsetup create cent02 device-mapper ioctl cmd 9 failed: Invalid argument Command failed Looks like it fails at the dmsetup create line. -- regards, Anand _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |