<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">No need to edit code, there is a config option for this:<div><br></div><div><div>###### (MultiStrOpt) mkfs commands for ephemeral device. The format is <os_type>=<mkfs command></div><div><br></div><div>Put the following in nova.conf:</div><div><br></div><div>virt_mkfs=default=mkfs.ext4 -L %(fs_label)s -F %(target)s</div><div><br></div><div><br></div><div><div>On Aug 6, 2012, at 3:02 AM, Sébastien Han <<a href="mailto:han.sebastien@gmail.com">han.sebastien@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><br></div><div>I think this only way is to edit the code like so:</div><div><ul><li>go to the line 66 of /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py</li><li>and change to  'default=mkfs.ext4 -L %(fs_label)s -F %(target)s',</li>


</ul><div>Make sure to purge your /var/lib/nova/instances/_base</div></div><div>It worked for me :)</div><div><br></div><div>Let me know if it's ok :)</div><div><br></div><div>Cheers!<br>
<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 10:47 AM, Jerico Revote <span dir="ltr"><<a href="mailto:jerico.revote@monash.edu" target="_blank">jerico.revote@monash.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hi,<br>
<br>
Is there a way to change the default file system of the ephemeral disk attached to an instance?<br>
By default it's ext3.<br>
<br>
Thanks,<br>
<br>
Jerico<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>