Sorry I couldn’t answer back sooner, I made it with /etc/systemd/system/rbd-{ceph_pool}-{ceph_image}.service,
I had some mistakes in the name of the config file:
[Unit] Description=RADOS block device mapping for "{ceph_pool}"/"{ceph_image}" Conflicts=shutdown.target Wants=network-online.target After=NetworkManager-wait-online.service [Service] Type=oneshot ExecStart=/sbin/modprobe rbd ExecStart=/bin/sh -c "/bin/echo {ceph_mon_ip} name={ceph_admin},secret={ceph_key} {ceph_pool} {ceph_image} >/sys/bus/rbd/add" TimeoutSec=0 RemainAfterExit=yes [Install] WantedBy=multi-user.target Yes I did use systemctl and normal mount points in ftstab now is working =)
Thank you so mucho for all your help, Id like to take this message to ask you the last thing that is concerned to me, I did a failure test shutting down 1 server, but while the server is down I cannot write in the filesystem, is that a normal
behaviour? I checked the crush algorithm policy and it has “host” taken for the replica that means that each replica is going to be in different hosts…
Thank you everyone!
Think before you print.
|
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com