I currently have a 4 node cluster (pm1-pm4) which is working great, all of them have a 1TB hard drive.
I am looking at how I can automate my backups, unfortunately I only have 100GB of space on the local backup dir, some of my vm's are just over this therefore I am unable to back them up.
Currently on one node pm4 I have installed a second hard drive (1TB) and added this via the GUI as a directory mounted on /backup, this is working and it appears as expected. I have added to fstab etc.
When ssh'd into vm4 I can issue with command
This works great as it is a local vm to the node pm4. However, when I try a VM form another node, the command completes instantly with 0 output.
Ideally I want to be able to just issue the command like so and backup the necessary vm's all on this drive. I will run the scripts from pm4 and back all vms up one by one.
I have read that you can create a virtual drive that maps to the mount point on pm4 ie the directory I have created. Then by adding this I can do the backups from the nodes themselves and push them to the remote directory, I believe this involves creating an NFS.
I also see a post whereby someone is doing a vzdump using stdout and ssh here https://forum.proxmox.com/threads/vzdump-to-stdin-over-ssh.33039/. They use the following command.
I am wondering if I can do something similar and backup over SSH with vzdump to my second drive on the pm4 node. Can anyone point me in the right direction of how to achieve this either by using the vzdump command on pm4 to dump vm's on other nodes to the mount point of the second drive, or how I could use ssh to achieve this. The main aim is to have pm4 only have a drive and when using vzdump to not take any space up on the original node, ie I know I could backup to the host node and scp the file, but this does not help in the current situation where I don't have ample space on the host node. Also I want to make minimal changes to the other nodes ie no adding extra drives or devices such as an NFS.
If I can provide any other info let me know.
I am looking at how I can automate my backups, unfortunately I only have 100GB of space on the local backup dir, some of my vm's are just over this therefore I am unable to back them up.
Currently on one node pm4 I have installed a second hard drive (1TB) and added this via the GUI as a directory mounted on /backup, this is working and it appears as expected. I have added to fstab etc.
When ssh'd into vm4 I can issue with command
Code:
root@pm4:/# vzdump 119 --dumpdir /backup --mode snapshot
INFO: starting new backup job: vzdump 119 --mode snapshot --dumpdir /backup
INFO: Starting Backup of VM 119 (qemu)
INFO: status = stopped
INFO: update VM 119: -lock backup
INFO: backup mode: stop
This works great as it is a local vm to the node pm4. However, when I try a VM form another node, the command completes instantly with 0 output.
Code:
root@pm4:/# vzdump 101 --dumpdir /backup --mode snapshot
root@pm4:/#
Ideally I want to be able to just issue the command like so and backup the necessary vm's all on this drive. I will run the scripts from pm4 and back all vms up one by one.
I have read that you can create a virtual drive that maps to the mount point on pm4 ie the directory I have created. Then by adding this I can do the backups from the nodes themselves and push them to the remote directory, I believe this involves creating an NFS.
I also see a post whereby someone is doing a vzdump using stdout and ssh here https://forum.proxmox.com/threads/vzdump-to-stdin-over-ssh.33039/. They use the following command.
Code:
vzdump 119 --stdout | ssh root@remote.server.com | pct restore --rootfs 20 119 -
I am wondering if I can do something similar and backup over SSH with vzdump to my second drive on the pm4 node. Can anyone point me in the right direction of how to achieve this either by using the vzdump command on pm4 to dump vm's on other nodes to the mount point of the second drive, or how I could use ssh to achieve this. The main aim is to have pm4 only have a drive and when using vzdump to not take any space up on the original node, ie I know I could backup to the host node and scp the file, but this does not help in the current situation where I don't have ample space on the host node. Also I want to make minimal changes to the other nodes ie no adding extra drives or devices such as an NFS.
If I can provide any other info let me know.