@@ -268,6 +268,9 @@ List snapshots of a subvolume group by running a command of the following form:
268268FS Subvolumes
269269-------------
270270
271+ Creating a subvolume
272+ ~~~~~~~~~~~~~~~~~~~~
273+
271274Use a command of the following form to create a subvolume:
272275
273276.. prompt :: bash #
@@ -286,6 +289,9 @@ default subvolume group with an octal file mode of ``755``, a uid of its
286289subvolume group, a gid of its subvolume group, a data pool layout of its parent
287290directory, and no size limit.
288291
292+ Removing a subvolume
293+ ~~~~~~~~~~~~~~~~~~~~
294+
289295Use a command of the following form to remove a subvolume:
290296
291297.. prompt :: bash #
@@ -310,6 +316,9 @@ involve the retained snapshots.
310316.. note :: Retained snapshots can be used as clone sources for recreating the
311317 subvolume or for cloning to a newer subvolume.
312318
319+ Resizing a subvolume
320+ ~~~~~~~~~~~~~~~~~~~~
321+
313322Use a command of the following form to resize a subvolume:
314323
315324.. prompt :: bash #
@@ -323,6 +332,9 @@ below the current "used size" of the subvolume.
323332The subvolume can be resized to an unlimited (but sparse) logical size by
324333passing ``inf `` or ``infinite `` as ``<new_size> ``.
325334
335+ Authorizing CephX auth IDs
336+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
337+
326338Use a command of the following form to authorize CephX auth IDs. This provides
327339the read/read-write access to file system subvolumes:
328340
@@ -332,33 +344,48 @@ the read/read-write access to file system subvolumes:
332344
333345The ``<access_level> `` option takes either ``r `` or ``rw `` as a value.
334346
347+ De-authorizing CephX auth IDs
348+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
349+
335350Use a command of the following form to deauthorize CephX auth IDs. This removes
336351the read/read-write access to file system subvolumes:
337352
338353.. prompt :: bash #
339354
340355 ceph fs subvolume deauthorize <vol_name> <sub_name> <auth_id> [--group_name=<group_name>]
341356
357+ Listing CephX auth IDs
358+ ~~~~~~~~~~~~~~~~~~~~~~
359+
342360Use a command of the following form to list CephX auth IDs authorized to access
343361the file system subvolume:
344362
345363.. prompt :: bash #
346364
347365 ceph fs subvolume authorized_list <vol_name> <sub_name> [--group_name=<group_name>]
348366
367+ Evicting File System Clients (Auth ID)
368+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
369+
349370Use a command of the following form to evict file system clients based on the
350371auth ID and the subvolume mounted:
351372
352373.. prompt :: bash #
353374
354375 ceph fs subvolume evict <vol_name> <sub_name> <auth_id> [--group_name=<group_name>]
355376
377+ Fetching the Absolute Path of a Subvolume
378+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
379+
356380Use a command of the following form to fetch the absolute path of a subvolume:
357381
358382.. prompt :: bash #
359383
360384 ceph fs subvolume getpath <vol_name> <subvol_name> [--group_name <subvol_group_name>]
361385
386+ Fetching a Subvolume's Information
387+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
388+
362389Use a command of the following form to fetch a subvolume's information:
363390
364391.. prompt :: bash #
@@ -414,6 +441,9 @@ contains one of the following values.
414441* ``complete ``: subvolume is ready for all operations
415442* ``snapshot-retained ``: subvolume is removed but its snapshots are retained
416443
444+ Listing Subvolumes
445+ ~~~~~~~~~~~~~~~~~~
446+
417447Use a command of the following form to list subvolumes:
418448
419449.. prompt :: bash #
@@ -423,6 +453,9 @@ Use a command of the following form to list subvolumes:
423453.. note :: Subvolumes that have been removed but have snapshots retained, are
424454 also listed.
425455
456+ Checking for the Presence of a Subvolume
457+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
458+
426459Use a command of the following form to check for the presence of a given
427460subvolume:
428461
@@ -435,6 +468,9 @@ These are the possible results of the ``exist`` command:
435468* ``subvolume exists ``: if any subvolume of given ``group_name `` is present
436469* ``no subvolume exists ``: if no subvolume of given ``group_name `` is present
437470
471+ Setting Custom Metadata On a Subvolume
472+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
473+
438474Use a command of the following form to set custom metadata on the subvolume as
439475a key-value pair:
440476
@@ -452,20 +488,29 @@ a key-value pair:
452488 subvolume, and is therefore also not preserved when cloning the subvolume
453489 snapshot.
454490
491+ Getting The Custom Metadata Set of a Subvolume
492+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
493+
455494Use a command of the following form to get the custom metadata set on the
456495subvolume using the metadata key:
457496
458497.. prompt :: bash #
459498
460499 ceph fs subvolume metadata get <vol_name> <subvol_name> <key_name> [--group_name <subvol_group_name>]
461500
501+ Listing The Custom Metadata Set of a Subvolume
502+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
503+
462504Use a command of the following form to list custom metadata (key-value pairs)
463505set on the subvolume:
464506
465507.. prompt :: bash #
466508
467509 ceph fs subvolume metadata ls <vol_name> <subvol_name> [--group_name <subvol_group_name>]
468510
511+ Removing a Custom Metadata Set from a Subvolume
512+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
513+
469514Use a command of the following form to remove custom metadata set on the
470515subvolume using the metadata key:
471516
@@ -476,12 +521,19 @@ subvolume using the metadata key:
476521Using the ``--force `` flag allows the command to succeed when it would
477522otherwise fail (if the metadata key did not exist).
478523
524+ Creating a Snapshot of a Subvolume
525+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
526+
479527Use a command of the following form to create a snapshot of a subvolume:
480528
481529.. prompt :: bash #
482530
483531 ceph fs subvolume snapshot create <vol_name> <subvol_name> <snap_name> [--group_name <subvol_group_name>]
484532
533+
534+ Removing a Snapshot of a Subvolume
535+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
536+
485537Use a command of the following form to remove a snapshot of a subvolume:
486538
487539.. prompt :: bash #
@@ -493,12 +545,18 @@ otherwise fail (if the snapshot did not exist).
493545
494546.. note :: if the last snapshot within a snapshot retained subvolume is removed, the subvolume is also removed
495547
548+ Listing the Snapshots of a Subvolume
549+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
550+
496551Use a command of the following from to list the snapshots of a subvolume:
497552
498553.. prompt :: bash #
499554
500555 ceph fs subvolume snapshot ls <vol_name> <subvol_name> [--group_name <subvol_group_name>]
501556
557+ Fetching a Snapshot's Information
558+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
559+
502560Use a command of the following form to fetch a snapshot's information:
503561
504562.. prompt :: bash #
@@ -558,6 +616,9 @@ Sample output when no snapshot clone is in progress or pending:
558616 "has_pending_clones": "no"
559617 }
560618
619+ Setting Custom Key-Value Pair Metadata on a Snapshot
620+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
621+
561622Use a command of the following form to set custom key-value metadata on the
562623snapshot:
563624
@@ -576,20 +637,29 @@ snapshot:
576637 subvolume, and is therefore not preserved when cloning the subvolume
577638 snapshot.
578639
640+ Getting Custom Metadata That Has Been Set on a Snapshot
641+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
642+
579643Use a command of the following form to get custom metadata that has been set on
580644the snapshot using the metadata key:
581645
582646.. prompt :: bash #
583647
584648 ceph fs subvolume snapshot metadata get <vol_name> <subvol_name> <snap_name> <key_name> [--group_name <subvol_group_name>]
585649
650+ Listing Custom Metadata that has been Set on a Snapshot
651+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
652+
586653Use a command of the following from to list custom metadata (key-value pairs)
587654set on the snapshot:
588655
589656.. prompt :: bash #
590657
591658 ceph fs subvolume snapshot metadata ls <vol_name> <subvol_name> <snap_name> [--group_name <subvol_group_name>]
592659
660+ Removing Custom Metadata from a Snapshot
661+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
662+
593663Use a command of the following form to remove custom metadata set on the
594664snapshot using the metadata key:
595665
0 commit comments