So if I select "discard" on the VM virtual disk in Proxmox then my Windows VM will discard internally without me doing anything and Proxmox will pass this down to the SSD?
Have I understood correctly?
I was referring to the following article:
http://askubuntu.com/questions/18903/how-to-enable-trim
/etc/cron.weekly/fstrim
#! /bin/sh
# By default we assume only / is on an SSD.
# You can add more SSD mount points, separated by spaces.
# Make sure all mount points are within the quotes. For...
After reading many posts I am still unclear on the best use of Trim with SSDs.
I have two RAID1 SSDs on a Perc H730 controller which supports trim:
http://i.dell.com/sites/doccontent/shared-content/data-sheets/en/Documents/Dell-PowerEdge-RAID-Controller-H730.pdf
Currently my server boots with...
It appears that I need to run a backup via the GUI first on the new HDD before the scheduled backup will work...?
I will test this overnight and advise.
I have 3 1Tb USB hdd that the nightly backup works well with. So as to have one backup per night I purchased 4 more, the new ones are 2Tb.
The backup will only work with the 1Tb disks, the new disks cause the backup to fail. With the new disks the CTs backup fine but the VMs fail.
INFO...
I have a CT that mounts an external HDD @ /mnt/external-hdd which works.
root@pve:~# cat /etc/pve/lxc/1018.conf
arch: amd64
cpulimit: 1
cpuunits: 1024
hostname: media
memory: 512
mp0: /dev/sdc1,mp=/mnt/external-hdd
nameserver: 8.8.8.8
net0...
Interesting... I see the log in Proxmox displays the hooks however the email log of the job does not. Accordingly it would appear that to monitor the success failure of the job-start or job-end hook scripts that the email log is lacking.
Below is the online log of the job:
Search:
INFO...
Hi Fabian,
job-end is what I require however I cannot get it to execute.
As stated above, when I use the example "vzdump-hook-script.pl" script I only have four hooks that are executed. job-start and job-end are not executed.
Hi Fabian,
I have used the "vzdump-hook-script.pl" script as suggested and can see in the log where the hooks are executed.
Unfortunately at no time is job-end executed which is the hook I need to unmount the USB hard drive.
The only hooks executed for each VM backed up in order are...
We have a Proxmox server and have recently been gifted a QNAP NAS.
I have no idea how to connect the NAS so that Proxmox can access it and how it can be best used.
I am guessing it can either function as storage for either backups or run my VMs & CTs straight off it.
The link below mentions...
From the backup log there is no indication of my hook script being run however it is. Can I have it included in the log?
root@pve:~# cat /etc/pve/vzdump.cron
# cluster wide vzdump cron schedule
# Automatically generated file - do not edit
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
0 23 * *...
I have now confirmed that my backups are running and only keeping one copy as required.
What does not appear to be running is the hook script and I cannot think why:
root@pve:~# cat /etc/pve/vzdump.cron
# cluster wide vzdump cron schedule
# Automatically generated file - do not edit...
I am monitoring a VM and looking at the network graph the netout traffic looks high and I am wondering how to know when my card throughput is at capacity.
I have a single gigabit card from Proxmox to the switch.
The network traffic (hourly average) graph sits around the 500k mark and peaks at...
I selected the VM under PVE, went to the backup tab and clicked "Backup now".
My backup storage is at capacity hence the setting of "1" however as this removes the existing backup post job, logically, then my storage would obviously need to have capacity for two backups not just one. I think...
I have changed the hook script trigger to "job-end" from "backup-end" which runs after each backup as opposed to after the overall backup job.
The backup now fails with a "broken pipe" error. I tried to run it manually and received the following error:
ERROR: Backup of VM 1011 failed - only 1...
Thanks, I am testing this variation now.
#!/bin/bash
if [ "$1" == "backup-end" ]; then
mount -L Backup /mnt/external-hdd/
if mountpoint -q /mnt/external-hdd; then
cp /mnt/backup/* /mnt/external-hdd/
umount /mnt/external-hdd
exit 0
else
exit 1
fi
fi
Thanks, I am testing this variation now.
#!/bin/bash
if [ "$1" == "backup-end" ]; then
mount -L Backup /mnt/external-hdd/
if mountpoint -q /mnt/external-hdd; then
cp /mnt/backup/* /mnt/external-hdd/
umount /mnt/external-hdd
exit 0
else
exit 1
fi
fi
My hook script is simply:
if [ "$1" == "backup-end" ]; then
mount -L Backup /mnt/external-hdd/
cp /mnt/backup/* /mnt/external-hdd/
umount /mnt/external-hdd
fi
after the mount command I would like to add a test to first ensure the disk was mounted successfully. If true then copy the...
Thanks for this.
I have configured my backup using the GUI. I suspect these settings are kept in a config file somewhere that I new need to edit the command contained within to add the hook script.
Do you know where the defined backup config is stored?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.