Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "cp: preserving permissions > Operation not permitted" #49

Open
derpuma opened this issue Nov 12, 2024 · 4 comments
Open

Error "cp: preserving permissions > Operation not permitted" #49

derpuma opened this issue Nov 12, 2024 · 4 comments

Comments

@derpuma
Copy link

derpuma commented Nov 12, 2024

Script stops after creating the first *.blanace file. Any help what to do?
I am logged in as root user of my truenas 24.10.

root@truenas[/home/rebalance]# /home/rebalance/./zfs-inplace-rebalancing.sh --checksum true --passes 1 /mnt/pool1/Multimedia/

Start rebalancing Tue Nov 12 07:26:17 CET 2024:
  Path: /mnt/pool1/Multimedia/
  Rebalancing Passes: 1
  Use Checksum: true
  Skip Hardlinks: false
  File count: 2486
Progress -- Files: 1/2486 (0.04%)
Copying '/mnt/pool1/Multimedia/Cyberduck-9.0.2.42108.zip' to '/mnt/pool1/Multimedia/Cyberduck-9.0.2.42108.zip.balance'...
cp: preserving permissions for ‘/mnt/pool1/Multimedia/Cyberduck-9.0.2.42108.zip.balance’: Operation not permitted
@markusressel
Copy link
Owner

markusressel commented Nov 12, 2024

Did you ensure your user has the required permissions?
See: https://github.com/markusressel/zfs-inplace-rebalancing?tab=readme-ov-file#example

GitHub
Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool. - markusressel/zfs-inplace-rebalancing

@qwerk
Copy link

qwerk commented Nov 17, 2024

I have exact the same issue, also running truenas 24.10
running the script as root.
I looks like it did preserve permissions, but it stops with the error: operation not permitted.
.balance file as same rights and size as original

Solved In truenas you can change under dataset details:
image

it needs to be set to passthrough

@derpuma
Copy link
Author

derpuma commented Nov 20, 2024

Hi @markusressel , thanks for the reply.
I am using the script as root, so the script should have all permissions to write to the nas.
I have no problem to cp or touch files in the same directory with the root user at all.
No ideas so far but I will try the "passthrough" tip from @qwerk qwerk and report back!

Did you ensure your user has the required permissions? See: https://github.com/markusressel/zfs-inplace-rebalancing?tab=readme-ov-file#example

GitHub**GitHub - markusressel/zfs-inplace-rebalancing: Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool.**Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool. - markusressel/zfs-inplace-rebalancing

GitHub
Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool. - markusressel/zfs-inplace-rebalancing

@derpuma
Copy link
Author

derpuma commented Nov 20, 2024

Thanks a lot, ACL with passthrough did work!

I have exact the same issue, also running truenas 24.10 running the script as root. I looks like it did preserve permissions, but it stops with the error: operation not permitted. .balance file as same rights and size as original

Solved In truenas you can change under dataset details: image

it needs to be set to passthrough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants