Re: How to mount cephfs from fstab

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

 



I mount mine with an init-script.

Michael Kuriger 
mk7193@xxxxxx
818-649-7235

MikeKuriger (IM)




On 11/24/14, 9:08 AM, "Erik Logtenberg" <erik@xxxxxxxxxxxxx> wrote:

>Hi,
>
>I would like to mount a cephfs share from fstab, but it doesn't
>completely work.
>
>First of all, I followed the documentation [1], which resulted in the
>following line in fstab:
>
>ceph-01:6789:/ /mnt/cephfs/ ceph
>name=testhost,secretfile=/root/testhost.key,noacl 0 2
>
>Yes, this works when I manually try "mount /mnt/cephfs", but it does
>give me the following error/warning:
>
>mount: error writing /etc/mtab: Invalid argument
>
>Now, even though this error doesn't influence the mounting itself, it
>does prohibit my machine from booting right. Apparently Fedora/systemd
>doesn't like this error when going through fstab, so booting is not
>possible.
>
>The mtab issue can easily be worked around, by calling mount manually
>and using the -n (--no-mtab) argument, like this:
>
>mount -t ceph -n ceph-01:6789:/ /mnt/cephfs/ -o
>name=testhost,secretfile=/root/testhost.key,noacl
>
>However, I can't find a way to put that -n option in /etc/fstab itself
>(since it's not a "-o option". Currently, I have the "noauto" setting in
>fstab, so it doesn't get mounted on boot at all. Then I have to manually
>log in and say "mount /mnt/cephfs" to explicitly mount the share. Far
>from ideal.
>
>So, how do my fellow cephfs-users do this?
>
>Thanks,
>
>Erik.
>
>[1] 
>https://urldefense.proofpoint.com/v2/url?u=http-3A__ceph.com_docs_giant_ce
>phfs_fstab_&d=AAICAg&c=lXkdEK1PC7UK9oKA-BBSI8p1AamzLOSncm6Vfn0C_UQ&r=CSYA9
>OS6Qd7fQySI2LDvlQ&m=fb1bHNdsLXcNI47iTaeTo8ilihg9v4zBgYrJxu_qRz4&s=degRv1ci
>xJhYSlA6i3W6kI_cCNdhTnxH5TzwG5cJDC4&e=
>_______________________________________________
>ceph-users mailing list
>ceph-users@xxxxxxxxxxxxxx
>https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.ceph.com_listinf
>o.cgi_ceph-2Dusers-2Dceph.com&d=AAICAg&c=lXkdEK1PC7UK9oKA-BBSI8p1AamzLOSnc
>m6Vfn0C_UQ&r=CSYA9OS6Qd7fQySI2LDvlQ&m=fb1bHNdsLXcNI47iTaeTo8ilihg9v4zBgYrJ
>xu_qRz4&s=n-cv3qZjR4DxRjGiat-mt1PXDZ_431vYDG4X4AA7XZ8&e= 

_______________________________________________
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