查看object信息
一、概述;
1 [root@compute1 1.0_head]# pwd 2 /var/lib/ceph/osd/ceph-3/current/1.0_head 3 attr -l rbd\\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 4 Attribute "cephos.spill_out" has a 2 byte value for rbd\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 5 Attribute "ceph._" has a 250 byte value for rbd\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 6 Attribute "ceph._@1" has a 23 byte value for rbd\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 7 Attribute "ceph.snapset" has a 31 byte value for rbd\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 8 9 attr -q -g "ceph._" rbd_data.3b2f23752117.0000000000000f47 > 1.txt 10 11 attr -q -g "ceph._@1" rbd\\udata.3b2f23752117.0000000000000f47__head_501C5A00__1 >> 1.txt 12 13 ceph-dencoder import 1.txt type object_info_t decode dump_json 14 { 15 "oid": { 16 "oid": "rbd_data.3b2f23752117.0000000000000f47", 17 "key": "", 18 "snapid": -2, 19 "hash": 1344035328, 20 "max": 0, 21 "pool": 1, 22 "namespace": "" 23 }, 24 "version": "61'181", 25 "prior_version": "0'0", 26 "last_reqid": "client.15151.0:31483", 27 "user_version": 181, 28 "size": 8388608, 29 "mtime": "2016-11-24 18:34:36.561018", 30 "local_mtime": "2016-11-24 18:34:36.638635", 31 "lost": 0, 32 "flags": 52, 33 "snaps": [], 34 "truncate_seq": 0, 35 "truncate_size": 0, 36 "data_digest": 3787114157, 37 "omap_digest": 4294967295, 38 "watchers": {} 39 }