- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cksum / sum problem & 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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-03-2001 10:45 AM
тАО04-03-2001 10:45 AM
sum -p
My problem is with doing a cksum (or a sum -p) on a directory that exists on multiple machines. If i have say, dir1 on system1, and i rcp -rp the dirtectory to another machine, so that dir2 on system2 is an exact copy of dir1 on system1, and then do a cksum on those 2 directories... why do i get a different checksum result!?
Is there something i'm missing here? Does cksum not work on directories? Why should the checksum differ for an exact copy of the same directory on a different machine?
Here's hoping...
Cheers,
Robin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2001 10:56 AM
тАО04-03-2001 10:56 AM
Re: cksum / sum problem & question
As directories (or the contents thereof) grow, addtional blocks of disk need to be allocated to hold the additional inode information. Once allocated, no shrinkage occurs. However, when a copy is made, only the required space is allocated. Often this is less than the "current" size, leading to a different checksum when examined.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2001 10:59 AM
тАО04-03-2001 10:59 AM
Re: cksum / sum problem & question
Can you think of any way that i can counteract this behaviour such that the checksum would be the same??
Cheers,
Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2001 11:16 AM
тАО04-03-2001 11:16 AM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2001 07:49 PM
тАО04-03-2001 07:49 PM
Re: cksum / sum problem & question
or ls -lR /top_of_tree and diff those two. they should be exactly the same. note that cp doesn't copy setuid bits. (just as is set on the oracle binary)