Project

General

Profile

Actions

Bug #5287

closed

the permission of file in CephFS

Added by chen atrmat almost 11 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi all,
I used the CephFS v0.56.3 to store VMs. There're 8 nodes of my cluster, and I mount the cephFS in every node.
If I want to do live migration in my cluster, then I have to change the mode of VMs to enable another nodes to rw the VM files.
Is the CephFS can give the specified nodes the permission to write the files?

e.g. node 1 generated a VM, then the VM was migrated to node 2, the own of VM should be changed to node 2 in mount point.

The permission of data in CephFS is in MDS, right? If so, how to operate MDS to let annother nodes can write other's file?

Any better solutions about the file permission instead of chmod file?

Is there some method like NFS to mapping user-id during live migration?

BR

Actions #1

Updated by Zheng Yan almost 11 years ago

  • Status changed from New to 4

The short answer is no better solution so far. If a given node can mount the FS, it can access to the data pool directly. So checking permission in MDS does not work.

Actions #2

Updated by chen atrmat almost 11 years ago

Zheng Yan wrote:

The short answer is no better solution so far. If a given node can mount the FS, it can access to the data pool directly. So checking permission in MDS does not work.

The node1 and 2 can access to the default pool data both. But in the mount point, one file's owner is node1, so node2 can't access to write the file, how to change the file's owner in CephFS?

Actions #3

Updated by Zheng Yan almost 11 years ago

so far the only solution is chmod

Actions #4

Updated by Ian Colle almost 11 years ago

  • Status changed from 4 to Resolved
Actions #5

Updated by John Spray over 7 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (11)

Bulk updating project=ceph category=ceph-fuse issues to move to fs project so that we can remove the ceph-fuse category from the ceph project

Actions

Also available in: Atom PDF