<div dir="ltr"><a href="https://web.archive.org/web/20160404120859/http://gorka.eguileor.com/inside-cinders-incremental-backup/?replytocom=2267">https://web.archive.org/web/20160404120859/http://gorka.eguileor.com/inside-cinders-incremental-backup/?replytocom=2267</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 23, 2023 at 4:39 PM Eugen Block <<a href="mailto:eblock@nde.ag">eblock@nde.ag</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I looked through the code with a colleague, apparently the code to <br>
increase object counters is not executed with ceph as backend. Is that <br>
assumption correct? Would be interesting to know for which backends <br>
that would actually increase per backup.<br>
<br>
Zitat von Eugen Block <<a href="mailto:eblock@nde.ag" target="_blank">eblock@nde.ag</a>>:<br>
<br>
> I see the same for Wallaby, object_count is always 0.<br>
><br>
> Zitat von Eugen Block <<a href="mailto:eblock@nde.ag" target="_blank">eblock@nde.ag</a>>:<br>
><br>
>> Hi,<br>
>><br>
>> I don't see an object_count > 0 for all incremental backups or the <br>
>> full backup. I tried both with a "full" volume (from image) as well <br>
>> as en empty volume, put a filesystem on it and copied tiny files <br>
>> onto it. This is the result:<br>
>><br>
>> controller02:~ # openstack volume backup list<br>
>> +--------------------------------------+--------------+-------------+-----------+------+<br>
>> | ID | Name | Description <br>
>> | Status | Size |<br>
>> +--------------------------------------+--------------+-------------+-----------+------+<br>
>> | a8a448e7-8bfd-46e3-81bf-3b1d607893e7 | inc-backup2 | None <br>
>> | available | 4 |<br>
>> | 3d11faa0-d67c-432d-afb1-ff44f6a3b4a7 | inc-backup1 | None <br>
>> | available | 4 |<br>
>> | 125c23cd-a5e8-4a7a-b59a-015d0bc5902c | full-backup1 | None <br>
>> | available | 4 |<br>
>> +--------------------------------------+--------------+-------------+-----------+------+<br>
>><br>
>> controller02:~ # for i in `openstack volume backup list -c ID -f <br>
>> value`; do openstack volume backup show $i -c id -c is_incremental <br>
>> -c object_count -f value; done<br>
>> a8a448e7-8bfd-46e3-81bf-3b1d607893e7<br>
>> True<br>
>><br>
>> 3d11faa0-d67c-432d-afb1-ff44f6a3b4a7<br>
>> True<br>
>><br>
>> 125c23cd-a5e8-4a7a-b59a-015d0bc5902c<br>
>> False<br>
>><br>
>><br>
>> This is still Victoria, though, I think I have a Wallaby test <br>
>> installation, I'll try that as well. In which case should <br>
>> object_count be > 0? All my installations have ceph as storage <br>
>> backend.<br>
>><br>
>> Thanks,<br>
>> Eugen<br>
>><br>
>> Zitat von Masayuki Igawa <<a href="mailto:masayuki.igawa@gmail.com" target="_blank">masayuki.igawa@gmail.com</a>>:<br>
>><br>
>>> Hi Satish,<br>
>>><br>
>>>> Whenever I take incremental backup it shows a similar size of original<br>
>>>> volume. Technically It should be smaller. Question is does ceph support<br>
>>>> incremental backup with cinder?<br>
>>><br>
>>> IIUC, it would be expected behavior. According to the API Doc[1],<br>
>>> "size" is "The size of the volume, in gibibytes (GiB)."<br>
>>> So, it's not the actual size of the snapshot itself.<br>
>>><br>
>>> What about the "object_count" of "openstack volume backup show" output?<br>
>>> The incremental's one should be zero or less than the full backup at least?<br>
>>><br>
>>> [1] <br>
>>> <a href="https://docs.openstack.org/api-ref/block-storage/v3/?expanded=show-backup-detail-detail,list-backups-with-detail-detail#id428" rel="noreferrer" target="_blank">https://docs.openstack.org/api-ref/block-storage/v3/?expanded=show-backup-detail-detail,list-backups-with-detail-detail#id428</a><br>
>>><br>
>>> -- Masayuki Igawa<br>
>>><br>
>>> On Wed, May 17, 2023, at 03:51, Satish Patel wrote:<br>
>>>> Folks,<br>
>>>><br>
>>>> I have ceph storage for my openstack and configure cinder-volume and<br>
>>>> cinder-backup service for my disaster solution. I am trying to use the<br>
>>>> cinder-backup incremental option to save storage space but somehow It<br>
>>>> doesn't work the way it should work.<br>
>>>><br>
>>>> Whenever I take incremental backup it shows a similar size of original<br>
>>>> volume. Technically It should be smaller. Question is does ceph support<br>
>>>> incremental backup with cinder?<br>
>>>><br>
>>>> I am running a Yoga release.<br>
>>>><br>
>>>> $ openstack volume list<br>
>>>> +--------------------------------------+------------+------------+------+-------------------------------------+<br>
>>>> | ID | Name | Status | Size<br>
>>>> | Attached to |<br>
>>>> +--------------------------------------+------------+------------+------+-------------------------------------+<br>
>>>> | 285a49a6-0e03-49e5-abf1-1c1efbfeb5f2 | spatel-vol | backing-up | 10<br>
>>>> | Attached to spatel-foo on /dev/sdc |<br>
>>>> +--------------------------------------+------------+------------+------+-------------------------------------+<br>
>>>><br>
>>>> ### Create full backup<br>
>>>> $ openstack volume backup create --name spatel-vol-backup <br>
>>>> spatel-vol --force<br>
>>>> +-------+--------------------------------------+<br>
>>>> | Field | Value |<br>
>>>> +-------+--------------------------------------+<br>
>>>> | id | 4351d9d3-85fa-4cd5-b21d-619b3385aefc |<br>
>>>> | name | spatel-vol-backup |<br>
>>>> +-------+--------------------------------------+<br>
>>>><br>
>>>> ### Create incremental<br>
>>>> $ openstack volume backup create --name spatel-vol-backup-1<br>
>>>> --incremental --force spatel-vol<br>
>>>> +-------+--------------------------------------+<br>
>>>> | Field | Value |<br>
>>>> +-------+--------------------------------------+<br>
>>>> | id | 294b58af-771b-4a9f-bb7b-c37a4f84d678 |<br>
>>>> | name | spatel-vol-backup-1 |<br>
>>>> +-------+--------------------------------------+<br>
>>>><br>
>>>> $ openstack volume backup list<br>
>>>> +--------------------------------------+---------------------+-------------+-----------+------+<br>
>>>> | ID | Name |<br>
>>>> Description | Status | Size |<br>
>>>> +--------------------------------------+---------------------+-------------+-----------+------+<br>
>>>> | 294b58af-771b-4a9f-bb7b-c37a4f84d678 | spatel-vol-backup-1 | None<br>
>>>> | available | 10 |<br>
>>>> | 4351d9d3-85fa-4cd5-b21d-619b3385aefc | spatel-vol-backup | None<br>
>>>> | available | 10 |<br>
>>>> +--------------------------------------+---------------------+-------------+-----------+------+<br>
>>>> My incremental backup still shows 10G size which should be lower<br>
>>>> compared to the first backup.<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>
<p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:capitalize;font-family:"RedHatText",sans-serif">
<font size="1"><span>Sofía</span> <span>Enriquez</span><span style="color:rgb(170,170,170);margin:0px"></span>
</font></p><font size="1">
</font><p style="font-weight:normal;margin:0px 0px 4px;text-transform:capitalize;font-family:"RedHatText",sans-serif"><font size="1">she/her</font></p><font size="1">
</font><p style="font-weight:normal;margin:0px;text-transform:capitalize;font-family:"RedHatText",sans-serif">
<font size="1"><span>Software Engineer</span></font>
</p><font size="1">
</font><p style="font-weight:normal;margin:0px 0px 4px;font-family:"RedHatText",sans-serif">
<font size="1"><a style="color:rgb(0,136,206);margin:0px;text-decoration:none;font-family:"RedHatText",sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span>PnT</span></a></font>
</p><font size="1"><span></span></font><p style="font-weight:normal;margin:0px;font-family:"RedHatText",sans-serif"><font size="1"><span><span>IRC: @enriquetaso</span></span></font>
</p><font size="1">
</font><div style="font-weight:normal;font-size:12px;font-family:"RedHatText",sans-serif;margin-bottom:8px"><font size="1">
</font><div><font size="1">
<a href="https://twitter.com/redhat" title="twitter" style="background:transparent url("https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/3780bd4ede961ef3cd4108b8c0e80186/web-icon-twitter.png") 0px 50%/13px no-repeat;text-decoration:none;color:rgb(0,0,0);display:inline-block;line-height:20px;padding-left:13px" target="_blank"> <span style="margin-left:2px">@RedHat</span> </a> <a href="https://www.linkedin.com/company/red-hat" title="LinkedIn" style="background:transparent url("https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/8d3507e3c6b6c9ad10e301accf1a4af0/web-icon-linkedin.png") 0px 50%/12px no-repeat;text-decoration:none;color:rgb(0,0,0);display:inline-block;line-height:20px;padding-left:12px;margin:0px 4px 0px 3px;padding-top:1px" target="_blank"> <span style="margin-left:4px">Red Hat</span> </a> </font><a href="https://www.facebook.com/RedHatInc" title="Facebook" style="background:transparent url("https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/220b85e2f100025e94cb1bcd993bd51d/web-icon-facebook.png") 0px 50%/11px no-repeat;text-decoration:none;color:rgb(0,0,0);display:inline-block;line-height:20px;padding-left:13px" target="_blank"><font size="1"> <span>Red Hat</span></font> </a>
</div>
</div>
<div style="margin-top:12px">
<table border="0">
<tbody><tr>
<td width="100px"><a href="https://www.redhat.com" target="_blank"> <img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="90" height="auto"></a> </td>
</tr>
</tbody></table>
</div>
</div><table border="0"><tbody><tr><td width="100px"><br></td>
</tr></tbody></table>
</div></div></div></div></div></div></div></div></div></div></div></div></div>