- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copying problem!!
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
03-30-2007 02:05 AM
03-30-2007 02:05 AM
I have a problem due to the fact I can't add any more disks to a specific volume group. It has a maximum of 16. Anyway I need to copy one of the lvols into another area on a new volume group. I am in the process of testing this. I created a new mountpoint and simply did a cp -rp to this area. I then intended to simply umount and then mount on the new area. I have noticed however that after the copy the amount of used space differs from the original. If I do a file listing there are exactly the same number of files in the new area. It suggests however almost 1GB less data. Can anyone explain this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:15 AM
03-30-2007 02:15 AM
Re: Copying problem!!
Online JFS a pay for add in product can defragment vxfs filesystems in place.
The other method might be to back up the fire and restore it, but OnlineJFS is the best way to go for this situation.
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
03-30-2007 02:16 AM
03-30-2007 02:16 AM
Re: Copying problem!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:17 AM
03-30-2007 02:17 AM
Re: Copying problem!!
Ooops, forget sparse files that would explain why the original files occupy fewer disk blocks than the original - not your problem.
If you want to be absolutely sure then write a script that compares the cksum's of the original files to those of the copies but I suspect that you are fine.
By the way, cp -rp will work but if you want to retain all of the metadata (notably directory ownerships) between the original and copy versions then a tar, cpio, or fbackup|frecover pipeline does a much better job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:17 AM
03-30-2007 02:17 AM
Re: Copying problem!!
What you can do is something like:
# cd /curr_dir
# find . -type f -exec cksum {} \; > /var/tmp/cksum_orig_dir
# cd /new_dir
# find . -type f -exec cksum {} \; > /var/tmp/cksum_new_dir
Once the cksums are done, you can sort and diff the files. If there are no differences, then your copy is OK.
Some differences in size can be in the size of the directory itself. Directories grow as files are added, but as files are removed, they do not shrink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:21 AM
03-30-2007 02:21 AM
Re: Copying problem!!
Is there any difference in output from fstyp?
Besides, I would recommend to pass big enough values for No. of PVs, PE size, and max. No. of PEs during VG creation.
Better to be required to use a larger PE size from the start than running into PV or PE limitations later when space gets short, and requiring recreation of VG.