[02:45] erikd: You might find that AMI storage is pretty cheap (cents per image per month). I have over 500 AMIs listed. [02:45] erikd: The entire image is uploaded to S3 in the bundle. [02:45] The only dependencies it might have are the kernel (AKI) and ramdisk (ARI). [02:46] If the kernel or ramdisk are deleted by their owners, then you would need to specify different ones when running your image. [08:15] hi all [08:16] how to we bundle images downloaded from ec2-images.ubuntu.com [08:16] i didn't figure it out [08:17] in other words how do we convert these images to AMIs [08:19] cagdas: You use ec2-bundle-image. [08:19] cagdas: Let me see if I can find some instructions somewhere. [08:19] thanks soren [08:20] it would be good if this is added to the topic part of this channel [08:33] cagdas: 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] thanks soren [08:33] i think i handled after your comment [08:33] i used ec2-bundle-image [08:33] Oh, fantastic. [08:33] then used ec2-upload-bundle [08:34] now i have an AMI [08:34] ans I just launched a new instance after registering my AMI [08:34] however, I'm waiting for ssh to be available on there [08:35] it says operation timeout [08:35] is it possible that ubuntu images do not have sshd working by default? [08:35] (i have opened the ports already on amazon ec2 security group) [08:48] it looks like i failed to define kernel-id and ramdisk-id [08:48] where do i define them? [08:48] while bundling the image? [08:48] or while launching an instance? [08:52] Hello to ALL [08:54] i 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 found [08:55] also in the aws console i have only one existing keypair - when i use the ec2-describe-keypairs then i get my 3 generated keypairs. [10:21] elmoro: Keypairs are local to regions. Could that explain it? [10:22] elmoro: I.e. a keypair generated in us-east-1 does not exist in eu-west-1. [11:46] ok thy [11:47] i think i generated it in US and then later i want to use it in Eu region. Thx [15:20] anyone have trouble with apt-get upgrade of module-init-tools (3.3-pre11-4ubuntu5.8.04.1)? [15:33] sudo apt-get upgrade has me hungup forever on module-init-tools... and my poor server is in quite a sad state === nijaba` is now known as nijaba [16:14] anyone has experience with real time kernel for Gameserver ? The ping performance is bad and the cpu is 99% idle? [16:19] sudo apt-get upgrade has me hungup forever on module-init-tools... and my poor server is in quite a sad state :( [17:38] elmoro: what gameserver are you running? [18:15] hl2 dedicated server [18:16] and in the future cod4 and tf2/battlefield [18:17] but with the small instance - the ping performance is not the best. At the weekend i will try the bigger machines [18:23] elmoro: 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 ping [18:32] the perfomance seem to be okay (tick 66) [18:32] but the ping looks bad [18:32] yes i use elastic ip.. [18:45] anyone using ebs with xfs? === erichammond1 is now known as erichammond === natea is now known as natea|lunch === natea|lunch is now known as natea [20:18] deadprogrammer: Yes, I use EBS with XFS and MySQL on production servers. [20:58] Hi erichammond [20:59] yes I am running mysql well... this time it is postgresql [20:59] I am running an somewhat older hardy that is based on one of your older amis [20:59] it has been running in production for a while [21:00] until earlier todau when and apt-get upgrade when bad [21:02] module-init-tools (3.3-pre11-4ubuntu5.8.04.1) hung, and then I have been unable to get the instance back to 'normal' [21:03] so then I decided to just launch a new instance from the AMI [21:04] I noticed the snapshot did not appear to have my actual database... it was as if no data had ever been saved to the EBS volume [21:04] hence my original question... anyone running Postgresql on EBS using XFS should have been the specific question [21:06] deadprogrammer: I don't know what might have happened to cause the upgrade to hang. I am not able to reproduce it myself. [21:06] The "empty EBS volume" is a commonly reported problem. [21:06] urg... first time I have run into it [21:06] However, it always seems to turn out to be user error. [21:06] Common causes include: [21:07] - The volume was not mounted where you thought it was [21:07] - The snapshot was of the wrong volume [21:07] - On mounting the new volume, you ran "mkfs" and overwrote the files [21:08] this server has been running since march... and did not re-run mkfs on this restore attempt [21:08] It 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:09] yes, I keep thinking I must have made an error somewhere [21:09] Is the original volume still attached to the instance? [21:09] yes [21:09] but the files are not there on that volume [21:09] You can connect to the instance? [21:09] there are the original databases [21:09] I am still connected to it [21:10] postgresql 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 things [21:11] like there is an actual file on disk that show what databases exist for that server [21:11] I'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:12] not empty... it does not have the database I expect to be there. I can tell by examing the file system on that volume [21:13] likewise, a new instance with an EBS volume created from any snapshot, has only those same databases... but not my production database [21:13] Ah, I see. You had a database in Postgres, but now you can't find where the files for that database reside. [21:14] exactly [21:14] as if postgres never actually wrote any updates to the file system [21:14] despite the facts that it has been running for months [21:14] and has been updated at least once without event [21:21] I 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:22] Have you looked "under" the EBS file system mount point? I.e., umount and look at the mount point directory/ [21:22] ? [21:24] how do I look at the mount point directory? [21:24] Where is the EBS volume mounted? [21:24] I just umount /vol [21:24] it is /dev/sdh [21:24] sudo umount /vol [21:24] ls /vol [21:24] device dev/sdh mapped to /vol [21:25] after I umount I see the correct data! [21:26] so do not umount? [21:28] well not sure if "correct data" but at least I see entry in file that indicates that database existing [21:29] I think you have just saved me from myself... thanks erichammond for your time, I sincerely appreciate your expertise [21:33] one last question however. since I seem to have messed up, but having a directory on /dev/sda1 named /vol [21:33] how can I get my EBS volume mounted [21:34] ? [21:34] just correct fstab and mount -a? [21:38] I 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:39] Be very careful as your production database is on ephemeral storage and is not backed up at all. [21:39] If that instance goes down, you've lost it. [21:40] yes I realize that! [21:40] I just added this to my fstab [21:41] hmm [21:52] I've updated http://ec2ebs-mysql.notlong.com/ so that the mount point is created mode "000" to help prevent accidents like this. [21:52] I do that in my own systems, but didn't include it in the original tutorial. [21:58] that is a good idea