What is the output of
# pvesm status
Is the storage in that list?
It should be available without refresh. Are you sure to use the pvetest repository ?
What is the output of
# pvesm status
Is the storage in that list?
Can I add the same rbd pool in all the nodes of the cluster?
#!/bin/bash
#Author: Troy Hockman - Afewteks LLC
#Desc: Backs up ceph images and conf file for kvms.
# Please test and use at own risk.
baktemp=/mnt/pve/KVMBaks/temp
bakdir=/mnt/pve/KVMBaks/dump
for i in $(qm list | grep -v VMID | awk '{print $1":"$2}');
do
echo $i
id=$(echo $i | awk -F ":" '{print $1}')
name=$(echo $i | awk -F ":" '{print $2}')
diskimg=$(rbd ls | grep $id)
if [ "$diskimg" ]; then
rbd snap create --snap ProxMoxBak $diskimg
rbd export $diskimg $baktemp/$diskimg
rbd snap rm --snap ProxMoxBak $diskimg
tar --use-compress-program=lzop -cf $bakdir/rbd.$name.$id.`date +%Y_%m_%d_%H_%M`.tar.lzo $baktemp/$diskimg /etc/pve/qemu-server/$id.conf
rm -f $baktemp/$diskimg
fi
done
#!/bin/bash
#Author: Troy Hockman Afewteks LLC
#Desc: This will do a quick restore for ceph images
bakimage="rbd.TEST.111.2013_01_01_13_09.tar.lzo"
baktemp=/mnt/pve/KVMBaks/temp
bakdir=/mnt/pve/KVMBaks/dump
resimage=$(tar --use-compress-program=lzop -tf $bakdir/$bakimage | grep disk | awk -F "/" '{print $5}')
tar --use-compress-program=lzop -C / -xf $bakdir/$bakimage
rbd import $baktemp/$resimage
Please upgrade ceph to v0.56. I have some issues with 0.48 client and 0.56 servers. Thanks.
#!/bin/bash
#Author: Troy Hockman - Afewteks LLC
#7za mods by Jeff Moskow - Ready-to-Run Software, Inc.
#Desc: Backs up ceph images and conf file for kvms.
# Please test and use at own risk.
baktemp=/mnt/pve/proxsnaps6/temp
bakdir=/mnt/pve/proxsnaps6/dump
for i in $(qm list | grep -v VMID | awk '{print $1":"$2}');
do
echo $i
id=$(echo $i | awk -F ":" '{print $1}')
name=$(echo $i | awk -F ":" '{print $2}')
diskimg=$(rbd ls | grep $id)
if [ "$diskimg" ]; then
rbd snap create --snap ProxMoxBak $diskimg
archive="$baktemp/vzdump-qemu-$name-$id-`date +%Y_%m_%d_%H_%M`.7z"
/usr/local/bin/7za a $archive -mx=0 -m0=bzip2 -mmt=on /etc/pve/qemu-server/$id.conf
rbd export $diskimg - | /usr/local/bin/7za -w$baktemp a $archive -si -mx=0 -m0=bzip2 -mmt=on
rbd snap rm --snap ProxMoxBak $diskimg
mv $archive $bakdir
fi
done
Hi Huys, coming proxmox 2.3 release, will support rbd officialy (gui), and proxmox live backup too (without snapshot).