Score:0

Openstack Wallaby Volume Backup Issue

cn flag

Recently I am testing kubernetes with 1 master node and 3 worker nodes that built on Openstack(version: Wallaby). It involves lots of testing and therefore I would like to back up the volume to local machine beforehand.

The volume backend is using Ceph. Browsing through the internet and it suggests the conversion of volume to image and download the image to local machine. I can perform the conversion successfully to QCOW2 format for my 20GB volume. However, it failed for my 120GB volume.

I have performed the below checking:

(1) I have checked the glance configuration under /etc/glance/glance-api.conf. The image_size_cap parameter is set to 4TB. I have restarted the glance api service as well.

(2) I checked the ceph backend using ceph df command and ceph has enough capacity.

(3) The glance node has enough storage as well. However, I tried to check the image converting progress under /var/lib/glance/images but the directory is empty even if there are images existed on Openstack.

Have anyone hit the same? And could give me some suggestion..

Thank you so much in advance.

Score:0
us flag

The conversion from volume to image happens on the local disk of the controller. Check df -h while the conversion is running, your /var filesystem could be filling up if you haven't enough disk space. Check the directory /var/lib/cinder/conversion, this is where the volume is temporarily stored before uploading it back to ceph as an image. It's a good idea to have an own logical volume (if you use LVM) for /var/lib/cinder/conversion to prevent the filesystem from filling up. If you don't have enough local disk space you could just mount a shared filesystem (e.g. cephFS, NFS, etc.) to /var/lib/cinder/conversion.

ony4869 avatar
cn flag
Thanks a lot! I figure out the storage issue at my cluster. Appreciate your help!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.