[ec2-beta] apt-get install autofs hangs

Paul Cullum paul at cullum.ca
Fri Mar 13 15:01:04 GMT 2009


Sorry... I don't know why I didn't notice this right away.  My apt-get 
install doesn't have a -y option.  I added that, tried again and it 
works fine.  It was just waiting for a "Yes" response.

Despite that, my question about success with autofs still stands.


Paul Cullum wrote:
> BTW.  Has anyone here successfully used autofs to mount attached EBS 
> volumes?  It's one approach I'm trying to figure out and I haven't had 
> any success yet.  It should be possible and if it turns out to work 
> well perhaps we could consider autofs to be part of the base AMI?
>
> Paul Cullum wrote:
>> My ec2-run-user-data script does a number of things including 
>> installing some packages.  The last package it tries to install is 
>> autofs and for whatever reason, this hangs when installed from the 
>> script.
>> I'm going to take a wild guess here but... what happens to the stdout 
>> and stderr of this script and processes called by these scripts?  I 
>> know a process will hang when it can't write anymore to stdout and 
>> stderr.  That output needs to be consumed.
>>
>> Or is there something else going on here?  If it is an issue with 
>> stdout then perhaps my "apt-get update" is too verbose.  I might try 
>> this again with some some stdout redirects to /dev/null.
>>
>> root      3108  0.0  0.0   1848   568 ?        S    09:30   0:00 
>> /bin/sh /etc/rc2.d/S90ec2-init start
>> root      3131  0.0  0.2   6512  4136 ?        S    09:30   0:00 
>> /usr/bin/python /usr/sbin/ec2-run-user-data
>> root      3132  0.0  0.0   1768   536 ?        S    09:30   0:00 
>> logger -t user-data
>> root      3133  0.0  0.0   1848   492 ?        S    09:30   0:00 sh 
>> -c /tmp/tmpjNVKT2 | logger -t "user-data"
>> root      3134  0.0  0.0   2844  1244 ?        S    09:30   0:00 
>> /bin/bash /tmp/tmpjNVKT2
>> root      3136  0.0  0.0   1768   536 ?        S    09:30   0:00 
>> logger -t user-data
>> root      3190  0.0  0.1   8580  3032 ?        Ss   09:30   0:00 
>> sshd: root at pts/0
>> root      3194  0.0  0.1  16708  2812 ?        Ssl  09:30   0:00 
>> /usr/sbin/console-kit-daemon
>> root      3264  0.0  0.1   4212  1816 pts/0    Ss   09:30   0:00 -bash
>> root      3312  0.4  0.9  19312 16420 ?        S    09:31   0:04 
>> apt-get install autofs
>> root      3467  0.0  0.0   2748  1008 pts/0    R+   09:50   0:00 ps aux
>>
>> Paul
>
>





More information about the Ec2-beta mailing list