KB450152 – Creating a ZVOL in CentOS

Last modified: February 3, 2020
You are here:
Estimated reading time: < 1 min
In this article

Creating ZVOL’s

A ZVOL is when you export your ZFS volume, or a chunk of it as a block device, which is needed for ISCSI.

What needs to be decided at this point is how many ISCSI volumes are going to be needed, as each client needs their own volume.

Below is an example showing how to make a 5TB ZVOL to be exported as a block device for ISCSI:

zfs create -V 5T zpool/disk1

Now if you use the ‘ lsblk ’ command again, you should see your ZVOL listed as device zd0, the next will be zd16, then zd32, etc.

Was this article helpful?
Dislike 0
Views: 332
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access