=== 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 | ||
TREllis | anyone seen errors like: walrus_request(): server responded with HTTP code 408 (timeout) before? | 14:47 |
---|---|---|
TREllis | fresh 10.04 UEC setup, can upload image bundles but can't launch them, seems the kernel is downloaded on the nc but not the image | 14: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 /mnt | 15: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 |
smoser | joshua__, 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 |
smoser | what is in /etc/fstab ? | 16:13 |
smoser | and 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 |
smoser | system log = console log ? | 16:25 |
smoser | it will be empty for 4 minutes | 16:25 |
smoser | joshua__, yeah, that is reasonable | 16:25 |
=== dendro-afk is now known as dendrobates | ||
joshua__ | smoser: Heere the output of ec2-get-console-output: http://pastebin.com/TUrYuSRK | 16:43 |
smoser | and 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 constable | 16:45 |
joshua__ | smoser no, i can't | 16:45 |
smoser | what happens ? | 16:46 |
smoser | when you try ssh | 16:46 |
joshua__ | ssh_exchange_identification: Connection closed by remote host | 16:46 |
smoser | can you give me the full user data? | 16:46 |
smoser | i'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/K5GgdJ44 | 16:48 |
smoser | oh. ah | 16:48 |
smoser | one thing that is definitely wrong | 16:48 |
smoser | noexec | 16:48 |
smoser | you can't have /var mounted noexec | 16:48 |
smoser | as dpkg is trying to run scripts from it | 16: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/f3CXZBgq | 16:56 |
joshua__ | :q | 17:08 |
joshua__ | lol | 17:09 |
joshua__ | smoser: Are you the maintainer of cc_mounts.py? | 17:09 |
smoser | yes. | 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 |
smoser | i'd be willing to review a patch... | 17:13 |
smoser | i somewhat exxplicitly avoided that | 17:13 |
smoser | as 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 |
smoser | joshua__, ok... so the thing you're trying to do above... | 17:16 |
smoser | http://paste.ubuntu.com/613831/ | 17:16 |
smoser | i just tried it here, and noticed that in the console output. | 17:17 |
smoser | hah... | 17:17 |
smoser | yeah. | 17:17 |
smoser | so the problem is that /var is volitile | 17:17 |
smoser | and avert you rsync and before you mount, things have happend there, and then that messes other things up | 17:17 |
smoser | one thing that would *definitely* cause issue is /var/run | 17:18 |
smoser | joshua__, of course its possible for the source to have contents. i think yo umean the target. | 17:19 |
smoser | but the possibility of the target having contents is real in a rebundle case | 17: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__ | cu | 17:28 |
smoser | i bet you can do something like this in runcmd | 17:29 |
smoser | the system is in a much less volitale state then | 17: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 case | 17: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!