← Back to team overview

mylvmbackup-discuss team mailing list archive

Re: Patch to add hcp support to mylvmbackup


I noticed that mylvmbackup 0.14 was released back a about 6 months
ago, but I don't yet see hcp support merged in. Is there some way I
can help get that merged? Some cleanup that needs to happen? We've
been using it in production for about 2 years. Mind you, I'll need to
test it again the most recent version of HCP, but it still works
pretty flawlessly (I'm doing it right now on a server that hadn't been
configured with LVM). Thoughts?


On Wed, Apr 11, 2012 at 5:43 PM, Lenz Grimmer <lenz@xxxxxxxxxxx> wrote:
> Hi Michael,
> sorry for the late reply! Awesome, adding hcp support has been on the TODO for
> quite some time :)
> I'll look into merging this patch.
> On 03/31/2012 02:36 AM, Michael S. Moody wrote:
>> I am including a patch to add hcp support. HCP is a utility released by
>> r1soft: http://www.r1soft.com/tools/linux-hot-copy/
>> The patch included allows hcp to be used on systems where LVM either isn't
>> installed, isn't utilized, or no free space was left. HCP can be used instead,
>> and creates snapshots in much the same way. To utilize, you will need to
>> download and install hcp directly from r1soft.
>> To install:
>> wget {currenthcplink}
>> unzip r1soft-hotcopy.zip
>> #install relevant package, in my case, 64bit rpm)
>> rpm -Uvh r1soft-hotcopy-3.18.2.x86_64.rpm
>> hcp-setup --get-module
>> New configuration directives in mylvmbackup.conf:
>> [hcp]
>> hcpdev=/dev/mapper/VolGroup00-LogVol00 #device upon which mysql data files exist
>> hcpro=0 #unused, but meant to allow the snapshot to be mounted r/o if necessary
>> [tools]
>> hcpcmd=hcp #command for hcp, needs to be in path
>> [misc]
>> #Backup method of either lvm or hcp
>> backupmethod=hcp #hcp or lvm are relevant options
>> I'm certain that there are better ways to accomplish several things in this
>> patch, so please feel free to modify in any way necessary. It is not well
>> tested, it was quick, and made to work for me. Released under GPL2.
>> Author of patch:
>> Michael S. Moody
>> Global Systems Consulting / BloomIP
>> Director of Engineering
> Bye,
>         LenZ
> --
>   Lenz Grimmer <lenz@xxxxxxxxxxx> - http://www.lenzg.net/