[ubuntu-cloud] On lucid/10.04: setting up /mnt ephemeral

Daniel Farina daniel at heroku.com
Tue Nov 8 10:15:01 UTC 2011

On Mon, Nov 7, 2011 at 7:28 AM, Scott Moser <smoser at ubuntu.com> wrote:
> You can configure cloud-init's  mounting of this device off via
> cloud-config, something like:
> mounts:
>  - [ ephemeral0, null ]
> Then, cloud-init will not mount it, and you can add whatever mechanism
> you'd like to mount it.  mkfs.ext3 is slow, so I never added "make the
> filesystem" code to cloud-init.

I had to do a bit of goofing around with initctl list, but I basically
listen for these events:

"start on stopped mounted-dev": mkfs.btrfs.  It seems fast enough, and
is worth the checksumming to me.
"start on stopped cloud-config-mounts": mkdir /mnt/tmp, chmod ugo+rwxt
to make a new temp directory

It seems to work, does that look sound to you?


More information about the Ubuntu-cloud mailing list