Re: mount error 22 = Invalid argumen

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

 



Thanks Caleb, this helped.

I just wondering why it is not look at /etc/ceph/ceph.keyring like ceph-fuse do?

Igor Laskovy
facebook.com/igor.laskovy
Kiev, Ukraine

On Feb 21, 2013 5:31 PM, "Caleb Miles" <caleb.miles@xxxxxxxxxxx> wrote:
I believe you need to specify your authentication like so

mount -t ceph 192.168.2.31:/  /mnt/mycephfs -o
name=admin,secret=`ceph-authtool -p {path-to-keyring}`

or perhaps

mount -t ceph 192.168.2.31:6789:/  /mnt/mycephfs -o
name=admin,secret=`ceph-authtool -p {path-to-keyring}`

if your monitors are running on some non-standard port. If you're
running the kernel driver via UML then the keyring you want to use
will probably be located at /host/etc/ceph/ceph.keyring.

caleb

On Thu, Feb 21, 2013 at 8:42 AM, Igor Laskovy <igor.laskovy@xxxxxxxxx> wrote:
> Hello!
>
> I have just started learn Ceph.
> When I do mount via kernel driver I have this error:
>
> root@client:~# mount -t ceph 192.168.2.31:6789:/ /mnt/mycephfs
> mount error 22 = Invalid argument
>
> In dmesg:
>
> [  246.199844] libceph: loaded (mon/osd proto 15/24, osdmap 5/6 5/6)
> [  246.231249] ceph: loaded (mds proto 32)
> [  246.235099] libceph: client0 fsid f4c42b56-3049-437f-b5e9-ecf027577f68
> [  246.235139] libceph: no secret set (for auth_x protocol)
> [  246.235354] libceph: error -22 on auth protocol 2 init
> [ 3511.780273] libceph: client0 fsid f4c42b56-3049-437f-b5e9-ecf027577f68
> [ 3511.780336] libceph: no secret set (for auth_x protocol)
> [ 3511.780491] libceph: error -22 on auth protocol 2 init
>
> OS Ubuntu 12.04:
> Linux client 3.2.0-38-generic #60-Ubuntu SMP Wed Feb 13 13:22:43 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>
> And at the same time 'ceph-fuse -m 192.168.2.31:6789 /mnt/mycephfs' works
> well!
>
> --
> Igor Laskovy
> facebook.com/igor.laskovy
> Kiev, Ukraine
>
> _______________________________________________
> 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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux