]> git.proxmox.com Git - ceph.git/blame - ceph/doc/cephfs/upgrading.rst
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / doc / cephfs / upgrading.rst
CommitLineData
94b18763
FG
1Upgrading the MDS Cluster
2=========================
3
4Currently the MDS cluster does not have built-in versioning or file system
5flags to support seamless upgrades of the MDSs without potentially causing
6assertions or other faults due to incompatible messages or other functional
7differences. For this reason, it's necessary during any cluster upgrade to
8reduce the number of active MDS for a file system to one first so that two
9active MDS do not communicate with different versions. Further, it's also
11fdf7f2 10necessary to take standbys offline as any new CompatSet flags will propagate
94b18763
FG
11via the MDSMap to all MDS and cause older MDS to suicide.
12
13The proper sequence for upgrading the MDS cluster is:
14
151. Reduce the number of ranks to 1:
16
17::
18
19 ceph fs set <fs_name> max_mds 1
20
11fdf7f2 212. Wait for cluster to stop non-zero ranks where only rank 0 is active and the rest are standbys.
94b18763
FG
22
23::
24
94b18763
FG
25 ceph status # wait for MDS to finish stopping
26
273. Take all standbys offline, e.g. using systemctl:
28
29::
30
31 systemctl stop ceph-mds.target
94b18763 32
11fdf7f2 334. Confirm only one MDS is online and is rank 0 for your FS:
94b18763
FG
34
35::
36
11fdf7f2
TL
37 ceph status
38
395. Upgrade the single active MDS, e.g. using systemctl:
40
41::
42
43 # use package manager to update cluster
94b18763
FG
44 systemctl restart ceph-mds.target
45
11fdf7f2
TL
466. Upgrade/start the standby daemons.
47
48::
49
50 # use package manager to update cluster
51 systemctl restart ceph-mds.target
94b18763 52
11fdf7f2 537. Restore the previous max_mds for your cluster:
94b18763
FG
54
55::
56
57 ceph fs set <fs_name> max_mds <old_max_mds>
58
7c673cae
FG
59
60Upgrading pre-Firefly filesystems past Jewel
61============================================
62
63.. tip::
64
65 This advice only applies to users with filesystems
66 created using versions of Ceph older than *Firefly* (0.80).
67 Users creating new filesystems may disregard this advice.
68
69Pre-firefly versions of Ceph used a now-deprecated format
70for storing CephFS directory objects, called TMAPs. Support
71for reading these in RADOS will be removed after the Jewel
72release of Ceph, so for upgrading CephFS users it is important
73to ensure that any old directory objects have been converted.
74
75After installing Jewel on all your MDS and OSD servers, and restarting
76the services, run the following command:
77
78::
79
80 cephfs-data-scan tmap_upgrade <metadata pool name>
81
82This only needs to be run once, and it is not necessary to
83stop any other services while it runs. The command may take some
84time to execute, as it iterates overall objects in your metadata
85pool. It is safe to continue using your filesystem as normal while
86it executes. If the command aborts for any reason, it is safe
87to simply run it again.
88
89If you are upgrading a pre-Firefly CephFS filesystem to a newer Ceph version
90than Jewel, you must first upgrade to Jewel and run the ``tmap_upgrade``
91command before completing your upgrade to the latest version.
92