zpool size problem

jmorfali

Member
Jan 29, 2020
11
5
8
44
Hello,

I have two 1.7T hard drives each that I added to a pool named DD23. In the Shell this gives me: DD2 3.48T which is ok. But when I go to the Promox interface to add my storage, it is at 1.69T as if it only sees a hard drive. Do you know why?

thank you so much
 
Hi,

Did you add them as mirror, as then getting half the size would be expected.

What's the outputs of:
Bash:
zpool status
zpool list

Hello,

They shouldn't be mirrored ... Here is the result:

Bash:
root@ns3172121:~# zpool status
  pool: DD23
 state: ONLINE
  scan: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        DD23         ONLINE       0     0     0
          raidz1-0   ONLINE       0     0     0
            nvme1n1  ONLINE       0     0     0
            nvme2n1  ONLINE       0     0     0

errors: No known data errors


==============================

root@ns3172121:~# zpool list
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
DD23  3.48T  1.52M  3.48T        -         -     0%     0%  1.00x    ONLINE  -
root@ns3172121:~#

Here is what I did to create the pool:

Bash:
zpool create -f -o ashift=12 DD23 raidz /dev/nvme1n1 /dev/nvme2n1
/sbin/modprobe zfs ashift=12 DD23 raidz /dev/nvme1n1 /dev/nvme2n1

Thx!
 
Hello,

They shouldn't be mirrored ... Here is the result:

Bash:
root@ns3172121:~# zpool status
  pool: DD23
state: ONLINE
  scan: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        DD23         ONLINE       0     0     0
          raidz1-0   ONLINE       0     0     0
            nvme1n1  ONLINE       0     0     0
            nvme2n1  ONLINE       0     0     0

errors: No known data errors


==============================

root@ns3172121:~# zpool list
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
DD23  3.48T  1.52M  3.48T        -         -     0%     0%  1.00x    ONLINE  -
root@ns3172121:~#

Here is what I did to create the pool:

Bash:
zpool create -f -o ashift=12 DD23 raidz /dev/nvme1n1 /dev/nvme2n1
/sbin/modprobe zfs ashift=12 DD23 raidz /dev/nvme1n1 /dev/nvme2n1

Thx!

You created a raidz1 which equals raid5 in zfs.
Raid5 requires at least 3 disks.
Your second disk is therefore currently used for parity and your whole vdev acts like a mirror (raid1)

It looks like you want to run raid0 so remove the raidz from the create command.
zpool create -f -o ashift=12 DD23 /dev/nvme1n1 /dev/nvme2n1
 
You created a raidz1 which equals raid5 in zfs.
Raid5 requires at least 3 disks.
Your second disk is therefore currently used for parity and your whole vdev acts like a mirror (raid1)

It looks like you want to run raid0 so remove the raidz from the create command.
zpool create -f -o ashift=12 DD23 /dev/nvme1n1 /dev/nvme2n1

Hello,

Perfect thank you very much, everything works.

Have a good day