- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Incorrect file size reported
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
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-14-2011 10:04 PM
тАО04-14-2011 10:04 PM
Hello,
I have the following disk layout
vg00
lvol1
/mnt1
vg01
lvol2
/mnt2
I'm trying to copy all the data from /mnt1 to /mnt2, i've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2. All files copied from /mnt1 to /mnt2 seem to have this problem.
11.31
vxfs v6
20GB lv's
Any ideas. This is driving me insane, /mnt1 is about 10GB but because its making them large on /mnt2 i'm unable to copy the entire contents.
Any help would be great.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 12:16 AM - last edited on тАО08-17-2011 08:45 AM by Kevin_Paul
тАО04-15-2011 12:16 AM - last edited on тАО08-17-2011 08:45 AM by Kevin_Paul
Solutionhow did you copy it? I think these are sparse files, that's why you end up with much bigger files on /mnt2.
use dd or pax to move them, see also this thread:
http://h30499.www3.hp.com/t5/System-Administration/How-can-I-copy-a-sparse-file/m-p/4859869#M396243
Unix operates with beer.
- Tags:
- dd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 12:18 AM - last edited on тАО07-11-2011 02:33 PM by Kevin_Paul
тАО04-15-2011 12:18 AM - last edited on тАО07-11-2011 02:33 PM by Kevin_Paul
Re: Incorrect file size reported
here is a way of identifying a sparse file:
http://h30499.www3.hp.com/t5/System-Administration/Find-sparse-file/m-p/3875418#M279127
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 12:55 AM
тАО04-15-2011 12:55 AM
Re: Incorrect file size reported
i tried dd but it never ended :(
dd if=/dev/vg00/lvol1 of=/dev/vg01/lvol2 vs=1024
this seem to go forever, the new partition is slightly larger but that shouldn't be a problem. Is there a way to monitor dd?
i have tried cpio, mv, cp, fbackup, snapshot + those commands (in case).
i wasn't aware of pax, i noticed someone else commented that it doesn't support files larger than 2GB?
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 01:03 AM
тАО04-15-2011 01:03 AM
Re: Incorrect file size reported
or you just couldn't wait till the end of it. :)
you can also copy it on a file level like this:
# dd if=/mnt1/file1 of=/mnt2/file1 bs=1024
AFAIK dd can handle files >2gig
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 01:06 AM
тАО04-15-2011 01:06 AM
Re: Incorrect file size reported
I left it run over night, i thought this would have been enough for dd.
I'll give pax a try first, this sounds like it could do the job. failing that i'll try dd again.
i'll update the thread / points tomorrow when i get to try it out.
thanks for the suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2011 04:12 AM
тАО04-16-2011 04:12 AM
Re: Incorrect file size reported
Hmm. I wouldn't expect tar to be smart enough to create sparse files?
>I noticed someone else commented that it doesn't support files larger than 2GB?
No, pax(1) can support > 8 Gb. After all, after fbackup(1m) is obsoleted, pax is its replacement.
- Tags:
- pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2011 04:13 AM
тАО04-16-2011 04:13 AM
Re: Incorrect file size reported
dd if=/dev/vg00/lvol1 of=/dev/vg01/lvol2 vs=1024
Your blocksize is too small. Try bs=1024k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2011 05:30 AM
тАО04-17-2011 05:30 AM
Re: Incorrect file size reported
From my testing, it seems that neither 'tar' , 'fbackup', nor pax support sparse files.
I'm surprised a little.
Just for grins, why don't you untar (watch out for absolute pathnames -- be sure to use the -C option) the tar archive into /mnt2 and see what the stuff *looks* like and actually *is*.
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2011 06:49 AM
тАО04-17-2011 06:49 AM
Re: Incorrect file size reported
>> I'm trying to copy all the data from /mnt1 to /mnt2,
Which tool(s) used for the copy? cp? details?
>> i've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2.
Best I know there is no tool called 'it' on HPUX, although that would be neat to maximize confusion!
So what tool did you use to report the size? ls? du? df? options used for those?
Did you try alternatives? What did they all report?
hth,
Hein.
All files copied from /mnt1 to /mnt2 seem to have this problem.