Matthias writes:

> For the last 4 weeks, I have been doing everything I could to try to 
> move our current backuppc pool (Pool is 79.18GB comprising 1132632 files 
> and 4369 directories) from a RAID0 to a RAID5 having different 
> filesystem sizes.
> 
> The operating system is OpenBSD, so the filesystem is FFS, and I have 
> tried so far:
> 
>     * tar
>     * gtar (GNU version of tar)
>     * pax
>     * dump --> restore
> 
> And none of them was able to successfully copy the pool.
> I suspect this has to do with the huge number of hardlinks within the 
> pool, and requiring too much memory to catalog them all.
> dd is not an option as the filesystems cannot be the same size.
> 
> Has anyone a clue on how to solve my  problem?
> Thanks, and happy new year :-)

As Les mentions, starting over is often the easiest approach.

One other option is to use BackupPC_tarPCCopy in BackupPC 3.0.0beta3.
You start by copying the pool itself (ie: TOPDIR/cpool), plus the
config and log directories, using any copy method you prefer, without
worrying about hardlinks.

BackupPC_tarPCCopy is used to copy the pc subdirectory.  It traverses
each directory and generates a tar file containing hardlinks to the
pool, or the full file if it can't find the file in the pool.  You
unpack this on the target file system and the hardlinks are recreated
as the tar archive is extracted.

It figures out what hardlink each file matches by applying the
BackupPC pool checksum to each file.

It's definitely not fast, but it does work without eating huge amounts
of memory.  It does cache inodes for each pc host, but you can turn
that off with the -c option.

Beyond memory usage, the other reason copying the pool is slow is that
sequential files in a directory often have quite widely dispersed
inodes (because of the effect of pooling of many backups), meaning
there are a lot of disk seeks.  Perhaps sorting by inodes will
make processing each directory faster.

Craig

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to