User Tools
Table of Contents
Creating new instance
Creating new instances in OpenStack fall into 3 categories
- Independent isolated instances
- An IDMS Cluster
- An RDF Cluster
Some notes/warnings
Adding a volume to an instance
Reference Material https://www.darwinbiler.com/openstack-creating-and-attaching-a-volume-into-an-instance/
When adding a volume to an instance, for example on a MySQL DB Instance you must manually edit the /etc/fstab
For example, as of now, the IDMS Ironman cluster has a DB instance - IronmanDB1.err
Volumes Attached
- Attached To 7ce1bcf3-a494-4902-9c8b-42765d3c1a12 on /dev/vda
- Attached To os4db1 on /dev/vdb
The os4db1 volume is defined as
- Name os4db1
- ID db6be9ca-b8c1-454e-973d-b55f4d75693b
- Description snapshot created from or20-idmsdb1
- Project ID 4cd57af0ccdc4827a7ffa979678943d5
- Status In-use
- Group. -
- Size 650 GiB
The /etc/fstab is [scotty@ironmandb1 ~]$ cat /etc/fstab
- #
- # /etc/fstab
- # Created by anaconda on Mon Jan 28 20:51:49 2019
- #
- # Accessible filesystems, by reference, are maintained under '/dev/disk'
- # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
- #
- UUID=f41e390f-835b-4223-a9bb-9b45984ddf8d / xfs defaults 0 0
- #/dev/vdb none swap sw,comment=cloudconfig 0 0
- UUID=51b68e38-676f-40c6-b690-c81b09c099c0 /mysql xfs defaults 0 1 *
The UUID is established on
- [scotty@ironmandb1 ~]$ sudo blkid
- [sudo] password for scotty:
- /dev/vda1: UUID=“f41e390f-835b-4223-a9bb-9b45984ddf8d” TYPE=“xfs”
- /dev/vdb1: UUID=“51b68e38-676f-40c6-b690-c81b09c099c0” TYPE=“xfs”
Troubleshooting
If volumes are stuck in a state i.e. deleting or creating, the cinder services may need a restart. Deleting or creating a volume should output to the /var/log/cinder/cinder-scheduler.log and /var/log/cinder/cinder-volume.log logs. If this is halted or slow, restart the cinder services.
sudo service cinder-scheduler restart sudo service cinder-volume restart