CEPH-DENCODER - Online Linux Manual PageSection : 8
Updated : Mar 31, 2021
Source : dev
Note : Ceph

NAMEceph-dencoder − ceph encoder/decoder utility

SYNOPSISceph−dencoder [commands...]

DESCRIPTIONceph−dencoder is a utility to encode, decode, and dump ceph data structures. It is used for debugging and for testing inter−version compatibility. ceph−dencoder takes a simple list of commands and performs them in order.

COMMANDS version  Print the version string for the ceph−dencoder binary. import <file>  Read a binary blob of encoded data from the given file. It will be placed in an in−memory buffer. export <file>  Write the contents of the current in−memory buffer to the given file. list_types  List the data types known to this build of ceph−dencoder​. type <name>  Select the given type for future encode or decode operations. skip <bytes>  Seek <bytes> into the imported file before reading data structure, use this with objects that have a preamble/header before the object of interest. decode  Decode the contents of the in−memory buffer into an instance of the previously selected type. If there is an error, report it. encode  Encode the contents of the in−memory instance of the previously selected type to the in−memory buffer. dump_json  Print a JSON−formatted description of the in−memory object. count_tests  Print the number of built−in test instances of the previously selected type that ceph−dencoder is able to generate. select_test <n>  Select the given build−in test instance as a the in−memory instance of the type. get_features  Print the decimal value of the feature set supported by this version of ceph−dencoder​. Each bit represents a feature. These correspond to CEPH_FEATURE_* defines in src/include/ceph_features.h. set_features <f>  Set the feature bits provided to encode to f​. This allows you to encode objects such that they can be understood by old versions of the software (for those types that support it).

EXAMPLESay you want to examine an attribute on an object stored by ceph−osd​. You can do this: $ cd /mnt/osd.12/current/2.b_head $ attr −l foo_bar_head_EFE6384B Attribute "ceph.snapset" has a 31 byte value for foo_bar_head_EFE6384B Attribute "ceph._" has a 195 byte value for foo_bar_head_EFE6384B $ attr foo_bar_head_EFE6384B −g ceph._ −q > /tmp/a $ ceph−dencoder type object_info_t import /tmp/a decode dump_json { "oid": { "oid": "foo", "key": "bar", "snapid": −2, "hash": 4024842315, "max": 0}, "locator": { "pool": 2, "preferred": −1, "key": "bar"}, "category": "", "version": "9'1", "prior_version": "0'0", "last_reqid": "client.4116.0:1", "size": 1681, "mtime": "2012−02−21 08:58:23.666639", "lost": 0, "wrlock_by": "unknown.0.0:0", "snaps": [], "truncate_seq": 0, "truncate_size": 0, "watchers": {}} Alternatively, perhaps you wish to dump an internal CephFS metadata object, you might do that like this: $ rados −p metadata get mds_snaptable mds_snaptable.bin $ ceph−dencoder type SnapServer skip 8 import mds_snaptable.bin decode dump_json { "snapserver": { "last_snap": 1, "pending_noop": [], "snaps": [], "need_to_purge": {}, "pending_create": [], "pending_destroy": []}}

AVAILABILITYceph−dencoder is part of Ceph, a massively scalable, open−source, distributed storage system. Please refer to the Ceph documentation at ­http://ceph.com/docs for more information.

SEE ALSOceph(8)

COPYRIGHT2010-2021, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0)
0
Johanes Gumabo
Data Size   :   18,775 byte
man-ceph-dencoder.8Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 190,312
Visitor ID   :     :  
Visitor IP   :   3.149.238.67   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.