1825719 Members
3201 Online
109686 Solutions
New Discussion

LVM + reiserfs dump

 
Bruno Cunha
Frequent Advisor

LVM + reiserfs dump

Hi all,

using LVM and reiserfs filesystem, need to make a dump to another fs, what's the best/most efficient way to do that ?
For example in Veritas volume manager/file system I use vxdump and vxrestore with good results.

Thanks
Do it today, don't leave for tomorrow
8 REPLIES 8
Claudio Cilloni
Honored Contributor

Re: LVM + reiserfs dump

I know that LVM on linux can make snapshots of running logical volumes, and this could be useful to have a dump... but I never used this feature.
You can give a look at lvcreate man page.

ciao
Claudio

Stuart Browne
Honored Contributor

Re: LVM + reiserfs dump

A dump to another filesystem? As in just a backup?

Then just back it up as you would normally.. Tar.. CPIO.. or 3rd party tool.

Or do you want to dump the entire LVM, as against individual filesystems on it?

Are you trying to move the LVM from one partition or disk to another one?
One long-haired git at your service...
Bruno Cunha
Frequent Advisor

Re: LVM + reiserfs dump

Thanks for the replys.

The goal isn't to backup the filesystem, but to clone it and use it in another system.

I will take a look at lvcreate.

Thanks
Best Regards
Do it today, don't leave for tomorrow
Bruno Cunha
Frequent Advisor

Re: LVM + reiserfs dump

lvcreate doesn't work in this case. It can create only a snapshot of the original volume, and it's not possible to split the snapshot and use it in another system, and the snapshot is created in the same vg that the original volume. I need to create a copy of a file system to another vg, a lvm command will be good instead of dd or something like that.

Thanks
Do it today, don't leave for tomorrow
Stuart Browne
Honored Contributor

Re: LVM + reiserfs dump

To another volume group on the same physical machine?

I think the LVM howto talks about how to do things like that.. I've never tried it to be honest.

If all else fails, just lvcreate etc. etc. on the new vg, and do a standard backup/data transfer.
One long-haired git at your service...
Bruno Cunha
Frequent Advisor

Re: LVM + reiserfs dump

Reading some docs about reiserfs it doesn't have any dump utility, the only solution is gnu tar, the problem is speed, but it seems to be the only way :-(

Thanks
Do it today, don't leave for tomorrow
Stuart Browne
Honored Contributor

Re: LVM + reiserfs dump

tar, cpio, backup edge, any standard backup tool tool do.
One long-haired git at your service...
Claudio Cilloni
Honored Contributor

Re: LVM + reiserfs dump

> the problem is speed

I'm thinking about a shell script that creates a snapshot of the source logical volume (with lvcreate), copy the snapshot's logical volume to the destination logical volume with dd (and this is really fast between different harddisks, and you can copy to a logical volume located on a another volume group) and then destroys the snapshot.
It seems feasible to me.

ciao,
Claudio