marxarelli / amlvm-snapshot Goto Github PK
View Code? Open in Web Editor NEWA plugin for Amanda that provides LVM snapshot-ing.
A plugin for Amanda that provides LVM snapshot-ing.
The calculate_snapsize function calculates using the number of free extents, but the --size option for lvcreate seems to want a size in bytes (or m or g)
I think if you do something like
my $extent_size = $parts[12]; my $free_extents = $parts[15]; ... $self->{snapsize} = $extent_size * $free_extents . "k" #append k because default is megabytes
Also when I set
property "SNAPSHOT-SIZE" "1000"
in my dumptype it doesnt seem to affect the size of the actual snapshot
I've currently got the value hardcoded in the lvcreate line.
The 'action' argument has been removed from recent versions of print_to_server_and_die(). Your script can be fixed by removing the first empty-string argument to print_to_server_and_die().
Hello,
First of all... Greate Job!
But I have small problem... I can't backup not mounted file system.
Problem is in amgtar software... they need to calculate estimate but it try to do on /dev/vg0/some-lvm
Ther is any option to give back to amgtar temporary location in /tmp of mounted LVM ?
Thanks in advanced!
Receiving the following when running amcheck from amanda 3.3.2 (on FreeBSD 9.0) against amanda 2.6 on CentOS 6.
Script 'amlvm-snapshot.pl' command 'PRE-DLE-AMCHECK': Use of uninitialized value $status in numeric ne (!=) at /usr/lib64/perl5/vendor_perl/Amanda/Script_App.pm line 94.
I am trying to use amlvm-snapshot to do Linux LVM snapshot backup. But keep getting errors in amanda backup report. the relevant content is as follows:
amlvm-snapshot debug file:
Wed Feb 9 16:06:03 2011: Amlvm_snapshot: pid 6003 ruid 5002 euid 5002 version 3.2.1:
start at Wed Feb 9 16:06:03 2011
Wed Feb 9 16:06:03 2011: Amlvm_snapshot: pid 6003 ruid 5002 euid 5002 version 3.2.1:
rename at Wed Feb 9 16:06:03 2011
Wed Feb 9 16:06:03 2011: Amlvm_snapshot: script: Amlvm_snapshot
Wed Feb 9 16:06:03 2011: Amlvm_snapshot: command: post_dle_backup
Wed Feb 9 16:06:03 2011: Amlvm_snapshot: warning: Argument "Failed to execute (statu
s 256) `sudo /usr/sbin/lvdisplay..." isn't numeric in numeric ne (!=) at /usr/lib/per
l5/site_perl/5.8.8/Amanda/Script_App.pm line 101.
I have two perl programs installed on the client side - a original perl from Linux distribution which is x86_64 in /usr/bin; a compiled perl from source which is i386 in /usr/local/bin. I changed the amlvm-snapshot program to just include /usr/bin in PATH but still not successful. I can't see the problem from above debug files.
$ENV{'PATH'} = "/sbin:/usr/sbin:/usr/bin";
Client host is CentOS 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.