- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File system block 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
04-02-2001 01:47 AM
04-02-2001 01:47 AM
File system block sizes
My suspicion is that the rogue file system was built using a different blocking factor from the original.
1. Is there a command that allows me to view a file systems attributes?
2. If it is a blocking factor problem can this be resolved or would it entail a rebuild?
3. Am I completely on the wrong track?
Many thanks in advance ...... BobB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 01:54 AM
04-02-2001 01:54 AM
Re: File system block sizes
to your fisrt question:
fstyp -v /dev/vgXX/lvolX
will display filesystem parameters.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 02:02 AM
04-02-2001 02:02 AM
Re: File system block sizes
fstyp /dev/dsk/c1t6d0
Find the type of the file system on a logical volume, /dev/vg00/lvol6:
fstyp /dev/vg00/lvol6
Find the file system type for a particular device file and also information about its super block:
fstyp -v /dev/dsk/c1t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 02:07 AM
04-02-2001 02:07 AM
Re: File system block sizes
You have to take care of the block sizes especially when your filesystem is populated by small files. This is prevalent when you are migrating from HFS to JFS because HFS has a default block size of 8 kb while JFS has a default block size of only 1 kb.
You cannot change your filesystem block size without a full backup and restore of your filesystem. I am afraid you will need to redo the newfs of your logical volume with the correct block size.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 02:14 AM
04-02-2001 02:14 AM
Re: File system block sizes
I think you case is not with blocksize , I mean if your lvm file system have similar capacity. just copy files over is not make too much diffrent in space usage.
just check with bdf or lvdisplay does it really similar,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 04:02 AM
04-02-2001 04:02 AM
Re: File system block sizes
It does not look as a problem with the file system blocks.
Both file systems are almost identical, as you mention, and probably use the same default block size.
Another possibilities are:
1. use getext command to see if some extents have been reserved.
2. Maybe some old files on the second filesystem exist, or maybe you need to do defragmentation, if you have On-line JFS.
As a last resort try to use fsdb command, but remember its output and interface are a little hermetic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 05:16 AM
04-02-2001 05:16 AM
Re: File system block sizes
These are 256 bytes apiece in a VXFS filesystem and the default number is very generous (especially for a very large filesystem that will only contain a few large files). The default will account for about 3% of the whole filesystem (approx 320Mb for a 10Gb filesystem).
Do bdf -i for each and compare the 'iused' and 'ifree' values.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 06:37 PM
03-17-2003 06:37 PM
Re: File system block sizes
Hi bob, did you find a resolution to your problem, i am having the exact same issue.
thanks.
mike whitton
whitton@dwsd.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:24 PM
03-17-2003 07:24 PM
Re: File system block sizes
create file
write rec#1
write rec#1000000
close file
So the resultant file has only 2 records but are separated by 999999 empty records. If a program tries to read rec#2, it will receive a buffer of zeros. Same with rec#999998 or any other undefined record.
So when you copy a sparse file to a new location, the filesystem code returns a stream of zeros for the missing records. But these zeros will be written to the copied file and will of course occupy a great deal more space. Now application programs will not see any difference since undefined records are still a stream of zeros, but the copy will always be larger.
Bill Hassell, sysadmin