So years ago when I built my NAS, it was recommend to me on these forums to use a rsync command in Scheduled Tasks to mirror my storage drives instead of using RAID.
This has been a prefect solution for me all these years. I actually added another couple of drives and followed the same steps for those drives as well.
Everything has been working fine for the past few days. I have moved media from the main drive to the new drives so I can better organize data and have ran the Scheduled Tasks without issues, until now.
I do think everything is still being mirrored over and backed up but I'm not sure if its correct.
These are the Scheduled Tasks commands I run as root user in the Scheduled Tasks control panel page.
rsync -av --delete /srv/dev-disk-by-uuid-8f7fbbcc-4bbd-4e30-810c-7002cf34afc7/ /srv/dev-disk-by-uuid-462f1369-3bff-4cb4-b196-7ac1d91535a2/
rsync -av --delete /srv/dev-disk-by-uuid-58438db9-6dab-4c30-b2c9-599c486ad1cd/ /srv/dev-disk-by-uuid-49a40545-0564-4501-8f15-0ba07be782ff/
This is the error I am getting after running either of the tasks.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-fe0696fb-bbf0-4904-b280-0d2401820e25 2>&1' with exit code '23': sending incremental file list
aquota.group
aquota.user
rsync: [receiver] rename "/srv/dev-disk-by-uuid-462f1369-3bff-4cb4-b196-7ac1d91535a2/.aquota.group.FNKyP8" -> "aquota.group": Operation not permitted (1)
rsync: [receiver] rename "/srv/dev-disk-by-uuid-462f1369-3bff-4cb4-b196-7ac1d91535a2/.aquota.user.dpUTua" -> "aquota.user": Operation not permitted (1)
Storage/
Storage/Testing OMV rsync Issue/
Storage/Testing OMV rsync Issue/rsync issue.txt
sent 23,217,294 bytes received 65,674 bytes 500,708.99 bytes/sec
total size is 13,638,840,921,675 speedup is 585,786.18
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-fe0696fb-bbf0-4904-b280-0d2401820e25 2>&1' with exit code '23': sending incremental file list
aquota.group
aquota.user
rsync: [receiver] rename "/srv/dev-disk-by-uuid-462f1369-3bff-4cb4-b196-7ac1d91535a2/.aquota.group.FNKyP8" -> "aquota.group": Operation not permitted (1)
rsync: [receiver] rename "/srv/dev-disk-by-uuid-462f1369-3bff-4cb4-b196-7ac1d91535a2/.aquota.user.dpUTua" -> "aquota.user": Operation not permitted (1)
Storage/
Storage/Testing OMV rsync Issue/
Storage/Testing OMV rsync Issue/rsync issue.txt
sent 23,217,294 bytes received 65,674 bytes 500,708.99 bytes/sec
total size is 13,638,840,921,675 speedup is 585,786.18
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3] in /usr/share/openmediavault/engined/rpc/cron.inc:198
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatusqx...', '/tmp/bgoutputyt...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(201): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\Cron->execute(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Cron', 'execute', Array, Array, 1)
#6 {main}
Display More
What did I do and how do I fix it as it went from being fine, to this error ?
Thanks to anyone that can get me back to normal ![]()