← Back to team overview

touch-packages team mailing list archive

[Bug 1399595] Re: systemd is activating swap twice

 

This doesn't happen on my system, but this could be a bad interaction
between the GPT and the fstab generator. Can you please run the
following:

mkdir /tmp/fstab; /lib/systemd/system-generators/systemd-fstab-generator /tmp/fstab x x
mkdir /tmp/gpt; sudo /lib/systemd/system-generators/systemd-gpt-auto-generator /tmp/gpt x x
tar xf /tmp/result.tar /tmp/fstab /tmp/gpt

and then attach /tmp/result.tar here?

** Changed in: systemd (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1399595

Title:
  systemd is activating swap twice

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  systemd is activating swap twice, via its sda name and its uuid.

  It looks like it's because two swap units are being generated.

  
  # journalctl | grep swap | grep -v unit_create_cgroups
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition...
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb...
  Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy
  Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb.
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state.
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition.
  Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3.  Priority:-1 extents:1 across:8298492k SSFS

  
  # systemctl status dev-sda3.swap 
  ● dev-sda3.swap - Swap Partition
     Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap)
     Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago
       What: /dev/sda3
       Docs: man:systemd-gpt-auto-generator(8)
    Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS)

  Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition...
  Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition.

  
  # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap
  ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb
     Loaded: loaded
     Active: inactive (dead)
       What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb

  
  # swapon -s
  Filename				Type		Size	Used	Priority
  /dev/sda3                              	partition	8298492	0	-1

  
  # blkid /dev/sda3
  /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0"

  
  # find /run -name "*73d341f1*"
  /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap
  /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap
  /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb

  
  # find /run -name "*sda3*"
  /run/systemd/generator.late/swap.target.wants/dev-sda3.swap
  /run/systemd/generator.late/dev-sda3.swap

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: systemd 217-3ubuntu1
  ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
  Uname: Linux 3.16.0-25-generic x86_64
  ApportVersion: 2.14.7-0ubuntu10
  Architecture: amd64
  CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory
  Date: Fri Dec  5 04:51:30 2014
  MachineType: LENOVO 20266
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1
  SourcePackage: systemd
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/25/2014
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 76CN35WW
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: Yoga2
  dmi.board.vendor: LENOVO
  dmi.board.version: 31900058STD
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo Yoga 2 Pro
  dmi.modalias: dmi:bvnLENOVO:bvr76CN35WW:bd03/25/2014:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr31900058STD:cvnLENOVO:ct10:cvrLenovoYoga2Pro:
  dmi.product.name: 20266
  dmi.product.version: Lenovo Yoga 2 Pro
  dmi.sys.vendor: LENOVO
  mtime.conffile..etc.systemd.journald.conf: 2014-10-17T14:43:13.493155

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1399595/+subscriptions


References