Project

General

Profile

Feature #42

Resize of rbd image

Added by Yehuda Sadeh over 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
rbd
Target version:
Start date:
04/15/2010
Due date:
% Done:

0%

Estimated time:
1.00 h
Source:
Tags:
Backport:
Reviewed:
Affected Versions:

Description

We want to be able to resize the rbd image. Snapshots should be maintained and should have a size associated with them.

History

#1 Updated by Sage Weil over 9 years ago

rbdtool part is done. i think the driver just needs to have a 'refresh' function to reload the image metadata.

#2 Updated by Sage Weil over 9 years ago

  • Project changed from 3 to Linux kernel client

#3 Updated by Sage Weil over 9 years ago

  • Category set to 6

#4 Updated by Sage Weil over 9 years ago

  • Project changed from Linux kernel client to 3
  • Category deleted (6)

#5 Updated by Yehuda Sadeh over 9 years ago

There is a refresh /sys/class/.. interface, however, resizing of an image should be lock protected, and probably shouldn't happen when an image is mounted on the client. There are certain issues that can happen when resizing a block device after being mapped (or even worse -- with in-flight i/o) and these should be avoided.

#6 Updated by Sage Weil about 9 years ago

resizing hte underlying block device has been possible with ext3 since RHEL 4 (~5 years?), so this is something we should support.

e.g., http://blog.gurudelleccelsopicco.org/2009/09/online-lun-expansion-and-partition-resizing-without-reboot-under-linux/

#7 Updated by Sage Weil about 9 years ago

  • Category set to 7

#8 Updated by Sage Weil almost 9 years ago

  • Estimated time set to 1.00 h
  • Source set to 1

#9 Updated by Sage Weil almost 9 years ago

  • Project changed from 3 to Linux kernel client
  • Category deleted (7)

#10 Updated by Sage Weil over 8 years ago

  • translation missing: en.field_position deleted (500)
  • translation missing: en.field_position set to 1

#11 Updated by Sage Weil over 8 years ago

  • Target version set to v3.0
  • translation missing: en.field_position deleted (3)
  • translation missing: en.field_position set to 2

#12 Updated by Sage Weil over 8 years ago

  • Category set to rbd
  • Status changed from New to Resolved
  • Target version changed from v3.0 to v2.6.39

commit:e56433a0330b61e56489779e21f68fdc4c45f5be

Also available in: Atom PDF