User Tools

Site Tools


zfs:expert:striped-raidz

ZFS Striped-Raidz

ZFS allows striping/spanning of a pool across multiple vdevs.

[root@backups /volumes/dwarf/sparse]# for count in 0{1,2,3,4,5,6,7,8,9} 10 11 12; do echo sparse"$count" &&dd if=/dev/zero of=sparse"$count" bs=1m count=80; done
sparse01
80+0 records in
80+0 records out
83886080 bytes transferred in 0.522673 secs (160494415 bytes/sec)
sparse02
80+0 records in
80+0 records out
83886080 bytes transferred in 0.503170 secs (166715181 bytes/sec)
sparse03
80+0 records in
80+0 records out
83886080 bytes transferred in 0.537799 secs (155980322 bytes/sec)
sparse04
80+0 records in
80+0 records out
83886080 bytes transferred in 0.781829 secs (107294681 bytes/sec)
sparse05
80+0 records in
80+0 records out
83886080 bytes transferred in 0.527652 secs (158979926 bytes/sec)
sparse06
80+0 records in
80+0 records out
83886080 bytes transferred in 0.496052 secs (169107504 bytes/sec)
sparse07
80+0 records in
80+0 records out
83886080 bytes transferred in 0.520576 secs (161140890 bytes/sec)
sparse08
80+0 records in
80+0 records out
83886080 bytes transferred in 0.773495 secs (108450680 bytes/sec)
sparse09
80+0 records in
80+0 records out
83886080 bytes transferred in 0.459885 secs (182406692 bytes/sec)
sparse10
80+0 records in
80+0 records out
83886080 bytes transferred in 0.449080 secs (186795309 bytes/sec)
sparse11
80+0 records in
80+0 records out
83886080 bytes transferred in 0.453665 secs (184907535 bytes/sec)
sparse12
80+0 records in
80+0 records out
83886080 bytes transferred in 0.687858 secs (121952636 bytes/sec)

[root@backups /volumes/dwarf/sparse]# zpool create sparky raidz /volumes/dwarf/sparse/sparse0{1,2,3,4} raidz /volumes/dwarf/sparse/sparse0{5,6,7,8} raidz /volumes/dwarf/sparse/sparse09 /volumes/dwarf/sparse/sparse1{0,1,2}

[root@backups /volumes/dwarf/sparse]# zpool status -v sparky
  pool: sparky
 state: ONLINE
 scan: none requested
config:

	NAME                                STATE     READ WRITE CKSUM
	sparky                              ONLINE       0     0     0
	  raidz1-0                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse01  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse02  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse03  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse04  ONLINE       0     0     0
	  raidz1-1                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse05  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse06  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse07  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse08  ONLINE       0     0     0
	  raidz1-2                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse09  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse10  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse11  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse12  ONLINE       0     0     0

errors: No known data errors

[root@backups /volumes/dwarf/sparse]# for count in 1{3,4,5,6}; do echo sparse"$count" &&dd if=/dev/zero of=sparse"$count" bs=1m count=80; done
sparse13
80+0 records in
80+0 records out
83886080 bytes transferred in 0.361145 secs (232278103 bytes/sec)
sparse14
80+0 records in
80+0 records out
83886080 bytes transferred in 0.437898 secs (191565376 bytes/sec)
sparse15
80+0 records in
80+0 records out
83886080 bytes transferred in 0.395696 secs (211996320 bytes/sec)
sparse16
80+0 records in
80+0 records out
83886080 bytes transferred in 0.511270 secs (164073995 bytes/sec)

[root@backups /volumes/dwarf/sparse]# zpool add sparky raidz /volumes/dwarf/sparse/sparse1{3,4,5,6}

[root@backups /volumes/dwarf/sparse]# zpool status -v sparky
  pool: sparky
 state: ONLINE
 scan: none requested
config:

	NAME                                STATE     READ WRITE CKSUM
	sparky                              ONLINE       0     0     0
	  raidz1-0                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse01  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse02  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse03  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse04  ONLINE       0     0     0
	  raidz1-1                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse05  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse06  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse07  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse08  ONLINE       0     0     0
	  raidz1-2                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse09  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse10  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse11  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse12  ONLINE       0     0     0
	  raidz1-3                          ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse13  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse14  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse15  ONLINE       0     0     0
	    /volumes/dwarf/sparse/sparse16  ONLINE       0     0     0

errors: No known data errors

[root@backups /volumes/dwarf/sparse]# zpool list sparky
NAME     SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
sparky  1.18G   178K  1.18G     0%  1.00x  ONLINE  -

Back to ZFS

zfs/expert/striped-raidz.txt · Last modified: 2018/07/08 16:57 (external edit)