Ask Your Question

Revision history [back]

Attempt to address 1

1. Create partition like   /dev/sdb(X)
2. Add to /etc/fstab
/dev/sdb(X)   /var/lib/nova/instances xfs defaults 0 0
3. # mount -a
4. Next 
# chown nova /var/lib/nova/instances/
# chown nova /var/lib/nova/instances/_base

See would it work or no ?

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

Attempt to address 1

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

See would it work or no ?

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

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/
# chown nova /var/lib/nova/instances/_base
chgrp  nova /var/lib/nova/instances

See would it work or no ?Works for me
[root@ServerCentOS02 ~(keystone_boris)]# nova list

+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                     |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| b0dccec8-784e-44a2-91fd-d70264a9841f | VF23Devs01 | ACTIVE | -          | Running     | demo_net=40.0.0.16, 10.3.0.8 |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+

[root@ServerCentOS02 ~(keystone_boris)]# ls -l /var/lib/nova/instances

total 0
drwxr-xr-x. 2 nova nova 69 Apr 17 12:51 b0dccec8-784e-44a2-91fd-d70264a9841f
drwxr-xr-x. 2 nova nova 53 Apr 17 12:50 _base
drwxr-xr-x. 2 nova nova 58 Apr 17 12:50 locks

[root@ServerCentOS02 ~(keystone_boris)]# df -h

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   45G  7.1G   38G  16% /
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.8G  152K  3.8G   1% /dev/shm
tmpfs                    3.8G  8.9M  3.8G   1% /run
tmpfs                    3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/vda1                497M  213M  285M  43% /boot
tmpfs                    764M  4.0K  764M   1% /run/user/42
tmpfs                    764M  8.0K  764M   1% /run/user/1000
/dev/vdb1                 20G  676M   20G   4% /var/lib/nova/instances

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

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                     |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| b0dccec8-784e-44a2-91fd-d70264a9841f | VF23Devs01 | ACTIVE | -          | Running     | demo_net=40.0.0.16, 10.3.0.8 |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+

[root@ServerCentOS02 ~(keystone_boris)]# ls -l /var/lib/nova/instances

total 0
drwxr-xr-x. 2 nova nova 69 Apr 17 12:51 b0dccec8-784e-44a2-91fd-d70264a9841f
drwxr-xr-x. 2 nova nova 53 Apr 17 12:50 _base
drwxr-xr-x. 2 nova nova 58 Apr 17 12:50 locks

[root@ServerCentOS02 ~(keystone_boris)]# df -h

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   45G  7.1G   38G  16% /
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.8G  152K  3.8G   1% /dev/shm
tmpfs                    3.8G  8.9M  3.8G   1% /run
tmpfs                    3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/vda1                497M  213M  285M  43% /boot
tmpfs                    764M  4.0K  764M   1% /run/user/42
tmpfs                    764M  8.0K  764M   1% /run/user/1000
/dev/vdb1                 20G  676M   20G   4% /var/lib/nova/instances
 

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

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  |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
+--------------------------------------+--------------+--------+------------+-------------+-----------------------------------

[root@ServerCentOS02 ~(keystone_boris)]# ls -l /var/lib/nova/instances

total 0
drwxr-xr-x. 2 nova nova 69 Apr 17 12:51 b0dccec8-784e-44a2-91fd-d70264a9841f
drwxr-xr-x. 2 nova nova 53 Apr 17 12:50 _base
drwxr-xr-x. 2 nova nova 58 Apr 17 12:50 locks

[root@ServerCentOS02 ~(keystone_boris)]# df -h

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   45G  7.1G   38G  16% /
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.8G  152K  3.8G   1% /dev/shm
tmpfs                    3.8G  8.9M  3.8G   1% /run
tmpfs                    3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/vda1                497M  213M  285M  43% /boot
tmpfs                    764M  4.0K  764M   1% /run/user/42
tmpfs                    764M  8.0K  764M   1% /run/user/1000
/dev/vdb1                 20G  676M   20G   4% /var/lib/nova/instances

image description

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