POUWIEL|COM

JeroenPouwiel

Creating raidz zpool with ZIL, mirrored cache and spares

Creating raidz zpool with ZIL, mirrored cache and spares == {Pretty straightforward}:

jeroen@tartarus:~# zpool create datapool \
> raidz c7t2d0 c7t3d0 c7t4d0 c7t5d0 c7t6d0 c7t7d0 \
> log mirror c7t8d0 c7t9d0 \
> cache c7t13d0 \
> spare c7t10d0 c7t11d0
jeroen@tartarus:~# zpool status
  pool: datapool
 state: ONLINE
 scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	datapool    ONLINE       0     0     0
	  raidz1-0  ONLINE       0     0     0
	    c7t2d0  ONLINE       0     0     0
	    c7t3d0  ONLINE       0     0     0
	    c7t4d0  ONLINE       0     0     0
	    c7t5d0  ONLINE       0     0     0
	    c7t6d0  ONLINE       0     0     0
	    c7t7d0  ONLINE       0     0     0
	logs
	  mirror-1  ONLINE       0     0     0
	    c7t8d0  ONLINE       0     0     0
	    c7t9d0  ONLINE       0     0     0
	cache
	  c7t13d0   ONLINE       0     0     0
	spares
	  c7t10d0   AVAIL
	  c7t11d0   AVAIL   

errors: No known data errors

  pool: rpool
 state: ONLINE
 scan: resilvered 5.69G in 0h5m with 0 errors on Sat Oct  8 16:16:37 2011
config:

	NAME           STATE     READ WRITE CKSUM
	rpool          ONLINE       0     0     0
	  mirror-0     ONLINE       0     0     0
	    c7t0d0s0   ONLINE       0     0     0
	    c7t12d0s0  ONLINE       0     0     0

errors: No known data errors
jeroen@tartarus:~# zfs create datapool/pod
jeroen@tartarus:~# zfs set compression=on datapool/pod
jeroen@tartarus:~# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
datapool                   201K  24.3G  62.3K  /datapool
datapool/pod              60.6K  24.3G  60.6K  /datapool/pod

## Edit –October 15, 2011
I just created another zpool, now with a different configuration.
It is about time to wreak havoc on these poor clusters and see who holds its own…

zpool create pod \
 raidz c7t7d0 c7t10d0 c7t13d0 c7t16d0 c7t19d0 \
 raidz c7t8d0 c7t11d0 c7t14d0 c7t17d0 c7t20d0 \
 raidz c7t9d0 c7t12d0 c7t15d0 c7t18d0 c7t21d0 \
 log mirror c7t3d0 c7t5d0\
 cache c7t4d0 c7t6d0 \
 spare c7t22d0

And a zpool status shows:

jeroen@Erebus:~$ zpool status pod
  pool: pod
 state: ONLINE
 scan: none requested
config:

	NAME         STATE     READ WRITE CKSUM
	pod          ONLINE       0     0     0
	  raidz1-0   ONLINE       0     0     0
	    c7t7d0   ONLINE       0     0     0
	    c7t10d0  ONLINE       0     0     0
	    c7t13d0  ONLINE       0     0     0
	    c7t16d0  ONLINE       0     0     0
	    c7t19d0  ONLINE       0     0     0
	  raidz1-1   ONLINE       0     0     0
	    c7t8d0   ONLINE       0     0     0
	    c7t11d0  ONLINE       0     0     0
	    c7t14d0  ONLINE       0     0     0
	    c7t17d0  ONLINE       0     0     0
	    c7t20d0  ONLINE       0     0     0
	  raidz1-2   ONLINE       0     0     0
	    c7t9d0   ONLINE       0     0     0
	    c7t12d0  ONLINE       0     0     0
	    c7t15d0  ONLINE       0     0     0
	    c7t18d0  ONLINE       0     0     0
	    c7t21d0  ONLINE       0     0     0
	logs
	  mirror-3   ONLINE       0     0     0
	    c7t3d0   ONLINE       0     0     0
	    c7t5d0   ONLINE       0     0     0
	cache
	  c7t4d0     ONLINE       0     0     0
	  c7t6d0     ONLINE       0     0     0
	spares
	  c7t22d0    AVAIL   

errors: No known data errors

Comments are closed.

Categories