Query related to Inodes in Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Query related to Inodes in Solaris
# 1  
Old 10-17-2009
Query related to Inodes in Solaris

Hi friends,
1.From the information I gathered, an inode is an object which has a number associated with it... and when a slice is partitioned, inodes with their numbers are created.
When a file is created, an inode number is assigned to it. This could be viewed through ls -i <dir/file> command. Each inode has 2 pointers, 1 pointer pointing to block containing properties of a file/dir and other pointer points to data blocks for the file.

2.Now, please clarify my doubts:

1.What is the basic size of an inode in Solaris ? (for eg, in linux its 128 bytes). So, if it is 128 bytes, does it mean that the size of a file can only be 128 bytes..?.
2.What is the need for increasing the number of bytes per inode by means of
newfs -i <raw device> command?

thank u.
# 2  
Old 10-17-2009
There are many resources to explain inodes in detail. Let me try to give you a basic understanding.

First, inodes are on disk descriptions of the storage allocation of a file in a filesystem. It does not contain the filename used to access the storage. It does contain the number of path names that refer to that storage.

Second, when a file is opened, a vnode is created that contains information from the inode. The OS only uses the vnode during file access.

Third, a file is located via it's directory entry. A directory entry basically consists of a file name and inode number. So when you open a file, the system searches for the directory containing the file entry. It then uses the inode entry to create a vnode.

Fourth... This size of the inode is not really useful. It does not determine file size. It only contains information that describes the information necessary to manage the file.

Fifth... the -i option of newfs refers to the density of inodes. That is.. how many inodes will be created. It is actually a mkfs option.

try this:

22.]System Administration Guide: Devices and File Systems - Sun Microsystems
# 3  
Old 10-17-2009
hi jp2542a,
Thanks for the response,
Actually i got confused with the term "density" of inodes.

Is it the number of inodes in a filesystem or the number of bytes of an individual inode?


thanks .
# 4  
Old 10-17-2009
Wrench

Density is the number of inodes that will be created in a filesystem as a ratio of inodes per bytes in the filesystem. If the fs will have a lot of small files, then you want lots of inodes and hence high density (low -i value). If you have a few large files, then you want low density (high -i value). Look at the link I gave you near the bottom.
# 5  
Old 10-17-2009
thank u jp
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Interfaces related query

I need to list the interfaces that uses FTP instead of SFTP on my applications that are on AIX servers. How do I get that list of IP addresses that connect to my applications via FTP? (2 Replies)
Discussion started by: ggayathri
2 Replies

2. UNIX for Dummies Questions & Answers

query related to grep

Hi All, The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt But I am not sure, whether, all result stored in .txt file in case of multi-line result. Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies

3. UNIX for Dummies Questions & Answers

A query related to 'ls' command

I am executing the ls command to show the contents of a folder, it shows some number in front of word total as highlighted in blue color below quotes. Can anyone please share that what it is? (2 Replies)
Discussion started by: Zaib
2 Replies

4. Shell Programming and Scripting

datetimestamp related query!

Hi all, I have put a query in a thread but didn't get any reply. Hoping to get a reply here. I have a file in that one line resembles like below... Forwarded by Deepak on 11/15/2009 10:28 AM EST ofcourse AM can be PM also... so what i need is first i need to get only... (1 Reply)
Discussion started by: smarty86
1 Replies

5. Solaris

Query related to boot process of Solaris x86

I am a linux user and trying to relate Solaris x86 boot process with that of Linux.. Please correct me if wrong with my understanding on Solaris x86 booting process: 1.POST by BIOS. 2.BIOS loads mboot program from MBR of the hard disk. 3.mboot loads Grub stage1 from /boot/grub/stage1 4.Grub... (0 Replies)
Discussion started by: saagar
0 Replies

6. Shell Programming and Scripting

query related to if

wht does below statement mean? if wht does dis -d option do?? TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies

7. Shell Programming and Scripting

Print related query

i Am using the below query and printing the $8 and $9 filed.. find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls this give me the rsult like below.. 2008/home/ADMIN/om/1.txt 2008/home/ADMIN/om/hi.txt ... (1 Reply)
Discussion started by: sapan123
1 Replies

8. UNIX for Dummies Questions & Answers

awk related query

hi, I have to extract a column from a file and then updated that column..?? Now i can use wak for extracting it and then how to update it.. $ awk' {print $5}' input_file Can i use sed command here piping it to the output from the awk command.. (2 Replies)
Discussion started by: abhisek.says
2 Replies

9. Shell Programming and Scripting

sed related query

Hi I have a file which looks like this //string = "abcd"; //info //string = "*pqrs"; //add string = "#123"; //sub //string = "#1234567890" data = check(string) //string = "#1234567890" I want to modify this as string = "#987"; //mult data = check(string) How do i do that? (1 Reply)
Discussion started by: gopsman
1 Replies

10. Shell Programming and Scripting

Query related to #!/bin/sh

hi All Why is #!/bin/sh being used in most of the ksh scripts......? I have seen this (#!/bin/sh) being used at the start of the script Regards Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
Login or Register to Ask a Question