• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris : How to determine number of free/used inodes in a file system

by admin

Here is how you find out how many inodes are in the filesystem:

1. Add the numbers of used and free inodes. The df -i option is a ufs-specific option.

# df -oi
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t0d0s5       2506  145590     2%   /opt
2506 + 145590 = 148096

2. This closely corresponds to information found by other system commands. Find the number of kbytes in the filesystem:

# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s5     288855   73739  186231    29%    /opt

Find the number of bytes per inode (nbpi):

# mkfs -m /dev/rdsk/c0t0d0s5
mkfs -F ufs -o
nsect=80,ntrack=19,bsize=8192,fragsize=1024,cgsize=16,free=10,rps=90,
nbpi=2066,opt=t,apc=0,gap=0,nrpos=8,maxcontig=16 /dev/rdsk/c0t0d0s5 615600

3. To find the number of inodes in the filesystem, divide the kbytes by nbpi:

288855 * 1024 / 2066 = 143169

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to Configure Integrated Load Balancer (ILB) in Solaris 11
  2. Creating network interface alias for network boot or jumpstart installation at OBP
  3. How to enable or disable telnet in Solaris 10
  4. How to Identify ZFS Snapshot Differences using “zfs diff”
  5. Determining which network interface will be used for jumpstart installation / network boot
  6. Solaris Snoop : 15 Awesome practical examples for packet sniffing
  7. Solaris : How to enable ssh login for root user after a fresh install
  8. How to Enable ssh/sshd Debugging for Solaris
  9. Solaris 11 : Setting user and group quota for ZFS datasets
  10. How to update Solaris 11 system Using IPS

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright