4

I am looking at a ZFS volume on FreeBSD system, and I have no idea what RAIDZ level it is configured at. How can I find out using the ZFS command line or other?

I tried "zpool status" already, and got this:

    TANK                                            ONLINE       0     0     0
      raidz1-0                                      ONLINE       0     0     0
        gptid/19481bef-c121-11e3-bd5b-0cc47a005e96  ONLINE       0     0     0
        gptid/1a09563a-c121-11e3-bd5b-0cc47a005e96  ONLINE       0     0     0
        gptid/1ac63968-c121-11e3-bd5b-0cc47a005e96  ONLINE       0     0     0
        gptid/1b884b06-c121-11e3-bd5b-0cc47a005e96  ONLINE       0     0     0
        gptid/1c4697ff-c121-11e3-bd5b-0cc47a005e96  ONLINE       0     0     0

the thing that seems even close to what I'm looking for is "raidz1-0" but I'm thinking that is a numbering scheme only and not an actual raid level.

longneck
  • 23,082
  • 4
  • 52
  • 86
7wp
  • 564
  • 2
  • 8
  • 18

2 Answers2

4

zpool status will list all of the drives and their layout, including mirror/RAID level.

In your case, raidz1-0 means you are running raidz1 and the group number is 0.

longneck
  • 23,082
  • 4
  • 52
  • 86
4

You were running the right command. zpool status -v is the correct way to understand what a ZFS pool is comprised of. A better example, as the vdev groups are enumerated, beginning with 0. Note the multiple mirror groups and single raidz group below:

[root@MDMarra ~]# zpool status -v
  pool: vol1
 state: ONLINE
  scan: scrub repaired 0 in 0h32m with 0 errors on Sun Feb 16 17:34:42 2014
config:

        NAME                        STATE     READ WRITE CKSUM
        vol1                        ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            wwn-0x500000e014609480  ONLINE       0     0     0
            wwn-0x500000e0146097d0  ONLINE       0     0     0
          mirror-1                  ONLINE       0     0     0
            wwn-0x500000e0146090c0  ONLINE       0     0     0
            wwn-0x500000e01460fd60  ONLINE       0     0     0
          mirror-2                  ONLINE       0     0     0
            wwn-0x500000e01460e7f0  ONLINE       0     0     0
            wwn-0x500000e0163a9990  ONLINE       0     0     0
          mirror-3                  ONLINE       0     0     0
            wwn-0x500000e014611300  ONLINE       0     0     0
            wwn-0x500000e0152a3550  ONLINE       0     0     0
          mirror-4                  ONLINE       0     0     0
            wwn-0x5000c5001cdf0113  ONLINE       0     0     0
            wwn-0x500000e014605e30  ONLINE       0     0     0

errors: No known data errors

  pool: vol2
 state: ONLINE
  scan: scrub repaired 0 in 0h0m with 0 errors on Sun Feb 16 17:03:28 2014
config:

        NAME                        STATE     READ WRITE CKSUM
        vol2                        ONLINE       0     0     0
          raidz1-0                  ONLINE       0     0     0
            wwn-0x5000c5000c245113  ONLINE       0     0     0
            wwn-0x5000c5000b307057  ONLINE       0     0     0
            wwn-0x5000c5001cc4b45b  ONLINE       0     0     0
            wwn-0x5000c5000b30d58b  ONLINE       0     0     0
            wwn-0x5000cca00a0ea20c  ONLINE       0     0     0
            wwn-0x5000cca00a1a63ec  ONLINE       0     0     0
ewwhite
  • 197,159
  • 92
  • 443
  • 809