Page MenuHomeDevCentral

Create home directories as zfs filesystems
Closed, ResolvedPublic

Description

Currently, we've a arcology/usr/home filesystem.

To provision user directories, we can create as man filesystems as users.

That will allow to offer zfs control to users:

  • allow the use of zfs send or zfs receive for backups purpose
  • allow custom snapshots
  • allow clones

Related Objects

Event Timeline

Setup
$ zfs allow -s @local allow,clone,create,diff,hold,mount,promote,receive,release,rollback,snapshot,send arcology/usr/home
$ zfs allow -s @descendent allow,clone,create,diff,destroy,hold,mount,promote,receive,release,rename,rollback,snapshot,send arcology/usr/home
Create user dataset
$ zfs create arcology/usr/home/spike
$ zfs allow -lu spike @local arcology/usr/home/spike
$ zfs allow -du spike @descendent arcology/usr/home/spike

zfs allow isn't currently available in salt.states.zfs, and it's not really a problem to run again the permission command, so probably a cmd.run with require state to the ZFS create dataset operation.

dereckson claimed this task.

Migrating existing home directories