[PVE-User] ceph-fuse failing to mount on boot

Lindsay Mathieson lindsay.mathieson at gmail.com
Fri Dec 26 02:12:52 CET 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20141226/fc1ae643/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20141226/fc1ae643/attachment.sig>


More information about the pve-user mailing list