Jump to content

Convert RFS->XFS Hardlinked files


tr0910

Recommended Posts

How do I convert a drive from RFS to XFS where it is full of rsnapshot files and hardlinks??

 

I have a 3tb drive that is used as a destination for rsnapshot, so it has hard links, and 10 generations of 500mb of my data files.  There is 2.6 million files, but in reality there is only about 300 thousand with data.  The rest are hard links, pointers to data.  So instead of taking up 5tb of disk space, the snapshots are only taking up 1.5tb

 

I want to convert that drive to XFS.  It appears that rsync cannot handle it the same way as other RFS conversions.  (I'm using the recommended- )

 

rsync -avPX /mnt/disk15 /mnt/disk16

 

The source drive is 3tb and with only 1.5tb of data for those 2.6million files.  It has been copying for 14 hours and is still copying and the newly formatted XFS drive has 2.5tb and the copy is ongoing. 

 

I think something is wrong with the copy command I am using...

 

 

Link to comment

https://download.samba.org/pub/rsync/rsync.html

 

-H, --hard-links            preserve hard links

 

The proper command might be:

-avHXP

 

Would you mind sharing how you are doing your rsnapshot backups?

Is your source a linux or a windows machine?

Do you use a GUI based rsnapshot?

 

I have been using qtdsync to backup my windows based data.

qtdsync is a GUI for rsync but it seems it can't hardlink on user shares.

Link to comment

Just the command line version.  See here http://lime-technology.com/forum/index.php?topic=26888.0

 

One folder on Drive2 is for documents that are often changed.  I just snapshot that directory every 2 hours during the daytime hours.

 

I have 7 hourly snapshots (actually every 2 hours), 7 daily, 4 weekly and 12 monthly snapshots.  The intention of this is to allow me to go back to fix an oopsy if I ever clobber a file.

 

Am preclearing the disk to zero it and will try again.  (the drive filled up and ran out of space as expected.)

 

Link to comment

Here it is confirmed, took me some effort to find out myself...

One thing I found out, the user filesystems do not support hard links, so you need to make your destination on a physical disk (which do support hard mounts) or you will fill your disks up.  Using an NFS will work, as long as the destination is not a unRAID user filesystem.

 

So rsnapshot won't help also.

 

It is somewhat limiting to not be able to write to user shares.

I wonder if it can be changed somehow?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...