[ec2-beta] Starting a script after attaching an EBS volume?

matzseiji sej.matz at gmail.com
Mon Mar 9 04:36:08 GMT 2009


On attaching a volume(ami-1a5db973) /var/log/kern.log says
xxxxxxxxxxxxxxxx kernel:  sdf: unknown partition table.
Can be used as trigger?
tail -n0 -f /var/log/kern.log | grep -m1 sdf && trigger.sh

--
matzseiji

On Sat, Mar 7, 2009 at 12:48 AM, uona at sineta.de <uona at sineta.de> wrote:
> Hello,
>
> first of all thanks for all your comments...
>
>> How about just including the EBS volume mount part as the first part of your
>> script, or which just mounts the volume and, if successful, execs to become your
>> other script?
>
> Yes, thats the same idea Thomas has suggested.  I think this will be a
> feasable way to go...
>
> But what about with daemons like "udev" and "HAL"?  Can these internal
> systems help us as well?
>
>
> @Neale: I want to attach an EBS volume to an already running EC2
> instance. For that you can use the command line tool
> "ec2-attach-volume" or you can use the "AWS Management Console".  Lets
> say you have your database storage files on your EBS volume and you
> want to startup your database on your EC2 instance only if this EBS
> volume is successfully attached.  Therefore such a trigger event could
> be useful.
>
> Once again thanks for all the comments and
>
> Kind Regards
> Michael
>
> --
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2-beta
>




More information about the Ec2-beta mailing list