Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails if a physical drive is attached to VM #39

Open
michaelHH1 opened this issue Jun 30, 2018 · 2 comments
Open

fails if a physical drive is attached to VM #39

michaelHH1 opened this issue Jun 30, 2018 · 2 comments

Comments

@michaelHH1
Copy link

Hi,
I've a physical drive attached to my VM. The script fails with "'error: unsupported configuration: source for disk 'vde' is not a regular file; refusing to generate external snapshot name'". Could attached physical drives be excluded from the backup?

BR
Michael

@AJRepo
Copy link
Collaborator

AJRepo commented Jun 30, 2018

Possibly. What do you get with the command

virsh domblklist XXXX --details

where XXXX is the VM domain name or id ?

@michaelHH1
Copy link
Author

michaelHH1 commented Jun 30, 2018

Type Device Target Source

file disk vda /media/backup/vm/homeserver/bimg-20180630-101135
block disk vde /dev/disk/by-uuid/B8D0061FD005E48A

As intermediate solution I've modified the script to:
command_output=$($VIRSH -q snapshot-create-as "$domain_name"
"$SNAPSHOT_PREFIX-$timestamp" --no-metadata --disk-only --diskspec vde,snapshot=no --atomic \

which is for sure to static as final solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants