Project

General

Profile

Actions

Feature #3095

closed

rbd tool resize improvements

Added by Damien Churchill over 11 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

It might be handy if the rbd CLI tool could warn an admin when performing a resize operation that would ultimately end up with the image shrinking. Or alternatively change it so the size argument is a relative instead of an absolute value where it would have to be a conscious decision to use a negative size in order to shrink.

I accidentally missed off a 0 from my size the other day and ended up hosing an image.

Actions #1

Updated by Loïc Dachary over 9 years ago

  • Status changed from New to Resolved
$ rbd create --size 10 foo
$ rbd resize --size 1 foo
rbd: shrinking an image is only allowed with the --allow-shrink flag
Actions

Also available in: Atom PDF