Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

corosync-keygen doesnt produce anything

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


daniel at bestningning

Feb 12, 2010, 7:13 AM

Post #1 of 9 (5488 views)
Permalink
corosync-keygen doesnt produce anything

I pressed some keys and enter after the following prompt:

Corosync Cluster Engine Authentication key generator.
Gathering 1024 bits for key from /dev/random.
Press keys on your keyboard to generate entropy.


But nothing happens and no authkey was produced. Is this a know issue?


Thanks,
Daniel

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


ivoks at ubuntu

Feb 12, 2010, 8:26 AM

Post #2 of 9 (5447 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

On 12.02.2010 16:13, Daniel Qian wrote:

> Corosync Cluster Engine Authentication key generator.
> Gathering 1024 bits for key from /dev/random.
> Press keys on your keyboard to generate entropy.
>
>
> But nothing happens and no authkey was produced. Is this a know issue?

If you are connected remotely to your server, pressing keys won't do you
any good. Download linux kernel source, untar it and run find /
(everything while corosync-keygen is running :)

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


daniel at bestningning

Feb 12, 2010, 8:39 AM

Post #3 of 9 (5448 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

----- Original Message -----
From: "Ante Karamatic" <ivoks [at] ubuntu>
To: <pacemaker [at] oss>
Sent: Friday, February 12, 2010 11:26 AM
Subject: Re: [Pacemaker] corosync-keygen doesnt produce anything


> On 12.02.2010 16:13, Daniel Qian wrote:
>
>> Corosync Cluster Engine Authentication key generator.
>> Gathering 1024 bits for key from /dev/random.
>> Press keys on your keyboard to generate entropy.
>>
>>
>> But nothing happens and no authkey was produced. Is this a know issue?
>
> If you are connected remotely to your server, pressing keys won't do you
> any good. Download linux kernel source, untar it and run find /
> (everything while corosync-keygen is running :)
>

Sorry I dont understand the kernel source part. Can you explain?

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


ivoks at grad

Feb 12, 2010, 8:45 AM

Post #4 of 9 (5449 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

On 12.02.2010 17:39, Daniel Qian wrote:

> Sorry I dont understand the kernel source part. Can you explain?

cd /tmp
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.8.tar.bz2
tar xvfj linux-2.6.32.8.tar.bz2
find .

that should create enough i/o, needed for entropy.

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


daniel at bestningning

Feb 12, 2010, 9:05 AM

Post #5 of 9 (5450 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

----- Original Message -----
From: "Ante Karamatic" <ivoks [at] grad>
To: <pacemaker [at] oss>
Sent: Friday, February 12, 2010 11:45 AM
Subject: Re: [Pacemaker] corosync-keygen doesnt produce anything


> On 12.02.2010 17:39, Daniel Qian wrote:
>
>> Sorry I dont understand the kernel source part. Can you explain?
>
> cd /tmp
> wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.8.tar.bz2
> tar xvfj linux-2.6.32.8.tar.bz2
> find .
>
> that should create enough i/o, needed for entropy.
>

So the point is to create some significant disk i/o on the server? or to
create enough output to the stand output? In the later case `cat bigfile`
will do the same trick, right?


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


ivoks at grad

Feb 13, 2010, 4:14 AM

Post #6 of 9 (5444 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

On 12.02.2010 18:05, Daniel Qian wrote:

> So the point is to create some significant disk i/o on the server? or to
> create enough output to the stand output? In the later case `cat
> bigfile` will do the same trick, right?

'The Linux kernel generates entropy from keyboard timings, mouse
movements, and IDE timings and makes the random character data available
to other operating system processes through the special files
/dev/random and /dev/urandom.'

http://en.wikipedia.org/wiki/Entropy_(computing)

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


daniel at bestningning

Feb 13, 2010, 11:13 AM

Post #7 of 9 (5442 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

----- Original Message -----
From: "Ante Karamatić" <ivoks [at] grad>
To: <pacemaker [at] oss>; "Daniel Qian" <daniel [at] bestningning>
Sent: Saturday, February 13, 2010 7:14 AM
Subject: Re: [Pacemaker] corosync-keygen doesnt produce anything


> On 12.02.2010 18:05, Daniel Qian wrote:
>
>> So the point is to create some significant disk i/o on the server? or to
>> create enough output to the stand output? In the later case `cat
>> bigfile` will do the same trick, right?
>
> 'The Linux kernel generates entropy from keyboard timings, mouse
> movements, and IDE timings and makes the random character data available
> to other operating system processes through the special files /dev/random
> and /dev/urandom.'
>
> http://en.wikipedia.org/wiki/Entropy_(computing)
>

Thanks for enlightening information Ante. I wasnt familiar with this Entropy
topic.

Rignt now I am remotely connected to the server through SSH. Mouse movements
isnt an option. Keyboard doesnt seem to work for me either. So I am
wondering what is the common way to produce the enough random bytes in
entropy pool in my situation. All I want is to create an authkey once

Regards,
Daniel


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


ivoks at ubuntu

Feb 13, 2010, 11:25 AM

Post #8 of 9 (5455 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

On 13.02.2010 20:13, Daniel Qian wrote:

> Rignt now I am remotely connected to the server through SSH. Mouse
> movements isnt an option. Keyboard doesnt seem to work for me either. So
> I am wondering what is the common way to produce the enough random bytes
> in entropy pool in my situation. All I want is to create an authkey once

Well, disk input/output. That's why I said you should download kernel
source, unpack it and make disk do lots of reading (find command).

You could do anything, it's just important that it generates disk reads
or/and writes.

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


daniel at bestningning

Feb 13, 2010, 11:53 AM

Post #9 of 9 (5455 views)
Permalink
Re: corosync-keygen doesnt produce anything [In reply to]

----- Original Message -----
From: "Ante Karamatic" <ivoks [at] ubuntu>
To: <pacemaker [at] oss>
Sent: Saturday, February 13, 2010 2:25 PM
Subject: Re: [Pacemaker] corosync-keygen doesnt produce anything


> On 13.02.2010 20:13, Daniel Qian wrote:
>
>> Rignt now I am remotely connected to the server through SSH. Mouse
>> movements isnt an option. Keyboard doesnt seem to work for me either. So
>> I am wondering what is the common way to produce the enough random bytes
>> in entropy pool in my situation. All I want is to create an authkey once
>
> Well, disk input/output. That's why I said you should download kernel
> source, unpack it and make disk do lots of reading (find command).
>
> You could do anything, it's just important that it generates disk reads
> or/and writes.
>

It appears downloading of the packages produces much more random bytes then
find. But I have got your point now.

Thanks,
Daniel


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.