Page 1 of 1
Raidz1 and striping it
Posted: 15 Sep 2016 17:26
by camarowheels
Currently got three x 1TB in a raidz1 and running outta space.
My question. Can I add another three 1 TB HDDs in raidz1 and stripe that or would it be best to store everything on an external and do it like that?
Re: Raidz1 and striping it
Posted: 15 Sep 2016 17:50
by crowi
yes, you can add other vdevs to a pool.
Code: Select all
zpool add yourpool raidz adaX adaY adaZ
Re: Raidz1 and striping it
Posted: 15 Sep 2016 17:54
by camarowheels
OK thanks but I just want to be sure we're clear. I'm looking at going from just a raidz1 to a striped raidz1. Like a raid50. Is that possible with your code provided?
Re: Raidz1 and striping it
Posted: 15 Sep 2016 18:35
by raulfg3
every vdev that you add is striped with your existing vdev.
please read more about how to work ZFS:
https://forums.freenas.org/index.php?th ... oobs.7775/
Re: Raidz1 and striping it
Posted: 16 Sep 2016 05:59
by camarowheels
Sorry for being such a noob but I'm not less than the average noob. I understand your pool can be striped and the vdevs in it can be striped both top level and physical but my question is about adding another top level vdev without offloading my data first to avoid data loss . Sorry for the noob talk but I think y'all experts will be able to communicate to me better with the layout below.
Like for instance I've got "Tank" for the root vdev and in tank right now I got one top level vdev "Backups" which contains three physical vdevs in a raidz1. Like Tank : Backups : raidz1
I want to add another 3 physical vdevs in the same top level vdev in a raidz1.
Can I add another top level vdev and make something like Tank : Backups : raidz1 + the raidz 1
from my existing setup
Tank : Backups : raidz1
Re: Raidz1 and striping it
Posted: 16 Sep 2016 07:43
by crowi
So "Tank" is your Poolname and "Backups" is your Dataset?
Can I add another top level vdev and make something like Tank : Backups : raidz1 + the raidz 1
Yes, this is the purpose for the POOL, you can add as many vdevs (single disks (not recommended), mirrors, RAIDZx) as you want.
Re: Raidz1 and striping it
Posted: 18 Sep 2016 18:29
by camarowheels
Thanks. I just didn't want to destroy my data.
Re: Raidz1 and striping it
Posted: 12 Oct 2016 16:49
by nick6
Only new data written after the second VDEV is added will be striped between the two VDEVs. Adding a VDEV doesn't re-write and stripe the existing data, but it isn't difficult to do so.
However, before tinkering with a pool, you should ALWAYS have a backup of the existing data just in case you make an error when adding the new VDEV.
Triple-check your commands before adding a VDEV to a pool. Once it is added, it cannot be removed without rebuilding the entire pool.
Re: Raidz1 and striping it
Posted: 14 Jan 2017 02:31
by camarowheels
crowi wrote: ↑16 Sep 2016 07:43
So "Tank" is your Poolname and "Backups" is your Dataset?
Can I add another top level vdev and make something like Tank : Backups : raidz1 + the raidz 1
Yes, this is the purpose for the POOL, you can add as many vdevs (single disks (not recommended), mirrors, RAIDZx) as you want.
Thanks. Since this last post I've got a little more understanding of the pool structure. I have a thread in hardware if you wouldn't mind taking a look. I'd appreciate it.
Re: Raidz1 and striping it
Posted: 14 Jan 2017 02:33
by camarowheels
nick6 wrote: ↑12 Oct 2016 16:49
Only new data written after the second VDEV is added will be striped between the two VDEVs. Adding a VDEV doesn't re-write and stripe the existing data, but it isn't difficult to do so.
However, before tinkering with a pool, you should ALWAYS have a backup of the existing data just in case you make an error when adding the new VDEV.
Triple-check your commands before adding a VDEV to a pool. Once it is added, it cannot be removed without rebuilding the entire pool.
Is there a tutorial you know if I could study for this delima? I'd really like all data across my new disks. If that's more advantageous than a separate vdev with my 3 new HDDs. Thanks in advance.