A Netbox plugin for storage related documentation where virtualization is used.
5 new object types are introduced:
- Storage Pools: a pool that is created on a storage. Currently this storage has to be a Netbox Device.
- LUN: tied to a Storage Pool
- Datastores: created on LUN(s)
- Storage Sessions: the "source" of a session is a Netbox Virtualization Cluster, the "destination" is the LUN Group
- VMDK: can be assigned to a VM and a datastore
The plugin can be installed using pip:
pip install netbox-storage-plugin
Add netbox_storage to PLUGINS in configuration.py:
PLUGINS = ['netbox_storage',]
Don't forget to add netbox-storage-plugin
to your local_requirements.txt as well.
- Create regular Netbox objects: a storage Device, a virtualization Cluster, and a Virtual Machine
- Create a Storage Pool that is assigned to the above created Device
- Create LUN(s) on the Storage Pool
- Create Datastore(s) on LUNs
- Create Storage Session between the Cluster and the Datastore
- Create VMDK on the VM that is on a Cluster that has a Storage Session: this is possible either from the main menu, or on the VM's own page