- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- inode size
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
08-09-2002 06:49 AM
08-09-2002 06:49 AM
inode size
We need to store many thousand files that are only about 1024 bytes in size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 06:57 AM
08-09-2002 06:57 AM
Re: inode size
bdf -i
for a start
I'll try to find the exact command..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:01 AM
08-09-2002 07:01 AM
Re: inode size
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x59d828e43106d6118ff40090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:02 AM
08-09-2002 07:02 AM
Re: inode size
for details have a look at 'man df'.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:03 AM
08-09-2002 07:03 AM
Re: inode size
OS is ?
idnode is ?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:06 AM
08-09-2002 07:06 AM
Re: inode size
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:17 AM
08-09-2002 07:17 AM
Re: inode size
mkfs -m /dev/vg02/lvol4 will give the details of the fielsystem in terms of inodes and inode size ie the defaults which were used to create the fielsystem
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:20 AM
08-09-2002 07:20 AM
Re: inode size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:21 AM
08-09-2002 07:21 AM
Re: inode size
I think you are asking the wrong question but
here goes:
Create this small c program and compile and run it on your box; it will work with even the bundled C compiler.
inodesz.c
----------------------------------
#include
int main()
{
printf("Size = %d bytes\n",sizeof(struct inode));
return(0);
}
compile it like this:
cc inodesz.c -o inodesz
Execute inodesz.
What you are probably needing to know is the fragment size. You can use dumpfs to display that value but it is typically 1024 bytes.
Man newfs_hfs for details.
By the way, vxfs is probably your better answer
because it is extent-based and will generally make better use of the space for small files AND performance will be better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:24 AM
08-09-2002 07:24 AM
Re: inode size
this will be a good command for you:
# dumpfs file_system_name
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2002 12:34 PM
08-10-2002 12:34 PM
Re: inode size
I can only guess that your question is really about "fragment size", as your files then would only occupy a single fragment, each, and hence 8 of them would fit into a single block. Check the output of "tunefs -v" on your file-system's device file for this piece of information (fields "bsize" and "fsize).
With "idnode" you mean "i-node", don't you? And each one is 256 bytes (as Clay's program should tell you), IIRC. So better check with "bdf -i" that you have that many inodes free, regardless of the size of the individual i-node...
A further guess is that you will have to re-create (mkfs) your filesystem with the option "nbpi" set to 1024!
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 01:36 AM
08-12-2002 01:36 AM
Re: inode size
As far as I know, you can not directly get that via a command, but you can get it indirectly:
bdf -i /dev/vg??/lvol?
This shows "kbytes", "iused" and "ifree". Now calculate kbytes/(iused + ifree) and you have nbpi, i.e.:
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol3 83733 41184 34175 55% 3827 9613 28% /
83733/(3827+9613) -> 6.23 i.e. 6KB/inode
"df -t" gives similar information: "total blocks" (divide by two to get KB) and "total i-nodes".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 02:33 AM
08-12-2002 02:33 AM
Re: inode size
So if you have a 1Gb filesystem it would need approximately 1048576 inodes. 'newfs -i 1048576 /dev/dsk/HFSdisk'.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 02:35 AM
08-12-2002 02:35 AM
Re: inode size
the '-i' option is number_of_bytes_per_inode so the command should be 'newfs -i 1024 /dev/dsk/HFSdisk.
Sorry,
Trond