Document zvol path length limitation
We are using some virtualised FreeNAS installations (Build FreeNAS-11.0-RELEASE (a2dc21583)) on Dell servers and ESXi 6.5 hypervisors with enterprise SSDs on LSI 9271 IT-Mode HBAs passed-through to the FreeNAS VMs.
So far they have proven very dependable.
I successfully replicated a Dataset containing 2 ZVols by the semi-auto method via VPN from one server to another after creating a periodic snapshot.
On the primary (sending) site, those 2 ZVols serve as ISCSi extents in a vSphere environment flawlessly.
However, on the receiving site I can only use one of the two ZVols as an extent for iSCSI sharing, which works perfectly with ESXi (after cloning a snapshot and removing the Read-Only attribute.)
After I select the second ZVol in the drop-down menu for adding an extent in the iSCSI Sharing section, I get the following error message in the menu itself:
<< Zvol "zvol/tank2/MasterDR/xxx/xxxVMSystems211-clone-auto-20170705.1658-2m" does not exist >>
I also tried to mount the replicated ZVol directly without doing a snapshot, but I get the same error.
When I try to copy the ZVol by ZFS send | recv, I also get the following error:
<< cannot open 'zvol/tank2/MasterDR/xxx/xxxVMSystems211': dataset does not exist
cannot receive: failed to read from stream >>
Then I tried to directly replicate only the ZVol, which completed successfully, incrementally several time with with auto-snapshots. I got the same error.
The replications seem to succeed and the space used is visible in the Storage section of the GUI, but the systems keeps telling that the ZVol doesn't exist.
I also tried to set the zfs set volmode=geom on the device and reboot, without success.
Would anyone be able to share some hints or ideas on where to look ?
Many thanks !
#2 Updated by Alexander Motin almost 4 years ago
- Status changed from Unscreened to Closed: Not To Be Fixed
- Priority changed from No priority to Important
The problem is very likely in the name length of the ZVOL device in devfs. The problem is that FreeBSD devfs has path length limitation of only 63 chars, and your name is obviously longer. Unfortunately it can't be easily changed. You may try to specify shorter name when cloning, and it should probably help.