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

Can't create swapfile on btrfs #3713

Closed
ubuntu-server-builder opened this issue May 12, 2023 · 0 comments
Closed

Can't create swapfile on btrfs #3713

ubuntu-server-builder opened this issue May 12, 2023 · 0 comments
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1884127

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2020-06-18T18:48:25.197685+00:00
date_fix_committed = None
date_fix_released = None
id = 1884127
importance = undecided
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1884127
milestone = None
owner = falcojr
owner_name = James Falcon
private = False
status = triaged
submitter = falcojr
submitter_name = James Falcon
tags = []
duplicates = []

Launchpad user James Falcon(falcojr) wrote on 2020-06-18T18:48:25.197685+00:00

With a userdata definition like such:
#cloud-config
swap:
filename: /swap.img
size: 5000000
maxsize: 5000000

the swap file cannot be created on btrfs.

See https://wiki.archlinux.org/index.php/Swap#Swap_file

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 12, 2023
bin456789 added a commit to bin456789/cloud-init that referenced this issue Aug 14, 2023
To make a swapfile works on btrfs
We need to create an empty file, add "no copy-on-write" attribute
before turn it into swapfile

Fixes canonicalGH-3713
LP: #1884127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant