Maybe there is an issue with Metadata coming back. Here is my setup - /mnt/filesystem1 is NFSv3 - Note files with different ownership and permissions:
[root@stuff filesystem1]# ll
total 33
-rwxrwxrwx. 1 root root 4 Aug 6 13:16 file777
-rw-r--r--. 2 root root 8 Aug 6 13:18 filedefault
-rw-r--r--. 1 opc opc 9 Aug 6 13:17 filenonroot
-rw-r--r--. 2 root root 8 Aug 6 13:18 hardlink
lrwxrwxrwx. 1 root root 11 Aug 6 13:22 softlink -> filenonroot
Copy out to OCI OSS via S3 and look at headers:
[root@stuff oss]# rclone sync -M --links /mnt/filesystem1 oci-oss:fss-filesystem1_backup/FSS-daily-Backup
[root@stuff oss]# oci os object head --bucket-name fss-filesystem1_backup --name FSS-daily-Backup/file777
{
"accept-ranges": "bytes",
"access-control-allow-credentials": "true",
"access-control-allow-methods": "POST,PUT,GET,HEAD,DELETE,OPTIONS",
"access-control-allow-origin": "*",
"access-control-expose-headers": "accept-ranges,access-control-allow-credentials,access-control-allow-methods,access-control-allow-origin,content-length,content-md5,content-type,date,etag,last-modified,opc-client-info,opc-client-request-id,opc-meta-atime,opc-meta-btime,opc-meta-gid,opc-meta-mode,opc-meta-mtime,opc-meta-uid,opc-request-id,storage-tier,version-id,x-api-id",
"content-length": "4",
"content-md5": "pOdWCa/m8efuptIaFOLypg==",
"content-type": "application/octet-stream",
"date": "Sat, 06 Aug 2022 13:23:09 GMT",
"etag": "be275502-63dd-4932-b21e-360f643ac96f",
"last-modified": "Sat, 06 Aug 2022 13:22:23 GMT",
"opc-client-request-id": "43738C11C87841E7AE5EC8BA896F3B1C",
"opc-meta-atime": "2022-08-06T13:16:54.240223953Z",
"opc-meta-btime": "1970-01-01T00:00:00Z",
"opc-meta-gid": "0",
"opc-meta-mode": "100777",
"opc-meta-mtime": "1659791814.240223953",
"opc-meta-uid": "0",
"opc-request-id": "iad-1:uf-ATPQ9Tdz9j_-ILq_kR76p2Udg3bB_D2NCy_LvIV8ahMei6nsQhAWvSPamOK8k",
"storage-tier": "Standard",
"version-id": "6faa6528-fa70-47e6-a127-b072cd56f2c2",
"x-api-id": "native"
}
[root@stuff oss]# oci os object head --bucket-name fss-filesystem1_backup --name FSS-daily-Backup/filenonroot
{
"accept-ranges": "bytes",
"access-control-allow-credentials": "true",
"access-control-allow-methods": "POST,PUT,GET,HEAD,DELETE,OPTIONS",
"access-control-allow-origin": "*",
"access-control-expose-headers": "accept-ranges,access-control-allow-credentials,access-control-allow-methods,access-control-allow-origin,content-length,content-md5,content-type,date,etag,last-modified,opc-client-info,opc-client-request-id,opc-meta-atime,opc-meta-btime,opc-meta-gid,opc-meta-mode,opc-meta-mtime,opc-meta-uid,opc-request-id,storage-tier,version-id,x-api-id",
"content-length": "9",
"content-md5": "armNUk1yjiDZYocgzLbPLw==",
"content-type": "application/octet-stream",
"date": "Sat, 06 Aug 2022 13:23:36 GMT",
"etag": "90441f0a-6a1e-4700-abe0-7b994efec762",
"last-modified": "Sat, 06 Aug 2022 13:22:23 GMT",
"opc-client-request-id": "56DE5084FC584DF895BE35A354203415",
"opc-meta-atime": "2022-08-06T13:18:41.864397836Z",
"opc-meta-btime": "1970-01-01T00:00:00Z",
"opc-meta-gid": "1000",
"opc-meta-mode": "100644",
"opc-meta-mtime": "1659791846.073213546",
"opc-meta-uid": "1000",
"opc-request-id": "iad-1:keYSRC1wBNVW-ULOpWWcQGRtqICNMK-_EdcyV0-6EcZZOz51X72aaIGO9KEZ76yV",
"storage-tier": "Standard",
"version-id": "bccc4bcc-e5f7-4af6-bd8a-107781d7374a",
"x-api-id": "native"
}
Remove the files and sync back:
[root@stuff oss]# rm -rf /mnt/filesystem1/*
[root@stuff oss]# rclone sync -M -v --links oci-oss:fss-filesystem1_backup/FSS-daily-Backup /mnt/filesystem1
2022/08/06 13:24:21 ERROR : filenonroot: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/filenonroot user.content-type: operation not supported
2022/08/06 13:24:21 ERROR : hardlink: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/hardlink user.content-type: operation not supported
2022/08/06 13:24:21 ERROR : softlink.rclonelink: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/softlink user.content-type: operation not permitted
2022/08/06 13:24:21 ERROR : file777: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/file777 user.content-type: operation not supported
2022/08/06 13:24:21 ERROR : filedefault: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/filedefault user.content-type: operation not supported
2022/08/06 13:24:21 ERROR : Local file system at /mnt/filesystem1: not deleting files as there were IO errors
2022/08/06 13:24:21 ERROR : Local file system at /mnt/filesystem1: not deleting directories as there were IO errors
2022/08/06 13:24:21 ERROR : Attempt 1/3 failed with 5 errors and: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/filedefault user.content-type: operation not supported
2022/08/06 13:24:21 INFO : .snapshot: Removing directory
2022/08/06 13:24:21 INFO : There was nothing to transfer
2022/08/06 13:24:21 ERROR : Attempt 2/3 succeeded
2022/08/06 13:24:21 INFO :
Transferred: 40 B / 40 B, 100%, 0 B/s, ETA -
Checks: 7 / 7, 100%
Deleted: 0 (files), 1 (dirs)
Elapsed time: 0.6s
Files are there ok, but no permissions, ownership that was in the metadata. Perhaps the xattrs isn't working for NFSv3?
[root@stuff oss]# ls -al /mnt/filesystem1
total 225
drwxr-xr-x. 2 root root 6 Aug 6 13:24 .
drwxr-xr-x. 5 root root 63 Aug 3 15:55 ..
-rw-r--r--. 1 root root 4 Aug 6 13:16 file777
-rw-r--r--. 1 root root 8 Aug 6 13:18 filedefault
-rw-r--r--. 1 root root 9 Aug 6 13:17 filenonroot
-rw-r--r--. 1 root root 177822 Aug 5 16:10 .FSS-daily-Backup-permissions.facl
-rw-r--r--. 1 root root 8 Aug 6 13:18 hardlink
drwxr-xr-x. 2 root root 0 Aug 6 13:24 .snapshot
lrwxrwxrwx. 1 root root 11 Aug 6 13:22 softlink -> filenonroot
Debug with -vvv
2022/08/06 13:25:00 DEBUG : fs cache: renaming cache item "/mnt/filesystem1" to be canonical "local{b6816}:/mnt/filesystem1"
2022/08/06 13:25:00 DEBUG : Local file system at /mnt/filesystem1: Waiting for checks to finish
2022/08/06 13:25:00 DEBUG : preAllocate: got error on fallocate, trying combination 1/2: operation not supported
2022/08/06 13:25:00 DEBUG : preAllocate: got error on fallocate, trying combination 2/2: operation not supported
2022/08/06 13:25:00 ERROR : file777: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/file777 user.content-type: operation not supported
2022/08/06 13:25:00 ERROR : softlink.rclonelink: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/softlink user.content-type: operation not permitted
2022/08/06 13:25:01 ERROR : filenonroot: Failed to copy: failed to set metadata: failed to set xattr key "user.content-type": xattr.LSet /mnt/filesystem1/filenonroot user.content-type: operation not supported