Support #38264
closedUnable to mount Ceph FS (source mount path was not specified failed to resolve source)
0%
Description
I am unable to mount a Ceph FS on a Ubuntu 16.04.5 LTS ( 4.4.0-141-generic #167-Ubuntu SMP).
The details of Ceph FS cluster
------------------------------
root@sanverm22-master:~# ceph -s
cluster:
id: 32ae0983-9797-40ec-bf5e-2c03d15c7e50
health: HEALTH_WARN
crush map has straw_calc_version=0
no active mgr
too few PGs per OSD (24 < min 30)
services:
mon: 3 daemons, quorum sanverm22-worker-1,sanverm22-worker-2,sanverm22-worker-3
mgr: no daemons active
mds: cephfs-1/1/1 up {0=sanverm22-worker-1.fyre.ibm.com=up:active}
osd: 3 osds: 3 up, 3 in
data:
pools: 3 pools, 24 pgs
objects: 66 objects, 107MiB
usage: 3.31GiB used, 146GiB / 150GiB avail
pgs: 24 active+clean
root@sanverm22-master:~# ceph --version
ceph version 12.2.10 (177915764b752804194937482a39e95e0ca3de94) luminous (stable)
root@sanverm22-master:~# sudo ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
root@sanverm22-master:~#
root@sanverm22-master:~# ceph mds stat
cephfs-1/1/1 up {0=sanverm22-worker-1.fyre.ibm.com=up:active}
root@sanverm22-master:~# ceph auth get-key client.admin | base64
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
root@sanverm22-master:~#
The Ubuntu machine where I am trying to mount the volume.
root@sanjay33-ubt-worker-1:~# cat client.admin
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
root@sanjay33-ubt-worker-1:~# mount -t ceph 10.41.11.177:6789/ /mnt/ceph -o name=admin,secretfile=/root/client.admin --verbose
source mount path was not specified
failed to resolve source
root@sanjay33-ubt-worker-1:~#
NOTE: The client machine is not part of Ceph cluster, it is a separate ubuntu box.
Please let me know what is missing. I feel it is a simple case.
Updated by Sanjay Verma about 5 years ago
Sanjay Verma wrote:
I am unable to mount a Ceph FS on a Ubuntu 16.04.5 LTS ( 4.4.0-141-generic #167-Ubuntu SMP).
ERROR:
root@sanjay33-ubt-worker-1:~# mount -t ceph 10.41.11.177:6789/ /mnt/ceph -o name=admin,secretfile=/root/client.admin --verbose
source mount path was not specified
failed to resolve source__
root@sanjay33-ubt-worker-1:~#
The details of Ceph FS cluster
------------------------------
root@sanverm22-master:~# ceph -s
cluster:
id: 32ae0983-9797-40ec-bf5e-2c03d15c7e50
health: HEALTH_WARN
crush map has straw_calc_version=0
no active mgr
too few PGs per OSD (24 < min 30)services:
mon: 3 daemons, quorum sanverm22-worker-1,sanverm22-worker-2,sanverm22-worker-3
mgr: no daemons active
mds: cephfs-1/1/1 up {0=sanverm22-worker-1.fyre.ibm.com=up:active}
osd: 3 osds: 3 up, 3 indata:
pools: 3 pools, 24 pgs
objects: 66 objects, 107MiB
usage: 3.31GiB used, 146GiB / 150GiB avail
pgs: 24 active+cleanroot@sanverm22-master:~# ceph --version
ceph version 12.2.10 (177915764b752804194937482a39e95e0ca3de94) luminous (stable)root@sanverm22-master:~# sudo ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
root@sanverm22-master:~#root@sanverm22-master:~# ceph mds stat
cephfs-1/1/1 up {0=sanverm22-worker-1.fyre.ibm.com=up:active}root@sanverm22-master:~# ceph auth get-key client.admin | base64
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
root@sanverm22-master:~#The Ubuntu machine where I am trying to mount the volume.
root@sanjay33-ubt-worker-1:~# cat client.admin
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
root@sanjay33-ubt-worker-1:~# mount -t ceph 10.41.11.177:6789/ /mnt/ceph -o name=admin,secretfile=/root/client.admin --verbose
source mount path was not specified
failed to resolve source
root@sanjay33-ubt-worker-1:~#NOTE: The client machine is not part of Ceph cluster, it is a separate ubuntu box.
Please let me know what is missing. I feel it is a simple case.
Updated by Zheng Yan about 5 years ago
- Status changed from New to Closed
need a ":" between monitor port and path. something like
mount -t ceph 10.41.11.177:6789:/ /mnt/ceph -o name=admin,secretfile=/root/client.admin --verbose
Updated by Sanjay Verma about 5 years ago
Zheng Yan wrote:
need a ":" between monitor port and path. something like
mount -t ceph 10.41.11.177:6789:/ /mnt/ceph -o name=admin,secretfile=/root/client.admin --verbose
I did try that too.
root@sanjay33-ubt-worker-1:~# mount.ceph 10.41.11.177:6789:/ /mnt/ceph -o name=admin,secretfile=/root/client.admin
adding ceph secret key to kernel failed: Invalid argument.
failed to parse ceph_options
root@sanjay33-ubt-worker-1:~#
whereas my client.admin file is:
root@sanjay33-ubt-worker-1:~# cat client.admin
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
On Ceph FS sever:
root@sanverm22-master:~# ceph auth get-key client.admin | base64
QVFET2UwVmNDbGU2RVJBQTZMODJCZW9zTE5KN0ZKd3FxNVcxK0E9PQ==
Updated by Nathan Cutler about 5 years ago
- Tracker changed from Bug to Support
Did you try asking on the ceph-users mailing list?
Updated by Sanjay Verma about 5 years ago
Nathan Cutler wrote:
Did you try asking on the ceph-users mailing list?
No. I will ask now. But please keep this open until I find the solution. thanks.
Updated by Zheng Yan about 5 years ago
don't process 'ceph auth get-key' through base64
ceph auth get-key client.admin > /root/client.admin
Updated by Sanjay Verma about 5 years ago
Zheng Yan wrote:
don't process 'ceph auth get-key' through base64
ceph auth get-key client.admin > /root/client.admin
Thanks, it worked. I was coming from Kubernetes environment and assumed base64.
root@sanjay33-ubt-worker-1:~# mount.ceph 10.41.11.177:6789:/ /mnt/ceph -o name=admin,secretfile=/root/client.admin
root@sanjay33-ubt-worker-1:~# cd /mnt/ceph/
root@sanjay33-ubt-worker-1:/mnt/ceph# ls
SUCCESS test