Jump to content

ZFS with 3 drives

davidst95

Hi, I hope this is the correct sub forum to ask this question.    I am trying to create a ZFS pool with 3 drives.   I would like to use 2 drives and have the third one as a parity.   When I try to create the zpool it just stripes all three drives.

 

I am using this command:

 

 zpool create -f -m /mnt/zstorage  zstorage raidz  /dev/nvme1n1p1 /dev/nvme0n1p1 /dev/nvme2n1p1

 

I also tried 'raidz1'

 

and when I do a 'zpool list' I get this outut

NAME       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
zstorage  5.45T   226K  5.45T        -         -     0%     0%  1.00x    ONLINE  -

 

If anyone can tell me what I am doing wrong that would be very helpful.  Thank you!

 

David

Link to comment
Share on other sites

Link to post
Share on other sites

This is an expected behavior. It will show the total data on the disks, not just the space data can do on. 

 

Raid z1 isn't like raid 4 where there is one drive for parity. Also some of the data can be one data and one parity if the data size is small to prevent the write hole problem.

 

If you run zpool list -v it will show the raidz1 setup you have.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×