LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2016, 09:24 PM   #1
pmouse
LQ Newbie
 
Registered: May 2014
Posts: 12

Rep: Reputation: Disabled
systemd start job Times Out and Fails


When my netbook boots, it stalls for 1min 30sec while one "start job" tries and fails to complete. It times out and generates an error, but then the system boots. It's particularly a problem since I use this system to try testing kernels and other things, so I reboot it frequently.

The problem is, since this "start job" isn't a systemd "unit" I don't know how to find out what is wrong with it. I really don't know what this job is trying to do. The job is "dev-disk-by-uuid-<UUID>.device", where <UUID> looks like a UUID to me...except for two problems:

1) No such device with that UUID exists
2) I don't understand how these start jobs are created. I understand systemd units well enough, but I don't understand how to trace this failing job back to a broken unit or whatever is wrong.

Can someone help me troubleshoot this?
 
Old 05-05-2016, 02:32 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 478

Rep: Reputation: 91
Hi,

I have faced similar problems in the past.

Mine had been caused by a reformatted partition.
Reformatting changed the UUID of the partition, while the old UUID was still referred in GRUB configuration.
I just had to put the correct and new UUID in RUB configuration, rebuild it, and reboots were fixed.
For information the partition was the swap.
 
Old 05-05-2016, 04:55 AM   #3
pmouse
LQ Newbie
 
Registered: May 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi! Wow, that's something I hadn't considered.

I checked my system, which is EFI, BTW, and this bogus UUID does not appear in the grub.cfg.

I liked what you are saying about a reformatted partition; that fits. A while ago, I tried to use ecryptfs-setup-swap script to encrypt the swap partition. I think I've used it successfully a couple times before, but, converting swap on this system didn't work.

Thinking of that gave me somewhere to start. Assuming it was a crypt-related service, I found the systemd-cryptsetup@cryptswap1.device in systemdctl list-units. 'systemdctl show' on that *did* have the bogus UUID in it. I didn't know how to fix that though. Poking around more led to /etc/crypttab, which I never touched, but must have been setup by ecryptfs-setup-swap. It also had the wrong UUID in it. I fixed this file, after reading about how it works. I then replaced the regular swap entry in /etc/fstab with /dev/mapper/cryptswap1, which is the device name I configured in /etc/crypttab. I rebooted and it *didn't* stall on that non-existent device!

Oddly, now I have both /dev/mapper/swap, the old swap device, and /dev/mapper/cryptswap1 which is the one that is now mounted as swap. I don't know what causes that, but I don't think it's broken. It might not be exactly right; I'm not sure.

If you know how it should look, please tell me.
 
Old 05-05-2016, 11:37 AM   #4
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 478

Rep: Reputation: 91
Hi,

For the active swap you can launch
swapon -s

Generally there is a parameter resume in /etc/cmdline that specifies the swap partition used for hibernating.
Have a look at that.
 
Old 05-05-2016, 01:00 PM   #5
pmouse
LQ Newbie
 
Registered: May 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yeah, my active swap is the right one; it's the new one I encrypted. I'm just saying the old one is still around. Maybe it is okay. The old one is a LVM device; I guess they all get mapper names, now. So, the encrypted device is inside the LVM device. Yeah, I guess that's right. In the past, I think I had encrypted swap on raw partition, no LVM, so I my expectations may be inaccurate.

You mean /proc/cmdline? In mine, I see all LVM devices are listed, but there isn't anything that selects the swap device or hibernation device. Is there a kernel param that selects a file for hibernation independently of the swap device? I've never heard of that. AFAIK, it isn't possible to hibernate when using encrypted swap. If that has changed, I'm not aware of it.
 
Old 05-06-2016, 06:20 AM   #6
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 478

Rep: Reputation: 91
Hi,

Yes, I meant /proc/cmdline.
Mine is as below.
BOOT_IMAGE=/vmlinuz-4.4.8-300.fc23.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root resume=/dev/disk/by-uuid/1b28b7c7-26f9-4763-9ea8-21f2c99c9f96 rhgb quiet LANG=en_US.UTF-8

The bold part is the one related to swap used for hibernation.
 
  


Reply

Tags
systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
custom systemd httpd service fails to start on centos 7 mariogarcia CentOS 3 02-13-2016 03:51 AM
[SOLVED] [arch] ZFS daemon fails to start; Systemd journal not working Weapon S Linux - Software 4 07-10-2015 01:06 AM
Inconsistent job run times koullislp Linux - Enterprise 11 01-23-2013 06:14 AM
cron job running at unexpected times prl77 Linux - General 3 05-29-2012 07:41 PM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration