Using Secure Copy to move locally stored ISOs from one node to another - gorect/Proxmox GitHub Wiki

In the event that your local storage is beginning to fill up you may want to move some of your ISOs from one PM Node to another in your cluster. This is different from moving the ISO file around to another disk within the same physical server like so many other guides suggest. In this case you can treat this just like you would if you were copying any other file between any other linux server

First you will want to know where the ISOs are stored locally. I found this by installing the mlocate tool (Check out my CentOS-7 script for fixing the DB indexing error fix) Which returned:

mlocate archlinux-2020*
/var/lib/vz/template/iso/archlinux-2020.07.01-x86_64.iso

With this in mind you just need to use the scp (Secure Copy) command to copy the .iso from your main server to the second node. scp follows the following convention:

scp localmachine/path_to_the_file username@serverIPAddress:/path_to_remote_directory

So in my case the command looked like

scp /var/lib/vz/template/iso/archlinux-2020.07.01-x86_64.iso [email protected]:/var/lib/vz/template/iso/

After executing that command you will see the transfer start (assuming that you typed everything right) and will show the transfer process as a progress bar.

-CtG