[SOLVED] problem with mounting cephfs from Ubuntu 22.04 vm via a kernel driver

sidereus

Member
Jul 25, 2019
45
7
13
53
When I'm trying to mount cephfs from the proxmox cluster 6.4 with ceph 15.2.15 to the vm client Ubuntu 22.04 I'm getting an error:

Code:
$ sudo cat /etc/ceph/ceph.conf

[global]

     auth_client_required = cephx

     auth_cluster_required = cephx

     auth_service_required = cephx

     cluster_network = 192.168.121.0/24

     fsid = 8fc87072-5946-466f-a10a-6fa9bd6fa925

     mon_allow_pool_delete = true

     mon_host = 192.168.121.1 192.168.121.2 192.168.121.3

     osd_pool_default_min_size = 2

     osd_pool_default_size = 3

     public_network = 192.168.121.0/24


[client]

     keyring = /etc/ceph/ceph.client.admin.keyring

    

$ sudo ceph fs ls

name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]


$ sudo ceph fsid

8fc87072-5946-466f-a10a-6fa9bd6fa925


$ sudo mount.ceph client.admin@8fc87072-5946-466f-a10a-6fa9bd6fa925.cephfs=/ /mnt

mount error: no mds server is up or the cluster is laggy


But with ceph-fuse all is fine:

Code:
$ sudo ceph-fuse -n client.admin /mnt
2022-11-03T20:03:30.408+0300 7f16644e5200 -1 init, newargv = 0x556f15178a80 newargc=13
2022-11-03T20:03:30.408+0300 7f16644e5200 -1 init, args.argv = 0x556f15178bd0 args.argc=4
ceph-fuse[4405]: starting ceph client
ceph-fuse[4405]: starting fuse

$ df -h /mnt
Filesystem      Size  Used Avail Use% Mounted on
ceph-fuse        15T   23G   15T   1% /mnt

What's wrong?
 
Resolved.
Problem was with the user name in the mount command:
$ sudo mount.ceph admin@8fc87072-5946-466f-a10a-6fa9bd6fa925.cephfs=/ /mnt $ df -h /mnt Filesystem Size Used Avail Use% Mounted on 192.168.121.1:6789,192.168.121.2:6789,192.168.121.3:6789:/ 15T 23G 15T 1% /mnt
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!