I'm seeing odd behaviour when I create a ZFS raidz pool using three disks.  The 
output of "zpool status" shows the pool size as the size of the three disks 
combined (as if it were a Raid 0 volume).  This isn't expected behaviour is it? 
 When I create a mirrored volume in ZFS everything is as one would expect the 
pool is the size of a single drive.

My setup:
Compaq DL380
Host OS: CentOS 4.3 (x86)
VMware Server Guest OS: Solaris Nevada Build 39
Host Memory: 4GB
Guest Memory: 1.5GB
Disks: 3 x 300GB Seagate SATA II drives (with ~25GB carved out of each for the 
Host OS)

--
The commands I ran:
[b]bash-3.00# zpool create sata raidz c2t0d0 c2t1d0 c2t2d0
bash-3.00# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
sata                    838G    108K    838G     0%  ONLINE     -
bash-3.00# zpool status
  pool: sata
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        sata        ONLINE       0     0     0
          raidz     ONLINE       0     0     0
            c2t0d0  ONLINE       0     0     0
            c2t1d0  ONLINE       0     0     0
            c2t2d0  ONLINE       0     0     0

errors: No known data errors
bash-3.00# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
sata                   145K   825G    49K  /sata
bash-3.00# zpool destroy -f sata
bash-3.00# zpool create sata mirror c2t0d0 c2t1d0
bash-3.00# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
sata                    278G   52.5K    278G     0%  ONLINE     -
bash-3.00# zpool status
  pool: sata
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        sata        ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c2t0d0  ONLINE       0     0     0
            c2t1d0  ONLINE       0     0     0

errors: No known data errors
bash-3.00# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
sata                  75.5K   274G  24.5K  /sata[/b]



--

[b]bash-3.00# cat /tmp/disks.out
format> disk
selecting c2t0d0
Current partition table (original):
Total disk sectors available: 586055949 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector         Size         Last Sector
  0        usr    wm                34      279.45GB          586055949
  1 unassigned    wm                 0           0               0
  2 unassigned    wm                 0           0               0
  3 unassigned    wm                 0           0               0
  4 unassigned    wm                 0           0               0
  5 unassigned    wm                 0           0               0
  6 unassigned    wm                 0           0               0
  8   reserved    wm         586055950        8.00MB          586072333

format> disk
selecting c2t1d0
Current partition table (original):
Total disk sectors available: 586055949 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector         Size         Last Sector
  0        usr    wm                34      279.45GB          586055949
  1 unassigned    wm                 0           0               0
  2 unassigned    wm                 0           0               0
  3 unassigned    wm                 0           0               0
  4 unassigned    wm                 0           0               0
  5 unassigned    wm                 0           0               0
  6 unassigned    wm                 0           0               0
  8   reserved    wm         586055950        8.00MB          586072333

format> disk
selecting c2t2d0
Current partition table (original):
Total disk sectors available: 586055949 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector         Size         Last Sector
  0        usr    wm                34      279.45GB          586055949
  1 unassigned    wm                 0           0               0
  2 unassigned    wm                 0           0               0
  3 unassigned    wm                 0           0               0
  4 unassigned    wm                 0           0               0
  5 unassigned    wm                 0           0               0
  6 unassigned    wm                 0           0               0
  8   reserved    wm         586055950        8.00MB          586072333

[/b]
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to