tag:blogger.com,1999:blog-8222363368992442646.post7125817357537829424..comments2023-06-28T15:25:21.236+01:00Comments on Sysadmin Notebook: Xenserver Backup solutionAnonymoushttp://www.blogger.com/profile/16452944947893057496noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-8222363368992442646.post-1775745507933809582015-01-06T22:34:58.181+00:002015-01-06T22:34:58.181+00:00Hi, I was wondering if the following feature can b...Hi, I was wondering if the following feature can be added.<br />The ability to exclude vdi's from a vm.<br />Eg. vm with 2 vdi's, system and data. Data vdi is very large and is backed up using traditional backup software.<br />So the possibility to backup the vm's system vdi only while excluding the data vdi would be a great feature.Anonymoushttps://www.blogger.com/profile/15341450330316213613noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-43604454221137726912015-01-06T22:34:49.183+00:002015-01-06T22:34:49.183+00:00Hi, I was wondering if the following feature can b...Hi, I was wondering if the following feature can be added.<br />The ability to exclude vdi's from a vm.<br />Eg. vm with 2 vdi's, system and data. Data vdi is very large and is backed up using traditional backup software.<br />So the possibility to backup the vm's system vdi only while excluding the data vdi would be a great feature.Anonymoushttps://www.blogger.com/profile/15341450330316213613noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-36315703206493007202014-09-23T04:24:18.970+01:002014-09-23T04:24:18.970+01:00/usr/local/sbin/coalesce_leaf.sh removed from the .../usr/local/sbin/coalesce_leaf.sh removed from the latest XS6.5<br />+ /usr/local/sbin/coalesce_leaf.sh<br />snapbackup.sh: line 375: /usr/local/sbin/coalesce_leaf.sh: No such file or directory<br />+ sleep 5<br />Ah Tonghttps://www.blogger.com/profile/03449927166369687548noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-91070909528556310912014-06-19T16:54:21.514+01:002014-06-19T16:54:21.514+01:00Tip to save disk space, include --compress in expo...Tip to save disk space, include --compress in export.<br />xe $EXPORT_CMD --compress vm=$SNAPSHOT_UUID filename="$FNAME"<br />Anonymoushttps://www.blogger.com/profile/10498774525707229233noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-15969732741618381362014-01-31T21:02:23.671+00:002014-01-31T21:02:23.671+00:00Thanks!Thanks!Massimilianohttps://www.blogger.com/profile/03899678134968397915noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-11497539356515897082014-01-31T21:01:21.186+00:002014-01-31T21:01:21.186+00:00i have found this on other post (here: http://xens...i have found this on other post (here: http://xenserver.org/discuss-virtualization/q-and-a/am-i-the-only-one-not-moving-to-6-2-because-the-auto-backup-feature-was-removed.html#reply-279)<br /><br />....It alows to use any RW atached storage for backup: iscsi sr for TEMPLATES at about ~500Mib\s and ~100 Mib\s for XVA. Adding something like<br />/opt/xensource/bin/xe-backup-metadata -c -k 15 -u 0fbcac30-ad98-8bcd-b613-5e1a76451c0c<br /><br />xe host-backup uuid=9e4418c7-214d-4491-ad2a-f53937b0d7eb file-name=/var/run/sr-mount/$XVA_SR/xensrv1fb-$BACKUP_DATE.xbk<br /><br />xe pool-dump-database file-name=/var/run/sr-mount/$XVA_SR/xenpooldb-$BACKUP_DATE.img<br /><br />allows to make full xenserver cluster backup.<br /><br />--<br />You can integrate the pool metadata backup etc. in your script?<br /><br />ths!Massimilianohttps://www.blogger.com/profile/03899678134968397915noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-90091280632718992062014-01-31T17:37:38.143+00:002014-01-31T17:37:38.143+00:00Hi Luis,
You have tested your fine script on Xen s...Hi Luis,<br />You have tested your fine script on Xen server 6.2 now full whitout license? work well? ths!Massimilianohttps://www.blogger.com/profile/03899678134968397915noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-89982796937048119022013-04-16T16:53:39.957+01:002013-04-16T16:53:39.957+01:00Hello Luis,
I'm having problems with the scri...Hello Luis,<br /><br />I'm having problems with the script not removing/deleting the older snapshots after the backups, and there's nothing in the logs to indicate why this is happening.<br /><br />Your help will be much appreciated.Testhttps://www.blogger.com/profile/08906052940695013781noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-76280599421983780322013-04-16T16:47:22.313+01:002013-04-16T16:47:22.313+01:00Hello Luis,
I'm having problems with the scri...Hello Luis,<br /><br />I'm having problems with the script not removing/deleting the older snapshots after the backups, and there's nothing in the logs to indicate why this is happening.<br /><br />Your help will be much appreciated.Testhttps://www.blogger.com/profile/08906052940695013781noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-51725146542941081702013-03-28T17:25:22.254+00:002013-03-28T17:25:22.254+00:00Yesterday saw, it works only on licensed xen.Yesterday saw, it works only on licensed xen.sashrrhttps://www.blogger.com/profile/07537330544742146473noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-81646329545492208722013-03-27T17:47:33.013+00:002013-03-27T17:47:33.013+00:00I haven't used XenServer for while and I'v...I haven't used XenServer for while and I've nerver used 6.x.<br />I'll take a look at that and see if I can add it to the script.<br /><br />Thanks.Anonymoushttps://www.blogger.com/profile/16452944947893057496noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-36845814496592372622013-03-27T17:42:45.332+00:002013-03-27T17:42:45.332+00:00Hi Luis
I found that snapshot with memory does exi...Hi Luis<br />I found that snapshot with memory does exist.<br />Look at this: Citrix XenServer ® 6.1.0 Administrator's Guide - 8.10.5.sashrrhttps://www.blogger.com/profile/07537330544742146473noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-41276349115981933392013-03-24T14:43:29.122+00:002013-03-24T14:43:29.122+00:00Hello. I've updated the code, can you give it ...Hello. I've updated the code, can you give it another try? Sorry but I can't test it myself right now.<br /><br />You're right it was missing a "xe" on line 290, also, on line 313 I was not using the variable "$COPY_CMD".<br /><br />You don't have to do anything to the line 44.<br /><br />Regarding the suspend information, that is just the way it is, the snapshot does not save the memory information so when you restore a backup from a suspended VM you get that message, I don't think there is nothing I can do about it.Anonymoushttps://www.blogger.com/profile/16452944947893057496noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-8347470992736094022013-03-24T06:09:45.561+00:002013-03-24T06:09:45.561+00:00Steel not working:
Suspending VM...
= Copying sna...Steel not working:<br /><br />Suspending VM...<br />= Copying snapshot to SR - Sun Mar 24 11:53:56 ALMT 2013 =<br />You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call.<br />vm: 5c56a27a-986d-3a96-0ee1-d44eec22023f (T_ovpnassrv2)<br />expected: halted<br />actual: suspended<br /><br />Something wrong in here: around line 300<br />if [[ "$SUSPEND" != "1" ]]; then<br /> COPY_CMD="snapshot-copy"<br /> else<br /> COPY_CMD="vm-copy"<br /> fi<br /> TEMPLATE_UUID=$(xe $COPY_CMD uuid=$SNAPSHOT_UUID sr-uuid=$TEMPLATE_SR new-name-description="Snapshot created on $(date)" new-name-label="$VM_NAME-$TEMP_SUFFIX")<br /><br />Its not working in backup to template, in backup to xva works almost fine, not saving the suspend information, i mean when restored from xva you get halted not suspended vm, so not fully consistent.<br /><br />& on line 290 i think there is missing "xe".<br />& on line 44 what should i insert between "" ?sashrrhttps://www.blogger.com/profile/07537330544742146473noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-37377127068582683222013-03-23T20:42:37.554+00:002013-03-23T20:42:37.554+00:00I've updated the code, it was only checking th...I've updated the code, it was only checking the power state before suspending the VM but not after making the backup. So, if the VM was already powered off it would skip the suspending process but it would still try to resume it after the backup.<br /><br />This should be fixed now, can you give it a try and let me know it it worked?<br /><br />Thanks.Anonymoushttps://www.blogger.com/profile/16452944947893057496noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-53863301406464644172013-03-23T18:16:45.223+00:002013-03-23T18:16:45.223+00:00It seems like
TEMPLATE_UUID=$(xe snapshot-copy uui...It seems like<br />TEMPLATE_UUID=$(xe snapshot-copy uuid=$SNAPSHOT_UUID sr-uuid=$TEMPLATE_SR new-name-description="Snapshot created on $(date)" new-name-label="$VM_NAME-$TEMP_SUFFIX")<br />does not working correctly with SUSPEND=1<br />Here what i get:<br />You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call.<br />vm: 5c56a27a-986d-3a96-0ee1-d44eec22023f (T_ovpnassrv2)<br />expected: halted<br />actual: suspendedsashrrhttps://www.blogger.com/profile/07537330544742146473noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-33139673377001523032012-11-04T18:11:32.478+00:002012-11-04T18:11:32.478+00:00Hello sashrr,
I've updated the script, this ve...Hello sashrr,<br />I've updated the script, this version adds the option to organize the backups into folders and the option to suspend the VM before backup, If you want to shutdown instead, just replace xe vm-suspend uuid=$VM with xe vm-shutdown uuid=$VM<br /><br />Hope this helps you.Anonymoushttps://www.blogger.com/profile/16452944947893057496noreply@blogger.comtag:blogger.com,1999:blog-8222363368992442646.post-71976238602924684952012-11-04T16:54:06.973+00:002012-11-04T16:54:06.973+00:00Hi Luis, can you add some functionality to this sc...Hi Luis, can you add some functionality to this script?<br />For example shutdown vm before export.sashrrhttps://www.blogger.com/profile/07537330544742146473noreply@blogger.com