On Fri, 26 Dec 2014 09:11:09 AM Lindsay Mathieson wrote: > I think I've deciphered whats causing this - ceph.conf & the various keys > resides on /etc/pve, which is a fuse mount itself and is not available when > cephfs is being mounted. > > Not sure what to do next though.
I created the following init.d script that is dependant on pve-cluster and
ceph, which has resolved the issue, but I'd be happy for suggestions for a
simpler/better way:
#! /bin/sh
# /etc/init.d/softlog-cephfs
#
### BEGIN INIT INFO
# Provides: softlog-ceph
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Required-Start: $remote_fs $named $network $time pve-cluster ceph
# Required-Stop: $remote_fs $named $network $time pve-cluster ceph
# Short-Description: Start Ceph distributed file system daemons at boot time
# Description: Enable Ceph distributed file system services.
### END INIT INFO
# Some things that run always
# touch /var/lock/blah
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting softlog ceph mounts"
if mountpoint -q /mnt/cephfs; then
echo cephfs is mounted
else
echo Mounting CephFS
mount /mnt/cephfs
fi
;;
stop)
echo "Stopping softlog ceph mounts"
if mountpoint -q /mnt/cephfs; then
echo Unmounting cephfs
fusermount -u /mnt/cephfs
else
echo CephFS already unmounted
fi
;;
*)
echo "Usage: /etc/init.d/blah {start|stop}"
exit 1
;;
esac
exit 0
--
Lindsay
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ pve-user mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
