Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shorten snapshot paths to fit 88 char limit in iocage jails #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rpepr
Copy link

@rpepr rpepr commented Apr 15, 2016

FreeBSD has a long standing limitation that mount paths be 88 characters or less. With adlbre-backup running inside an iocage jail this limit makes the zfs snapshots unmountable since the mount path for the jail adds at least 27 characters to the path. I got around this by giving snapshots 2 digit numeric names and renaming hosts to h. The original snapshot name is stored in l/snap_data.

A side benefit of this change is that the zfs mountpoint can differ from the dataset name. My data set has a longish name to fit my convention for jailed data. It gets mounted on /b.

The changes are activated by HACK88=1 in backup.conf.

RP

@macropin
Copy link
Contributor

macropin commented Jul 6, 2016

Thanks for this. I don't think we're going to merge this right now. But I'll leave it open in case someone else finds it useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants