- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsync question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2007 05:10 AM
01-20-2007 05:10 AM
Thanks
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2007 06:14 AM
01-20-2007 06:14 AM
Re: rsync question
If you are simply comparing the total size of your mountpoints, or comparing each old directory's size to each new directory's size, you are going to mislead yourself.
The space required for a directory will expand as files are added to it. This space is never freed, however, when files are removed. Hence, when recreating the directory and only adding files to it, the newly created directory will often be smaller than the old one.
On the other hand, if the total size of your *new* directory and its files is *larger* than the toal size of your *old* directory and files, it is likely that you had sparse files in the old directory which were expanded when you copied them to the new directory.
In either case above, the correct way to compare the contents of two directories is to 'cksum' each file therein. An equality in the file's checksums assures you that the copy was correct. This works even when you have a sparse file and are comparing it to an expanded version. Sparse files are commonly seen in with databases.
You don't offer how you performed your copy ('rcp', 'tar', 'cpio', 'fbackup'). My first choice would be to leverage LVM MirrorDisk/UX to perform the copy at the logical volume level. My second choice would probably be to use 'fbackup' and 'frecover' since this handles largefiles (whereas 'tar' and 'cpio' do not) *and* since 'fbackup'/'frecover' can copy sparse files without expanding them.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2007 06:19 AM
01-20-2007 06:19 AM
Re: rsync question
Thanks.
i create a temp mount point and mount it
cd /origmount point
tar cf - .|(cd /temp_mount;tar xpf -) &
This is how i migrated data.
is this a good way?
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2007 07:49 AM
01-20-2007 07:49 AM
Re: rsync question
Your 'tar' is fine. Apparently you don't have any largefiles (files larger than 2GB to deal with) so this will work.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 12:36 AM
01-22-2007 12:36 AM
SolutionSpeed is about 2GB / hour, but it's online with no user disruption.
ioscan -fnC disk , find disk.
pvcreate disk..
vgextend vgXX disk
vgdisplay -v vgXX
Find the lvol you want to move, source pv and dest pv. T
pvmove -n /dev/vgXX/lvolname /dev/dsk/srcdisk /dev/dsk/destdisk
Rsync will work, but you will find it's actually really slow as it spawns 3 separate processes to do the copy (source, dest, admin). Honestly, the fastest way is to:
cd /m01
find . -depth -print | cpio -pdumv /m01_temp
You could use rsync to check that it's all the same afterwards if you want. Or check using:
find /m01 -depth -print | wc -l
find /m01_temp -depth -print | wc -l
du -sk /m01 /m01_temp
Compare the numbers for the first two (number of files copied), the du values should be fairly close. rsync is more accurate for checking, but slow. All depends on how many files there are.