diff --git a/README b/README index c22c6ce72da07..1e68c86224762 100644 --- a/README +++ b/README @@ -18,11 +18,11 @@ $ make A quick summary of binaries that will be built in src/ daemons: - cmon -- monitor daemon. handles cluster state and configuration + ceph-mon -- monitor daemon. handles cluster state and configuration information. - cosd -- storage daemon. stores objects on a given block device. - cmds -- metadata daemon. handles file system namespace. - cfuse -- fuse client. + ceph-osd -- storage daemon. stores objects on a given block device. + ceph-mds -- metadata daemon. handles file system namespace. + ceph-fuse -- fuse client. tools: ceph -- send management commands to the monitor cluster. diff --git a/ceph.spec.in b/ceph.spec.in index f7dc193b4a64d..40d8f201ed946 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -158,17 +158,17 @@ fi %doc README COPYING %{_bindir}/ceph %{_bindir}/cephfs -%{_bindir}/cconf -%{_bindir}/cclsinfo +%{_bindir}/ceph-conf +%{_bindir}/ceph-clsinfo %{_bindir}/crushtool %{_bindir}/monmaptool %{_bindir}/osdmaptool %{_bindir}/cauthtool -%{_bindir}/csyn -%{_bindir}/crun -%{_bindir}/cmon -%{_bindir}/cmds -%{_bindir}/cosd +%{_bindir}/ceph-syn +%{_bindir}/ceph-run +%{_bindir}/ceph-mon +%{_bindir}/ceph-mds +%{_bindir}/ceph-osd %{_bindir}/crbdnamer %{_bindir}/librados-config %{_bindir}/rados @@ -192,16 +192,16 @@ fi %{_sysconfdir}/bash_completion.d/radosgw_admin %{_sysconfdir}/bash_completion.d/rbd %config(noreplace) %{_sysconfdir}/logrotate.d/ceph -%{_mandir}/man8/cmon.8* -%{_mandir}/man8/cmds.8* -%{_mandir}/man8/cosd.8* +%{_mandir}/man8/ceph-mon.8* +%{_mandir}/man8/ceph-mds.8* +%{_mandir}/man8/ceph-osd.8* %{_mandir}/man8/mkcephfs.8* -%{_mandir}/man8/crun.8* -%{_mandir}/man8/csyn.8* +%{_mandir}/man8/ceph-run.8* +%{_mandir}/man8/ceph-syn.8* %{_mandir}/man8/crushtool.8* %{_mandir}/man8/osdmaptool.8* %{_mandir}/man8/monmaptool.8* -%{_mandir}/man8/cconf.8* +%{_mandir}/man8/ceph-conf.8* %{_mandir}/man8/ceph.8* %{_mandir}/man8/cephfs.8* %{_mandir}/man8/mount.ceph.8* @@ -209,9 +209,9 @@ fi %{_mandir}/man8/radosgw_admin.8* %{_mandir}/man8/rados.8* %{_mandir}/man8/rbd.8* -%{_mandir}/man8/cauthtool.8* -%{_mandir}/man8/cdebugpack.8* -%{_mandir}/man8/cclsinfo.8.gz +%{_mandir}/man8/ceph-authtool.8* +%{_mandir}/man8/ceph-debugpack.8* +%{_mandir}/man8/ceph-clsinfo.8.gz %{_mandir}/man8/librados-config.8.gz %{python_sitelib}/rados.py %{python_sitelib}/rados.pyc @@ -228,8 +228,8 @@ fi %files fuse %defattr(-,root,root,-) %doc COPYING -%{_bindir}/cfuse -%{_mandir}/man8/cfuse.8* +%{_bindir}/ceph-fuse +%{_mandir}/man8/ceph-fuse.8* %files devel %defattr(-,root,root,-) diff --git a/debian/ceph-fuse.install b/debian/ceph-fuse.install index 5c75775e12d21..b8dd3b32d63db 100644 --- a/debian/ceph-fuse.install +++ b/debian/ceph-fuse.install @@ -1,2 +1,2 @@ -usr/bin/cfuse -usr/share/man/man8/cfuse.8 +usr/bin/ceph-fuse +usr/share/man/man8/ceph-fuse.8 diff --git a/debian/ceph.install b/debian/ceph.install index 53de14f03e52e..8d452454aca75 100644 --- a/debian/ceph.install +++ b/debian/ceph.install @@ -1,33 +1,33 @@ usr/bin/ceph usr/bin/cephfs -usr/bin/cconf -usr/bin/cclsinfo +usr/bin/ceph-conf +usr/bin/ceph-clsinfo usr/bin/crushtool usr/bin/monmaptool usr/bin/osdmaptool -usr/bin/crun -usr/bin/cmon -usr/bin/cmds -usr/bin/cosd +usr/bin/ceph-run +usr/bin/ceph-mon +usr/bin/ceph-mds +usr/bin/ceph-osd usr/bin/cauthtool -usr/bin/cdebugpack +usr/bin/ceph-debugpack sbin/mkcephfs usr/lib/ceph/ceph_common.sh usr/lib/rados-classes/* usr/share/doc/ceph/sample.ceph.conf usr/share/doc/ceph/sample.fetch_config -usr/share/man/man8/cmon.8 -usr/share/man/man8/cmds.8 -usr/share/man/man8/cosd.8 +usr/share/man/man8/ceph-mon.8 +usr/share/man/man8/ceph-mds.8 +usr/share/man/man8/ceph-osd.8 usr/share/man/man8/mkcephfs.8 -usr/share/man/man8/crun.8 +usr/share/man/man8/ceph-run.8 usr/share/man/man8/crushtool.8 usr/share/man/man8/osdmaptool.8 usr/share/man/man8/monmaptool.8 -usr/share/man/man8/cconf.8 +usr/share/man/man8/ceph-conf.8 usr/share/man/man8/ceph.8 usr/share/man/man8/cephfs.8 -usr/share/man/man8/cauthtool.8 -usr/share/man/man8/cclsinfo.8 -usr/share/man/man8/cdebugpack.8 +usr/share/man/man8/ceph-authtool.8 +usr/share/man/man8/ceph-clsinfo.8 +usr/share/man/man8/ceph-debugpack.8 etc/bash_completion.d/ceph diff --git a/doc/architecture.rst b/doc/architecture.rst index c9705b4bdd8c3..e8f8b6d874d8d 100644 --- a/doc/architecture.rst +++ b/doc/architecture.rst @@ -21,30 +21,30 @@ overhead. Monitor cluster =============== -``cmon`` is a lightweight daemon that provides a consensus for +``ceph-mon`` is a lightweight daemon that provides a consensus for distributed decisionmaking in a Ceph/RADOS cluster. It also is the initial point of contact for new clients, and will hand out information about the topology of the cluster, such as the ``osdmap``. -You normally run 3 ``cmon`` daemons, on 3 separate physical machines, +You normally run 3 ``ceph-mon`` daemons, on 3 separate physical machines, isolated from each other; for example, in different racks or rows. You could run just 1 instance, but that means giving up on high availability. -You may use the same hosts for ``cmon`` and other purposes. +You may use the same hosts for ``ceph-mon`` and other purposes. -``cmon`` processes talk to each other using a Paxos_\-style +``ceph-mon`` processes talk to each other using a Paxos_\-style protocol. They discover each other via the ``[mon.X] mon addr`` fields in ``ceph.conf``. .. todo:: What about ``monmap``? Fact check. -Any decision requires the majority of the ``cmon`` processes to be +Any decision requires the majority of the ``ceph-mon`` processes to be healthy and communicating with each other. For this reason, you never -want an even number of ``cmon``\s; there is no unambiguous majority +want an even number of ``ceph-mon``\s; there is no unambiguous majority subgroup for an even number. .. _Paxos: http://en.wikipedia.org/wiki/Paxos_algorithm @@ -58,9 +58,9 @@ subgroup for an even number. RADOS ===== -``cosd`` is the storage daemon that provides the RADOS service. It -uses ``cmon`` for cluster membership, services object read/write/etc -request from clients, and peers with other ``cosd``\s for data +``ceph-osd`` is the storage daemon that provides the RADOS service. It +uses ``ceph-mon`` for cluster membership, services object read/write/etc +request from clients, and peers with other ``ceph-osd``\s for data replication. The data model is fairly simple on this level. There are multiple @@ -77,7 +77,7 @@ metadata to store file owner etc. .. todo:: Verify that metadata is unordered. -Underneath, ``cosd`` stores the data on a local filesystem. We +Underneath, ``ceph-osd`` stores the data on a local filesystem. We recommend using Btrfs_, but any POSIX filesystem that has extended attributes should work (see :ref:`xattr`). @@ -96,37 +96,37 @@ Ceph filesystem =============== The Ceph filesystem service is provided by a daemon called -``cmds``. It uses RADOS to store all the filesystem metadata +``ceph-mds``. It uses RADOS to store all the filesystem metadata (directories, file ownership, access modes, etc), and directs clients to access RADOS directly for the file contents. The Ceph filesystem aims for POSIX compatibility, except for a few chosen differences. See :doc:`/appendix/differences-from-posix`. -``cmds`` can run as a single process, or it can be distributed out to +``ceph-mds`` can run as a single process, or it can be distributed out to multiple physical machines, either for high availability or for scalability. -For high availability, the extra ``cmds`` instances can be `standby`, -ready to take over the duties of any failed ``cmds`` that was +For high availability, the extra ``ceph-mds`` instances can be `standby`, +ready to take over the duties of any failed ``ceph-mds`` that was `active`. This is easy because all the data, including the journal, is stored on RADOS. The transition is triggered automatically by -``cmon``. +``ceph-mon``. -For scalability, multiple ``cmds`` instances can be `active`, and they +For scalability, multiple ``ceph-mds`` instances can be `active`, and they will split the directory tree into subtrees (and shards of a single busy directory), effectively balancing the load amongst all `active` servers. Combinations of `standby` and `active` etc are possible, for example -running 3 `active` ``cmds`` instances for scaling, and one `standby`. +running 3 `active` ``ceph-mds`` instances for scaling, and one `standby`. -To control the number of `active` ``cmds``\es, see +To control the number of `active` ``ceph-mds``\es, see :doc:`/ops/manage/grow/mds`. .. topic:: Status as of 2011-09: - Multiple `active` ``cmds`` operation is stable under normal + Multiple `active` ``ceph-mds`` operation is stable under normal circumstances, but some failure scenarios may still cause operational issues. @@ -166,14 +166,14 @@ virtualization. This is done with the command-line tool ``rbd`` (see The latter is also useful in non-virtualized scenarios. Internally, RBD stripes the device image over multiple RADOS objects, -each typically located on a separate ``cosd``, allowing it to perform +each typically located on a separate ``ceph-osd``, allowing it to perform better than a single server could. Client ====== -.. todo:: cephfs, cfuse, librados, libceph, librbd +.. todo:: cephfs, ceph-fuse, librados, libceph, librbd .. todo:: Summarize how much Ceph trusts the client, for what parts (security vs reliability). diff --git a/doc/dev/object-store.rst b/doc/dev/object-store.rst index 60eb8fd0da272..31b36d18b7953 100644 --- a/doc/dev/object-store.rst +++ b/doc/dev/object-store.rst @@ -40,8 +40,8 @@ "objecter" -> "OSDMap" - "cosd" -> "PG" - "cosd" -> "ObjectStore" + "ceph-osd" -> "PG" + "ceph-osd" -> "ObjectStore" "crushtool" -> "CrushWrapper" diff --git a/doc/glossary.rst b/doc/glossary.rst index 18c5d44d79857..13b921f88e635 100644 --- a/doc/glossary.rst +++ b/doc/glossary.rst @@ -20,13 +20,13 @@ Object .. todo:: write me - cosd + ceph-osd .. todo:: write me - cmon + ceph-mon .. todo:: write me - cmds + ceph-mds Ceph MDS, the actual daemon blahblah radosgw diff --git a/doc/index.rst b/doc/index.rst index 2b3a4db691389..8ab1b2def1ed2 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -61,10 +61,10 @@ mature next. The Ceph filesystem is functionally fairly complete, but has not been tested well enough at scale and under load yet. Multi-master MDS is still problematic and we recommend running just one active MDS -(standbys are ok). If you have problems with ``kclient`` or ``cfuse``, +(standbys are ok). If you have problems with ``kclient`` or ``ceph-fuse``, you may wish to try the other option; in general, ``kclient`` is expected to be faster (but be sure to use the latest Linux kernel!) -while ``cfuse`` provides better stability by not triggering kernel +while ``ceph-fuse`` provides better stability by not triggering kernel crashes. As individual systems mature enough, we move to improving their diff --git a/doc/man/8/cclsinfo.rst b/doc/man/8/cclsinfo.rst index 32da1792ebcd7..b9f3074d3c936 100644 --- a/doc/man/8/cclsinfo.rst +++ b/doc/man/8/cclsinfo.rst @@ -1,19 +1,19 @@ =========================================== - cclsinfo -- show class object information + ceph-clsinfo -- show class object information =========================================== -.. program:: cclsinfo +.. program:: ceph-clsinfo Synopsis ======== -| **cclsinfo** [ *options* ] ... *filename* +| **ceph-clsinfo** [ *options* ] ... *filename* Description =========== -**cclsinfo** can show name, version, and architecture information +**ceph-clsinfo** can show name, version, and architecture information about a specific class object. @@ -36,7 +36,7 @@ Options Availability ============ -**cclsinfo** is part of the Ceph distributed file system. Please +**ceph-clsinfo** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. diff --git a/doc/man/8/cconf.rst b/doc/man/8/cconf.rst index cd322902399c9..70acb024f73e1 100644 --- a/doc/man/8/cconf.rst +++ b/doc/man/8/cconf.rst @@ -1,24 +1,24 @@ ============================== - cconf -- ceph conf file tool + ceph-conf -- ceph conf file tool ============================== -.. program:: cconf +.. program:: ceph-conf Synopsis ======== -| **cconf** -c *conffile* --list-all-sections -| **cconf** -c *conffile* -L -| **cconf** -c *conffile* -l *prefix* -| **cconf** *key* -s *section1* ... -| **cconf** [-s *section* ] --lookup *key* -| **cconf** [-s *section* ] *key* +| **ceph-conf** -c *conffile* --list-all-sections +| **ceph-conf** -c *conffile* -L +| **ceph-conf** -c *conffile* -l *prefix* +| **ceph-conf** *key* -s *section1* ... +| **ceph-conf** [-s *section* ] --lookup *key* +| **ceph-conf** [-s *section* ] *key* Description =========== -**cconf** is a utility for getting information about a ceph +**ceph-conf** is a utility for getting information about a ceph configuration file. As with most Ceph programs, you can specify which Ceph configuration file to use with the ``-c`` flag. @@ -28,7 +28,7 @@ Actions .. TODO format this like a proper man page -**cconf** will perform one of the following actions: +**ceph-conf** will perform one of the following actions: --list-all-sections or -L prints out a list of all the section names in the configuration file. @@ -57,25 +57,25 @@ Examples To find out what value osd 0 will use for the "osd data" option:: - cconf -c foo.conf --name osd.0 --lookup "osd data" + ceph-conf -c foo.conf --name osd.0 --lookup "osd data" To find out what value will mds a use for the "log file" option:: - cconf -c foo.conf --name mds.a "log file" + ceph-conf -c foo.conf --name mds.a "log file" To list all sections that begin with osd:: - cconf -c foo.conf -l osd + ceph-conf -c foo.conf -l osd To list all sections:: - cconf -c foo.conf -L + ceph-conf -c foo.conf -L Availability ============ -**cconf** is part of the Ceph distributed file system. Please refer +**ceph-conf** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. diff --git a/doc/man/8/cdebugpack.rst b/doc/man/8/cdebugpack.rst index a2f4ef6076d88..259cf87d1928e 100644 --- a/doc/man/8/cdebugpack.rst +++ b/doc/man/8/cdebugpack.rst @@ -17,7 +17,7 @@ Description useful for debugging crashes. The resulting tarball can be shared with Ceph developers when debugging a problem. -The tarball will include the binaries for cmds, cosd, and cmon, any +The tarball will include the binaries for ceph-mds, ceph-osd, and ceph-mon, any log files, the ceph.conf configuration file, any core files we can find, and (if the system is running) dumps of the current osd, mds, and pg maps from the monitor. diff --git a/doc/man/8/cfuse.rst b/doc/man/8/cfuse.rst index eb53ca1b0ca76..bb900c8b786d6 100644 --- a/doc/man/8/cfuse.rst +++ b/doc/man/8/cfuse.rst @@ -1,19 +1,19 @@ ===================================== - cfuse -- FUSE-based client for ceph + ceph-fuse -- FUSE-based client for ceph ===================================== -.. program:: cfuse +.. program:: ceph-fuse Synopsis ======== -| **cfuse** [ -m *monaddr*:*port* ] *mountpoint* [ *fuse options* ] +| **ceph-fuse** [ -m *monaddr*:*port* ] *mountpoint* [ *fuse options* ] Description =========== -**cfuse** is a FUSE (File system in USErspace) client for Ceph +**ceph-fuse** is a FUSE (File system in USErspace) client for Ceph distributed file system. It will mount a ceph file system (specified via the -m option for described by ceph.conf (see below) at the specific mount point. @@ -22,13 +22,13 @@ The file system can be unmounted with:: fusermount -u mountpoint -or by sending ``SIGINT`` to the ``cfuse`` process. +or by sending ``SIGINT`` to the ``ceph-fuse`` process. Options ======= -Any options not recognized by cfuse will be passed on to libfuse. +Any options not recognized by ceph-fuse will be passed on to libfuse. .. option:: -d @@ -51,7 +51,7 @@ Any options not recognized by cfuse will be passed on to libfuse. Availability ============ -**cfuse** is part of the Ceph distributed file system. Please refer to +**ceph-fuse** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. diff --git a/doc/man/8/cmds.rst b/doc/man/8/cmds.rst index 6fc1ca80ec48f..936bb99eea197 100644 --- a/doc/man/8/cmds.rst +++ b/doc/man/8/cmds.rst @@ -1,5 +1,5 @@ ===================================== - cmds -- ceph metadata server daemon + ceph-mds -- ceph metadata server daemon ===================================== .. program:: cmds @@ -7,17 +7,17 @@ Synopsis ======== -| **cmds** -i *name* [[ --hot-standby [*rank*] ]|[--journal_check *rank*]] +| **ceph-mds** -i *name* [[ --hot-standby [*rank*] ]|[--journal_check *rank*]] Description =========== -**cmds** is the metadata server daemon for the Ceph distributed file -system. One or more instances of cmds collectively manage the file +**ceph-mds** is the metadata server daemon for the Ceph distributed file +system. One or more instances of ceph-mds collectively manage the file system namespace, coordinating access to the shared OSD cluster. -Each cmds daemon instance should have a unique name. The name is used +Each ceph-mds daemon instance should have a unique name. The name is used to identify daemon instances in the ceph.conf. Once the daemon has started, the monitor cluster will normally assign @@ -38,8 +38,8 @@ Options .. option:: -f, --foreground Foreground: do not daemonize after startup (run in foreground). Do - not generate a pid file. Useful when run via :doc:`crun - `\(8). + not generate a pid file. Useful when run via :doc:`ceph-run + `\(8). .. option:: -d @@ -60,7 +60,7 @@ Options Availability ============ -**cmon** is part of the Ceph distributed file system. Please refer to the Ceph wiki at +**ceph-mon** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. @@ -68,5 +68,5 @@ See also ======== :doc:`ceph `\(8), -:doc:`cmon `\(8), -:doc:`cosd `\(8) +:doc:`ceph-mon `\(8), +:doc:`ceph-osd `\(8) diff --git a/doc/man/8/cmon.rst b/doc/man/8/cmon.rst index d7b1c47deb08d..6bf94c291c0b6 100644 --- a/doc/man/8/cmon.rst +++ b/doc/man/8/cmon.rst @@ -1,5 +1,5 @@ ============================= - cmon -- ceph monitor daemon + ceph-mon -- ceph monitor daemon ============================= .. program:: cmon @@ -28,7 +28,7 @@ Options .. option:: -f, --foreground Foreground: do not daemonize after startup (run in foreground). Do - not generate a pid file. Useful when run via :doc:`crun `\(8). + not generate a pid file. Useful when run via :doc:`ceph-run `\(8). .. option:: -d @@ -52,5 +52,5 @@ See also ======== :doc:`ceph `\(8), -:doc:`cmds `\(8), -:doc:`cosd `\(8) +:doc:`ceph-mds `\(8), +:doc:`ceph-osd `\(8) diff --git a/doc/man/8/cosd.rst b/doc/man/8/cosd.rst index a62577d8bc176..7bf2c175fa435 100644 --- a/doc/man/8/cosd.rst +++ b/doc/man/8/cosd.rst @@ -1,20 +1,20 @@ ==================================== - cosd -- ceph object storage daemon + ceph-osd -- ceph object storage daemon ==================================== -.. program:: cosd +.. program:: ceph-osd Synopsis ======== -| **cosd** -i *osdnum* [ --osd-data *datapath* ] [ --osd-journal +| **ceph-osd** -i *osdnum* [ --osd-data *datapath* ] [ --osd-journal *journal* ] [ --mkfs ] [ --mkjournal ] [ --mkkey ] Description =========== -**cosd** is the object storage daemon for the Ceph distributed file +**ceph-osd** is the object storage daemon for the Ceph distributed file system. It is responsible for storing objects on a local file system and providing access to them over the network. @@ -30,7 +30,7 @@ Options .. option:: -f, --foreground Foreground: do not daemonize after startup (run in foreground). Do - not generate a pid file. Useful when run via :doc:`crun `\(8). + not generate a pid file. Useful when run via :doc:`ceph-run `\(8). .. option:: -d @@ -83,13 +83,13 @@ Options Availability ============ -**cosd** is part of the Ceph distributed file system. Please refer to +**ceph-osd** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. See also ======== :doc:`ceph `\(8), -:doc:`cmds `\(8), -:doc:`cmon `\(8), -:doc:`cauthtool `\(8) +:doc:`ceph-mds `\(8), +:doc:`ceph-mon `\(8), +:doc:`ceph-authtool `\(8) diff --git a/doc/man/8/crbdnamer.rst b/doc/man/8/crbdnamer.rst index 527db6dbbf4c9..f325e8ebfcfd8 100644 --- a/doc/man/8/crbdnamer.rst +++ b/doc/man/8/crbdnamer.rst @@ -1,33 +1,33 @@ ============================================== - crbdnamer -- udev helper to name RBD devices + ceph-rbdnamer -- udev helper to name RBD devices ============================================== -.. program:: crbdnamer +.. program:: ceph-rbdnamer Synopsis ======== -| **crbdnamer** *num* +| **ceph-rbdnamer** *num* Description =========== -**crbdnamer** prints the pool and image name for the given RBD devices +**ceph-rbdnamer** prints the pool and image name for the given RBD devices to stdout. It is used by `udev` (using a rule like the one below) to set up a device symlink. :: - KERNEL=="rbd[0-9]*", PROGRAM="/usr/bin/crbdnamer %n", SYMLINK+="rbd/%c{1}/%c{2}:%n" + KERNEL=="rbd[0-9]*", PROGRAM="/usr/bin/ceph-rbdnamer %n", SYMLINK+="rbd/%c{1}/%c{2}:%n" Availability ============ -**crbdnamer** is part of the Ceph distributed file system. Please +**ceph-rbdnamer** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. diff --git a/doc/man/8/crun.rst b/doc/man/8/crun.rst index b7ff1d706e5f5..3ab97fa2be119 100644 --- a/doc/man/8/crun.rst +++ b/doc/man/8/crun.rst @@ -1,19 +1,19 @@ ===================================== - crun -- restart daemon on core dump + ceph-run -- restart daemon on core dump ===================================== -.. program:: crun +.. program:: ceph-run Synopsis ======== -| **crun** *command* ... +| **ceph-run** *command* ... Description =========== -**crun** is a simple wrapper that will restart a daemon if it exits +**ceph-run** is a simple wrapper that will restart a daemon if it exits with a signal indicating it crashed and possibly core dumped (that is, signals 3, 4, 5, 6, 8, or 11). @@ -30,7 +30,7 @@ None Availability ============ -**crun** is part of the Ceph distributed file system. Please refer to +**ceph-run** is part of the Ceph distributed file system. Please refer to the Ceph wiki at http://ceph.newdream.net/wiki for more information. @@ -38,6 +38,6 @@ See also ======== :doc:`ceph `\(8), -:doc:`cmon `\(8), -:doc:`cmds `\(8), -:doc:`cosd `\(8) +:doc:`ceph-mon `\(8), +:doc:`ceph-mds `\(8), +:doc:`ceph-osd `\(8) diff --git a/doc/man/8/csyn.rst b/doc/man/8/csyn.rst index 2c68b81fd64d9..4a540fc54cae1 100644 --- a/doc/man/8/csyn.rst +++ b/doc/man/8/csyn.rst @@ -16,7 +16,7 @@ Description **csyn** is a simple synthetic workload generator for the Ceph distributed file system. It uses the userspace client library to generate simple workloads against a currently running file system. The -file system need not be mounted via cfuse(8) or the kernel client. +file system need not be mounted via ceph-fuse(8) or the kernel client. One or more ``--syn`` command arguments specify the particular workload, as documented below. @@ -94,4 +94,4 @@ See also ======== :doc:`ceph `\(8), -:doc:`cfuse `\(8) +:doc:`ceph-fuse `\(8) diff --git a/doc/man/8/mount.ceph.rst b/doc/man/8/mount.ceph.rst index 0d533b5e5c838..28ecb1d61f9b8 100644 --- a/doc/man/8/mount.ceph.rst +++ b/doc/man/8/mount.ceph.rst @@ -149,5 +149,5 @@ information. See also ======== -:doc:`cfuse `\(8), +:doc:`ceph-fuse `\(8), :doc:`ceph `\(8) diff --git a/doc/rec/hardware.rst b/doc/rec/hardware.rst index 7cc5506fbd124..bdde86f758b6d 100644 --- a/doc/rec/hardware.rst +++ b/doc/rec/hardware.rst @@ -3,5 +3,5 @@ ========================== Discussing the hardware requirements for each daemon, the tradeoffs of -doing one cosd per machine versus one per disk, and hardware-related +doing one ceph-osd per machine versus one per disk, and hardware-related configuration options like journaling locations. diff --git a/man/Makefile.am b/man/Makefile.am index 640c65a6b2250..8c180039ff494 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,25 +1,25 @@ AUTOMAKE_OPTIONS = gnu dist_man_MANS = \ - cosd.8 \ - cmds.8 \ - cmon.8 \ + ceph-osd.8 \ + ceph-mds.8 \ + ceph-mon.8 \ mkcephfs.8 \ - cfuse.8 \ - csyn.8 \ + ceph-fuse.8 \ + ceph-syn.8 \ crushtool.8 \ osdmaptool.8 \ monmaptool.8 \ - cconf.8 \ - crun.8 \ + ceph-conf.8 \ + ceph-run.8 \ ceph.8 \ mount.ceph.8 \ radosgw.8 \ radosgw_admin.8 \ - cauthtool.8 \ + ceph-authtool.8 \ rados.8 \ librados-config.8 \ rbd.8 \ - cclsinfo.8 \ - cdebugpack.8 \ + ceph-clsinfo.8 \ + ceph-debugpack.8 \ cephfs.8 diff --git a/man/cauthtool.8 b/man/ceph-authtool.8 similarity index 100% rename from man/cauthtool.8 rename to man/ceph-authtool.8 diff --git a/man/cclsinfo.8 b/man/ceph-clsinfo.8 similarity index 100% rename from man/cclsinfo.8 rename to man/ceph-clsinfo.8 diff --git a/man/cconf.8 b/man/ceph-conf.8 similarity index 100% rename from man/cconf.8 rename to man/ceph-conf.8 diff --git a/man/cdebugpack.8 b/man/ceph-debugpack.8 similarity index 95% rename from man/cdebugpack.8 rename to man/ceph-debugpack.8 index 7cf3aa7f37881..6aa1c4dfd0b06 100644 --- a/man/cdebugpack.8 +++ b/man/ceph-debugpack.8 @@ -41,7 +41,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] useful for debugging crashes. The resulting tarball can be shared with Ceph developers when debugging a problem. .sp -The tarball will include the binaries for cmds, cosd, and cmon, any +The tarball will include the binaries for ceph-mds, ceph-osd, and ceph-mon, any log files, the ceph.conf configuration file, any core files we can find, and (if the system is running) dumps of the current osd, mds, and pg maps from the monitor. diff --git a/man/cfuse.8 b/man/ceph-fuse.8 similarity index 100% rename from man/cfuse.8 rename to man/ceph-fuse.8 diff --git a/man/cmds.8 b/man/ceph-mds.8 similarity index 96% rename from man/cmds.8 rename to man/ceph-mds.8 index efec2678b99ab..9367d3424bd44 100644 --- a/man/cmds.8 +++ b/man/ceph-mds.8 @@ -59,7 +59,7 @@ overrides specifying the name. .TP .B \-f, \-\-foreground Foreground: do not daemonize after startup (run in foreground). Do -not generate a pid file. Useful when run via \fBcrun\fP(8). +not generate a pid file. Useful when run via \fBceph-run\fP(8). .UNINDENT .INDENT 0.0 .TP @@ -86,8 +86,8 @@ Connect to specified monitor (instead of looking through .SH SEE ALSO .sp \fBceph\fP(8), -\fBcmon\fP(8), -\fBcosd\fP(8) +\fBceph-mon\fP(8), +\fBceph-osd\fP(8) .SH COPYRIGHT 2011, New Dream Network .\" Generated by docutils manpage writer. diff --git a/man/cmon.8 b/man/ceph-mon.8 similarity index 98% rename from man/cmon.8 rename to man/ceph-mon.8 index 4ab9437458530..dc6c4146f2b39 100644 --- a/man/cmon.8 +++ b/man/ceph-mon.8 @@ -71,8 +71,8 @@ the Ceph wiki at \fI\%http://ceph.newdream.net/wiki\fP for more information. .SH SEE ALSO .sp \fBceph\fP(8), -\fBcmds\fP(8), -\fBcosd\fP(8) +\fBceph-mds\fP(8), +\fBceph-osd\fP(8) .SH COPYRIGHT 2011, New Dream Network .\" Generated by docutils manpage writer. diff --git a/man/cosd.8 b/man/ceph-osd.8 similarity index 100% rename from man/cosd.8 rename to man/ceph-osd.8 diff --git a/man/crbdnamer.8 b/man/ceph-rbdnamer.8 similarity index 100% rename from man/crbdnamer.8 rename to man/ceph-rbdnamer.8 diff --git a/man/crun.8 b/man/ceph-run.8 similarity index 100% rename from man/crun.8 rename to man/ceph-run.8 diff --git a/man/csyn.8 b/man/ceph-syn.8 similarity index 100% rename from man/csyn.8 rename to man/ceph-syn.8 diff --git a/qa/rbd/common.sh b/qa/rbd/common.sh index b070e7f1a2fec..4c4ff0d38b13c 100644 --- a/qa/rbd/common.sh +++ b/qa/rbd/common.sh @@ -19,7 +19,7 @@ set_variables() { fi [ -e $conf ] || die "conf file not found" - CCONF="cconf -c $conf" + CCONF="ceph-conf -c $conf" [ -z "$mnt" ] && mnt="/c" if [ -z "$monhost" ]; then diff --git a/qa/runoncfuse.sh b/qa/runoncfuse.sh index d6bbc17aef3af..c1a5b0106e6e3 100755 --- a/qa/runoncfuse.sh +++ b/qa/runoncfuse.sh @@ -1,7 +1,7 @@ #!/bin/bash -x mkdir -p testspace -cfuse testspace -m $1 +ceph-fuse testspace -m $1 ./runallonce.sh testspace -killall cfuse +killall ceph-fuse diff --git a/src/.gitignore b/src/.gitignore index e60302a656fe4..872cc4394e51c 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1,9 +1,9 @@ -/cfuse -/cmds -/cmon +/ceph-fuse +/ceph-mds +/ceph-mon /ceph -/cosd -/csyn +/ceph-osd +/ceph-syn /dupstore /fakefuse /fakesyn @@ -11,7 +11,7 @@ /monmaptool /newsyn /authtool -/cauthtool +/ceph-authtool /crushtool /mkcephfs /mount.ceph @@ -64,8 +64,8 @@ CrushWrapper.pm crush/CrushWrapper_wrap.cxx /.git_version -/cconf -/cdebugpack +/ceph-conf +/ceph-debugpack /cephfs /ceph-coverage /dumpjournal diff --git a/src/Makefile.am b/src/Makefile.am index 63d849b9e0d36..ef5e17a66f8b7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,7 @@ bin_PROGRAMS = bin_DEBUGPROGRAMS = sbin_PROGRAMS = sbin_SCRIPTS = -bin_SCRIPTS = crun $(srcdir)/cclsinfo cdebugpack crbdnamer +bin_SCRIPTS = ceph-run $(srcdir)/ceph-clsinfo ceph-debugpack ceph-rbdnamer dist_bin_SCRIPTS = # C/C++ tests to build will be appended to this check_PROGRAMS = @@ -25,24 +25,24 @@ endif LIBGLOBAL_LDA = libglobal.la -lpthread -lm $(CRYPTO_LIBS) $(EXTRALIBS) # monitor -cmon_SOURCES = cmon.cc -cmon_LDFLAGS = $(AM_LDFLAGS) -cmon_LDADD = libmon.la $(LIBGLOBAL_LDA) -cmon_CXXFLAGS = ${AM_CXXFLAGS} -bin_PROGRAMS += cmon +ceph_mon_SOURCES = cmon.cc +ceph_mon_LDFLAGS = $(AM_LDFLAGS) +ceph_mon_LDADD = libmon.la $(LIBGLOBAL_LDA) +ceph_mon_CXXFLAGS = ${AM_CXXFLAGS} +bin_PROGRAMS += ceph-mon # osd -cosd_SOURCES = cosd.cc objclass/class_debug.cc \ +ceph_osd_SOURCES = cosd.cc objclass/class_debug.cc \ objclass/class_api.cc -cosd_LDADD = libosd.la libos.la $(LIBGLOBAL_LDA) -ldl -bin_PROGRAMS += cosd -cosd_CXXFLAGS = ${AM_CXXFLAGS} +ceph_osd_LDADD = libosd.la libos.la $(LIBGLOBAL_LDA) -ldl +bin_PROGRAMS += ceph-osd +ceph_osd_CXXFLAGS = ${AM_CXXFLAGS} # mds -cmds_SOURCES = cmds.cc -cmds_LDADD = libmds.a libosdc.la $(LIBGLOBAL_LDA) -bin_PROGRAMS += cmds -cmds_CXXFLAGS = ${AM_CXXFLAGS} +ceph_mds_SOURCES = cmds.cc +ceph_mds_LDADD = libmds.a libosdc.la $(LIBGLOBAL_LDA) +bin_PROGRAMS += ceph-mds +ceph_mds_CXXFLAGS = ${AM_CXXFLAGS} # admin tools ceph_SOURCES = \ @@ -83,11 +83,11 @@ gceph_CXXFLAGS = ${AM_CXXFLAGS} $(GTKMM_CFLAGS) \ bin_PROGRAMS += gceph endif -cconf_SOURCES = cconf.cc -cconf_LDADD = $(LIBGLOBAL_LDA) -cauthtool_SOURCES = cauthtool.cc -cauthtool_LDADD = $(LIBGLOBAL_LDA) -bin_PROGRAMS += ceph cconf cauthtool +ceph_conf_SOURCES = cconf.cc +ceph_conf_LDADD = $(LIBGLOBAL_LDA) +ceph_authtool_SOURCES = cauthtool.cc +ceph_authtool_LDADD = $(LIBGLOBAL_LDA) +bin_PROGRAMS += ceph ceph-conf ceph-authtool monmaptool_SOURCES = monmaptool.cc monmaptool_LDADD = $(LIBGLOBAL_LDA) @@ -110,42 +110,42 @@ librados_config_LDADD = libglobal.la librados.la $(EXTRALIBS) $(CRYPTO_LIBS) bin_PROGRAMS += librados-config # synthetic client -csyn_SOURCES = csyn.cc client/SyntheticClient.cc -csyn_LDADD = libclient.la libosdc.la $(LIBGLOBAL_LDA) -bin_PROGRAMS += csyn +ceph_syn_SOURCES = csyn.cc client/SyntheticClient.cc +ceph_syn_LDADD = libclient.la libosdc.la $(LIBGLOBAL_LDA) +bin_PROGRAMS += ceph-syn -core: cmon cosd cmds ceph cephfs librados-config cconf monmaptool osdmaptool crushtool csyn +core: ceph-mon ceph-osd ceph-mds ceph cephfs librados-config ceph-conf monmaptool osdmaptool crushtool ceph-syn # fuse targets? if WITH_FUSE -cfuse_SOURCES = cfuse.cc client/fuse_ll.cc -cfuse_LDADD = -lfuse libclient.la libosdc.la $(LIBGLOBAL_LDA) -cfuse_CXXFLAGS = ${AM_CXXFLAGS} -bin_PROGRAMS += cfuse +ceph_fuse_SOURCES = cfuse.cc client/fuse_ll.cc +ceph_fuse_LDADD = -lfuse libclient.la libosdc.la $(LIBGLOBAL_LDA) +ceph_fuse_CXXFLAGS = ${AM_CXXFLAGS} +bin_PROGRAMS += ceph-fuse endif # tcmalloc? if WITH_TCMALLOC tcmalloc_safety_flags = -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -cosd_LDADD += -ltcmalloc -cosd_CXXFLAGS += ${tcmalloc_safety_flags} -cosd_SOURCES += perfglue/heap_profiler.cc -cmds_LDADD += -ltcmalloc -cmds_CXXFLAGS += ${tcmalloc_safety_flags} -cmds_SOURCES += perfglue/heap_profiler.cc -cmon_LDADD += -ltcmalloc -cmon_CXXFLAGS += ${tcmalloc_safety_flags} -cmon_SOURCES += perfglue/heap_profiler.cc +ceph_osd_LDADD += -ltcmalloc +ceph_osd_CXXFLAGS += ${tcmalloc_safety_flags} +ceph_osd_SOURCES += perfglue/heap_profiler.cc +ceph_mds_LDADD += -ltcmalloc +ceph_mds_CXXFLAGS += ${tcmalloc_safety_flags} +ceph_mds_SOURCES += perfglue/heap_profiler.cc +ceph_mon_LDADD += -ltcmalloc +ceph_mon_CXXFLAGS += ${tcmalloc_safety_flags} +ceph_mon_SOURCES += perfglue/heap_profiler.cc if WITH_FUSE -cfuse_LDADD += -ltcmalloc -cfuse_CXXFLAGS += ${tcmalloc_safety_flags} +ceph_fuse_LDADD += -ltcmalloc +ceph_fuse_CXXFLAGS += ${tcmalloc_safety_flags} endif #WITH_FUSE else -cosd_SOURCES += perfglue/disabled_heap_profiler.cc -cmds_SOURCES += perfglue/disabled_heap_profiler.cc -cmon_SOURCES += perfglue/disabled_heap_profiler.cc +ceph_osd_SOURCES += perfglue/disabled_heap_profiler.cc +ceph_mds_SOURCES += perfglue/disabled_heap_profiler.cc +ceph_mon_SOURCES += perfglue/disabled_heap_profiler.cc endif # WITH_TCMALLOC # debug targets @@ -650,7 +650,7 @@ editpaths = sed \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@@GCOV_PREFIX_STRIP[@][@]|$(GCOV_PREFIX_STRIP)|g' -init-ceph mkcephfs cdebugpack ceph-coverage: init-ceph.in mkcephfs.in Makefile cdebugpack.in ceph-coverage.in +init-ceph mkcephfs ceph-debugpack ceph-coverage: init-ceph.in mkcephfs.in Makefile ceph-debugpack.in ceph-coverage.in rm -f $@ $@.tmp $(editpaths) '$(srcdir)/$@.in' >$@.tmp chmod +x $@.tmp @@ -701,11 +701,11 @@ endif # extra bits EXTRA_DIST = $(srcdir)/verify-mds-journal.sh $(srcdir)/vstart.sh $(srcdir)/stop.sh \ crun $(srcdir)/ceph_common.sh $(srcdir)/init-ceph.in $(srcdir)/mkcephfs.in \ - $(srcdir)/cdebugpack.in \ + $(srcdir)/ceph-debugpack.in \ $(srcdir)/ceph-coverage.in \ - $(srcdir)/cclsinfo $(srcdir)/make_version $(srcdir)/check_version \ + $(srcdir)/ceph-clsinfo $(srcdir)/make_version $(srcdir)/check_version \ $(srcdir)/.git_version \ - $(srcdir)/crbdnamer \ + $(srcdir)/ceph-rbdnamer \ $(ceph_tool_gui_DATA) # work around old versions of automake that don't define $docdir diff --git a/src/cconf.cc b/src/cconf.cc index 3661d7ab104bf..1228b42765fcd 100644 --- a/src/cconf.cc +++ b/src/cconf.cc @@ -35,7 +35,7 @@ static void usage() cerr << "Ceph configuration query tool\n\ \n\ USAGE\n\ -cconf \n\ +ceph-conf \n\ \n\ ACTIONS\n\ -L|--list-all-sections List all sections\n\ @@ -58,10 +58,10 @@ FLAGS\n\ If there is no action given, the action will default to --lookup.\n\ \n\ EXAMPLES\n\ -$ cconf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr'\n\ +$ ceph-conf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr'\n\ Find out what the value of 'mon add' is for monitor 0.\n\ \n\ -$ cconf -l mon\n\ +$ ceph-conf -l mon\n\ List sections beginning with 'mon'.\n\ \n\ RETURN CODE\n\ diff --git a/src/cclsinfo b/src/ceph-clsinfo similarity index 100% rename from src/cclsinfo rename to src/ceph-clsinfo diff --git a/src/cdebugpack.in b/src/ceph-debugpack.in similarity index 98% rename from src/cdebugpack.in rename to src/ceph-debugpack.in index 87258840833f1..d0eae86747838 100644 --- a/src/cdebugpack.in +++ b/src/ceph-debugpack.in @@ -62,7 +62,7 @@ done # get absolute path for dest_tar [ `echo $dest_tar | cut -c 1` != "/" ] && dest_tar="`pwd`/$dest_tar" -bins="cmon cmds cosd" +bins="ceph-mon ceph-mds ceph-osd" core_paths="/ $BINDIR $BINDBGDIR" [ "$conf" = "" ] && conf=$ETCDIR/ceph.conf log_path=`$CCONF -c $conf "log dir"` diff --git a/src/crbdnamer b/src/ceph-rbdnamer similarity index 100% rename from src/crbdnamer rename to src/ceph-rbdnamer diff --git a/src/crun b/src/ceph-run similarity index 100% rename from src/crun rename to src/ceph-run diff --git a/src/ceph_common.sh b/src/ceph_common.sh index 1da42bd9436ce..a26aac6071bb8 100644 --- a/src/ceph_common.sh +++ b/src/ceph_common.sh @@ -1,6 +1,6 @@ #!/bin/sh -CCONF="$BINDIR/cconf" +CCONF="$BINDIR/ceph-conf" default_conf=$ETCDIR"/ceph.conf" conf=$default_conf diff --git a/src/cfuse.cc b/src/cfuse.cc index 53c4042eebd82..552de42c5a7a9 100644 --- a/src/cfuse.cc +++ b/src/cfuse.cc @@ -41,12 +41,12 @@ using namespace std; void usage() { - cerr << "usage: cfuse [-m mon-ip-addr:mon-port] " << std::endl; + cerr << "usage: ceph-fuse [-m mon-ip-addr:mon-port] " << std::endl; } int main(int argc, const char **argv, const char *envp[]) { int filer_flags = 0; - //cerr << "cfuse starting " << myrank << "/" << world << std::endl; + //cerr << "ceph-fuse starting " << myrank << "/" << world << std::endl; vector args; argv_to_vec(argc, argv, args); env_to_vec(args); @@ -102,7 +102,7 @@ int main(int argc, const char **argv, const char *envp[]) { if (g_conf->daemonize) { int r = socketpair(AF_UNIX, SOCK_STREAM, 0, fd); if (r < 0) { - cerr << "cfuse[" << getpid() << "]: unable to create socketpair: " << strerror(errno) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: unable to create socketpair: " << strerror(errno) << std::endl; exit(1); } @@ -115,7 +115,7 @@ int main(int argc, const char **argv, const char *envp[]) { //cout << "child, mounting" << std::endl; ::close(fd[0]); - cout << "cfuse[" << getpid() << "]: starting ceph client" << std::endl; + cout << "ceph-fuse[" << getpid() << "]: starting ceph client" << std::endl; messenger->start_with_nonce(getpid()); // start client @@ -125,13 +125,13 @@ int main(int argc, const char **argv, const char *envp[]) { // use my argc, argv (make sure you pass a mount point!) int r = client->mount(g_conf->client_mountpoint.c_str()); if (r < 0) { - cerr << "cfuse[" << getpid() << "]: ceph mount failed with " << strerror(-r) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << strerror(-r) << std::endl; goto out_shutdown; } - cerr << "cfuse[" << getpid() << "]: starting fuse" << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: starting fuse" << std::endl; r = ceph_fuse_ll_main(client, argc, argv, fd[1]); - cerr << "cfuse[" << getpid() << "]: fuse finished with error " << r << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: fuse finished with error " << r << std::endl; client->unmount(); //cout << "unmounted" << std::endl; @@ -165,9 +165,9 @@ int main(int argc, const char **argv, const char *envp[]) { ::close(1); ::close(2); } else if (err) - cerr << "cfuse[" << getpid() << "]: mount failed: " << strerror(-err) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: mount failed: " << strerror(-err) << std::endl; else - cerr << "cfuse[" << getpid() << "]: mount failed: " << strerror(-r) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: mount failed: " << strerror(-r) << std::endl; return r; } } diff --git a/src/client/Client.cc b/src/client/Client.cc index 073f12bb4f317..3a660e036649a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -4607,7 +4607,7 @@ struct dirent * Client::readdir(dir_result_t *d) sr.full = false; /* - * Return mechanisms are non-obvious (callback appears intended for multi-read mechanism like cfuse) + * Return mechanisms are non-obvious (callback appears intended for multi-read mechanism like ceph-fuse) * readdir_r_cb=0 end of directory reached on prior call * readdir_r_cb=0 entry filled and offset now at end of the directory * readdir_r_cb=-1 entry is filled successfully, not end of dir diff --git a/src/cmds.cc b/src/cmds.cc index a561792569b0a..243ca0e619e60 100644 --- a/src/cmds.cc +++ b/src/cmds.cc @@ -41,7 +41,7 @@ using namespace std; void usage() { - derr << "usage: cmds -i name [flags] [[--journal_check rank]|[--hot-standby][rank]]\n" + derr << "usage: ceph-mds -i name [flags] [[--journal_check rank]|[--hot-standby][rank]]\n" << " -m monitorip:port\n" << " connect to monitor at given address\n" << " --debug_mds n\n" @@ -201,7 +201,7 @@ int main(int argc, const char **argv) // Normal startup if (g_conf->name.has_default_id()) { - derr << "must specify '-i name' with the cmds instance name" << dendl; + derr << "must specify '-i name' with the ceph-mds instance name" << dendl; usage(); } @@ -266,7 +266,7 @@ int main(int argc, const char **argv) char s[20]; snprintf(s, sizeof(s), "gmon/%d", getpid()); if ((mkdir(s, 0755) == 0) && (chdir(s) == 0)) { - dout(0) << "cmds: gmon.out should be in " << s << dendl; + dout(0) << "ceph-mds: gmon.out should be in " << s << dendl; } generic_dout(0) << "stopped." << dendl; diff --git a/src/cmon.cc b/src/cmon.cc index 9e7f5803ce675..5393ebeeccea9 100644 --- a/src/cmon.cc +++ b/src/cmon.cc @@ -39,7 +39,7 @@ extern CompatSet get_ceph_mon_feature_compat_set(); void usage() { - cerr << "usage: cmon -i monid [--mon-data=pathtodata] [flags]" << std::endl; + cerr << "usage: ceph-mon -i monid [--mon-data=pathtodata] [flags]" << std::endl; cerr << " --debug_mon n\n"; cerr << " debug monitor level (e.g. 10)\n"; cerr << " --mkfs\n"; @@ -300,7 +300,7 @@ int main(int argc, const char **argv) char s[20]; snprintf(s, sizeof(s), "gmon/%d", getpid()); if ((mkdir(s, 0755) == 0) && (chdir(s) == 0)) { - dout(0) << "cmon: gmon.out should be in " << s << dendl; + dout(0) << "ceph-mon: gmon.out should be in " << s << dendl; } return 0; diff --git a/src/cosd.cc b/src/cosd.cc index e2ce3cc347d25..5d50349afe013 100644 --- a/src/cosd.cc +++ b/src/cosd.cc @@ -42,7 +42,7 @@ using namespace std; void usage() { - derr << "usage: cosd -i osdid [--osd-data=path] [--osd-journal=path] " + derr << "usage: ceph-osd -i osdid [--osd-data=path] [--osd-journal=path] " << "[--mkfs] [--mkjournal] [--convert-filestore]" << dendl; derr << " --debug_osd N set debug level (e.g. 10)" << dendl; generic_server_usage(); @@ -356,7 +356,7 @@ int main(int argc, const char **argv) char s[20]; snprintf(s, sizeof(s), "gmon/%d", getpid()); if ((mkdir(s, 0755) == 0) && (chdir(s) == 0)) { - dout(0) << "cosd: gmon.out should be in " << s << dendl; + dout(0) << "ceph-osd: gmon.out should be in " << s << dendl; } return 0; diff --git a/src/csyn.cc b/src/csyn.cc index cc58ce53c520c..e1a6bdb43ced5 100644 --- a/src/csyn.cc +++ b/src/csyn.cc @@ -42,7 +42,7 @@ extern int syn_filer_flags; int main(int argc, const char **argv, char *envp[]) { - //cerr << "csyn starting" << std::endl; + //cerr << "ceph-syn starting" << std::endl; vector args; argv_to_vec(argc, argv, args); @@ -63,7 +63,7 @@ int main(int argc, const char **argv, char *envp[]) SimpleMessenger* messengers[g_conf->num_client]; MonClient* mclients[g_conf->num_client]; - cout << "csyn: starting " << g_conf->num_client << " syn client(s)" << std::endl; + cout << "ceph-syn: starting " << g_conf->num_client << " syn client(s)" << std::endl; for (int i=0; inum_client; i++) { messengers[i] = new SimpleMessenger(g_ceph_context); messengers[i]->register_entity(entity_name_t(entity_name_t::TYPE_CLIENT,-1)); diff --git a/src/init-ceph.in b/src/init-ceph.in index f4329788c476f..0bc69926e3212 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -249,7 +249,7 @@ for name in $what; do runarg="" [ -z "$crun" ] && get_conf_bool crun "0" "restart on core dump" - [ "$crun" -eq 1 ] && wrap="$BINDIR/crun" + [ "$crun" -eq 1 ] && wrap="$BINDIR/ceph-run" [ -z "$dovalgrind" ] && get_conf_bool valgrind "" "valgrind" [ -n "$valgrind" ] && wrap="$wrap valgrind $valgrind" diff --git a/src/mkcephfs.in b/src/mkcephfs.in index 2ecde4c7f871e..7770c78a6aa83 100644 --- a/src/mkcephfs.in +++ b/src/mkcephfs.in @@ -230,8 +230,8 @@ create_private_key() { get_conf keyring "$dir/keyring.$name" "keyring" echo "creating private key for $name keyring $keyring" - $BINDIR/cauthtool --create-keyring --gen-key -n $name $keyring - $BINDIR/cauthtool -p -n $name $keyring > $dir/key.$name + $BINDIR/ceph-authtool --create-keyring --gen-key -n $name $keyring + $BINDIR/ceph-authtool -p -n $name $keyring > $dir/key.$name } if [ -n "$initdaemon" ]; then @@ -253,7 +253,7 @@ if [ -n "$initdaemon" ]; then fi if [ $type = "osd" ]; then - $BINDIR/cosd -c $conf --monmap $dir/monmap -i $id --mkfs + $BINDIR/ceph-osd -c $conf --monmap $dir/monmap -i $id --mkfs create_private_key fi @@ -262,7 +262,7 @@ if [ -n "$initdaemon" ]; then fi if [ $type = "mon" ]; then - $BINDIR/cmon -c $conf --mkfs -i $id --monmap $dir/monmap --osdmap $dir/osdmap -k $dir/keyring.mon + $BINDIR/ceph-mon -c $conf --mkfs -i $id --monmap $dir/monmap --osdmap $dir/osdmap -k $dir/keyring.mon fi exit 0 @@ -370,18 +370,18 @@ if [ $preparemon -eq 1 ]; then # admin keyring echo Generating admin key at $dir/keyring.admin - $BINDIR/cauthtool --create-keyring --gen-key -n client.admin $dir/keyring.admin + $BINDIR/ceph-authtool --create-keyring --gen-key -n client.admin $dir/keyring.admin # mon keyring echo Building initial monitor keyring cp $dir/keyring.admin $dir/keyring.mon - $BINDIR/cauthtool -n client.admin --set-uid=0 \ + $BINDIR/ceph-authtool -n client.admin --set-uid=0 \ --cap mon 'allow *' \ --cap osd 'allow *' \ --cap mds 'allow' \ $dir/keyring.mon - $BINDIR/cauthtool --gen-key -n mon. $dir/keyring.mon + $BINDIR/ceph-authtool --gen-key -n mon. $dir/keyring.mon for k in $dir/key.* do @@ -391,12 +391,12 @@ if [ $preparemon -eq 1 ]; then kname="$ktype.$kid" secret=`cat $k` if [ "$ktype" = "osd" ]; then - $BINDIR/cauthtool -n $kname --add-key $secret $dir/keyring.mon \ + $BINDIR/ceph-authtool -n $kname --add-key $secret $dir/keyring.mon \ --cap mon 'allow rwx' \ --cap osd 'allow *' fi if [ "$ktype" = "mds" ]; then - $BINDIR/cauthtool -n $kname --add-key $secret $dir/keyring.mon \ + $BINDIR/ceph-authtool -n $kname --add-key $secret $dir/keyring.mon \ --cap mon "allow rwx" \ --cap osd 'allow *' \ --cap mds 'allow' diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index b895c2b2a2663..6388cda0961dc 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1093,7 +1093,7 @@ int Monitor::mkfs(bufferlist& osdmapbl) magicbl.append("\n"); int r = store->put_bl_ss(magicbl, "magic", 0); if (r < 0) { - dout(0) << TEXT_RED << "** ERROR: initializing cmon failed: couldn't " + dout(0) << TEXT_RED << "** ERROR: initializing ceph-mon failed: couldn't " << "initialize the monitor state machine: " << cpp_strerror(r) << TEXT_NORMAL << dendl; exit(1); diff --git a/src/mon/MonitorStore.cc b/src/mon/MonitorStore.cc index 81136a91bd88d..977ed7ff9461c 100644 --- a/src/mon/MonitorStore.cc +++ b/src/mon/MonitorStore.cc @@ -65,7 +65,7 @@ int MonitorStore::mount() l.l_len = 0; int r = ::fcntl(lock_fd, F_SETLK, &l); if (r < 0) { - dout(0) << "failed to lock " << t << ", is another cmon still running?" << dendl; + dout(0) << "failed to lock " << t << ", is another ceph-mon still running?" << dendl; return -errno; } diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index c655eb3acddb9..6cbc27697f099 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1016,7 +1016,7 @@ int FileStore::lock_fsid() int r = ::fcntl(fsid_fd, F_SETLK, &l); if (r < 0) { char buf[80]; - dout(0) << "lock_fsid failed to lock " << basedir << "/fsid, is another cosd still running? " << strerror_r(errno, buf, sizeof(buf)) << dendl; + dout(0) << "lock_fsid failed to lock " << basedir << "/fsid, is another ceph-osd still running? " << strerror_r(errno, buf, sizeof(buf)) << dendl; return -errno; } return 0; diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 8d24408a07783..298bbf8d46774 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -614,7 +614,7 @@ int OSD::pre_init() if (store->test_mount_in_use()) { derr << "OSD::pre_init: object store '" << dev_path << "' is " - << "currently in use. (Is cosd already running?)" << dendl; + << "currently in use. (Is ceph-osd already running?)" << dendl; return -EBUSY; } return 0; diff --git a/src/ps-ceph.pl b/src/ps-ceph.pl index e50a8574d2217..dc23629649485 100755 --- a/src/ps-ceph.pl +++ b/src/ps-ceph.pl @@ -17,10 +17,10 @@ sub is_ceph_proc { return 0 if $cmdline =~ /\bps-ceph.pl\b/; return 1 if $cmdline =~ /\bceph\b/; - return 1 if $cmdline =~ /\bcfuse\b/; - return 1 if $cmdline =~ /\bcmds\b/; - return 1 if $cmdline =~ /\bcmon\b/; - return 1 if $cmdline =~ /\bcosd\b/; + return 1 if $cmdline =~ /\bceph-fuse\b/; + return 1 if $cmdline =~ /\bceph-mds\b/; + return 1 if $cmdline =~ /\bceph-mon\b/; + return 1 if $cmdline =~ /\bceph-osd\b/; return 1 if $cmdline =~ /\bosdmaptool\b/; return 1 if $cmdline =~ /\brados\b/; return 1 if $cmdline =~ /test_/; diff --git a/src/script/check_pglog.sh b/src/script/check_pglog.sh index 2dd564d9edcc9..48976f0a51356 100755 --- a/src/script/check_pglog.sh +++ b/src/script/check_pglog.sh @@ -1,7 +1,7 @@ #!/bin/sh -cosd=`which cosd` -[ -z "$cosd" ] && cosd="./cosd" +cosd=`which ceph-osd` +[ -z "$cosd" ] && cosd="./ceph-osd" bad=0 for f in $1/current/meta/pglog* diff --git a/src/stop.sh b/src/stop.sh index 1274f36b39020..604cd91dedf07 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -3,7 +3,7 @@ test -d dev/osd0/. && test -e dev/sudo && SUDO="sudo" do_killall() { - pg=`pgrep -f crun.*$1` + pg=`pgrep -f ceph-run.*$1` [ -n "$pg" ] && kill $pg $SUDO killall $1 } @@ -20,15 +20,15 @@ while [ $# -ge 1 ]; do all ) stop_all=1 ;; - mon | cmon ) + mon | ceph-mon ) stop_mon=1 stop_all=0 ;; - mds | cmds ) + mds | ceph-mds ) stop_mds=1 stop_all=0 ;; - osd | cosd ) + osd | ceph-osd ) stop_osd=1 stop_all=0 ;; @@ -40,12 +40,12 @@ while [ $# -ge 1 ]; do done if [ $stop_all -eq 1 ]; then - killall cmon cmds cosd - pkill -f valgrind.bin.\*cmon - $SUDO pkill -f valgrind.bin.\*cosd - pkill -f valgrind.bin.\*cmds + killall ceph-mon ceph-mds ceph-osd + pkill -f valgrind.bin.\*ceph-mon + $SUDO pkill -f valgrind.bin.\*ceph-osd + pkill -f valgrind.bin.\*ceph-mds else - [ $stop_mon -eq 1 ] && do_killall cmon - [ $stop_mds -eq 1 ] && do_killall cmds - [ $stop_osd -eq 1 ] && do_killall cosd + [ $stop_mon -eq 1 ] && do_killall ceph-mon + [ $stop_mds -eq 1 ] && do_killall ceph-mds + [ $stop_osd -eq 1 ] && do_killall ceph-osd fi diff --git a/src/test/cli/cauthtool/add-key-segv.t b/src/test/cli/cauthtool/add-key-segv.t index 696a80a574f84..724deb0b6f37a 100644 --- a/src/test/cli/cauthtool/add-key-segv.t +++ b/src/test/cli/cauthtool/add-key-segv.t @@ -1,6 +1,6 @@ - $ cauthtool kring --create-keyring + $ ceph-authtool kring --create-keyring creating kring - $ cauthtool kring --add-key 'FAKEBASE64 foo' + $ ceph-authtool kring --add-key 'FAKEBASE64 foo' can't decode key 'FAKEBASE64 foo' [1] diff --git a/src/test/cli/cauthtool/add-key.t b/src/test/cli/cauthtool/add-key.t index 8ae94ea69923b..d991b6767fd38 100644 --- a/src/test/cli/cauthtool/add-key.t +++ b/src/test/cli/cauthtool/add-key.t @@ -1,11 +1,11 @@ - $ cauthtool kring --create-keyring + $ ceph-authtool kring --create-keyring creating kring - $ cauthtool kring --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615' + $ ceph-authtool kring --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615' added entity client.admin auth auth(auid = 18446744073709551615 key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== with 0 caps) # cram makes matching escape-containing lines with regexps a bit ugly - $ cauthtool kring --list + $ ceph-authtool kring --list [client.admin] \tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc) \tauid = 18446744073709551615 (esc) diff --git a/src/test/cli/cauthtool/cap-bin.t b/src/test/cli/cauthtool/cap-bin.t index 9f34c19dd426b..c0adb1f53640a 100644 --- a/src/test/cli/cauthtool/cap-bin.t +++ b/src/test/cli/cauthtool/cap-bin.t @@ -1,6 +1,6 @@ - $ cauthtool kring --create-keyring --gen-key --bin + $ ceph-authtool kring --create-keyring --gen-key --bin creating kring - $ cauthtool --cap osd 'allow rx pool=swimming' --bin kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap osd 'allow rx pool=swimming' --bin kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps osd = "allow rx pool=swimming" (esc) diff --git a/src/test/cli/cauthtool/cap-invalid.t b/src/test/cli/cauthtool/cap-invalid.t index e655c205bfe20..c857e26ab5264 100644 --- a/src/test/cli/cauthtool/cap-invalid.t +++ b/src/test/cli/cauthtool/cap-invalid.t @@ -1,12 +1,12 @@ - $ cauthtool kring --create-keyring --gen-key + $ ceph-authtool kring --create-keyring --gen-key creating kring # TODO is this nice? - $ cauthtool --cap osd 'broken' kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap osd 'broken' kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps osd = "broken" (esc) # TODO is this nice? - $ cauthtool --cap xyzzy 'broken' kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap xyzzy 'broken' kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps xyzzy = "broken" (esc) diff --git a/src/test/cli/cauthtool/cap-overwrite.t b/src/test/cli/cauthtool/cap-overwrite.t index f6b46753c2c31..30788dfd4fd8b 100644 --- a/src/test/cli/cauthtool/cap-overwrite.t +++ b/src/test/cli/cauthtool/cap-overwrite.t @@ -1,11 +1,11 @@ - $ cauthtool kring --create-keyring --gen-key + $ ceph-authtool kring --create-keyring --gen-key creating kring - $ cauthtool --cap osd 'allow rx pool=swimming' kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap osd 'allow rx pool=swimming' kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps osd = "allow rx pool=swimming" (esc) # TODO it seems --cap overwrites all previous caps; is this wanted? - $ cauthtool --cap mds 'allow' kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap mds 'allow' kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps mds = "allow" (esc) diff --git a/src/test/cli/cauthtool/cap.t b/src/test/cli/cauthtool/cap.t index 05fdac613e57b..3d9ae706e73c3 100644 --- a/src/test/cli/cauthtool/cap.t +++ b/src/test/cli/cauthtool/cap.t @@ -1,8 +1,8 @@ - $ cauthtool kring --create-keyring --gen-key + $ ceph-authtool kring --create-keyring --gen-key creating kring - $ cauthtool --cap osd 'allow rx pool=swimming' kring - $ cauthtool kring --list|grep -P '^\tcaps ' + $ ceph-authtool --cap osd 'allow rx pool=swimming' kring + $ ceph-authtool kring --list|grep -P '^\tcaps ' \tcaps osd = "allow rx pool=swimming" (esc) $ cat kring diff --git a/src/test/cli/cauthtool/create-gen-list-bin.t b/src/test/cli/cauthtool/create-gen-list-bin.t index 34475e0ad5412..a24f6acdd77a1 100644 --- a/src/test/cli/cauthtool/create-gen-list-bin.t +++ b/src/test/cli/cauthtool/create-gen-list-bin.t @@ -1,22 +1,22 @@ - $ cauthtool kring --create-keyring --bin + $ ceph-authtool kring --create-keyring --bin creating kring - $ cauthtool kring --list --bin + $ ceph-authtool kring --list --bin # --list actually does not use --bin, but autodetects; run it both # ways just to trigger that - $ cauthtool kring --list + $ ceph-authtool kring --list - $ cauthtool kring --gen-key --bin + $ ceph-authtool kring --gen-key --bin # cram makes matching escape-containing lines with regexps a bit ugly - $ cauthtool kring --list + $ ceph-authtool kring --list [client.admin] \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re) \\tauid = [0-9]{20} \(esc\) (re) # synonym - $ cauthtool kring -l + $ ceph-authtool kring -l [client.admin] \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re) \\tauid = [0-9]{20} \(esc\) (re) diff --git a/src/test/cli/cauthtool/create-gen-list.t b/src/test/cli/cauthtool/create-gen-list.t index 680b964170e23..abd44eca283d7 100644 --- a/src/test/cli/cauthtool/create-gen-list.t +++ b/src/test/cli/cauthtool/create-gen-list.t @@ -1,18 +1,18 @@ - $ cauthtool kring --create-keyring + $ ceph-authtool kring --create-keyring creating kring - $ cauthtool kring --list + $ ceph-authtool kring --list - $ cauthtool kring --gen-key + $ ceph-authtool kring --gen-key # cram makes matching escape-containing lines with regexps a bit ugly - $ cauthtool kring --list + $ ceph-authtool kring --list [client.admin] \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re) \\tauid = [0-9]{20} \(esc\) (re) # synonym - $ cauthtool kring -l + $ ceph-authtool kring -l [client.admin] \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re) \\tauid = [0-9]{20} \(esc\) (re) diff --git a/src/test/cli/cauthtool/help.t b/src/test/cli/cauthtool/help.t index 9ac165d7118ba..d19330a1ca70f 100644 --- a/src/test/cli/cauthtool/help.t +++ b/src/test/cli/cauthtool/help.t @@ -1,7 +1,7 @@ # TODO synchronize with man page - $ cauthtool --help + $ ceph-authtool --help no command specified - usage: cauthtool keyringfile [OPTIONS]... + usage: ceph-authtool keyringfile [OPTIONS]... where the options are: -l, --list will list all keys and capabilities present in the keyring diff --git a/src/test/cli/cauthtool/list-empty-bin.t b/src/test/cli/cauthtool/list-empty-bin.t index 33ec16d48e53f..f8d517f8931b9 100644 --- a/src/test/cli/cauthtool/list-empty-bin.t +++ b/src/test/cli/cauthtool/list-empty-bin.t @@ -1,5 +1,5 @@ $ touch empty - $ cauthtool --list --bin empty + $ ceph-authtool --list --bin empty - $ cauthtool -l --bin empty + $ ceph-authtool -l --bin empty diff --git a/src/test/cli/cauthtool/list-empty.t b/src/test/cli/cauthtool/list-empty.t index 16fbefa4018e0..1b465fe6560af 100644 --- a/src/test/cli/cauthtool/list-empty.t +++ b/src/test/cli/cauthtool/list-empty.t @@ -1,5 +1,5 @@ $ touch empty - $ cauthtool --list empty + $ ceph-authtool --list empty - $ cauthtool -l empty + $ ceph-authtool -l empty diff --git a/src/test/cli/cauthtool/list-nonexistent-bin.t b/src/test/cli/cauthtool/list-nonexistent-bin.t index 38169065159ff..3da68883896dd 100644 --- a/src/test/cli/cauthtool/list-nonexistent-bin.t +++ b/src/test/cli/cauthtool/list-nonexistent-bin.t @@ -1,7 +1,7 @@ - $ cauthtool --list --bin nonexistent + $ ceph-authtool --list --bin nonexistent can't open nonexistent: can't open nonexistent: error 2: No such file or directory [1] - $ cauthtool -l --bin nonexistent + $ ceph-authtool -l --bin nonexistent can't open nonexistent: can't open nonexistent: error 2: No such file or directory [1] diff --git a/src/test/cli/cauthtool/list-nonexistent.t b/src/test/cli/cauthtool/list-nonexistent.t index 792bbac8a093b..7b8e73d985db6 100644 --- a/src/test/cli/cauthtool/list-nonexistent.t +++ b/src/test/cli/cauthtool/list-nonexistent.t @@ -1,7 +1,7 @@ - $ cauthtool --list nonexistent + $ ceph-authtool --list nonexistent can't open nonexistent: can't open nonexistent: error 2: No such file or directory [1] - $ cauthtool -l nonexistent + $ ceph-authtool -l nonexistent can't open nonexistent: can't open nonexistent: error 2: No such file or directory [1] diff --git a/src/test/cli/cauthtool/manpage.t b/src/test/cli/cauthtool/manpage.t index 81d3b4f2ae12d..188a1e147886f 100644 --- a/src/test/cli/cauthtool/manpage.t +++ b/src/test/cli/cauthtool/manpage.t @@ -1,6 +1,6 @@ - $ cauthtool - cauthtool: must specify filename - usage: cauthtool keyringfile [OPTIONS]... + $ ceph-authtool + ceph-authtool: must specify filename + usage: ceph-authtool keyringfile [OPTIONS]... where the options are: -l, --list will list all keys and capabilities present in the keyring @@ -20,7 +20,7 @@ # demonstrate that manpage examples fail without config # TODO fix the manpage - $ cauthtool --create-keyring --name client.foo --gen-key keyring + $ ceph-authtool --create-keyring --name client.foo --gen-key keyring creating keyring # work around the above @@ -28,19 +28,19 @@ To create a new keyring containing a key for client.foo: - $ cauthtool --create-keyring --id foo --gen-key keyring.bin + $ ceph-authtool --create-keyring --id foo --gen-key keyring.bin creating keyring.bin - $ cauthtool --create-keyring --name client.foo --gen-key keyring.bin + $ ceph-authtool --create-keyring --name client.foo --gen-key keyring.bin creating keyring.bin To associate some capabilities with the key (namely, the ability to mount a Ceph filesystem): - $ cauthtool -n client.foo --cap mds 'allow' --cap osd 'allow rw pool=data' --cap mon 'allow r' keyring.bin + $ ceph-authtool -n client.foo --cap mds 'allow' --cap osd 'allow rw pool=data' --cap mon 'allow r' keyring.bin To display the contents of the keyring: - $ cauthtool -l keyring.bin + $ ceph-authtool -l keyring.bin [client.foo] \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re) \\tauid = [0-9]{20} \(esc\) (re) diff --git a/src/test/cli/cauthtool/simple.t b/src/test/cli/cauthtool/simple.t index 059d244e0d521..e2317d45a0533 100644 --- a/src/test/cli/cauthtool/simple.t +++ b/src/test/cli/cauthtool/simple.t @@ -1,6 +1,6 @@ - $ cauthtool - cauthtool: must specify filename - usage: cauthtool keyringfile [OPTIONS]... + $ ceph-authtool + ceph-authtool: must specify filename + usage: ceph-authtool keyringfile [OPTIONS]... where the options are: -l, --list will list all keys and capabilities present in the keyring diff --git a/src/test/cli/cconf/env-vs-args.t b/src/test/cli/cconf/env-vs-args.t index ae9368040885c..193e40c2d6099 100644 --- a/src/test/cli/cconf/env-vs-args.t +++ b/src/test/cli/cconf/env-vs-args.t @@ -1,10 +1,10 @@ # we can use CEPH_CONF to override the normal configuration file location. - $ env CEPH_CONF=from-env cconf -s foo bar + $ env CEPH_CONF=from-env ceph-conf -s foo bar global_init: unable to open config file. (re) [1] # command-line arguments should override environment - $ env -u CEPH_CONF cconf -c from-args + $ env -u CEPH_CONF ceph-conf -c from-args global_init: unable to open config file. (re) [1] diff --git a/src/test/cli/cconf/help.t b/src/test/cli/cconf/help.t index 111b320e4a16c..3fe8ca3f4462b 100644 --- a/src/test/cli/cconf/help.t +++ b/src/test/cli/cconf/help.t @@ -1,8 +1,8 @@ - $ cconf --help + $ ceph-conf --help Ceph configuration query tool USAGE - cconf + ceph-conf ACTIONS -L|--list-all-sections List all sections @@ -25,10 +25,10 @@ If there is no action given, the action will default to --lookup. EXAMPLES - [$] cconf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr' (re) + [$] ceph-conf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr' (re) Find out what the value of 'mon add' is for monitor 0. - [$] cconf -l mon (re) + [$] ceph-conf -l mon (re) List sections beginning with 'mon'. RETURN CODE diff --git a/src/test/cli/cconf/invalid-args.t b/src/test/cli/cconf/invalid-args.t index 0130dca0d2717..e7fdc17856ef5 100644 --- a/src/test/cli/cconf/invalid-args.t +++ b/src/test/cli/cconf/invalid-args.t @@ -4,14 +4,14 @@ > EOF # TODO output an error - $ cconf -c test.conf broken + $ ceph-conf -c test.conf broken [1] - $ cconf -c test.conf --name total.garbage + $ ceph-conf -c test.conf --name total.garbage You must pass a string of the form TYPE.ID to the --name option. Valid types are: auth, mon, osd, mds, client [1] - $ cconf -c test.conf -s bar + $ ceph-conf -c test.conf -s bar You must give an action, such as --lookup or --list-all-sections. Pass --help for more help. [1] diff --git a/src/test/cli/cconf/manpage.t b/src/test/cli/cconf/manpage.t index 8340d27718d7d..425f271898746 100644 --- a/src/test/cli/cconf/manpage.t +++ b/src/test/cli/cconf/manpage.t @@ -15,7 +15,7 @@ To extract the value of the "osd data" option for the osd0 daemon, - $ cconf -c foo.conf "osd data" --name osd.0 + $ ceph-conf -c foo.conf "osd data" --name osd.0 /mnt/osd0 This is equivalent to doing specifying sections [osd0], [osd.0], @@ -23,11 +23,11 @@ This is equivalent to doing specifying sections [osd0], [osd.0], # TODO the "admin" here seems like an actual bug - $ cconf -c foo.conf "osd data" -s osd0 -s osd.0 -s osd -s global + $ ceph-conf -c foo.conf "osd data" -s osd0 -s osd.0 -s osd -s global /mnt/osdadmin To list all sections that begin with osd: - $ cconf -c foo.conf -l osd + $ ceph-conf -c foo.conf -l osd osd osd.3 diff --git a/src/test/cli/cconf/option.t b/src/test/cli/cconf/option.t index d1d63f2367cd1..a8b5b6e3e2a96 100644 --- a/src/test/cli/cconf/option.t +++ b/src/test/cli/cconf/option.t @@ -11,14 +11,14 @@ > other = 42 > EOF - $ cconf -c test.conf bar -s foo + $ ceph-conf -c test.conf bar -s foo blue # test the funny "equals sign" argument passing convention - $ cconf --conf=test.conf bar -s foo + $ ceph-conf --conf=test.conf bar -s foo blue - $ cconf --conf=test.conf -L + $ ceph-conf --conf=test.conf -L bar baz foo @@ -26,7 +26,7 @@ nobar thud - $ cconf --conf=test.conf --list-all-sections + $ ceph-conf --conf=test.conf --list-all-sections bar baz foo @@ -34,7 +34,7 @@ nobar thud - $ cconf --conf=test.conf --list_all_sections + $ ceph-conf --conf=test.conf --list_all_sections bar baz foo @@ -44,24 +44,24 @@ # TODO man page stops in the middle of a sentence - $ cconf -c test.conf bar -s xyzzy + $ ceph-conf -c test.conf bar -s xyzzy [1] - $ cconf -c test.conf bar -s xyzzy + $ ceph-conf -c test.conf bar -s xyzzy [1] - $ cconf -c test.conf bar -s xyzzy -s thud + $ ceph-conf -c test.conf bar -s xyzzy -s thud red - $ cconf -c test.conf bar -s nobar -s thud + $ ceph-conf -c test.conf bar -s nobar -s thud red - $ cconf -c test.conf bar -s thud -s baz + $ ceph-conf -c test.conf bar -s thud -s baz red - $ cconf -c test.conf bar -s baz -s thud + $ ceph-conf -c test.conf bar -s baz -s thud yellow - $ cconf -c test.conf bar -s xyzzy -s nobar -s thud -s baz + $ ceph-conf -c test.conf bar -s xyzzy -s nobar -s thud -s baz red diff --git a/src/test/cli/cconf/sections.t b/src/test/cli/cconf/sections.t index b4f26da95a6a4..63063cc9e119d 100644 --- a/src/test/cli/cconf/sections.t +++ b/src/test/cli/cconf/sections.t @@ -9,10 +9,10 @@ > bar = yellow > EOF - $ cconf -c test.conf -l bar + $ ceph-conf -c test.conf -l bar bar - $ cconf -c test.conf -l b + $ ceph-conf -c test.conf -l b bar baz diff --git a/src/test/cli/cconf/simple.t b/src/test/cli/cconf/simple.t index 556e2fac16a44..043ca203509ed 100644 --- a/src/test/cli/cconf/simple.t +++ b/src/test/cli/cconf/simple.t @@ -1,4 +1,4 @@ - $ cconf + $ ceph-conf You must give an action, such as --lookup or --list-all-sections. Pass --help for more help. [1] diff --git a/src/test/test_common.sh b/src/test/test_common.sh index eacfd79748133..33c30ec98424c 100755 --- a/src/test/test_common.sh +++ b/src/test/test_common.sh @@ -45,7 +45,7 @@ stop_osd() { if [ -e $pidfile ]; then kill `cat $pidfile` && return 0 else - echo "cosd process $osd_index is not running" + echo "ceph-osd process $osd_index is not running" fi return 1 } @@ -53,7 +53,7 @@ stop_osd() { # Restart an OSD started by vstart restart_osd() { osd_index=$1 - ./cosd -i $osd_index -c ceph.conf & + ./ceph-osd -i $osd_index -c ceph.conf & } # Ask the user a yes/no question and get the response diff --git a/src/test/test_csyn.sh b/src/test/test_csyn.sh index b722d6a5c9691..98003aaf6d0aa 100644 --- a/src/test/test_csyn.sh +++ b/src/test/test_csyn.sh @@ -20,7 +20,7 @@ osd max scrubs = 0' || die "vstart failed" } csyn_simple1_impl() { - ./csyn -c ./ceph.conf --syn writefile 100 1000 --syn writefile 100 1000 || die "csyn failed" + ./ceph-syn -c ./ceph.conf --syn writefile 100 1000 --syn writefile 100 1000 || die "csyn failed" } csyn_simple1() { diff --git a/src/verify-mds-journal.sh b/src/verify-mds-journal.sh index 67f11f1b4b463..22ebac0600f5f 100755 --- a/src/verify-mds-journal.sh +++ b/src/verify-mds-journal.sh @@ -2,7 +2,7 @@ while [ 1 ] do - ./cmds -f --debug_mds 20 --debug_ms 1 --standby_replay_for 0 || exit 1 + ./ceph-mds -f --debug_mds 20 --debug_ms 1 --standby_replay_for 0 || exit 1 echo replay ok, sleeping sleep 30 done \ No newline at end of file diff --git a/src/vstart.sh b/src/vstart.sh index b307471163d2d..329f740cbaf07 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -80,15 +80,15 @@ case $1 in --smallmds ) smallmds=1 ;; - mon | cmon ) + mon ) start_mon=1 start_all=0 ;; - mds | cmds ) + mds ) start_mds=1 start_all=0 ;; - osd | cosd ) + osd ) start_osd=1 start_all=0 ;; @@ -137,8 +137,8 @@ run() { echo "$*" $* else - echo "crun $* -f &" - ./crun $* -f & + echo "ceph-run $* -f &" + ./ceph-run $* -f & fi fi } @@ -302,8 +302,8 @@ EOF echo fi - [ "$cephx" -eq 1 ] && $SUDO $CEPH_BIN/cauthtool --create-keyring --gen-key --name=mon. $keyring_fn - [ "$cephx" -eq 1 ] && $SUDO $CEPH_BIN/cauthtool --gen-key --name=client.admin --set-uid=0 \ + [ "$cephx" -eq 1 ] && $SUDO $CEPH_BIN/ceph-authtool --create-keyring --gen-key --name=mon. $keyring_fn + [ "$cephx" -eq 1 ] && $SUDO $CEPH_BIN/ceph-authtool --gen-key --name=client.admin --set-uid=0 \ --cap mon 'allow *' \ --cap osd 'allow *' \ --cap mds allow \ @@ -330,7 +330,7 @@ EOF for f in $MONS do - cmd="$CEPH_BIN/cmon --mkfs -c $conf -i $f --monmap=$monmap_fn --osdmap=$osdmap_fn" + cmd="$CEPH_BIN/ceph-mon --mkfs -c $conf -i $f --monmap=$monmap_fn --osdmap=$osdmap_fn" [ "$cephx" -eq 1 ] && cmd="$cmd --keyring=$keyring_fn" echo $cmd $cmd @@ -343,7 +343,7 @@ EOF if [ "$start_mon" -ne 0 ]; then for f in $MONS do - run 'mon' $CEPH_BIN/cmon -i $f $ARGS $CMON_ARGS + run 'mon' $CEPH_BIN/ceph-mon -i $f $ARGS $CMON_ARGS done sleep 1 fi @@ -368,7 +368,7 @@ EOF EOF fi echo mkfs osd$osd - cmd="$SUDO $CEPH_BIN/cosd -i $osd $ARGS --mkfs --mkkey" + cmd="$SUDO $CEPH_BIN/ceph-osd -i $osd $ARGS --mkfs --mkkey" echo $cmd $cmd @@ -379,7 +379,7 @@ EOF fi fi echo start osd$osd - run 'osd' $SUDO $CEPH_BIN/cosd -i $osd $ARGS $COSD_ARGS + run 'osd' $SUDO $CEPH_BIN/ceph-osd -i $osd $ARGS $COSD_ARGS done fi @@ -417,26 +417,26 @@ EOF EOF fi fi - $SUDO $CEPH_BIN/cauthtool --create-keyring --gen-key --name=mds.$name $key_fn + $SUDO $CEPH_BIN/ceph-authtool --create-keyring --gen-key --name=mds.$name $key_fn $SUDO $CEPH_ADM -i $key_fn auth add mds.$name mon 'allow *' osd 'allow *' mds 'allow' if [ "$standby" -eq 1 ]; then - $SUDO $CEPH_BIN/cauthtool --create-keyring --gen-key --name=mds.${name}s \ + $SUDO $CEPH_BIN/ceph-authtool --create-keyring --gen-key --name=mds.${name}s \ dev/mds.${name}s.keyring $SUDO $CEPH_ADM -i dev/mds.${name}s.keyring auth add mds.${name}s \ mon 'allow *' osd 'allow *' mds 'allow' fi fi - run 'mds' $CEPH_BIN/cmds -i $name $ARGS $CMDS_ARGS + run 'mds' $CEPH_BIN/ceph-mds -i $name $ARGS $CMDS_ARGS if [ "$standby" -eq 1 ]; then - run 'mds' $CEPH_BIN/cmds -i ${name}s $ARGS $CMDS_ARGS + run 'mds' $CEPH_BIN/ceph-mds -i ${name}s $ARGS $CMDS_ARGS fi mds=$(($mds + 1)) [ $mds -eq $CEPH_NUM_MDS ] && break -#valgrind --tool=massif $CEPH_BIN/cmds $ARGS --mds_log_max_segments 2 --mds_thrash_fragments 0 --mds_thrash_exports 0 > m #--debug_ms 20 -#$CEPH_BIN/cmds -d $ARGS --mds_thrash_fragments 0 --mds_thrash_exports 0 #--debug_ms 20 +#valgrind --tool=massif $CEPH_BIN/ceph-mds $ARGS --mds_log_max_segments 2 --mds_thrash_fragments 0 --mds_thrash_exports 0 > m #--debug_ms 20 +#$CEPH_BIN/ceph-mds -d $ARGS --mds_thrash_fragments 0 --mds_thrash_exports 0 #--debug_ms 20 #$CEPH_ADM mds set_max_mds 2 done cmd="$CEPH_ADM mds set_max_mds $CEPH_NUM_MDS"