Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.4.0, Lustre 2.4.1
-
None
-
Lustre 2.4.1 RHEL6 2.6.32-358.18.1.el6_lustre.x86_64
-
4
-
11777
Description
"lfs_migrate -y" aborts with this error
cannot swap layouts between <filename> and a volatile file (Operation not permitted)
This seems to happen for all files. The lfs_migrate operation aborts on the first file.
I wonder if the -EPERM error seen on non-IGIF files is due to some file ownership problem like
LU-3826or similar?if ((attr1->la_uid != attr2->la_uid) || (attr1->la_gid != attr2->la_gid)) RETURN(-EPERM);
This will fail if lfs_migrate is not creating the file with the same ownership as the original file? If lfs_migrate is running as root, then it should be able to fchown() the file after it is created. The actual permissions don't matter, because the temporary file will be deleted, but this is proof that the caller of the migrate has permission to do this swap.