Help with restoring a pool

I backed up my storage pool using recursive replication to a 4TB disk drive that I added as a temporary pool. I then exported my storage pool and then rebuilt it using new SSD’s. Next I did a recursive replication from the 4TB disk to my new storage pool, a raidz1 ssd pool. I exported and removed the 4TB backup pool and reapplied my configuration backup.

Now my raidz1 pool and all the datasets are getting mounted read-only. I’ve tried unmounting datasets and remounting them “zfs mount -o rw zvol/the-dataset” but this does not persist across a reboot.

How can I fix my pool so that the datasets are mounted read-write?

thanks in advance
John

The original replication task probably set the dataset(s) to “readonly=on”, which carried over (as a dataset property) when you replicated back to the new pool.

You can confirm with this:

zfs list -t filesystem -r -o name,readonly <poolname>

If you want to remove the readonly property, you can do this in the GUI for each dataset (“Edit Options”), if there are not too many.

1 Like

That looks like the problem. I’m going through each dataset and turning off the read only flag. I don’t know if this is a bug with restoring a pool from a backup or if I skipped some step. Should I have checked an option in the replication task when I copied back in from the backup?

BTW, thanks for your help! The readonly property of all the datasets was set to inherit from the parent. I changed the parents readonly property to off.

1 Like

I don’t know if this was changed in SCALE, but in Core there is no way to “unset” the readonly property. You can have the replication task either “set”, “require”, or “ignore” the dataset’s readonly property.

The reason there is no “unset” option is probably because you do not want a destination (on the receiving side of a replication) to be accessible as “read-write”, since this can interfere with subsequent replications.

1 Like

Hey, it’s all good. It’s all good.

Thank you for your kind words. :slightly_smiling_face:

I’ll just be on my way then…

You can mark the solution if you want. :smiling_face: Only if you want to.