Is there a limit to the amount of ZFS filesystems?
Hi,
A have a ZFS filesystem, where I need to create individual directories for every client we have. For example:
zfs create Tank/Clients
mkdir Tank/Clients/ACME
mkdir Tank/Clients/Dharma
mkdir Tank/Clients/Momcorp
mkdir Tank/Clients/Etcetera
Instead of directories, I like to create ZFS filesystems. Like this:
zfs create Tank/Clients
zfs create Tank/Clients/ACME
zfs create Tank/Clients/Dharma
zfs create Tank/Clients/Momcorp
zfs create Tank/Clients/Etcetera
But that means I'm going to create around 1400 ZFS filesystems in Tank/Clients. And I'm not sure if this is a good idea.
Is there any limit to the amount of filesystem I can create? Or shouldn't it make any difference?
Edit: Thanks for the input everybody.
Posted Dec 10, 2019, 1:48 PM UTC · edited
Apparently the limit is 2^64 filesystems per zpool.
ZFS is designed to scale like crazy, don't worry about it.