Ceph: Difference between revisions

imported>C4lliope
More digging....
imported>C4lliope
Nearly able to make a volume.
Line 91: Line 91:
Clearly, Ceph is concerned that the `/etc/ceph/ceph.conf` file is missing. So am I! I'd assumed the Nixpkgs module should make that, based on all the <code>extraConfig</code> options supplied.
Clearly, Ceph is concerned that the `/etc/ceph/ceph.conf` file is missing. So am I! I'd assumed the Nixpkgs module should make that, based on all the <code>extraConfig</code> options supplied.


So I ran in sequence:
So make the necessary config; this should be minimally enough to load Ceph, and we can come back and nixify this soon:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo su
sudo su -c "echo '
export FSID="4b687c5c-5a20-4a77-8774-487989fd0bc7"
echo "
[global]
[global]
fsid=$FSID
fsid=$FSID
Line 102: Line 100:
mon host = 10.0.0.11
mon host = 10.0.0.11
cluster network = 10.0.0.0/24
cluster network = 10.0.0.0/24
" > /etc/ceph/ceph.conf
' > /etc/ceph/ceph.conf" -
exit
 
# Double-check!
cat /etc/ceph/ceph.conf
cat /etc/ceph/ceph.conf
</syntaxhighlight>
</syntaxhighlight>


This should be minimally enough to load Ceph, and we can come back and nixify this soon.
We can now see that Ceph is ready for us to make a volume!
The problem remains...


<pre>
<pre>
Line 133: Line 131:
</pre>
</pre>


Here is a summary of records produced inside <code>/var/lib/ceph</code>:
Go ahead and make one.


<pre>
<pre>
mesh@mesh-c:~/.build/ > nix-shell -p tree
mesh@mesh-a:~/.build/ > sudo ceph-volume lvm create --data /dev/nvme0n1p4 --no-systemd
 
Running command: /nix/store/x645fiz9vzkkwyf08agprl9h25fkqw7g-ceph-18.2.0/bin/ceph-authtool --gen-print-key
[nix-shell:~/.build]$ sudo -u ceph tree /var/lib/ceph
Running command: /nix/store/x645fiz9vzkkwyf08agprl9h25fkqw7g-ceph-18.2.0/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new a0d4c3db-cc9c-416a-b209-72b9bad3be40
/var/lib/ceph
</pre>
├── bootstrap-osd
│   └── ceph.keyring
└── mon
    ├── ceph-mesh-c
    └── ceph-mon-mesh-c
        ├── keyring
        ├── kv_backend
        └── store.db
            ├── 000004.log
            ├── CURRENT
            ├── IDENTITY
            ├── LOCK
            ├── MANIFEST-000005
            └── OPTIONS-000007


6 directories, 9 files
OOPS! This command hangs endlessly, as does <code>sudo ceph -s</code>.
</pre>


Your help is needed to make more progress here!


----
----