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 | 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 ' | ||
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" - | |||
# Double-check! | |||
cat /etc/ceph/ceph.conf | cat /etc/ceph/ceph.conf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
We can now see that Ceph is ready for us to make a volume! | |||
<pre> | <pre> | ||
Line 133: | Line 131: | ||
</pre> | </pre> | ||
Go ahead and make one. | |||
<pre> | <pre> | ||
mesh@mesh- | 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 | |||
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> | ||
OOPS! This command hangs endlessly, as does <code>sudo ceph -s</code>. | |||
</ | |||
Your help is needed to make more progress here! | |||
---- | ---- |