mirror of
https://github.com/kolesa-team/pve-purestorage-plugin.git
synced 2026-08-12 21:53:06 -06:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0c90b99b3 | |||
| 2995222f74 |
@@ -1,24 +1,20 @@
|
||||
# .perltidyrc - Configuration for perltidy
|
||||
|
||||
## Indentation
|
||||
|
||||
# Indentation
|
||||
--indent-columns=2
|
||||
--continuation-indentation=2
|
||||
--extended-continuation-indentation
|
||||
|
||||
## Line length and wrapping
|
||||
|
||||
# Line length and wrapping
|
||||
--maximum-line-length=160
|
||||
|
||||
## Brackets spaces
|
||||
|
||||
# Brackets spaces
|
||||
--paren-tightness=0
|
||||
--brace-tightness=0
|
||||
--block-brace-tightness=0
|
||||
|
||||
## Comments
|
||||
|
||||
## Blocks
|
||||
# Comments
|
||||
|
||||
# Blocks
|
||||
--cuddled-else
|
||||
--cuddled-blocks
|
||||
+404
-375
File diff suppressed because it is too large
Load Diff
@@ -96,39 +96,27 @@ sudo apt install ./libpve-storage-purestorage-perl.deb
|
||||
|
||||
## Configuration
|
||||
|
||||
After installing the plugin, you need to configure Proxmox VE to use it. Since Proxmox VE does not currently support adding custom storage plugins via the GUI, you will need to open shell and use `pvesm` command to add it:
|
||||
|
||||
```bash
|
||||
pvesm add purestorage <storage_id> \
|
||||
--nodes <proxmox_node_list> \
|
||||
--address https://<purestorage_fqdn_or_ip> \
|
||||
--token token <purestorage_api_token> \
|
||||
--vgname <purestorage_volume_group_name> \
|
||||
--hgsuffix <purestorage_host_suffix>
|
||||
--content images
|
||||
```
|
||||
|
||||
Alternatively, you can manually edit the storage configuration file `/etc/pve/storage.cfg`.
|
||||
After installing the plugin, you need to configure Proxmox VE to use it. Since Proxmox VE does not currently support adding custom storage plugins via the GUI, you will need to manually edit the storage configuration file `/etc/pve/storage.cfg`.
|
||||
|
||||
```
|
||||
purestorage: <storage_id>
|
||||
nodes <proxmox_node_list>
|
||||
purestorage: <proxmox_storage_id>
|
||||
nodes: <proxmox_node_list>
|
||||
address https://<purestorage_fqdn_or_ip>
|
||||
token <purestorage_api_token>
|
||||
vgname <purestorage_volume_group_name>
|
||||
vgsuffix <purestorage_volumegroup_or_pod_delimeter>
|
||||
hgsuffix <purestorage_host_suffix>
|
||||
content images
|
||||
```
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | ----------- |
|
||||
| storage_id | The storage identifier (name under which it will appear in the Storage list) |
|
||||
| proxmox_storage_id | Storage name in proxmox. |
|
||||
| nodes | (`optional`) A comma-separated list of Proxmox node names. Use this parameter to limit the plugin to specific nodes in your cluster. If omitted, the storage is available to all nodes. |
|
||||
| address | The URL or IP address of the Pure Storage API endpoint. Ensure that the Proxmox VE nodes can reach this address over the network. |
|
||||
| token | The API token used for authentication with the Pure Storage array. This token must have sufficient permissions to create and manage volumes. |
|
||||
| vgname | (`optional`, conflicts with `podname`) The volume group name where virtual disks will be stored. This should match the configuration on your Pure Storage array. |
|
||||
| podname | (`optional`, conflicts with `vgname`) The pod name where virtual disks will be stored. This should match the configuration on your Pure Storage array. |
|
||||
| vnprefix | (`optional`) The prefix to prepend to name of virtual disks. |
|
||||
| vgname | The name of the volume group where new virtual disks will be created. This should match the configuration on your Pure Storage array. |
|
||||
| vgsuffix | (`optional`) (`default: /`)Delimeter to define Volume Group or POD storage variant. Can be `/` for Volume Group or `::` for POD |
|
||||
| hgsuffix | (`optional`) A suffix that is appended to the hostname when the plugin interacts with the Pure Storage array. This can help differentiate hosts if necessary. |
|
||||
| content | Specifies the types of content that can be stored. For virtual machine disk images, use images. |
|
||||
|
||||
@@ -157,11 +145,13 @@ sudo systemctl restart pve-cluster.service pvedaemon.service pvestatd.service pv
|
||||
- Verify Network Connectivity: Ensure that the Proxmox VE nodes can reach the Pure Storage array over the network. Check for firewall rules or network issues that might be blocking communication.
|
||||
- Review Logs: Check the Proxmox VE logs for any error messages related to storage or the plugin. Logs are typically found in /var/log/pve.
|
||||
These commands are helpful for troubleshooting:
|
||||
|
||||
```bash
|
||||
multipath -ll -v3 #diagnose issues with the multipath service
|
||||
iscsiadm -m node #list what iscsi nodes are mounted
|
||||
ls -l /dev/mapper/3624a9370* #list wwids of Pure mapped devices on the system
|
||||
```
|
||||
|
||||
- Multipath Configuration: Verify that your multipath.conf is correctly configured and that multipath devices are recognized. Use multipath -ll to list the current multipath devices.
|
||||
- API Token Permissions: Ensure that the API token used has the necessary permissions to create and manage volumes on the Pure Storage array.
|
||||
- Plugin Updates: Ensure you are using the latest version of the plugin. Check the GitHub repository for updates.
|
||||
|
||||
Reference in New Issue
Block a user