Proxmox: configure High Availability (HA)

14

Proxmox supports several storage protocols suchs as NFS, iSCSI, LVM, etc. and the procedure to add a NFS storage to Proxmox requires only few settings.

If a NAS device is available in your infrastructure, it can be easily used as storage by exporting an NFS share.

proxmox configure high availability 01
Proxmox: configure High Availability (HA) 1

Prepare the NFS share

If you have a NAS device available in your infrastructure, you can create a NFS share to be used within Proxmox environment.

To grant NFS Permissions to Proxmox, you need to specify the IP address of the nodes (or the subnet) that will access the NFS share. In addition you have to configure the Squash parameter as Map all users to admin (a Synology NAS has been used in the example).

Add NFS storage to Proxmox

Once the NFS share has been configured, login to the Proxmox node and select Datastore > Storage. Click Add and select the desired storage protocol (NFS in the example).

add nfs storage to proxmox 03 600x310 1
Proxmox: configure High Availability (HA) 2

Assign a name ID to the storage, the IP address of the NAS Server and the NFS share name (Export). Specify the Content the NFS share will store (VM disks and ISO files) and make sure the Nodes field is set to All (no restrictions) to configure the storage to all nodes. Click Add when done.

The added storage.

add nfs storage to proxmox 05 600x232 1
Proxmox: configure High Availability (HA) 3

Checking the cluster, the storage has been configured to all nodes.

Test the storage

To test if the NFS storage works as expected, try to upload for example an ISO file to the configured storage.

From Proxmox, select the storage from a node (nfs_storage01 in the example) and click ISO Images (option available only if ISO file was specified in the Content field during the storage setup) then click Upload to select the ISO file to upload.

add nfs storage to proxmox 07 600x286 1
Proxmox: configure High Availability (HA) 4

Click Select File to choose the ISO file and specify the desired File name. Click Upload.

The file is being uploaded.

add nfs storage to proxmox 09
Proxmox: configure High Availability (HA) 5

The file has been uploaded successfully.

The file in the storage.

add nfs storage to proxmox 11 600x175 1
Proxmox: configure High Availability (HA) 6

It may happen that during the upload of the ISO file to the storage (NFS storage in this example) you receive the error “Error ‘0’ occurred while receiving the document.“.

To fix the issue, SSH the Proxmox node using the root credentials and go to /var/tmp folder. In the selected folder you will find several pveupload-* files that should be removed. To display these files, run the commands:

# cd /var/tmp
# ls
add nfs storage to proxmox 13
Proxmox: configure High Availability (HA) 7

Remove the pveupload-* files with the following command:

# rm pveupload-*
# ls

Try to upload the ISO file once again. This time the upload should succeed.

NFS storage is only one of the supported protocols and in case the infrastructure is running out of space, you can easily add another storage.

80%
Awesome
  • Design
1 Comment
  1. […] one node fails, the VM can remain operational by configuring High Availability and leveraging the distributed copies in the Ceph Storage […]

Leave A Reply

Your email address will not be published.