[Cephadm] Bootstrap Ceph with alternative data directory

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

 



We’d like to bootstrap and deploy Ceph into alternative directory. By keeping Ceph relevant data to a separate directory mounted from a separate disk, Ceph services will start right after operating system reprovision.

While deploying with –data-dir and other directory parameters,

cephadm --data-dir /pd/var/lib/ceph --unit-dir /pd/etc/systemd/system --log-dir /pd/var/log/ceph --logrotate-dir /pd/etc/logrotate.d bootstrap --mon-ip xx.xx.xx.xx

The bootstrap failed at mon creation.

Ceph version: ceph version 18.2.4 (e7ad5345525c7aa95470c26863873b581076945d) reef (stable)
Extracting ceph user uid/gid from container image...
Creating initial keys...
Creating initial monmap...
Creating mon...
Non-zero exit code 1 from systemctl disable ceph.target
systemctl: stderr Failed to disable unit: Unit file ceph.target does not exist.
RuntimeError: Failed command: systemctl disable ceph.target: Failed to disable unit: Unit file ceph.target does not exist.

Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 10889, in <module>
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 10877, in main
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 6318, in _rollback
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 2626, in _default_image
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 6463, in command_bootstrap
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 5848, in create_mon
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 3964, in deploy_daemon
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 4191, in deploy_daemon_units
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 4459, in install_base_units
  File "/tmp/tmpp5btnpe6.cephadm.build/__main__.py", line 2266, in call_throws
RuntimeError: Failed command: systemctl disable ceph.target: Failed to disable unit: Unit file ceph.target does not exist.

Ceph.target does exist in the directory specified by –unit-dir

$ pwd
/pd/etc/systemd/system
$ ls -al
total 4
drwxr-x---. 2 root root 25 Dec  2 04:12 .
drwxr-x---. 3 root root 20 Nov 29 06:39 ..
-rw-r-----. 1 root root 88 Dec  2 04:12 ceph.target

Is this a supported approach and is it a bug?

regards
James Biao




************** IMPORTANT MESSAGE **************
This e-mail message is intended only for the addressee(s) and contains information which may be confidential.
If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124 AFSL and Australian credit licence 234945) or its subsidiaries.
We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Opt Out in the subject line.
**************************************************
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




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


  Powered by Linux