/srv/irclogs.ubuntu.com/2009/08/14/#ubuntu-ec2.txt

erichammonderikd: You might find that AMI storage is pretty cheap (cents per image per month).  I have over 500 AMIs listed.02:45
erichammonderikd: The entire image is uploaded to S3 in the bundle.02:45
erichammondThe only dependencies it might have are the kernel (AKI) and ramdisk (ARI).02:45
erichammondIf the kernel or ramdisk are deleted by their owners, then you would need to specify different ones when running your image.02:46
cagdashi all08:15
cagdashow to we bundle images downloaded from ec2-images.ubuntu.com08:16
cagdasi didn't figure it out08:16
cagdasin other words how do we convert these images to AMIs08:17
sorencagdas: You use ec2-bundle-image.08:19
sorencagdas: Let me see if I can find some instructions somewhere.08:19
cagdasthanks soren08:19
cagdasit would be good if this is added to the topic part of this channel08:20
sorencagdas: I'm not sure we have any good docs on the subject. I recommend you look at the documentation for ec2-bundle-image and just ask me if you have specific questions.08:33
cagdasthanks soren08:33
cagdasi think i handled after your comment08:33
cagdasi used ec2-bundle-image08:33
sorenOh, fantastic.08:33
cagdasthen used ec2-upload-bundle08:33
cagdasnow i have an AMI08:34
cagdasans I just launched a new instance after registering my AMI08:34
cagdashowever, I'm waiting for ssh to be available on there08:34
cagdasit says operation timeout08:35
cagdasis it possible that ubuntu images do not have sshd working by default?08:35
cagdas(i have opened the ports already on amazon ec2 security group)08:35
cagdasit looks like i failed to define kernel-id and ramdisk-id08:48
cagdaswhere do i define them?08:48
cagdaswhile bundling the image?08:48
cagdasor while launching an instance?08:48
elmoroHello to ALL08:52
elmoroi have a problem with  ec2-running-instances (eu-west-1) with the error keypair not exist. I have a working key pair but it will not be found08:54
elmoroalso in the aws console i have only one existing keypair - when i use the ec2-describe-keypairs then i get my 3 generated keypairs.08:55
sorenelmoro: Keypairs are local to regions. Could that explain it?10:21
sorenelmoro: I.e. a keypair generated in us-east-1 does not exist in eu-west-1.10:22
elmorook thy11:46
elmoroi think i generated it in US and then later i want to use it in Eu region. Thx11:47
deadprogrammeranyone have trouble with apt-get upgrade of module-init-tools (3.3-pre11-4ubuntu5.8.04.1)?15:20
deadprogrammersudo apt-get upgrade has me hungup forever on module-init-tools... and my poor server is in quite a sad state15:33
=== nijaba` is now known as nijaba
elmoroanyone has experience with real time kernel for Gameserver ?  The ping performance is bad and the cpu is 99% idle?16:14
deadprogrammersudo apt-get upgrade has me hungup forever on module-init-tools... and my poor server is in quite a sad state :(16:19
jeremydeielmoro:  what gameserver are you running?17:38
elmorohl2 dedicated server18:15
elmoroand in the future cod4 and tf2/battlefield18:16
elmorobut with the small instance - the ping performance is not the best. At the weekend i will try the bigger machines18:17
jeremydeielmoro: interesting.  I haven't tried it (running source server) yet, but I would like to.  Are you using Elastic IP?  you may want to try that also, maybe there's some magic there that can help the ping18:23
elmorothe perfomance seem to be okay (tick 66)18:32
elmorobut the ping looks bad18:32
elmoroyes i use elastic ip..18:32
deadprogrammeranyone using ebs with xfs?18:45
=== erichammond1 is now known as erichammond
=== natea is now known as natea|lunch
=== natea|lunch is now known as natea
erichammonddeadprogrammer: Yes, I use EBS with XFS and MySQL on production servers.20:18
deadprogrammerHi erichammond20:58
deadprogrammeryes I am running mysql well... this time it is postgresql20:59
deadprogrammerI am running an somewhat older hardy that is based on one of your older amis20:59
deadprogrammerit has been running in production for a while20:59
deadprogrammeruntil earlier todau when and apt-get upgrade when bad21:00
deadprogrammermodule-init-tools (3.3-pre11-4ubuntu5.8.04.1) hung, and then I have been unable to get the instance back to 'normal'21:02
deadprogrammerso then I decided to just launch a new instance from the AMI21:03
deadprogrammerI noticed the snapshot did not appear to have my actual database... it was as if no data had ever been saved to the EBS volume21:04
deadprogrammerhence my original question... anyone running Postgresql on EBS using XFS should have been the specific question21:04
erichammonddeadprogrammer: I don't know what might have happened to cause the upgrade to hang.  I am not able to reproduce it myself.21:06
erichammondThe "empty EBS volume" is a commonly reported problem.21:06
deadprogrammerurg... first time I have run into it21:06
erichammondHowever, it always seems to turn out to be user error.21:06
erichammondCommon causes include:21:06
erichammond- The volume was not mounted where you thought it was21:07
erichammond- The snapshot was of the wrong volume21:07
erichammond- On mounting the new volume, you ran "mkfs" and overwrote the files21:07
deadprogrammerthis server has been running since march... and did not re-run mkfs on this restore attempt21:08
erichammondIt can be very tricky to get everything in the right place all the time with EBS volumes and snapshots, especially since there the ids are opaque.21:08
deadprogrammeryes, I keep thinking I must have made an error somewhere21:09
erichammondIs the original volume still attached to the instance?21:09
deadprogrammeryes21:09
deadprogrammerbut the files are not there on that volume21:09
erichammondYou can connect to the instance?21:09
deadprogrammerthere are the original databases21:09
deadprogrammerI am still connected to it21:09
deadprogrammerpostgresql was removed as part of the apt-get upgrade, so I cannot just start the server to see if there database is "there"... but postgres is fairly transoprent about certain things21:10
deadprogrammerlike there is an actual file on disk that show what databases exist for that server21:11
erichammondI'm confused.  You have the original EBS volume attached to the original EC2 instance, and you have mounted the file system on that volume, but it is empty?21:11
deadprogrammernot empty... it does not have the database I expect to be there. I can tell by examing the file system on that volume21:12
deadprogrammerlikewise, a new instance with an EBS volume created from any snapshot, has only those same databases... but not my production database21:13
erichammondAh, I see.  You had a database in Postgres, but now you can't find where the files for that database reside.21:13
deadprogrammerexactly21:14
deadprogrammeras if postgres never actually wrote any updates to the file system21:14
deadprogrammerdespite the facts that it has been running for months21:14
deadprogrammerand has been updated at least once without event21:14
erichammondI don't know Postgres, but if this were MySQL, I would suspect that the configuration was pointing to database files which were not on the EBS volume or that the EBS volume was not mounted at the time the database was running.21:21
erichammondHave you looked "under" the EBS file system mount point? I.e., umount and look at the mount point directory/21:22
erichammond?21:22
deadprogrammerhow do I look at the mount point directory?21:24
erichammondWhere is the EBS volume mounted?21:24
deadprogrammerI just umount /vol21:24
deadprogrammerit is /dev/sdh21:24
erichammondsudo umount /vol21:24
erichammondls /vol21:24
deadprogrammerdevice dev/sdh mapped to /vol21:24
deadprogrammerafter I umount I see the correct data!21:25
deadprogrammerso do not umount?21:26
deadprogrammerwell not sure if "correct data" but at least I see entry in file that indicates that database existing21:28
deadprogrammerI think you have just saved me from myself... thanks erichammond for your time, I sincerely appreciate your expertise21:29
deadprogrammerone last question however. since I seem to have messed up, but having a directory on /dev/sda1 named /vol21:33
deadprogrammerhow can I get my EBS volume mounted21:33
deadprogrammer?21:34
deadprogrammerjust correct fstab and mount -a?21:34
erichammondI can't provide specifics since I don't have access to all the details of your configuration, but you probably need to move the existing (good) contents of /vol aside, mount the EBS volume, copy the good contents onto the volume, snapshot the volume, create a new volume, and test with a new instance, or something to that effect.21:38
erichammondBe very careful as your production database is on ephemeral storage and is not backed up at all.21:39
erichammondIf that instance goes down, you've lost it.21:39
deadprogrammeryes I realize that!21:40
deadprogrammerI just added this to my fstab21:40
deadprogrammerhmm21:41
erichammondI've updated http://ec2ebs-mysql.notlong.com/ so that the mount point is created mode "000" to help prevent accidents like this.21:52
erichammondI do that in my own systems, but didn't include it in the original tutorial.21:52
deadprogrammerthat is a good idea21:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!