Skip to content

Commit 9f53c88

Browse files
authored
Merge pull request ceph#60460 from zdover23/wip-doc-2024-10-24-start-beginners-guide
doc/start: add vstart install guide Reviewed-by: Anthony D'Atri <[email protected]>
2 parents 5c93605 + a42be08 commit 9f53c88

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

doc/start/beginners-guide.rst

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Ceph is a clustered and distributed storage manager. If that's too cryptic,
88
then just think of Ceph as a computer program that stores data and uses a
99
network to make sure that there is a backup copy of the data.
1010

11+
Components of Ceph
12+
==================
13+
1114
Storage Interfaces
1215
------------------
1316

@@ -94,6 +97,89 @@ MDS
9497
A metadata server (MDS) is necessary for the proper functioning of CephFS.
9598
See :ref:`orchestrator-cli-cephfs` and :ref:`arch-cephfs`.
9699

100+
Vstart Cluster Installation and Configuration Procedure
101+
=======================================================
102+
103+
#. Clone the ``ceph/ceph`` repository:
104+
105+
.. prompt:: bash #
106+
107+
git clone [email protected]:ceph/ceph
108+
109+
#. Update the submodules in the ``ceph/ceph`` repository:
110+
111+
.. prompt:: bash #
112+
113+
git submodule update --init --recursive --progress
114+
115+
#. Run ``install-deps.sh`` from within the directory into which you cloned the
116+
``ceph/ceph`` repository:
117+
118+
.. prompt:: bash #
119+
120+
./install-deps.sh
121+
122+
#. Install the ``python3-routes`` package:
123+
124+
.. prompt:: bash #
125+
126+
apt install python3-routes
127+
128+
#. Move into the ``ceph`` directory. You will know that you are in the correct
129+
directory if it contains the file ``do_cmake.sh``:
130+
131+
.. prompt:: bash #
132+
133+
cd ceph
134+
135+
#. Run the ``do_cmake.sh`` script:
136+
137+
.. prompt:: bash #
138+
139+
./do_cmake.sh
140+
141+
#. The ``do_cmake.sh`` script creates a ``build/`` directory. Move into the
142+
``build/`` directory:
143+
144+
.. prompt:: bash #
145+
146+
cd build
147+
148+
#. Use ``ninja`` to build the development environment:
149+
150+
.. prompt:: bash #
151+
152+
ninja -j3
153+
154+
.. note:: This step takes a long time to run. The ``ninja -j3`` command
155+
kicks off a process consisting of 2289 steps. This step took over three
156+
hours when I ran it on an Intel NUC with an i7 in September of 2024.
157+
158+
#. Install the Ceph development environment:
159+
160+
.. prompt:: bash #
161+
162+
ninja install
163+
164+
This step does not take as long as the previous step.
165+
166+
#. Build the vstart cluster:
167+
168+
.. prompt:: bash #
169+
170+
ninja vstart
171+
172+
#. Start the vstart cluster:
173+
174+
.. prompt:: bash #
175+
176+
../src/vstart.sh --debug --new -x --localhost --bluestore
177+
178+
.. note:: Run this command from within the ``ceph/build`` directory.
179+
180+
181+
182+
97183
LINKS
98184
-----
99185

0 commit comments

Comments
 (0)