KB450152 – Creating a ZVOL in CentOS

Last modified: July 19, 2021
You are here:
Table of Contents

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: 370
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access