]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: create file system with specific ID 42900/head
authorRamana Raja <rraja@redhat.com>
Mon, 28 Jun 2021 23:39:10 +0000 (19:39 -0400)
committerRamana Raja <rraja@redhat.com>
Tue, 24 Aug 2021 04:24:10 +0000 (00:24 -0400)
commit8a2327281de2c66d725ef02ee4c25cc6af92a86a
tree5730067b0e622a92734e0ecbf903f8176656095c
parent7282d81d2c500b5b0e929c07971b72444c6ac424
mds: create file system with specific ID

File system will need to be recreated when monitor databases are lost
and rebuilt. Some applications (e.g., CSI) expect that the recovered
file system have the same ID as before. Allow creating a file system
with a specific ID to help in such scenarios. This can now be done by
the `fs new` command using the argument 'fscid' and 'force' flag.
Newer file systems will no longer have increasing IDs as a corollary.

Fixes: https://tracker.ceph.com/issues/51340
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit a0a8ba5087f0b82588860cda188dfdb48a964771)

Conflicts:
qa/tasks/cephfs/test_admin.py
        fixed conflicts due tests reorder in master
PendingReleaseNotes
doc/cephfs/administration.rst
qa/tasks/cephfs/test_admin.py
src/mds/FSMap.cc
src/mds/FSMap.h
src/mon/FSCommands.cc
src/mon/MonCommands.h