Help: Rsync copy files from one pool to another

Haibane

Dabbler
Joined
Oct 22, 2023
Messages
18
Hi!
This is my second post, and I am in serious trouble with my dataset. Any help would be much appreciated.

I am on
Linux truenas 6.1.42-production+truenas #2 SMP PREEMPT_DYNAMIC Mon Aug 14 23:21:26 UTC 2023 x86_64

I am using
Dell Precision desktop computer with SAS card attached to 6x 6tb Seagate SAS HDD, and two 8tb HDD(which works fine so will not be further discussed)

My 6*6tb pool named "Six6Tbs" cannot be imported at powerup as it goes to kernel panic. I physically disconnected the drives so the computer can boot, and I can have access to a working shell.

I want to
Copy files as shown.
Screenshot 2023-12-04 174632.png



Screenshot 2023-12-04 173936.png


I face issues
because all replication tasks are instantly halted - displays hold. And the command line it says cant find paths.

Code:
root@truenas[~]#
root@truenas[~]# sudo rsync -av --progress /source/path/Six6Tbs/6t\ dataset/Secure/Open_Stripe_8t/recovery_move /destination/path

sending incremental file list
rsync: [sender] change_dir "/source/path/Six6Tbs/6t dataset/Secure/Open_Stripe_8t" failed: No such file or directory (2)
rsync: [Receiver] change_dir#3 "/destination" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(829) [Receiver=3.2.7]
root@truenas[~]# sudo rsync -av --progress 'Six6Tbs/6t dataset/Secure' 'Open_Stripe_8t/recovery_move'
sending incremental file list
rsync: [sender] change_dir "/root/Six6Tbs/6t dataset" failed: No such file or directory (2)
rsync: [Receiver] change_dir#3 "/root/Open_Stripe_8t" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(829) [Receiver=3.2.7]
root@truenas[~]#
root@truenas[~]# sudo rsync -av --progress 'Six6Tbs/6t dataset/Secure' 'Open_Stripe_8t/recovery_move'
sending incremental file list
rsync: [sender] change_dir "/root/Six6Tbs/6t dataset" failed: No such file or directory (2)
rsync: [Receiver] change_dir#3 "/root/Open_Stripe_8t" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(829) [Receiver=3.2.7]
root@truenas[~]# sudo rsync -av --progress 'Six6Tbs/6t dataset' 'Open_Stripe_8t/recovery_move'
sending incremental file list
rsync: [sender] change_dir "/root/Six6Tbs" failed: No such file or directory (2)
rsync: [Receiver] change_dir#3 "/root/Open_Stripe_8t" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(829) [Receiver=3.2.7]
root@truenas[~]# sudo rsync -av --progress 'Six6Tbs/6t dataset' 'mnt/Open_Stripe_8t/recovery_move'
sending incremental file list
rsync: [sender] change_dir "/root/Six6Tbs" failed: No such file or directory (2)
rsync: [Receiver] change_dir#3 "/root/mnt/Open_Stripe_8t" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(829) [Receiver=3.2.7]
root@truenas[~]# cd /
root@truenas[/]# sudo rsync -av --progress 'Six6Tbs/6t dataset' 'mnt/Open_Stripe_8t/recovery_move'
sending incremental file list
6t dataset/

sent 72 bytes  received 20 bytes  184.00 bytes/sec
total size is 0  speedup is 0.00
root@truenas[/]# sudo rsync -av --progress '/Six6Tbs/6t dataset' '/mnt/Open_Stripe_8t/recovery_move'
sending incremental file list

sent 73 bytes  received 17 bytes  180.00 bytes/sec
total size is 0  speedup is 0.00
root@truenas[/]# sudo rsync -av --progress '/mnt/Six6Tbs/6t dataset' '/mnt/Open_Stripe_8t/recovery_move'
sending incremental file list
rsync: [sender] change_dir "/mnt/Six6Tbs" failed: No such file or directory (2)

sent 19 bytes  received 12 bytes  62.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
root@truenas[/]# sudo rsync -av --progress '/mnt/Six6Tbs/6t dataset' '/mnt/Open_Stripe_8t/recovery_move'
 

Haibane

Dabbler
Joined
Oct 22, 2023
Messages
18
This post is a continuation of issues faced from this
 

Haibane

Dabbler
Joined
Oct 22, 2023
Messages
18
Tested directories
root@truenas[/mnt/Open_Stripe_8t/recovery_move/Secure]#
ls is empty
or '6t dataset'

Problem solved. Comprehensive guide will be given here. Seems like many people had same issue

basically, when you mount dataset as read only to recovery,

instead of normal
/mnt/ datasetName

it is always at root like
/datasetName


and, you need to load key for each further down directories

and, you must manually mount them after entering key

Finammy, you can rsync like normal

Warning!
rsync makes directory if it does not exsist
make sure you got the directories right by viewing sda sdb, ect.... disk usage
Otherwise youll be copying to boot-drive and fill it up in no time
 
Last edited:
Top