ZFS – How to Create a Dynamic Stripe

0
65

A dynamic stripe is the most basic pool that can be created. There is no redundancy in this configuration. If any disk fails, then the whole pool is lost. Any pool created with multiple vdevs will dynamically stripe across each vdev or physical device.

You can use the zpool command with the subcommand to create a dynamic stripe. After the create subcommand is the name of the new ZFS pool, dstripe, and the disks that will comprise the pool.

unixadmin.net# zpool create dstripe c5t0d0 c5t1d0

The following listing presents the results of creating the ZFS pool dstripe. On line 2, zpool list is executed to list all the ZFS pools on the system. Line 3 starts a list of the available pools. The command gives you general information about the ZFS pools.

unixadmin.net# zpool create dstripe c5t0d0 c5t1d0
unixadmin.net# zpool list
NAME    SIZE  USED  AVAIL CAP HEALTH ALTROOT
dstripe 234M  75K   234M  0%  ONLINE -
rpool   15.9G 3.21G 12.7G 20% ONLINE -

zpool status is issued to inquire about the status of the ZFS pools. The status of the ZFS pool dstripe is displayed, with a normal status. Reading the config: section of the output in which the pool dstripe is shown as two concatenated disks, the vdevs (c5t0d0 and c5t1d0) that belong to the pool dstripe. The second pool listed is made of a single disk called rpool, configured as a dynamic stripe with only a single vdev (c3d0s0). It was created as part of the OS installation process.

unixadmin.net# zpool status
pool: dstripe
state: ONLINE
scrub: none requested
config:
NAME        STATE      READ WRITE CKSUM
dstripe     ONLINE        0     0     0
c5t0d0      ONLINE        0     0     0
c5t1d0      ONLINE        0     0     0
errors: No known data errors
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME        STATE      READ WRITE CKSUM
rpool       ONLINE        0     0     0
c3d0s0      ONLINE        0     0     0
errors: No known data errors

Below figure illustrates the resulting dynamic pool with its two vdevs of single non-redundant disks. Any problems with the disks (sector errors or disk failure) may result in the loss of the whole pool or data.

Dynamic stripe pool with two vdevs

dynamic-stripe-pool-with-two-vdevs

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here