Skip to main content

zfs list reports wrong size when working with files

  • From: Peter Wood < >
  • To: ZFS Discuss List < >
  • Subject: zfs list reports wrong size when working with files
  • Date: Tue, 2 Apr 2013 00:05:47 -0700

I've been testing zfs configurations on OI 151a7 using 128MB files and I noticed that I'm getting the wrong pool sizes when using raidz.

root@oiserver1:~# ls -lh /dsk/disk{1..5}
-rw------T 1 root root 128M 2013-04-01 18:58 /dsk/disk1
-rw------T 1 root root 128M 2013-04-01 18:58 /dsk/disk2
-rw------T 1 root root 128M 2013-04-01 18:58 /dsk/disk3
-rw------T 1 root root 128M 2013-04-01 18:58 /dsk/disk4
-rw------T 1 root root 128M 2013-04-01 18:58 /dsk/disk5
root@oiserver1:~#
root@oiserver1:~# zpool create mypool raidz3 /dsk/disk{1..4}
root@oiserver1:~#
root@oiserver1:~# zpool status mypool
  pool: mypool
 state: ONLINE
  scan: none requested
config:

        NAME            STATE     READ WRITE CKSUM
        mypool          ONLINE       0     0     0
          raidz3-0      ONLINE       0     0     0
            /dsk/disk1  ONLINE       0     0     0
            /dsk/disk2  ONLINE       0     0     0
            /dsk/disk3  ONLINE       0     0     0
            /dsk/disk4  ONLINE       0     0     0

errors: No known data errors
root@oiserver1:~#
root@oiserver1:~# zpool list mypool
NAME     SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
mypool   492M   484K   492M         -     0%  1.00x  ONLINE  -
root@oiserver1:~#
==========

With raidz3 I'm expecting the size of 4 drives pool to be equal to the size of one drive but in the example above "zpool list" reported size that is close to a stripe configuration.

I'm getting the same behavior  for raidz and raidz2 with different number of drives.

Is this because I'm using files instead of real drives or am I missing something?

Thanks,

-- Peter


zfs list reports wrong size when working with files

Peter Wood 04/02/2013

Re: zfs list reports wrong size when working with files

Ian Collins 04/02/2013

Re: zfs list reports wrong size when working with files

Peter Wood 04/02/2013

Re: zfs list reports wrong size when working with files

Eric Sproul 04/02/2013

Re: zfs list reports wrong size when working with files

Cindy Swearingen 04/02/2013

Re: zfs list reports wrong size when working with files

Peter Wood 04/02/2013

Re: zfs list reports wrong size when working with files

Tim Kennedy 04/02/2013
 
 
Close
loading
Please Confirm
Close