Assuming drives of the same size:
If I make a VDEV out of a single drive. Then put it and 2 other's VDEV's just like it into a Pool, does ZFS stripe between them? Or does it fill up each VDEV sequentially?
Would it be better to make the 3 drives into a single 'stripe' VDEV then Pool? Does data get written evenly between all 3 drives in this case?
Does ZFS have any issue if one of the 3 drives is a USB3 external drive? By that I mean that with a slower write speed, could this cause a problem?
How does either method handle very small files? Does it split a 1,000 byte file between 3 disks?
I'm just looking to see if it is possible to recover anything at all if you are missing one of a striped set of disks.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Does ZFS stripe if multiple VDEV in Pool?
-
c71clark
- Starter

- Posts: 15
- Joined: 07 Sep 2014 17:05
- Status: Offline
-
substr
- experienced User

- Posts: 113
- Joined: 04 Aug 2013 20:21
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
It will spread blocks across the three, but it doesn't sub-divide the blocks themselves. With equal speed drives, they would be spread pretty evenly.
If the vdevs are unequal in speed, there is a possibility the writes may be diverted away from the slower vdev.
In the case of a very small file, it ends up on one drive.(one block) Anything greater than one block, ZFS can do whatever it likes. It may put a small series of blocks on the same vdev, so that IOPs are reduced..
Without mirrors, or raidz, one drive missing means you lose everything.
If the vdevs are unequal in speed, there is a possibility the writes may be diverted away from the slower vdev.
In the case of a very small file, it ends up on one drive.(one block) Anything greater than one block, ZFS can do whatever it likes. It may put a small series of blocks on the same vdev, so that IOPs are reduced..
Without mirrors, or raidz, one drive missing means you lose everything.
-
c71clark
- Starter

- Posts: 15
- Joined: 07 Sep 2014 17:05
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
So then let me put together an extreme example: I make a 3-vdev Pool: 1 vdev is a single large HDD, 1 vdev is a single mid-sized SSD, and 1 vdev is a 16gb usb3 thumb drive.
I write some misc files to this Pool. Say I write 5 GB worth of MP3 files, averaging 5mb each. Presumably, the SSD would get a larger percentage of the blocks due to it's speed. But what happens if I pull the thumb drive out and drop it in lava (heh)? Will ALL of the data in this Pool become garbage? Or is there any way at all that I can recover the data sitting on the other 2 vdev's in this pool?
I write some misc files to this Pool. Say I write 5 GB worth of MP3 files, averaging 5mb each. Presumably, the SSD would get a larger percentage of the blocks due to it's speed. But what happens if I pull the thumb drive out and drop it in lava (heh)? Will ALL of the data in this Pool become garbage? Or is there any way at all that I can recover the data sitting on the other 2 vdev's in this pool?
-
substr
- experienced User

- Posts: 113
- Joined: 04 Aug 2013 20:21
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
The practical effect is that the pool will be inaccessible.
In theory, you might be able to scrape some files out of the other two remaining devices and reassemble them, or portions of them.
In theory, you might be able to scrape some files out of the other two remaining devices and reassemble them, or portions of them.
-
c71clark
- Starter

- Posts: 15
- Joined: 07 Sep 2014 17:05
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
Thanks for the info. I have another one for you. I've been reading the documentation, but my mind works in weird ways that isn't covered, heh. Also, I'm trying to get a feel for the boundaries of this system.
Is this pretty much a silly thing to do? : 1 stripe vdev consisting of 2 HDD. 1 mirror vdev consisting of 2 HDD. Both vdev in the same Pool.
Is this essentially a RAID 0+1 setup? : 1 mirror vdev with 2 HDD. A second mirror vdev with 2 HDD. Both mirrored vdev into a single Pool.
It won't write perfectly across all 4 disks, but if any one of them fails, it can be replaced and you shouldn't lose anything.
Is this pretty much a silly thing to do? : 1 stripe vdev consisting of 2 HDD. 1 mirror vdev consisting of 2 HDD. Both vdev in the same Pool.
Is this essentially a RAID 0+1 setup? : 1 mirror vdev with 2 HDD. A second mirror vdev with 2 HDD. Both mirrored vdev into a single Pool.
It won't write perfectly across all 4 disks, but if any one of them fails, it can be replaced and you shouldn't lose anything.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
this have no redundancy, you have a stripe of 2 disk in mirror and 2 disk in stripec71clark wrote: 1 stripe vdev consisting of 2 HDD. 1 mirror vdev consisting of 2 HDD. Both vdev in the same Pool.
this is good and recomended, is a stripe of mirrors, you can grow you stripe adding more mirrors to it.c71clark wrote: 1 mirror vdev with 2 HDD. A second mirror vdev with 2 HDD. Both mirrored vdev into a single Pool.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
c71clark
- Starter

- Posts: 15
- Joined: 07 Sep 2014 17:05
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
Is there a way to tell N4F to 'balance' all the data in the Pool so it is evenly (as possible) split between vdev's? Similarly, is it possible to tell N4F to move all data OFF a specific vdev so you cant remove/replace/upgrade it?
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Does ZFS stripe if multiple VDEV in Pool?
no there is not.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.