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
> $B!&%+!<%M%k%$%a!<%8(B
> $B!&(BRAM$B%G%#%9%/%$%a!<%8(B
> $B$O%$%s%9%?%s%9$NJ]B8$HF1MM$KJ]B8$9$kI,MW$O$J$$$N$G$7$g$&$+!)(B
> $B$465<xD:$1$l$P9,$$$G$9!#(B
>
>
> $B8e!"G0$N$?$a!"%^%7%s%9%Z%C%/!"%"%C%W%m!<%I;~$N>pJs$rE>5-!"(B
> $B$4;XF3$$$?$@$-$^$7$?%m%0%U%!%$%k$rE:IUCW$7$^$9!#(B
>
>
> $B%^%7%s%9%Z%C%/!'(B
> $B"((BEucalyptus$B%M%C%H%o!<%/%b!<%I!'(BMANAGED-NOVLAN$B%b!<%I(B
> $B!&(BCLC$B!?(BCC$B!?(BSC$B!?(BWalrus$B!J(BVM$B$K$F2TF/!K(B
> $B!!!!(BCPU$B!'(BAMD PhenomII X4 Model 965$B!J(B3.4GHz$B!K(B
> $B!!!!%a%b%j!'(B8GB$B!J(BDDR2 800MHz$B!K(B
> $B!!!!(BNIC$B!'-!(BBroadcom Corporation NetLink BCM5784M Gigabit Ethernet
> $B!!!!!!!!!!-"(BIntel Corporation 82544EI Gigabit Ethernet Controller
> $B!!!!%[%9%H(BOS$B!'(BDebian6
> $B!!!!%2%9%H(BOS$B!'(BCentOS 6.5
> $B!!!!;HMQ(BVM$B!'(BVirtualBox
> $B!&(BNC
> $B!!(B3$BBf!J(BFastStart$B%-%C%H$G%/%j!<%s%$%s%9%H!<%k!K(B
> $B!!!!(BCPU$B!'(BIntel Core2 Duo E8400$B!J(B3.0GHz$B!K(B
> $B!!!!%a%b%j!'(B4GB$B!J(BDDR2 800MHz$B!K(B
> $B!!!!(BNIC$B!'(BIntel Corporation 82566DM-2 Gigabit Network Connection
> $B!!!!(BOS$B!'(BCentOS 6.5
> $B!!!!!!!!"((BKVM$B;HMQ(B
>
>
> $B%"%C%W%m!<%I%U%!%$%k>pJs!'(B
>
> test001.part.00 ( 1/25) 100% |=============================| 10.00
> MB 13.17 MB/s Time: 0:00:00
> test001.part.01 ( 2/25) 100% |=============================| 10.00
> MB 20.26 MB/s Time: 0:00:00
> test001.part.02 ( 3/25) 100% |=============================| 10.00
> MB 23.13 MB/s Time: 0:00:00
> test001.part.03 ( 4/25) 100% |=============================| 10.00
> MB 23.42 MB/s Time: 0:00:00
> test001.part.04 ( 5/25) 100% |=============================| 10.00
> MB 22.17 MB/s Time: 0:00:00
> test001.part.05 ( 6/25) 100% |=============================| 10.00
> MB 19.80 MB/s Time: 0:00:00
> test001.part.06 ( 7/25) 100% |=============================| 10.00
> MB 13.92 MB/s Time: 0:00:00
> test001.part.07 ( 8/25) 100% |=============================| 10.00
> MB 14.48 MB/s Time: 0:00:00
> test001.part.08 ( 9/25) 100% |=============================| 10.00
> MB 17.78 MB/s Time: 0:00:00
> test001.part.09 (10/25) 100% |=============================| 10.00
> MB 14.49 MB/s Time: 0:00:00
> test001.part.10 (11/25) 100% |=============================| 10.00
> MB 18.98 MB/s Time: 0:00:00
> test001.part.11 (12/25) 100% |=============================| 10.00
> MB 16.29 MB/s Time: 0:00:00
> test001.part.12 (13/25) 100% |=============================| 10.00
> MB 21.35 MB/s Time: 0:00:00
> test001.part.13 (14/25) 100% |=============================| 10.00
> MB 19.08 MB/s Time: 0:00:00
> test001.part.14 (15/25) 100% |=============================| 10.00
> MB 21.10 MB/s Time: 0:00:00
> test001.part.15 (16/25) 100% |=============================| 10.00
> MB 24.42 MB/s Time: 0:00:00
> test001.part.16 (17/25) 100% |=============================| 10.00
> MB 23.24 MB/s Time: 0:00:00
> test001.part.17 (18/25) 100% |=============================| 10.00
> MB 25.14 MB/s Time: 0:00:00
> test001.part.18 (19/25) 100% |=============================| 10.00
> MB 25.17 MB/s Time: 0:00:00
> test001.part.19 (20/25) 100% |=============================| 10.00
> MB 20.17 MB/s Time: 0:00:00
> test001.part.20 (21/25) 100% |=============================| 10.00
> MB 26.15 MB/s Time: 0:00:00
> test001.part.21 (22/25) 100% |=============================| 10.00
> MB 18.17 MB/s Time: 0:00:00
> test001.part.22 (23/25) 100% |=============================| 10.00
> MB 22.58 MB/s Time: 0:00:00
> test001.part.23 (24/25) 100% |=============================| 10.00
> MB 23.29 MB/s Time: 0:00:00
> test001.part.24 (25/25) 100% |=============================| 5.79
> MB 16.98 MB/s Time: 0:00:00
> test001.manifest.xml 100% |================================| 6.96
> kB 24.11 kB/s Time: 0:00:00
>
>
> $B0J>e!"$h$m$7$/$*4j$$CW$7$^$9!#(B
>
>
>
>
> (2014/05/01 12:48), Osamu Habuka wrote:
>> $BLZ2<$5$s(B
>>
>> $BEPO?$7$?%$%a!<%8%5%$%:$O2?(B GB $B$0$i$$$G$7$g$&$+!)(B
>> $B$^$?!"(B euca-register $B$rC!$$$?$"$H$K$9$0$K%$%s%9%?%s%9$r5/F0$7$?$N(B
>> $B$G$7$g$&$+!)(B
>> $B$H$$$&$N$b!"(Beuca-register $B$rC!$$$?$"$H!"(BWalrus $B$G$O0E9f2=(B+$B05=L$5(B
>> $B$l$F$$$k(B
>> $B%^%7%s%$%a!<%8$rI|9f=hM}$*$h$S2rEz=hM}$r$9$k$?$a!"(BEucalyptus $B$N(B
>> $B%P!<%8%g%s$K(B
>> $B$h$C$F$O(B euca-register $BD>8e$K%$%s%9%?%s%9$r5/F0$9$k$H!"I|9f=hM}$*(B
>> $B$h$S2rEz=hM}Cf$N(B
>> $B$?$a$K%$%s%9%?%s%95/F0$,<:GT$7$^$9!#(B
>> $B$G$9$N$G!"(Beuca-register $B$rC!$$$?$"$H$O!"(BWalrus $B$rF0:n$5$;$F$$$k%^(B
>> $B%7%s%9%Z%C%/$K$b(B
>> $B$h$j$^$9$,!"?tJ,$b$7$/$O?t==J,BT$C$F$+$i%$%s%9%?%s%9$r5/F0$5$;$F(B
>> $B$_$F$/$@$5$$!#(B
>>
>> $B$=$l$G$b5/F0$7$J$$$h$&$G$7$?$i!"Ev3:%$%s%9%?%s%9$,5/F0$7$h$&$H$7(B
>> $B$?(B NC $B$N(B
>> /var/log/eucalyptus/nc.log $B$H(B /var/log/libvirt/libvirtd.log $B$r8+(B
>> $B$;$F$/$@$5$$!#(B
>>
>>
>> $B$G$O!"AGE($J(B Eucalyptus $B%i%$%U$r!#(B
>>
>> 2014$BG/(B5$B7n(B1$BF|(B 1:15 Seiji Kinoshita <jsynth @ mx6.nisiq.net
>> <mailto:jsynth @ mx6.nisiq.net>>:
>>
>> $B=i$a$^$7$F!#LZ2<(B $B$H?=$7$^$9!#(B
>> $B%/%i%&%I4XO"$N0F7o$K7H$o$k$3$H$K$J$j!"(B
>> $B%/%i%&%I(BOS$B$J$k$b$N$,$"$k$3$H$rCN$j!"(B
>> Eucalyptus$B$K$D$$$FJY6/$r;O$a$?$P$+$j$N$b$N$G$9!#(B
>>
>> $B8=:_!"(BEucalyptus Systems, Inc$B$h$j%j%j!<%9$5$l$?(BFastStar$B%-%C%H(B
>> $B$r;HMQ$7!"(B
>> Eucalyptus private cloud$B$r9=C[$7$^$7$?!#(B
>> $B!&%$%s%9%?%s%9$N5/F0(B
>> $B!&?7$7$$%$%a!<%8!J(BDebian7$B!K$N%"%C%W%m!<%I$*$h$S$=$N%$%s%9%?%s(B
>> $B%9$N5/F0(B
>> $B$O$G$-$k$h$&$K$J$C$?$N$G$9$,!"(B
>> $B2TF/Cf$N%$%s%9%?%s%9$NJ]B8!JMM!9$J%Q!<%1!<%8$rDI2C!"%"%C%W(B
>> $B%G!<%H$7$?$b$N!K(B
>> $B$HJ]B8$7$?%$%a!<%8$G$N5/F0$,$G$-$:$K$$$^$9!#(B
>>
>> $B?'!9$JJ88%$rGR8+$5$;$F$$$?$@$-!"(B
>> $B!&(Beuca-bundle-vol$B$G$N%$%s%9%?%s%9%$%a!<%8$N:n @ .(B
>> $B!&(Beuca-upload-bundle$B$G$N(BCLC$B!&(BCC$B$X$N%$%a!<%8$N%"%C%W%m!<%I(B
>> $B!&(Beuca-register$B$G$N%$%a!<%8EPO?(B
>> $B$^$G$O2?$H$+$G$-$k$h$&$K$J$C$?$N$G$9$,!"(B
>> $B$$$6<B:]$KJ]B8$7$?%$%a!<%8$G%$%s%9%?%s%9$r<B9T$9$k$H!"(B
>> $B!!(BPending$B>uBV"*(BShuttingdown$B>uBV"*(BTerminated$B>uBV(B
>> $B$H$J$C$F$7$^$$!"(BRunning$B>uBV$H(B $B$9$k$3$H$,$G$-$^$;$s!#(B
>>
>> $BNI$$%"%I%P%$%9$,8f:B$$$^$7$?$i$h$m$7$/$*4j$$CW$7$^$9!#(B
>>
>> $B%^%7%s9=@.!'(B
>> $B"((BMANAGED-NOVLAN$B%b!<%I$rA*Br(B
>> $B!&(BCLC$B!?(BCC$B!?(BWalrus
>> $B!!(BLinuxPC$B!J(BDebian6$B!K>e$N(BVM$B$K$F2TF/(B
>> $B!!!!(BCPU$B!'(B4$B%3%"(B
>> $B!!!!%a%b%j!'(B8GB
>> $B!&(BNC
>> $B!!(B3$BBf!J(BFastStar$B%-%C%H$G%/%j!<%s%$%s%9%H!<%k!K(B
>> $B!!!!(BCPU$B!'(B2$B%3%"(Bx3
>> $B!!!!%a%b%j!'(B4GBx3
>> $B!!!!"((BKVM$B;HMQ(B
>>
>> $B0J>e!"$h$m$7$/$*4j$$CW$7$^$9!#(B
>>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$,=|5n$5$l$^$7$?(B.
URL: http://ml.eucalyptus-users.jp/pipermail/eucalyptus-users/attachments/20140506/e3bbd0f8/attachment-0001.html
-------------- next part --------------
#!/bin/sh
## $Beb".eb".ec".j&2hJ2p*".j0".(Bexport EUCA_CLC_IPADDR=xxx.xxx.xxx.xxx
export EUCA_CLC_USER=root
export EUCA_CLC_USER_PK=/root/euca/ssh/id_rsa_rsync
export EUCA_CLC_SSUPLOAD_ROOT=/root/backup/snapshot/debian7/type001
export IMAGE_WORK_DIR=/ebs/vol00
export EC2_ACCESS_KEY=AKIAxxxxxxxxxxxxxxxx
export EC2_ACCOUNT_NUMBER=4409xxxxxxxx
export EC2_CERT=/root/euca/credentials/admin/euca2-admin-xxxxxxxx-cert.pem
export EC2_JVM_ARGS=-Djavax.net.ssl.trustStore=/root/euca/credentials/admin/jssecacerts
export EC2_PRIVATE_KEY=/root/euca/credentials/admin/euca2-admin-xxxxxxxx-pk.pem
export EC2_SECRET_KEY=bbwgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export EC2_URL=http://$EUCA_CLC_IPADDR:8773/services/Eucalyptus
export EC2_USER_ID=4409xxxxxxxx
export EC2_USER_ID2=0694xxxxxxxx
export EUARE_URL=http://$EUCA_CLC_IPADDR:8773/services/Euare
export EUCALYPTUS_CERT=/root/euca/credentials/admin/cloud-cert.pem
# export EUCALYPTUS_PK=/root/euca/keys/himiko.pem
export EUCALYPTUS_PK=/root/euca/keys/cloud-pk.pem
export EUCA_KEY_DIR=/root/euca/credentials/admin
export EUID=0
export EUSTORE_URL=http://emis.eucalyptus.com/
echo "OS Image SnapShot TYPE001 Start!!"
## $Bp,:j".".eb".ec".ea".j3JkKk(B
cd /root
tar xvzf euca.tgz
## $Bh?Xh".".mt".ecXe&,ec".ec".ec`e".l<Lg#y(B
cat /proc/partitions
echo -e ",\n;\n;\n;\n" | sfdisk /dev/vdb
mkfs.ext3 /dev/vdb1
sync
sync
sync
mkdir -p /ebs/vol00
mount /dev/vdb1 $IMAGE_WORK_DIR
sync
sync
sync
df -h
#CLC$Big".mp".Kkj)6e$/ec".ea".n$".p,".(Bscp -i $EUCA_CLC_USER_PK -r $EUCA_CLC_USER@$EUCA_CLC_IPADDR:$EUCA_CLC_SSUPLOAD_ROOT/CLC_UPLOADING $IMAGE_WORK_DIR/ > /dev/null
if [ $? != 0 ]; then
#CLC$Beb".ec".".ec".ec".ec2g".ebDe$1ec".eb".(B
rsync -arv --delete -e "ssh -i $EUCA_CLC_USER_PK" $IMAGE_WORK_DIR/ $EUCA_CLC_USER@$EUCA_CLC_IPADDR:$EUCA_CLC_SSUPLOAD_ROOT/
#$Big".mp".Kkj)6e$/ec".ebDe$5ecHe".(B
echo "SnapShot Uploading" > $IMAGE_WORK_DIR/NC_UPLOADING
scp -i $EUCA_CLC_USER_PK -r $IMAGE_WORK_DIR/NC_UPLOADING $EUCA_CLC_USER@$EUCA_CLC_IPADDR:$EUCA_CLC_SSUPLOAD_ROOT/ > /dev/null
## $Bj0^j".8iD2j$".#rec\e$9ec".eb".ec".ec".eb".ea".eaNe"(j0^j".8g>1oc".ea".j?".j>>e"-eaRe#k(B
# euca-bundle-vol --user $EC2_USER_ID2 -s 3072 -p snapshot001 --exclude /ebs -d $IMAGE_WORK_DIR/ -r x86_64 -k $EUCALYPTUS_PK
euca-bundle-vol --user $EC2_USER_ID2 -s 3072 -p snapshot001 --exclude /ebs -d $IMAGE_WORK_DIR/ -r x86_64
sync
sync
sync
#$Bec\e$9ec".eb".ec".ec".eb".ebC$(BLC/CC$Bea".eb".ecHe".(B
scp -i $EUCA_CLC_USER_PK -r $IMAGE_WORK_DIR/* $EUCA_CLC_USER@$EUCA_CLC_IPADDR:$EUCA_CLC_SSUPLOAD_ROOT/
sync
sync
sync
#$Big".mp".".8f".".$/ec".ebDe$5ecHe".(B
echo "SnapShot Uploaded" > $IMAGE_WORK_DIR/NC_UPLOADED
scp -i $EUCA_CLC_USER_PK -r $IMAGE_WORK_DIR/NC_UPLOADED $EUCA_CLC_USER@$EUCA_CLC_IPADDR:$EUCA_CLC_SSUPLOAD_ROOT/ > /dev/null
rm -rf $IMAGE_WORK_DIR/*
sync
sync
sync
fi
umount $IMAGE_WORK_DIR
echo "OS Image SnapShot TYPE001 Finish!!"
exit 0
-------------- next part --------------
/IMAGE/{
print $2
}
-------------- next part --------------
#!/bin/sh
#$Bj>JhJ2ea".n$".p,".(Bif ! [ $1 ]
then
echo "usage:"
echo "\t$0 [Delete debian7_snapshot Dir]"
exit 1
else
if ! [ -d $1 ]
then
echo "$0 Err:"
echo "\tWorkDir was non."
exit 1
else
echo "OS Image SnapShot Delete Start!!"
#$Beb".ec4e%cecNe$9ec".ec".%hea".ec @ e$3ec".%hip:j".".j0".(B export BACKETNAME=`cat $1/Backet_Name`
## $Beb".ec4e%cecNe$9ec".ec".%hea".ii4kR&h?Xh".".(B
#CLC/CC $Bea".ea".(B
export IMAGE_REGISTER_ID=`cat $1/register_ID | awk -f /root/bin/getRegister_ID.awk`
euca-deregister $IMAGE_REGISTER_ID
sleep 420
euca-deregister $IMAGE_REGISTER_ID
euca-delete-bundle -b $BACKETNAME -m $1/snapshot001.manifest.xml
euca-delete-bundle -b $BACKETNAME --clear -m $1/snapshot001.manifest.xml
echo "OS Image SnapShot Delete Finish!!"
exit 0
fi
fi
-------------- next part --------------
#!/bin/sh
#NC$Big".mp".".8f".".$/ec".ea".n$".p,".(Bcat /root/backup/snapshot/debian7/type001/NC_UPLOADED >& /dev/null
if [ $? == 0 ]
then
echo "OS Image SnapShot TYPE001 Uploard Start!!"
#CLC$Big".mp".Kkj)6e$/ec".ebDe$5ecHe".(B
echo "SnapShot Uploading" > /root/backup/snapshot/debian7/type001/CLC_UPLOADING
#NC$Big".mp".Kkj)6e$/ec".".=/(BC$Big".mp".".8f".".$/ec".ebDg1jqy".(B
rm -rf /root/backup/snapshot/debian7/type001/NC_UPLOADING
rm -rf /root/backup/snapshot/debian7/type001/NC_UPLOADED
#$Bmy".ql".l:0e"Akw".eb".ec4e%cecNe$9ec".ec".%hea".k|2i(#ec"e$)ec".$1(B
cat /root/backup/snapshot/debian7/_CURRENT_SNAPSHOT_TYPE001_DIR >& /dev/null
if [ $? == 0 ]
then
#$Bkw".eb".ec4e%cecNe$9ec".ec".%hea".(BDir$Bp*".j0".(B export PREVIOUS_SNAPSHOT_DIR=`cat /root/backup/snapshot/debian7/_CURRENT_SNAPSHOT_TYPE001_DIR`
#$Beb".ec4e%cecNe$9ec".ec".%hea".ii4kR&h?Xh".".(B
/root/bin/snapshot_delete_debian7.sh $PREVIOUS_SNAPSHOT_DIR
rm -rf /root/backup/snapshot/debian7/_CURRENT_SNAPSHOT_TYPE001_DIR
fi
export DATE_STR=`date +%Y%m%d%H%M`
export SS_NEW_DIR=/root/backup/snapshot/debian7/type001_$DATE_STR
mkdir $SS_NEW_DIR
mv /root/backup/snapshot/debian7/type001/snapshot* $SS_NEW_DIR/
sync
sync
sync
#CLC$Big".mp".Kkj)6e$/ec".ebDg1jqy".(B
rm -rf /root/backup/snapshot/debian7/type001/CLC_UPLOADING
#$Bec @ e$3ec".%hip:j".".j0".(B export BACKET_STR=debian7-amd64_type001_snapshot$DATE_STR
## $Bec\e$9ec".eb".ec".ec".eb".ea".my".ql".h?Xh".".(B
#CLC/CC $Bea".ea".(B
euca-upload-bundle -b $BACKET_STR -m $SS_NEW_DIR/snapshot001.manifest.xml
euca-register $BACKET_STR/snapshot001.manifest.xml -n euca-debian7-amd64_type001_snapshot$DATE_STR > $SS_NEW_DIR/register_ID
sleep 900
## $Beb".eb".eb".eb".l*".".SB(Bll$Bea".p*".j0".(B export IMAGE_REGISTER_ID=`cat $SS_NEW_DIR/register_ID | awk -f /root/bin/getRegister_ID.awk`
euca-modify-image-attribute -l -a all $IMAGE_REGISTER_ID
echo $SS_NEW_DIR > /root/backup/snapshot/debian7/_CURRENT_SNAPSHOT_TYPE001_DIR
echo $BACKET_STR > $SS_NEW_DIR/Backet_Name
echo "OS Image SnapShot TYPE001 Uploard Finish!!"
exit 0
else
exit 1
fi
Eucalyptus-Users メーリングリストの案内