Sara
Dabbler
- Joined
- Jun 26, 2022
- Messages
- 18
Hello everyone,
One issue bothers me about the "copies" parameter. In the ZFS documentation on oracle I read that "These copies are in addition to any pool-level redundancy" and here my confusion begins.
eg.
# zfs set copies=2 users/home
# zfs get copies users/home
or in GUI TrueNas
- If I have a "pool" created from "vDev-s", whether it's "mirror" or "raidZ-x", does this parameter only affect the number of copies on one particular disk in vDev or vDev in general?
- The default is 1 and for example for a 3-way mirror I understand that there is 1 copy of data on each of the 3 disks, if I set it to 2 then there will be 2 copies of data on each of the 3 disks? (and will reduce capacity by 50% as a result but more secure for data) Do I understand it correctly?
- And does the above apply the same to raidZ-x that this parameter applies to data copies, i.e. apart from the checksums data recovery, it will simply keep the same data in a copy of 1, 2 or 3 copies somewhere on raidZ disks, and in the case of a mirror on each disk in the mirror in this number of copies? Do I understand it correctly?
- My mind exploded :D
Thx.
Best Regards,
Sara
One issue bothers me about the "copies" parameter. In the ZFS documentation on oracle I read that "These copies are in addition to any pool-level redundancy" and here my confusion begins.
eg.
# zfs set copies=2 users/home
# zfs get copies users/home
or in GUI TrueNas
- If I have a "pool" created from "vDev-s", whether it's "mirror" or "raidZ-x", does this parameter only affect the number of copies on one particular disk in vDev or vDev in general?
- The default is 1 and for example for a 3-way mirror I understand that there is 1 copy of data on each of the 3 disks, if I set it to 2 then there will be 2 copies of data on each of the 3 disks? (and will reduce capacity by 50% as a result but more secure for data) Do I understand it correctly?
- And does the above apply the same to raidZ-x that this parameter applies to data copies, i.e. apart from the checksums data recovery, it will simply keep the same data in a copy of 1, 2 or 3 copies somewhere on raidZ disks, and in the case of a mirror on each disk in the mirror in this number of copies? Do I understand it correctly?
- My mind exploded :D
Thx.
Best Regards,
Sara