11-11-2002
Out of inodes means that you can't create any new files in that directory.
It would help if you posted some info about the filesystem in question. Like, How it was created? what file type it is? etc... .
Generally, if you must define inodes when the filesystem is created, the only way that I know to fix it is to save your data, blow away the filesytem and recreate and increase the # of inodes by 2x.
![Cool Smilie](https://www.unix.com/images/smilies/cool.gif)
9 More Discussions You Might Find Interesting
1. Solaris
hi
i need to find all the files that r linked to the current file as i need to delete the file as well as few of its links :confused:
thnx in advance (1 Reply)
Discussion started by: livemyway
1 Replies
2. Solaris
Hi, Anyone can help
My solaris 8 system has the following
/dev/null , /dev/tty and /dev/console
All permission are lrwxrwxrwx
Can this be change to a non-world write ??
any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
3. Solaris
So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following:
devfsadm -Cv
powermt -q
luxadm -e offline <drive path>
luxadm probe
All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies
4. AIX
Hi,
How can i check that i am using RAW devices for storage in my AIX machine...
Also after adding a LUN from storage to a aix host, when i check /dev in the host, i can see both rhdisk and hdisk with same number
eg:
dcback1(root):/dev>ls -lrt | grep disk12
crw------- 1 root ... (4 Replies)
Discussion started by: jibujacob
4 Replies
5. AIX
Hello AIXians,
I can't boot my AIX, it hangs and stops at the code error: 0518
After searching google, I knew the problem is due to problems in File Systems.
So the solution is booting from any bootable media, then run these commands in maintenance mode:
#fsck -y /dev/hd4
#fsck -y... (3 Replies)
Discussion started by: Mohannad
3 Replies
6. Solaris
Hi Guys,
I have recently started reciving below Error message
Failed HTTPS transfer to https://supportfiles.sun.com/curl
whenever I run
/usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v
from all Servers.
Looks like the SSL certificate as Expired.
Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies
7. Shell Programming and Scripting
Objective: To recreate the partitioning setup of /dev/sda on /dev/sdc
How would I parse the below information and initialize variables
(an array?) that can be used to build sgdisk commands in a script, regardless of the number of partitions?
Something along the lines of:
sgdisk -n... (12 Replies)
Discussion started by: RogerBaran
12 Replies
8. Red Hat
Hi,
Please suggest steps to change grub from /dev/sda to /dev/sdb, (1 Reply)
Discussion started by: manoj.solaris
1 Replies
9. HP-UX
Hi,
In our HP-UX B.11.11. I could not find dev/urandom and dev/random
Are all pseudo-devices implemented as device drivers, or in need to run /configure some package to install the package to have dev/urandom.
Please help (4 Replies)
Discussion started by: rashi
4 Replies
LEARN ABOUT DEBIAN
sg_get_fs_stats
sg_get_fs_stats(3) Library Functions Manual sg_get_fs_stats(3)
NAME
sg_get_fs_stats - get filesystem statistics
SYNOPSIS
#include <statgrab.h>
sg_fs_stats *sg_get_fs_stats(int *entries);
DESCRIPTION
The sg_get_fs_stats takes a pointer to an int, entries, which is filled with the number of mounted file systems the machine has. The return
value is a pointer to the first member of an array of sg_fs_stats structures; the number of entries in the array is returned in entries.
The function returns statistics about mounted filesystems, including free space and inode usage.
RETURN VALUES
sg_get_fs_stats returns a pointer to a structure of type sg_fs_stats.
typedef struct {
char *device_name;
char *fs_type;
char *mnt_point;
long long size;
long long used;
long long avail;
long long total_inodes;
long long used_inodes;
long long free_inodes;
long long avail_inodes;
long long io_size;
long long block_size;
long long total_blocks;
long long free_blocks;
long long used_blocks;
long long avail_blocks;
} sg_fs_stats;
device_name
The name known to the operating system. (eg. on linux it might be hda)
fs_type
The type of the filesystem.
mnt_point
The mount point of the file system.
size The size, in bytes, of the file system.
used The amount of space, in bytes, used on the filesystem.
avail The amount of space, in bytes, available on the filesystem.
total_inodes
The total number of inodes in the filesystem.
used_inodes
The number of used inodes in the filesystem.
free_inodes
The number of free inodes in the filesystem.
avail_inodes
The number of free inodes available to non-privileged processes.
io_size
A suggested optimal block size for IO operations -- if you're reading or writing lots of data, do it in chunks of this size.
block_size
How big blocks actually are on the underlying filesystem (typically for purposes of stats reporting).
total_blocks
The total number of blocks in the filesystem.
free_blocks
The number of free blocks in the filesystem.
used_blocks
The number of used blocks in the filesystem.
avail_blocks
The number of free blocks available to non-privileged processes.
SEE ALSO
statgrab(3)
WEBSITE
http://www.i-scream.org/libstatgrab/
i-scream $Date: 2005/07/13 13:01:23 $ sg_get_fs_stats(3)