While it is possible to run a zpool on thin-provisioned storage, not all versions and patch levels of Solaris support the Logical Block Provisioning (LBP) SCSI feature. There’s even some question as to whether the versions that do support LBP support it well enough. It’s not wise to thin provision the underlying storage unless you’re sure that both your version of Solaris and your storage array do support LBP well. Without LBP’s SCSI UNMAP command or some other technology, like the ATA TRIM command, it doesn’t make any sense to use a copy-on-write (CoW) filesystem on thin-provisioned storage. You’ll quickly end up provisioning the maximum size of the LUN as if it was thick provisioned but you’ll pay a performance penalty for allocating the storage incrementally. Since the storage system doesn’t understand the ZFS on-disk format, it can’t keep the filesystem from getting corrupted if the volume runs out of space. Some of the reasons it might run out of space include not allocating enough volume space to hold the LUN, oversubscribing your storage pool (called an aggregate in the NetApp world but other vendors likely have their own names), or thin-provisioning your volume without taking due care (as we saw last time).
On the other hand, if you’re serving out an NFS share from a NAS then thin provision all day long if you like. The storage system is using its own filesystem — which it understands well — as a backing store. If the volume fills up then the NAS simply returns an ERR_NOSPC when a client tries to write to it.
References
- Oracle: REPAT/ SCSI UNMAP on an OVM SPARC or a Kernel Zone Configuration (Doc ID 2073016.1) (My Oracle Support account required)
- NetApp: What are the recommendations for the host stacks supporting SCSI UNMAP (TRIM) commands?
- Scott’s Blog: ZFS and Intelligent Storage