LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-31-2016, 09:42 PM   #1
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Rep: Reputation: 15
Saving random seed failed.


Hey Guy's,

I'm receiving this 'Saving random seed failed.' from running mkdumprd.

PHP Code:
[root@mbpc-pc cores]#
[root@mbpc-pc cores]# df -m /var/crash
Filesystem           1M-blocks  Used Available Use Mounted on
/dev/mapper/mbpcvg-rootlv
                         31370 16722     13049  57
% /
[
root@mbpc-pc cores]# service kdump start
No kdump initial ramdisk found.                            [WARNING]
Rebuilding /boot/initrd-2.6.32-573.12.1.el6.x86_64kdump.img
DEVYN
: /sbin/mkdumprd --f  /boot/initrd-2.6.32-573.12.1.el6.x86_64kdump.img 2.6.32-573.12.1.el6.x86_64 ...
Saving random seed failed.
Failed to run mkdumprd
[root@mbpc-pc cores]#
[root@mbpc-pc cores]#
[root@mbpc-pc cores]#
[root@mbpc-pc cores]# /sbin/mkdumprd -d -f  /boot/initrd-2.6.32-573.12.1.el6.x86_64kdump.img 2.6.32-573.12.1.el6.x86_64
Saving random seed failed.
[
root@mbpc-pc cores]
Based on the sources, it looks like it's running this command:


PHP Code:
[ ! -d $MNTIMAGE/var/lib ] && mkdir -p $MNTIMAGE/var/lib
inst 
/var/lib/random-seed $MNTIMAGE/var/lib/random-seed 2>/dev/null || {
    
error "Saving random seed failed."
    
cleanup_and_exit 1

but I haven't another Linux system to compare this too so I'm not sure which RPM package provides the above /var/lib/random-seed (it's missing on my system) or if something else is broken if it's not a missing RPM.

Any help would be appreciated. This is RHEL / CentOS compatible linux 6.6 (Scientific Linux).

Cheers,
DH

Last edited by Devyn; 02-14-2016 at 11:38 AM.
 
Old 02-01-2016, 01:33 PM   #2
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
rpm -q --whatprovides random-seed ?
 
Old 02-08-2016, 10:17 PM   #3
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Well on mine it's none because the file /var/lib/random-seed doesn't exist. So I can't really check:

# rpm -q --whatprovides random-seed
no package provides random-seed
#

How is this file created?

Cheers,
DH
 
Old 02-09-2016, 03:49 PM   #4
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Google /var/lib/random-seed and you find that it is a file to which the random seeds are stored.
You might want to check if you have the file and otherwise just touch it and see it that works.
 
Old 02-12-2016, 07:50 AM   #5
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hoes View Post
Google /var/lib/random-seed and you find that it is a file to which the random seeds are stored.
You might want to check if you have the file and otherwise just touch it and see it that works.
Tried with 0 byte and 512 then 1024. App now freezes instead of printing that message. I'll try this again later. I'll try a copy from another system as well.

Cheers,
DH
 
Old 02-13-2016, 03:05 AM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
What about this link: https://bugzilla.redhat.com/show_bug.cgi?id=1045891
It seems that /var/lib/random-seed is found in /var/lib/systemd/random-seed
This is also the case for me.
 
Old 02-14-2016, 11:25 AM   #7
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks hoes! That one wasn't found either on this 6.7 Scientific Linux. I think I'll leave figuring this out as I've other items I need to resolve first of higher priority and this file might reappear with one of the updates.

Cheers,
DH
 
Old 02-14-2016, 11:38 AM   #8
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Ok I just wanted it more then not. So I recreate it in this manner:

Quote:
[root@mbpc-pc qla2464-firmware]#
[root@mbpc-pc qla2464-firmware]# ls -altri /var/lib/systemd/random-seed
ls: cannot access /var/lib/systemd/random-seed: No such file or directory
[root@mbpc-pc qla2464-firmware]# ls -altri /var/lib/random-seed
ls: cannot access /var/lib/random-seed: No such file or directory
[root@mbpc-pc qla2464-firmware]# dd if=/dev/urandom of=/var/lib/random-seed bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000944831 s, 1.1 MB/s
[root@mbpc-pc qla2464-firmware]# ls -altri /var/lib/random-seed
135115 -rw-r--r--. 1 root root 1024 Feb 14 12:28 /var/lib/random-seed
[root@mbpc-pc qla2464-firmware]# dd if=/dev/urandom of=/var/lib/systemd/random-seed bs=1024 count=1
dd: opening `/var/lib/systemd/random-seed': No such file or directory
[root@mbpc-pc qla2464-firmware]#

However when I try to start kdump this is what I get and it doesn't even begin to create the file it says it's creating:

Quote:
[root@mbpc-pc qla2464-firmware]# service kdump start
No kdump initial ramdisk found. [WARNING]
Rebuilding /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img
DEVYN: /sbin/mkdumprd -d -f /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img 2.6.32-573.12.1.el6.scst.x86_64 ...

Strace of /etc/init.d/kdump start

Quote:
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x33796326a0}, {0x43d360, [], SA_RESTORER, 0x33796326a0}, 8) = 0
write(1, "Rebuilding /boot/initrd-2.6.32-5"..., 65Rebuilding /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img
) = 65
write(1, "DEVYN: /sbin/mkdumprd -d -f /boot"..., 117DEVYN: /sbin/mkdumprd -d -f /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img 2.6.32-573.12.1.el6.scst.x86_64 ...
) = 117
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f7dc18159d0) = 27818
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43d360, [], SA_RESTORER, 0x33796326a0}, {SIG_DFL, [], SA_RESTORER, 0x33796326a0}, 8) = 0
wait4(-1, ^CProcess 27782 detached
<detached ...>



Cheers,
DH

Last edited by Devyn; 02-14-2016 at 11:39 AM.
 
Old 02-14-2016, 11:42 AM   #9
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Ok never mind. Seems to be ok now, just took a few minutes:

[root@mbpc-pc qla2464-firmware]# service kdump start
No kdump initial ramdisk found. [WARNING]
Rebuilding /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img
DEVYN: /sbin/mkdumprd -d -f /boot/initrd-2.6.32-573.12.1.el6.scst.x86_64kdump.img 2.6.32-573.12.1.el6.scst.x86_64 ...
Warning: There might not be enough space to save a vmcore.
The size of UUID=af6c5c11-6f1c-4735-8a7b-9869613de495 should be greater than 3526912 kilo bytes.
Starting kdump: [ OK ]
[root@mbpc-pc qla2464-firmware]#

Thank you guy's for helping out on this thread. Much appreciated!

Cheers,
DH
 
  


Reply



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
Random seed Amidm Linux - Kernel 3 07-02-2015 01:28 PM
Random Seed. What is it? cwizardone Slackware 6 03-24-2007 05:39 AM
system hanging on 'Saving random seed' PennyroyalFrog Linux - Newbie 9 10-01-2005 02:45 PM
Kernel panic while saving random seed SAnton Linux - Software 1 09-27-2005 03:01 AM
using /dev/(u)random for seed ? PTBmilo Programming 2 04-15-2003 01:19 AM

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

All times are GMT -5. The time now is 12:53 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
Open Source Consulting | Domain Registration