- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- du -sk showing different sizes...
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
05-16-2007 06:56 PM
05-16-2007 06:56 PM
i wanted to shift a directory contents from one dir to another..
/xyz vg00 12408..
mv xyz xyz_old
so i created another mountpoint called /xyz and put all the contents into it..
# cd xyz_old
# cp -pr * /xyz
but now the file size varies..
earlier originalw as 12408 and now its 96775
what do i do ???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:22 PM
05-16-2007 07:22 PM
Re: du -sk showing different sizes...
what do i do ???
You copied the holes in the sparse files and made them bigger.
I'm not sure if there is a backup tool that will preserve the holes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:41 PM
05-16-2007 07:41 PM
Re: du -sk showing different sizes...
so it wont be creating any problem right..bcoz the file size varies...in both cases..
regards,
boomer..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:37 PM
05-16-2007 08:37 PM
Re: du -sk showing different sizes...
In this case, as long as the size is bigger, there should be any problem.
A mv would have been different.
You may also wish to cross-check the content of the two directories by running a "find" and doing a "diff" on the two outputs.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 09:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 11:30 PM
05-16-2007 11:30 PM
Re: du -sk showing different sizes...
Now the important concept here is that both files are identical. If you run a cksum against each file, they will be the same. They are just stored differently. There is no simple way to recreate the original file so it uses identical storage without using the original program. The good news is that is you save these files to a tape using compression, the string of zeros will compress very highly, perhaps 5:1 to 20:1 depending on the data.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2007 12:42 AM
05-18-2007 12:42 AM
Re: du -sk showing different sizes...
dircmp xyz_old /xyz
This will compare the files for you :
same ./network
different ./passwd
same ./pm_cfg
same ./protocols
same ./resolv.conf
pipe the output to grep different, couldn't be easier !
dircmp xyz_old /xyz | grep -i different