/srv/irclogs.ubuntu.com/2011/05/27/#ubuntu-cloud.txt

=== dendrobates is now known as dendro-afk
=== skrewler_ is now known as skrewler
=== dendro-afk is now known as dendrobates
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== dendrobates is now known as dendro-afk
=== al-maisan is now known as almaisan-away
=== skrewler_ is now known as skrewler
=== skrewler_ is now known as skrewler
=== skrewler_ is now known as skrewler
=== almaisan-away is now known as al-maisan
=== daker_ is now known as daker
=== hallyn_afk is now known as hallyn
TREllisanyone seen errors like: walrus_request(): server responded with HTTP code 408 (timeout) before?14:47
TREllisfresh 10.04 UEC setup, can upload image bundles but can't launch them, seems the kernel is downloaded on the nc but not the image14:47
joshua__Hi, im trying to mount /dev/xvda2 on a Ec2 instance (ami-1b9fa86f) with cloud-config to /var.15:58
joshua__bootcmd:15:58
joshua__ - mount /dev/xvda2 /mnt; cp -ax /var/* /mnt; umount /mnt15:58
joshua__mounts:15:58
joshua__ - [ ephemeral0, /var, auto, "noatime,nodiratime,noexec,nosuid,nodev" ]15:58
joshua__But it does not work like this. Any ideas?15:58
smoserjoshua__, what is going wrong ?16:08
joshua__Maybe, the /var partition is empty. The copying dosent work. I can't connect to the machine.16:12
joshua__or should it be ephemeral1 instead of ephemeral0?16:12
joshua__-> trying ;)16:12
joshua__no.16:13
smoserwhat is in /etc/fstab ?16:13
smoserand do you have evidence that the bootcmd is running ?16:14
joshua__With the cloud-config above, i canot access the machine. Ant the system log is empty.16:15
joshua__i guess, the skript mount ephemeral0 correctly to /var. Afther that is /var empty.16:17
joshua__No Librarys could be loaded.16:17
joshua__I need a solution, that copy the contents of the target Mountpoint to the new device, bevore it's get mounted.16:19
smosersystem log = console log ?16:25
smoserit will be empty for 4 minutes16:25
smoserjoshua__, yeah, that is reasonable16:25
=== dendro-afk is now known as dendrobates
joshua__smoser: Heere the output of ec2-get-console-output: http://pastebin.com/TUrYuSRK16:43
smoserand you can't ssh to that ?16:45
joshua__Maybe i shoult put anything to the bootcmd (cp -ax, umount, edit fstab, mount -a). But this is not constable16:45
joshua__smoser no, i can't16:45
smoserwhat happens ?16:46
smoserwhen you try ssh16:46
joshua__ssh_exchange_identification: Connection closed by remote host16:46
smosercan you give me the full user data?16:46
smoseri'm actually concerned about the apt-update issue that it shows.16:46
joshua__apt_upgrade is set to true and packages contains vim wich is already installed.16:47
joshua__http://pastebin.com/K5GgdJ4416:48
smoseroh. ah16:48
smoserone thing that is definitely wrong16:48
smosernoexec16:48
smoseryou can't have /var mounted noexec16:48
smoseras dpkg is trying to run scripts from it16:48
joshua__hmm, afaik i have tryed it also whidtout. mom. Trying again.16:49
joshua__ok, i've tryed with: [ ephemeral0, /var, auto, "noatime,nodiratime" ] .. cannot login.16:52
joshua__another solution could be, to copy /var to /mnt/var and set an symlink. from /var to /mnt/var...16:54
joshua__Heere the current Console output: http://pastebin.com/f3CXZBgq16:56
joshua__:q17:08
joshua__lol17:09
joshua__smoser: Are you the maintainer of cc_mounts.py?17:09
smoseryes.17:10
joshua__Nice :). It would be nice, if you could check, if the target mount location is empty. If not, copy the contents to the device before mounting.17:11
smoseri'd be willing to review a patch...17:13
smoseri somewhat exxplicitly avoided that17:13
smoseras what happens if both source and target have content?17:14
joshua__is it possible, that the source have contents?17:14
joshua__Maybe theere is an additional option needed.17:14
smoserjoshua__, ok... so the thing you're trying to do above...17:16
smoserhttp://paste.ubuntu.com/613831/17:16
smoseri just tried it here, and noticed that in the console output.17:17
smoserhah...17:17
smoseryeah.17:17
smoserso the problem is that /var is volitile17:17
smoserand avert you rsync and before you mount, things have happend there, and then that messes other things up17:17
smoserone thing that would *definitely* cause issue is /var/run17:18
smoserjoshua__, of course its possible for the source to have contents. i think yo umean the target.17:19
smoserbut the possibility of the target having contents is real in a rebundle case17:19
smoser(not for ephemeral store, but for other partitions, ie ebs or something)17:19
joshua__hmm, the reason to choose /var as target, is, beacuse i need the full space for /var/www, /var/mysql and /var/log.17:22
joshua__now i will use puppet to create symlinks from /mnt/www|mysql|log to /var/www/mysql/log.17:24
joshua__it's an easy and comfortable solution for me.17:24
joshua__thanks for your great help Scott!17:25
joshua__so. my wife is cooking. i have to go $HOME. Thanks a lot!17:28
joshua__cu17:28
smoseri bet you can do something like this in runcmd17:29
smoserthe system is in a much less volitale state then17:29
joshua__thx. i will figure it out.17:29
joshua__if it works with runcmd i send you an E-Mail ok?17:30
joshua__just for the next case17:31
=== dendrobates is now known as dendro-afk
=== daker_ is now known as daker
=== hallyn is now known as hallyn_afk
=== daker is now known as daker_
=== hallyn_afk is now known as hallyn
=== dendro-afk is now known as dendrobates
=== skrewler_ is now known as skrewler
=== dendrobates is now known as dendro-afk

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