You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The “” subtree is the root of the file system (“/”) and is always managed by rank 0. The “/tmp” subtree is being managed by rank 2. (A subtree path beginning with “~” is an internal subtree and not part of the file system hierarchy.)
40
42
@@ -48,15 +50,17 @@ For example, it can prevent a directory from splitting into multiple subtrees an
48
50
49
51
Pinning a directory to a particular rank is done by setting an extended attribute:
50
52
51
-
$ setfattr -n ceph.dir.pin -v 2 /mnt/cephfs/tmp
52
-
53
+
```
54
+
$ setfattr -n ceph.dir.pin -v 2 /mnt/cephfs/tmp
55
+
```
53
56
This has the effect of preventing the CephFS directory “/tmp” from being split into smaller subtrees and also pinning “/tmp” to rank 2 (if that rank exists). Once this is done, you may query the rank 2 MDS to see its subtree map:
The “/users” subtree sets a “default” pin for itself and its children (home directories) to rank 0. However, “/users/joe” has a pin to rank 1 which overrides the “/users” pin.
0 commit comments