[ubuntu-cloud] Cloud-config and mount points
Bo Shi
bo at simpler.co
Thu Jul 12 19:31:45 UTC 2012
Doh, misreplied and did not to reply-all.
> But anyway, within a stable release, that list isn't really going to
> change. Thats why they're called "Stable". So for 5 years, you can use
> that user-data on 12.04. If you move your base to 12.10, you should
> re-check the modules.
>
> I dont' have a better solution than that for you without thinking more.
That sounds perfectly reasonable and no readily generalizable solution
is obvious to me at the moment either.
In other news, I just noticed a strange problem while playing around
today. It seems that, using the approach outlined earlier in this
thread, the mount does not show up in 'df'.
root at ip-10-190-45-202:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 10473644 1157608 8791760 12% /
udev 838332 12 838320 1% /dev
tmpfs 338516 172 338344 1% /run
none 5120 0 5120 0% /run/lock
none 846288 0 846288 0% /run/shm
I _believe_, though, that it is mounted on /dev/xvda2. 'dmesg' bears this out.
root at ip-10-190-45-202:~# dmesg | grep -C 3 -n mount
207-[8123347.096532] Freeing unused kernel memory: 1632k freed
208-[8123347.097515] Freeing unused kernel memory: 1196k freed
209-[8123347.145706] udevd[81]: starting version 175
210:[8123347.319618] EXT4-fs (xvda1): mounted filesystem with
ordered data mode. Opts: (null)
211-[8123348.898046] ADDRCONF(NETDEV_UP): eth0: link is not ready
212:[8123348.899713] EXT4-fs (xvda1): re-mounted. Opts: (null)
213-[8123348.963857] udevd[248]: starting version 175
214-[8123349.151531] acpiphp: ACPI Hot Plug PCI Controller Driver version:
0.5
215-[8123349.849324] init: udev-fallback-graphics main process (344)
terminated with status 1
--
227-[8123353.741899] Adding 917500k swap on /dev/xvda3.
Priority:-1 extents:1 across:917500k SS
228-[8123353.921278] kjournald starting. Commit interval 5 seconds
229-[8123354.015351] EXT3-fs (xvda2): using internal journal
230:[8123354.015360] EXT3-fs (xvda2): mounted filesystem with ordered
data mode
231-[8123358.096011] init: failsafe main process (619) killed by TERM signal
232-[8123358.889784] type=1400 audit(1342119604.345:8): apparmor="STATUS"
operation="profile_replace" name="/sbin/dhclient"
pid=690 comm="apparmor_parser"
233-[8123358.890262] type=1400 audit(1342119604.345:9): apparmor="STATUS"
operation="profile_replace"
name="/usr/lib/NetworkManager/nm-dhcp-client.action"
pid=690 comm="apparmor_parser"
Also, if I attempt to mount /dev/xvda2 at some random mount point, it
shows up in 'df' and 'lsof' output suggests to me that we're talking
about the same partition.
root at ip-10-190-45-202:~# mkdir -p /tmp/{root-bind-view,ephemeral1}
root at ip-10-190-45-202:~# mount /dev/xvda2 /tmp/ephemeral1/
root at ip-10-190-45-202:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 10473644 1157616 8791752 12% /
udev 838332 12 838320 1% /dev
tmpfs 338516 172 338344 1% /run
none 5120 0 5120 0% /run/lock
none 846288 0 846288 0% /run/shm
/dev/xvda2 153899044 192360 145889060 1% /tmp/ephemeral1
root at ip-10-190-45-202:~# lsof /tmp/ephemeral1/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rsyslogd 652 syslog 1w REG 202,2 3435 15
/var/log/cloud-init.log
rsyslogd 652 syslog 2w REG 202,2 4434 16 /var/log/auth.log
rsyslogd 652 syslog 4w REG 202,2 26706 17 /var/log/syslog
rsyslogd 652 syslog 5w REG 202,2 24818 18 /var/log/kern.log
bash 944 ubuntu cwd DIR 202,2 4096 2 /var/log
superviso 11716 root 3w REG 202,2 475 1548290
/var/log/supervisor/supervisord.log
sudo 11839 root cwd DIR 202,2 4096 2 /var/log
root at ip-10-190-45-202:~# lsof /var/log/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rsyslogd 652 syslog 1w REG 202,2 3435 15
/var/log/cloud-init.log
rsyslogd 652 syslog 2w REG 202,2 4434 16 /var/log/auth.log
rsyslogd 652 syslog 4w REG 202,2 26706 17 /var/log/syslog
rsyslogd 652 syslog 5w REG 202,2 24818 18 /var/log/kern.log
bash 944 ubuntu cwd DIR 202,2 4096 2 /var/log
superviso 11716 root 3w REG 202,2 475 1548290
/var/log/supervisor/supervisord.log
sudo 11839 root cwd DIR 202,2 4096 2 /var/log
root at ip-10-190-45-202:~# diff /tmp/ephemeral1/dmesg /var/log/dmesg
root at ip-10-190-45-202:~#
root at ip-10-190-45-202:~# sudo mount --bind / /tmp/root-bind-view/
root at ip-10-190-45-202:~# ls -l /tmp/root-bind-view/var/log
total 8
-rw-r--r-- 1 syslog adm 2687 Jul 12 18:59 cloud-init.log
More information about the Ubuntu-cloud
mailing list