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

swap zvol for default single partition installation #29

Closed
jgroenveld opened this issue Oct 1, 2018 · 6 comments
Closed

swap zvol for default single partition installation #29

jgroenveld opened this issue Oct 1, 2018 · 6 comments

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@jgroenveld
Copy link

@jgroenveld jgroenveld commented Oct 1, 2018

Installer should recommend, create, and add to fstab(5) a swap zvol 
in the case of a single zpool partition configuration without a dedicated swap gpart.
John
groenveld@acm.org
@RodMyers
Copy link
Contributor

@RodMyers RodMyers commented Nov 11, 2018

I don't think zfs creates an fstab entry.

@jgroenveld
Copy link
Author

@jgroenveld jgroenveld commented Nov 11, 2018

Currently its a manual, post-installation process:
# zfs create -V 8G tank/swap
# echo "/dev/zvol/tank/swap none swap sw 0 0" >>/etc/fstab
# swapon -a

John
groenveld@acm.org

@RodMyers
Copy link
Contributor

@RodMyers RodMyers commented Nov 11, 2018

RC3 adds it

cat /etc/fstab

Device Mountpoint FStype Options Dump Pass

/dev/label/swap0.eli none swap sw 0 0

@jgroenveld
Copy link
Author

@jgroenveld jgroenveld commented Nov 12, 2018

That's a GELI swap partition.
See gpart(8) show
John
groenveld@acm.org

@RodMyers
Copy link
Contributor

@RodMyers RodMyers commented Jan 22, 2019

what does

gpart show

show? Have you tried th RELEASE ISO?

@RodMyers
Copy link
Contributor

@RodMyers RodMyers commented Jan 22, 2019

gpart show
=> 40 468862048 ada0 GPT (224G)
40 204800 1 efi (100M)
204840 466538496 2 freebsd-zfs (222G)
466743336 2097152 3 freebsd-swap (1.0G)
468840488 21600 - free - (11M)

works, for me, in the RELEASE ISO

@RodMyers RodMyers closed this Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment