Re: ceph-objectstore-tool apply-layout-settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unfotunately, there is no options setuser and setgroup for ceph-objectstore-tool.

$ ceph-objectstore-tool --setuser ceph --setgroup ceph --data-path /var/lib/ceph/osd/ceph-177 --journal-path /var/lib/ceph/osd/ceph-177/journal --log-file=/var/log/ceph/objectstore_tool.177.log --op apply-layout-settings --pool default.rgw.buckets.data --debug
Can't specify both --op and object command syntax

Allowed options:
  --help                      produce help message
  --type arg                  Arg is one of [filestore (default), memstore]
  --data-path arg             path to object store, mandatory
  --journal-path arg          path to journal, mandatory for filestore type
  --pgid arg                  PG id, mandatory for info, log, remove, export,
                              rm-past-intervals, mark-complete, and mandatory
                              for apply-layout-settings if --pool is not
                              specified
  --pool arg                  Pool name, mandatory for apply-layout-settings if
                              --pgid is not specified
  --op arg                    Arg is one of [info, log, remove, mkfs, fsck,
                              fuse, export, import, list, fix-lost, list-pgs,
                              rm-past-intervals, dump-journal, dump-super,
                              meta-list, get-osdmap, set-osdmap,
                              get-inc-osdmap, set-inc-osdmap, mark-complete,
                              apply-layout-settings, update-mon-db]
  --epoch arg                 epoch# for get-osdmap and get-inc-osdmap, the
                              current epoch in use if not specified
  --file arg                  path of file to export, import, get-osdmap,
                              set-osdmap, get-inc-osdmap or set-inc-osdmap
  --mon-store-path arg        path of monstore to update-mon-db
  --mountpoint arg            fuse mountpoint
  --format arg (=json-pretty) Output format which may be json, json-pretty,
                              xml, xml-pretty
  --debug                     Enable diagnostic output to stderr
  --force                     Ignore some types of errors and proceed with
                              operation - USE WITH CAUTION: CORRUPTION POSSIBLE
                              NOW OR IN THE FUTURE
  --skip-journal-replay       Disable journal replay
  --skip-mount-omap           Disable mounting of omap
  --head                      Find head/snapdir when searching for objects by
                              name
  --dry-run                   Don't modify the objectstore


Positional syntax:

ceph-objectstore-tool ... <object> (get|set)-bytes [file]
ceph-objectstore-tool ... <object> set-(attr|omap) <key> [file]
ceph-objectstore-tool ... <object> (get|rm)-(attr|omap) <key>
ceph-objectstore-tool ... <object> get-omaphdr
ceph-objectstore-tool ... <object> set-omaphdr [file]
ceph-objectstore-tool ... <object> list-attrs
ceph-objectstore-tool ... <object> list-omap
ceph-objectstore-tool ... <object> remove
ceph-objectstore-tool ... <object> dump
ceph-objectstore-tool ... <object> set-size
ceph-objectstore-tool ... <object> remove-clone-metadata <cloneid>

<object> can be a JSON object description as displayed
by --op list.
<object> can be an object name which will be looked up in all
the OSD's PGs.
<object> can be the empty string ('') which with a provided pgid
specifies the pgmeta object

The optional [file] argument will read stdin or write stdout
if not specified or if '-' specified.



And without this options:

$ ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-177 --journal-path /var/lib/ceph/osd/ceph-177/journal --log-file=/var/log/ceph/objectstore_tool.177.log --op apply-layout-settings --pool default.rgw.buckets.data --debug         2017-05-15 22:09:59.137279 7f57bacd29c0  0 filestore(/var/lib/ceph/osd/ceph-177) backend xfs (magic 0x58465342)
2017-05-15 22:09:59.145284 7f57bacd29c0  0 genericfilestorebackend(/var/lib/ceph/osd/ceph-177) detect_features: FIEMAP ioctl is disabled via 'filestore fiemap' config option
2017-05-15 22:09:59.145300 7f57bacd29c0  0 genericfilestorebackend(/var/lib/ceph/osd/ceph-177) detect_features: SEEK_DATA/SEEK_HOLE is disabled via 'filestore seek data hole' config option
2017-05-15 22:09:59.145319 7f57bacd29c0  0 genericfilestorebackend(/var/lib/ceph/osd/ceph-177) detect_features: splice is supported
2017-05-15 22:09:59.253097 7f57bacd29c0  0 genericfilestorebackend(/var/lib/ceph/osd/ceph-177) detect_features: syncfs(2) syscall fully supported (by glibc and kernel)
2017-05-15 22:09:59.253402 7f57bacd29c0  0 xfsfilestorebackend(/var/lib/ceph/osd/ceph-177) detect_feature: extsize is disabled by conf
2017-05-15 22:09:59.505525 7f57bacd29c0  0 filestore(/var/lib/ceph/osd/ceph-177) mount: enabling WRITEAHEAD journal mode: checkpoint is not enabled
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0d 00 00 00 00 20 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0d 00 00 00 00 20 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00
Cluster fsid=2dc4a5fc-8acd-480e-a444-f091d02271b8
Supported features: compat={},rocompat={},incompat={1=initial feature set(~v.18),2=pginfo object,3=object locator,4=last_epoch_clean,5=categories,6=hobjectpool,7=biginfo,8=leveldbinfo,9=leveldblog,10=snapmapper,11=sharded objects,12=transaction hints,13=pg meta object}
On-disk features: compat={},rocompat={},incompat={1=initial feature set(~v.18),2=pginfo object,3=object locator,4=last_epoch_clean,5=categories,6=hobjectpool,7=biginfo,8=leveldbinfo,9=leveldblog,10=snapmapper,12=transaction hints,13=pg meta object}
e205351: 208 osds: 207 up, 208 in
Finished 0/0 collections



On 15.05.2017 08:18, Katie Holly | FuslVZ Ltd wrote:
On 2017-05-15 07:04, Anton Dmitriev wrote:
Question is about ceph-objectstore-tool, in its man I cant find anything about setuser, so I need to run it from user ceph, for example using su, but its not obvious
You're totally right, the documentation and manpage for ceph-objectstore-tool don't mention this, however it is possible to also specify --setuser and --setgroup here and it will run with the correct user/group.


Regards,
Katie



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


-- 
Dmitriev Anton
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux