← Back to team overview

openstack team mailing list archive

Re: Change Ephemeral Disk FS

 

No need to edit code, there is a config option for this:

###### (MultiStrOpt) mkfs commands for ephemeral device. The format is <os_type>=<mkfs command>

Put the following in nova.conf:

virt_mkfs=default=mkfs.ext4 -L %(fs_label)s -F %(target)s


On Aug 6, 2012, at 3:02 AM, Sébastien Han <han.sebastien@xxxxxxxxx> wrote:

> Hi,
> 
> I think this only way is to edit the code like so:
> go to the line 66 of /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py
> and change to  'default=mkfs.ext4 -L %(fs_label)s -F %(target)s',
> Make sure to purge your /var/lib/nova/instances/_base
> It worked for me :)
> 
> Let me know if it's ok :)
> 
> Cheers!
> 
> 
> On Mon, Aug 6, 2012 at 10:47 AM, Jerico Revote <jerico.revote@xxxxxxxxxx> wrote:
> Hi,
> 
> Is there a way to change the default file system of the ephemeral disk attached to an instance?
> By default it's ext3.
> 
> Thanks,
> 
> Jerico
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References