Skip to content

Commit 9e10782

Browse files
authored
Merge pull request #244 from shiftstack/fix-ceph-osd
Fix Ceph OSD not starting after reboot with loop device
2 parents c069781 + 152608e commit 9e10782

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎playbooks/prepare_host.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,11 @@
249249
[Unit]
250250
Description=Ceph OSD losetup
251251
After=syslog.target
252+
Before=ceph.target
252253
[Service]
253254
Type=oneshot
254255
ExecStart=/bin/bash -c '/sbin/losetup /dev/loop1 || /sbin/losetup --direct-io=on /dev/loop1 /var/lib/ceph-osd.img'
256+
ExecStartPost=/sbin/vgchange -ay vg_ceph
255257
ExecStop=/sbin/losetup -d /dev/loop1
256258
RemainAfterExit=yes
257259
[Install]

0 commit comments

Comments
 (0)