I have been doing replication of my main volume to a backup drive attached to one of the available SATA ports.
I am doing it as follow:
1: Creating a manual recursive snapshot of the volume.
2: I delete the snapshots of the datasets I do not want to replicate
3: I set the backup drive as read only "zfs set readonly=on backup_vol"
4: I run the zfs send -vR ... |zfs receive -vFd ... comand.
5: Replication takes place. and all the necessary datasets seem to have been replicated properly.
6: Runnig scrub on the backup drive. Everything is fine.
7: Reporting Partition doesn't show dataset on backup drive. Doing "ls" doesn't return dataset contents, maybe because replicated dataset have "root" ownership. Ownership was not replicated, but it may be a normal condition.
8: Dettaching backup drive without deleting snapshots.
9: Importing drive. Everything seem to work fine. I can list dataset contnets withing the backup drive.
10: Adding a share to the backup volume and accessing the files via SMB. They are not all visible due to ownership (i think).
11: Doing replication of some more dataset to backup drive.
12: Detaching the drive without removing SMB share.
13: Importing the drive again fails. Being told by GUI to check zfs status. Everything is fine, all 3 volume are available and online (USB boot, Main Volume and backup). Backup volume doesn't show under "Storage" GUI. "Reporting" Partition list various dataset bur graphs are not filled with data.
14: Scrub has been launched again and is still underway with no issue so far.
15: Some of the datset content can be listed, some can't.
16: I can replicate snapshots for the dataset that cannot be listed on the backup on the main volume. newly created dataset can be listed without any problem.
17: I have rebooted Freenas a few times and the drive remain in the same state.
I don't think this is an issue with the new drive as I had a very similar scenario a few months back with a different backup drive. I think, when it occurred previously, I did an update after I replicated the volume and when it rebooted, I couldn't seen the drive anymore. I think I reverted to the previous boot.
Has anyone experienced similar scenario?
I am second guessing my process, but I do not exclude any underlying bugs either.
I am doing it as follow:
1: Creating a manual recursive snapshot of the volume.
2: I delete the snapshots of the datasets I do not want to replicate
3: I set the backup drive as read only "zfs set readonly=on backup_vol"
4: I run the zfs send -vR ... |zfs receive -vFd ... comand.
5: Replication takes place. and all the necessary datasets seem to have been replicated properly.
6: Runnig scrub on the backup drive. Everything is fine.
7: Reporting Partition doesn't show dataset on backup drive. Doing "ls" doesn't return dataset contents, maybe because replicated dataset have "root" ownership. Ownership was not replicated, but it may be a normal condition.
8: Dettaching backup drive without deleting snapshots.
9: Importing drive. Everything seem to work fine. I can list dataset contnets withing the backup drive.
10: Adding a share to the backup volume and accessing the files via SMB. They are not all visible due to ownership (i think).
11: Doing replication of some more dataset to backup drive.
12: Detaching the drive without removing SMB share.
13: Importing the drive again fails. Being told by GUI to check zfs status. Everything is fine, all 3 volume are available and online (USB boot, Main Volume and backup). Backup volume doesn't show under "Storage" GUI. "Reporting" Partition list various dataset bur graphs are not filled with data.
14: Scrub has been launched again and is still underway with no issue so far.
15: Some of the datset content can be listed, some can't.
16: I can replicate snapshots for the dataset that cannot be listed on the backup on the main volume. newly created dataset can be listed without any problem.
17: I have rebooted Freenas a few times and the drive remain in the same state.
I don't think this is an issue with the new drive as I had a very similar scenario a few months back with a different backup drive. I think, when it occurred previously, I did an update after I replicated the volume and when it rebooted, I couldn't seen the drive anymore. I think I reverted to the previous boot.
Has anyone experienced similar scenario?
I am second guessing my process, but I do not exclude any underlying bugs either.