Hi guys,
Using 9.2.1.8
I've been planning a migration towards FreeNAS, from a classical CentOS + SMB server.
As of today, I've set everything up and tested extensively (Shares, snapshots, replications, etc.)
Now it's time to move the files to FreeNAS.
I've been doing RSYNCs so I don't have to wait for a complete transfer.
As I planned it, it's very easy : I just need to shutdown samba services on the old server, do an ultimate RSYNC and then sort out the files.
The last part is my problem : sorting out the files.
You see I've been RSYNCing my files to a directory called /mnt/Data/OLD/
I did it so i can just RSYNC in one place, and I also need to rearrange the structure of the folders for the new Datasets and related CIFS shares.
So today I did my first (FAILED) attempt at migrating.
The problem I had is: I use MV to move the files around, while SSH'ed as ROOT.
When i do so, I get - on almost every line - an error such as :
mv: chmod: <...> Operation not permitted
Now this scared me.
I've done some testing and it looks like some of the files did not move correctly.
Furthermore, they did not actually "move", at least not fully, because the initial folder and files (or most of it in some cases) are still in /mnt/Data/OLD
So most of the time, the files appear at two places - the source and target - but not always fully... some files seem to have been MOVED, so all are on TARGET. Some others stayed in the SOURCE. Finally, some are in both places. I've been trying to find the logic behind this by looking at the permissions, etc... I just can't make it out...
Completely beaten, I lost the battle and started SAMBA on the old server again.
I deleted EVERYTHING, EVERYWHERE and launched another RSYNC to make sure that all files are there, for my next attempt (start fresh).
So I figure this is some kind of permission issue ?
But since I'm ROOT I don't really understand what's going on here...
Maybe I shouldn't use MV at all?
Reading around, I saw it is often recommended to just mount the shares and move files around between them.............. but I don't trust WINDOWS enough to do that.
Data integrity is absolutely essential for me: I want to make sure every single file has been moved, that nothing has been lost and that all files have been moved integrally.
So I would gladly get help on this matter.
I'm very excited to put FreeNAS into production, I'd much like to make another attempt ASAP.
So my questions are:
Do you know what happened? How can I fix this?
What is the best way to do what I want? (get all files from a folder with all kind of files, directories, and permissions... and send them to different datasets, each with CIFS shares and their own permission sets)
Using 9.2.1.8
I've been planning a migration towards FreeNAS, from a classical CentOS + SMB server.
As of today, I've set everything up and tested extensively (Shares, snapshots, replications, etc.)
Now it's time to move the files to FreeNAS.
I've been doing RSYNCs so I don't have to wait for a complete transfer.
As I planned it, it's very easy : I just need to shutdown samba services on the old server, do an ultimate RSYNC and then sort out the files.
The last part is my problem : sorting out the files.
You see I've been RSYNCing my files to a directory called /mnt/Data/OLD/
I did it so i can just RSYNC in one place, and I also need to rearrange the structure of the folders for the new Datasets and related CIFS shares.
So today I did my first (FAILED) attempt at migrating.
The problem I had is: I use MV to move the files around, while SSH'ed as ROOT.
When i do so, I get - on almost every line - an error such as :
mv: chmod: <...> Operation not permitted
Now this scared me.
I've done some testing and it looks like some of the files did not move correctly.
Furthermore, they did not actually "move", at least not fully, because the initial folder and files (or most of it in some cases) are still in /mnt/Data/OLD
So most of the time, the files appear at two places - the source and target - but not always fully... some files seem to have been MOVED, so all are on TARGET. Some others stayed in the SOURCE. Finally, some are in both places. I've been trying to find the logic behind this by looking at the permissions, etc... I just can't make it out...
Completely beaten, I lost the battle and started SAMBA on the old server again.
I deleted EVERYTHING, EVERYWHERE and launched another RSYNC to make sure that all files are there, for my next attempt (start fresh).
So I figure this is some kind of permission issue ?
But since I'm ROOT I don't really understand what's going on here...
Maybe I shouldn't use MV at all?
Reading around, I saw it is often recommended to just mount the shares and move files around between them.............. but I don't trust WINDOWS enough to do that.
Data integrity is absolutely essential for me: I want to make sure every single file has been moved, that nothing has been lost and that all files have been moved integrally.
So I would gladly get help on this matter.
I'm very excited to put FreeNAS into production, I'd much like to make another attempt ASAP.
So my questions are:
Do you know what happened? How can I fix this?
What is the best way to do what I want? (get all files from a folder with all kind of files, directories, and permissions... and send them to different datasets, each with CIFS shares and their own permission sets)