For example, if I wanted to create a 1 GB ZVOL, I could issue the following command. To create a ZVOL, we use the "-V" switch with our "zfs create" command, and give it a size. First, we need to learn how to create a ZVOL. We'll look at three of them here- swap, ext4, and VM storage. Because it's a legitimate block device, you can do some very interesting things with your ZVOL. It gets to take advantage of the ZIL and ARC. It gets to take advantage of online scrubbing, compression and data deduplication. It gets to take advantage of the copy-on-write benefits, such as snapshots. This means that the single block device gets to take advantage of your underlying RAID array, such as mirrors or RAID-Z. Now we get our hands dirty with ZVOLs.Ī ZVOL is a ZFS block device that resides in your storage pool. Yet somehow, we've managed to escape all that with ZFS. I mean, on GNU/Linux, when working with filesystems, you're constantly working with block devices, whether they be full disks, partitions, RAID arrays or logical volumes. It's almost like ZFS is behaving like a userspace application more than a filesystem. So far, when dealing with the ZFS filesystem, other than creating our pool, we haven't dealt with block devices at all, even when mounting the datasets. The Adjustable Replacement Cache (ARC)Ī ZVOL is a "ZFS volume" that has been exported to the system as a block device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |