[ubuntu-cloud] Disable cloud-init paritioning of ephemeral0 on AWS

Ben Howard ben.howard at canonical.com
Mon Jun 30 14:48:28 UTC 2014


On 06/26/2014 12:42 PM, Bao Nguyen wrote:
> On Precise (12.04) ubuntu cloud image. When spun up on AWS, it seemed
> that cloud-init (or other mysterious process) format ephemeral0 (or
> /dev/xvdb) and mount it. I wasn't able to find anything in
> cloud-init.log that indicate cloud-init did this.
>
On AWS, ephemeral0 is pre-formated by AWS. Also, the auto-formating is
done on a per-cloud basis, which is only Azure and SmartOS at this time.
We were thinking about putting something in for AWS, but never got
around to it.

> I was able to disable/overwrite mounting from happen via:
>
> #cloud-config
> mounts:
>  - [ ephemeral0, null ]
>
> However I'm having a really hard time preventing auto partitioning
> from happening. I've read that it's propose and backport to Precise to
> do just that [2] and the configuration for it [1] is here:
>
> fs_setup:
>    - label: ephemeral0
>      filesystem: 'ext3'
>      device: 'ephemeral0'
>      partition: 'none'
>      overwrite: False
>
> disk_setup:
>    ephmeral0:
>        type: 'mbr'
>        layout: True
>        overwrite: False
>
> Anyone know how to prevent this from happening automatically on the
> Ubuntu cloud-image?
>
> [1] https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config-disk-setup.txt
> [2] https://bugs.launchpad.net/ubuntu/+source/walinuxagent/+bug/1231490
>
>
> -bn
> 0216331C
>
>

-- 


Ben Howard
ben.howard at canonical.com
Canonical
GPG ID 0x5406A866


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20140630/9b6f3662/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20140630/9b6f3662/attachment.pgp>


More information about the Ubuntu-cloud mailing list