Re: ceph-fuse unable to run through "screen" ?

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

 



That's funny, I don't have any problem on reboot !

My problem is to mount for current session...

On 04/23/2015 11:02 AM, Steffen W Sørensen wrote:
>> On 23/04/2015, at 10.24, Florent B <florent@xxxxxxxxxxx> wrote:
>>
>> I come back with this problem because it persists even after upgrading
>> to Hammer.
>>
>> With CephFS, it does not work, and the only workaround I found does not
>> work 100% of time :
> I also found issues at reboots also, becaouse starting Ceph fuse daemon will possible create mount point directory, so I got this:
>
> in /etc/fstab I have:
>
> id=admin  /var/lib/ceph/backup  fuse.ceph defaults 0 0
>
> then I run below script from /etc/rc.local :
>
> #!/bin/sh
>
> # after boot Ceph FS doesn't get mounted, so run this to verify and optional mount
>
> mounted=`df -h /var/lib/ceph/backup/.| grep -c '^ceph-fuse'`
> if [ $mounted -eq 1 ]; then
>   echo CephFS is mounted
> else
>   echo CephFS is not mounted, clearing mountpoint
>   cd /var/lib/ceph
>   mv backup backup.old
>   mkdir backup
>   # assume it is in the fstab
>   mount /var/lib/ceph/backup
>   # a bit dangerous :/ so ONLY on mount success
>   [ $? -eq 0 ] && rm -rf backup.old
> fi
>
>
> It seems to work most of the times otherwise I run script once by hand :)
>
> /Steffen
>
>> shell: bash -c "mountpoint /var/www/sites/default/files || rm -Rf
>> /var/www/sites/default/files/{*,*.*,.*}; screen -d -m -S cephfs-drupal
>> mount /var/www/sites/default/files"
>>
>> Sometimes it mounts, sometimes not... that's really weird.
>>
>> My mount point is configured with daemonize=false, because if I set it
>> to true, it never works !
>>
>> I really does not understand what the problem is.
>>
>> What Ceph-fuse needs to mount correctly 100% of times ??
>>
>> Thank you.
>>
>> On 03/18/2015 10:42 AM, Florent B wrote:
>>> In fact, my problem is not related to Ansible.
>>>
>>> For example, make a bash script :
>>>
>>> #! /bin/bash
>>> mountpoint /mnt/cephfs || mount /mnt/cephfs
>>>
>>>
>>> And run it with "screen" : screen mount-me.sh
>>>
>>> Directory is not mounted !
>>>
>>> What is this ? :D
>>>
>>> If you run the script without screen, all works fine !
>>>
>>> Is there any kind of particular return system with ceph-fuse ?
>>> _______________________________________________
>>> ceph-users mailing list
>>> ceph-users@xxxxxxxxxxxxxx
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[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