- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file size changed using rcp
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
06-18-2006 10:48 PM
06-18-2006 10:48 PM
Both systems are HP-UX 10.20 and oracle is shutdown at the time of the copy.
Why is the file size changing ?
Thanks John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2006 10:50 PM
06-18-2006 10:50 PM
Re: file size changed using rcp
Check #cksum
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2006 11:02 PM
06-18-2006 11:02 PM
Re: file size changed using rcp
Do the filesystem block sizes differ between the source and destination volume groups?
fstyp -v /dev/vgxx/lvolx |grep f_bsize
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 01:12 AM
06-19-2006 01:12 AM
SolutionConsider this scenario:
Create a file and write the first record. Then lseek(2) to the one millionth record and write it. Now close the file. The occupied space is two records. But if you copy the file, HP-UX will read all the records including the unwritten ones. The unwritten records contain nulls (zeros) which are supplied by the filesystem code. If you copy the file, the destination will ALWAYS be larger because the unwritten records are sent to the destination. The result is identical files except that one actually occupies all the space while the original doesn't use any space for undefined records.
Depending on the 'emptiness' of the file, the difference could be as much as 100:1 or more.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 01:16 AM
06-19-2006 01:16 AM
Re: file size changed using rcp
I've seen it too. Seems to be a feature(bug) of rcp.
I did not encounter this with scp -rp, so I suggest that or tar for the transfer.
tar preservers permissions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 01:17 AM
06-19-2006 01:17 AM
Re: file size changed using rcp
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 02:28 AM
06-19-2006 02:28 AM
Re: file size changed using rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:39 PM
06-19-2006 10:39 PM
Re: file size changed using rcp
du -sk file showed the data size.
We got around the size issue by increasing the filesystem size. I will now expirement with tar and fbackup for future reference.
Cheers John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:40 PM
06-19-2006 10:40 PM