Project

General

Profile

Actions

Feature #12113

closed

rbd map should probably avoid creating duplicate devices for the same image

Added by Samuel Just almost 9 years ago. Updated over 6 years ago.

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

0%

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

Description

Perhaps the default should be that mapping an rbd image creates a new /dev/rbd* if one does not exist for the image, and then creates a symlink, perhaps in /dev/rbd/ ? mapping the new alias to the same device. That would prevent ext4 from incorrectly mounting the same image twice. It would also allow rbd map to let the user specify a name for the rbd image mapping.

The current behavior is useful in some cases, however. Probably there should be a --force-duplicate option to force a new kernel mapping as in the current behavior.

Actions #1

Updated by Samuel Just almost 9 years ago

  • Project changed from Ceph to rbd
  • Target version deleted (v9.0.4)
Actions #2

Updated by Samuel Just almost 9 years ago

  • Target version set to v10.0.1
Actions #3

Updated by Samuel Just almost 9 years ago

  • Target version deleted (v10.0.1)
Actions #4

Updated by Michal Jarzabek almost 9 years ago

I can have a look at this

Actions #5

Updated by Jason Dillaman over 6 years ago

  • Status changed from New to Resolved

The "rbd map" CLI will now issue a warning when you create a duplicate map.

Actions

Also available in: Atom PDF