[SOLVED] cephfs storage subdir not working

CodeBreaker

Active Member
Aug 6, 2019
17
3
43
32
I want to add cephfs storage to proxmox in /proxmox sub-directory. According to the docs, adding subdir to config would mount cephfs subdirectory. The configuration bellow does not alter mount point and still points to the root of the cephfs path. Any ideas as to what seems to be the problem?

Code:
PVE: 7.0-10
CEPH: 16.2.4

Code:
cephfs: cephfs
    path /mnt/pve/cephfs
    content iso,backup,snippets,vztmpl
    nodes pve03,pve02,pve01
    subdir /proxmox
 
@dcsapak I did not. I've disabled then enabled cephfs storage on datacenter->storage page. I assumed that when doing that the storage gets unmounted. My mistake. Thank you!
 
Last edited:
that is not enough. disabling the storage does not unmount it. either reboot the server, or unmount it manually (be careful that nothing is using it), then it gets remounted with the correct parameters.
 
  • Like
Reactions: CodeBreaker
I've disabled storage, manually unmount storage on all the nodes, then enabled the cephfs storage back and then it worked.