Skip to content

OSNEXUS/pve-quantastor-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuantaStor Proxmox Plugin

This repository provides a Proxmox (PVE) storage plugin for QuantaStor, enabling integration of QuantaStor-managed ZFS over ISCSI storage into your Proxmox environment.

Features

  • Integrates QuantaStor storage pools with Proxmox VE
  • Detects current PVE version and installs correct packages
  • Simple installation and rollback
  • Safe backup/restore of original Proxmox files

Requirements

  • Proxmox VE 8.4 or later
  • Bash shell
  • Root privileges for installation
  • Install patch scripting dependency (not included by default on ProxmoxVE ISO)
     # NOTE: `--fullcopy` option can still be used if patch is not installed.
     sudo apt update
     sudo apt install patch -y
    

Installation

  1. Clone this repository (or download the plugin source):

    git clone <repo-url>
    cd pve-quantastor-plugin
  2. Run the installer script:

    The installer will:

    • Copy plugin files to the correct Proxmox directories

    • On first run, back up original files (except the new QuantaStor plugin file)

    • Optionally print checksums before/after install

    • Optionally rollback to backup files or reverse patches.

    • 'install' or 'fullcopy' option must be included to perform installation

    sudo ./install-qs-pve.sh --install
    • Perform a full copy install (overwrite all files). Default install mode is patching:
    sudo ./install-qs-pve.sh --fullcopy
    • Note: checksums might not match when installing in patch mode due to minor differences. This option is mainly for developement using the 'fullcopy' install.
    • To verify file integrity before/after install:
    sudo ./install-qs-pve.sh --checksum
    • To restore original files (rollback):
    sudo ./install-qs-pve.sh --rollback
    • To reverse plugin patches (reversepatch):
    sudo ./install-qs-pve.sh --reversepatch
    • Reload services to use new source scripts:
    sudo service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart

How it works

  • Runnning script with no args will print usage.
  • On first run, the script creates backups of all target files (except the new plugin file) in /var/tmp/pve-quantastor-backup.
  • The --install option executes patch based install.
  • The --fullcopy option overwrites full source files.
  • The --reversepatch option reverses plugin patch files.
  • The --rollback option restores these files, undoing any changes made by the plugin.
  • The plugin file Storage/LunCmd/QuantaStorPlugin.pm is only added, never backed up or rolled back.

File Locations

  • Perl plugin files: /usr/share/perl5/PVE/Storage/
  • JavaScript files: /usr/share/pve-manager/js/
  • API doc files: /usr/share/pve-docs/api-viewer/

Updating the Plugin

To update the plugin, simply re-run the installer script with the new version of the source files.

Uninstallation

To remove the plugin and restore the original Proxmox files, run:

sudo ./install-qs-pve.sh --rollback

Troubleshooting

  • Ensure you have root privileges (sudo) when running the script.
  • If you encounter issues, check the backup directory at /var/tmp/pve-quantastor-backup.

License

See LICENSE file for details.

About

QuantaStor Storage Plugin

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors