HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- different bytes in HFS & VxFS
Operating System - HP-UX
1838675
Members
4959
Online
110128
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-16-2001 07:47 AM
07-16-2001 07:47 AM
different bytes in HFS & VxFS
When I cpio a directory from a HFS filesystem to a new VxFS filesystem, I noticed the used bytes in the two directories differ. However, the command diff showed the two directories are identical. Is that normal?
Please see the following example:
# mount /dev/vgbroot/lvol6 /mnt
# cd /opt
# find . -xdev -depth -print|cpio -pxdm /mnt
# diff /opt /mnt
Common subdirectories: /opt/ansic and /mnt/ansic
Common subdirectories: /opt/lost+found and /mnt/lost+found
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol6 656715 539776 51267 91% /opt
/dev/vgbroot/lvol6 1638400 534728 1034694 34% /mnt
Please see the following example:
# mount /dev/vgbroot/lvol6 /mnt
# cd /opt
# find . -xdev -depth -print|cpio -pxdm /mnt
# diff /opt /mnt
Common subdirectories: /opt/ansic and /mnt/ansic
Common subdirectories: /opt/lost+found and /mnt/lost+found
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol6 656715 539776 51267 91% /opt
/dev/vgbroot/lvol6 1638400 534728 1034694 34% /mnt
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 07:58 AM
07-16-2001 07:58 AM
Re: different bytes in HFS & VxFS
Hi George:
A difference is expected and is normal. The structure of a vxfs (JFS) filesystem is quite different than an HFS one.
Also, regardless of filesystem type, once space for inodes are allocated in a filesystem, the space is not returned. You can see this for the size of a directory. Create a directory and create a large number of files beneath it. Examine the size of the directory with 'ls'. Now delete all of the directories files but one. Exampine the size of the directory again, and you will see it is unchanged. Lastly, copy the contents of this directory to a new directory. You will see that the new directory is substantially smaller.
...JRF...
A difference is expected and is normal. The structure of a vxfs (JFS) filesystem is quite different than an HFS one.
Also, regardless of filesystem type, once space for inodes are allocated in a filesystem, the space is not returned. You can see this for the size of a directory. Create a directory and create a large number of files beneath it. Examine the size of the directory with 'ls'. Now delete all of the directories files but one. Exampine the size of the directory again, and you will see it is unchanged. Lastly, copy the contents of this directory to a new directory. You will see that the new directory is substantially smaller.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 07:59 AM
07-16-2001 07:59 AM
Re: different bytes in HFS & VxFS
Hi George,
Yes, that is very common and one way that it happens (in addition to the differing data structures of the directories for VxFS and HFS) is this:
Suppose that the original directory had 4000 files in it and that you then removed 3900 of them. The directory itself was not shrunk but only the entries were marked unused. The directory itself is still quite large. When you copy the directory over to the new location, the directory now only needs to be big enough to hold 100 entries.
If you are really concerned about the accuracy of the copy, a better test is to use sum or cksum to compare each file in the source and destination. I wouldn't worry; this is perfectly normal.
Clay
Yes, that is very common and one way that it happens (in addition to the differing data structures of the directories for VxFS and HFS) is this:
Suppose that the original directory had 4000 files in it and that you then removed 3900 of them. The directory itself was not shrunk but only the entries were marked unused. The directory itself is still quite large. When you copy the directory over to the new location, the directory now only needs to be big enough to hold 100 entries.
If you are really concerned about the accuracy of the copy, a better test is to use sum or cksum to compare each file in the source and destination. I wouldn't worry; this is perfectly normal.
Clay
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP