System Administration & Network Administration
nfs zfs disk-volume
Updated Tue, 05 Jul 2022 03:11:42 GMT

Can I access a ZFS Volume as if it were a file?


Ok... sounds like a strange question, but bear with me. Can I access a ZFS volume as if it were a file? Specifically, can I share a ZFS volume as a file over NFS?

Here's what I'm doing: I have ZFS Volumes which I am sharing via iSCSI to a Mac OS X workstations. The workstations format the iSCSI devices as Mac OS X extended, and then back up to them.

What I'd like to do is take snapshots from previous backups and make them available as OS X .dmg files. If I could somehow take the ZFS volume and share it over NFS to the OS X clients, named something.dmg, they should be able to mount the volume on their desktops and view all the files therein...

Is this possible..?




Solution

That's pretty convoluted. You can just take ZFS snapshots of your original backups, share them out as iSCSI volumes and mount them on the Macintosh workstations as (read-only?) Mac-formatted drives. The .dmg portion is unnecessary.





Comments (3)

  • +0 – Also, anything is Unix is a file, including partitions. @ewwite's answer is what you want to do, but you could read it directly as a file. — Jun 07, 2011 at 01:26  
  • +0 – @Jeff: That's my thinking: Where is the file? If I can read it out as a file, I can present it to the macs as a DMG file. The DMG file is only necessary for the macs to be able to netboot off it, which is my goal — Jun 07, 2011 at 12:07  
  • +0 – I'm going to accept your answer, but really it's more because I realize that my problem is the backup server just can't seem to handle the traffic going to it... or something. Even over iSCSI, the connection between the clients and the server keeps getting broken, so, I have a different problem here. — Jun 08, 2011 at 12:25