Ask Your Question
0

Questions on ephemeral storage

asked 2016-04-17 00:08:50 -0600

syko gravatar image

Hi, I have couple of questions in deploying ephemeral storage.

  1. How can I change the disk partition (or directory) that the compute nodes use for the ephemeral storage? I have HDD and SSD. I want to differentiate them.

  2. Can I make the different kinds of the ephemeral storage as available resources? An instance may be attached to eph1 (type A) and the other to eph2 (type B).

thanks for your help,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-17 02:49:18 -0600

dbaxps gravatar image

updated 2016-04-17 05:30:39 -0600

Attempt to address 1

1. Create partition like /dev/sdb1 with xfs FS ( via gparted )
2. Add to /etc/fstab
/dev/sdb1   /var/lib/nova/instances xfs defaults 0 0
3. # mount -a
4. Next 
# chown nova /var/lib/nova/instances/
# chgrp  nova /var/lib/nova/instances

Works for me
[root@ServerCentOS02 ~(keystone_boris)]# nova list

+--------------------------------------+--------------+--------+------------+-------------+-----------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                          |
+--------------------------------------+--------------+--------+------------+-------------+-----------------------------------+
| d5e15da5-be81-4992-9b71-14a55a4c7040 | UbuntuDevs01 | ACTIVE | -          | Running     | demo1_network=90.0.0.17, 10.4.0.9 |
| b0dccec8-784e-44a2-91fd-d70264a9841f | VF23Devs01   | ACTIVE | -          | Running     | demo_net=40.0.0.16, 10.3.0.8      |
+--------------------------------------+--------------+--------+------------+-------------+-----------------------------------

image description

Update libvirt xml is possible only via changing python code in nova/virt/libvirt/driver.py and nova/virt/libvirt/config.py

edit flag offensive delete link more

Comments

@dbaxps, it works :D thanks! The only bothersome point is that whenever I want to change between HDD and SSD, I delete & recreate VM instance

syko gravatar imagesyko ( 2016-05-07 08:27:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-17 00:08:50 -0600

Seen: 239 times

Last updated: Apr 17 '16