The problem is that a swapfile in btrfs cannot have CoW activated on the
file, and cannot be compressed. Also, you should not leave the file in
the root filesystem (even if it would work with the above settings)
because it will make snapshots of /@ messy.
If you manually do this, it will work:
-
I can confirm that with the proper Ubuntu 22.04 Beta on baremetal. I get
the error message on bootup. Is there a workaround?
(output of `swapon -s` is empty).
15:41:11 systemd-oomd: Swap is currently not detected; memory pressure usage
will be degraded
15:41:11 systemd: swap.target: Job swap.tar
** Also affects: partman-swapfile (Ubuntu)
Importance: Undecided
Status: New
** Changed in: ubiquity (Ubuntu)
Status: Confirmed => Invalid
** Changed in: partman-swapfile (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of
** No longer affects: ubuntu-mate
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
The swapfile on the Btrfs file system is not activated
To manage notifications about this bug go to:
h
What do you actually mean by "xubuntu-22.04-core-amd64.iso"? Is it
official daily image?
** Tags added: jammy
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
The swapfile on the Btrfs
This bug still remains in the latest Xubuntu CORE 22.04
(xubuntu-22.04-core-amd64.iso from the end of Feb 2022). During boot
process, I can briefly see "[FAILED] Failed to activate swap /swapfile"
and "[DEPEND] Dependency failed for Swaps". When I execute "sudo dmesg |
grep -i swap", I get some mor
Latest Ubuntu MATE 21.10 20210812 - btrfs rootfs, swapfile is not
attached (output of `swapon -s` is empty).
** Also affects: ubuntu-mate
Importance: Undecided
Status: New
** Tags removed: disco
** Tags added: impish iso-testing
--
You received this bug notification because you are a
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: ubiquity (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
T
Thanks for your work.
Can you please open a merge request at [1]? Thanks!
[1]https://salsa.debian.org/installer-team/partman-swapfile
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
Th
Hello. I finally managed to work and locate the files and the code to change to
make the swapfile work on Btrfs, I have tested it on several installations for
a few months and the swapfile is created both if you choose ext4 or btrfs.
I'm not a developer, so I don't know if the changes are correct
Hello. I finally managed to work and locate the files and the code to change to
make the swapfile work on Btrfs, I have tested it on several installations for
a few months and the swapfile is created both if you choose ext4 or btrfs.
I'm not a developer, so I don't know if the changes are correct
Hello. I finally managed to work and locate the files and the code to change to
make the swapfile work on Btrfs, I have tested it on several installations for
a few months and the swapfile is created both if you choose ext4 or btrfs.
I'm not a developer, so I don't know if the changes are correct
Hello. I finally managed to work and locate the files and the code to change to
make the swapfile work on Btrfs, I have tested it on several installations for
a few months and the swapfile is created both if you choose ext4 or btrfs.
I'm not a developer, so I don't know if the changes are correct
I tried to make it work, doing a Ubuntu ISO chroot (I used Cubic
software), I saw the part where the Btrfs subvolts are created and tried
to modify them, obviously not having the skills in an advanced way, I'm
not managed to make it work.
I ran it manually after installation:
mount -t btrfs -o opt
Hello. Are there any news? Will it be correct for the 20.04 LTS release?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
The swapfile on the Btrfs file system is not activated
To manag
Now it works, swapfile will activate and work.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
The swapfile on the Btrfs file system is not activated
To manage notifications about this
So the swapfile needs to be NOCOW before allocation [1]:
# truncate -s 0 /swapfile
# chattr +C /swapfile
# fallocate -l 512M /swapfile
We should make the installer use these steps instead.
[1] https://wiki.archlinux.org/index.php/Swap#Swap_file_creation
** Also affects: ubiquity (Ubuntu)
Impo
I don't know if it's useful, but I paste my "/etc/fstab" configuration
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if dis
Unfortunately it doesn't help.
mar 29 12:01:18 notebook-Lenovo-V110 sudo[11977]:emanu : TTY=pts/1 ;
PWD=/home/emanu ; USER=root ; COMMAND=/usr/bin/chattr +C /swapfile
mar 29 12:02:20 notebook-Lenovo-V110 kernel: BTRFS warning (device sda1):
swapfile must not be copy-on-write
Does "sudo chattr +C /swapfile" help?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1818811
Title:
The swapfile on the Btrfs file system is not activated
To manage notifications about this bug go t
I forgot to mention that the swapfile was created during the
installation of Ubuntu 19.04, not selecting any swap partition, knowing
that the swapfile would be activated and that the support would be
shortly arrived for the swapfile, on the 5. * kernel
--
You received this bug notification becaus
21 matches
Mail list logo