Thursday, June 12, 2008

Managing File System Inconsistencies and Disk space in UNIX\Solaris:

This article explains how to manage disk space and file system inconsistencies. In general, Unix file system uses a set of tables to keep track of used inodes and available blocks. Inconsistencies will arise, for example, abrupt termination of the operating system. The reason for inconsistencies are listed below

1. Software error in the kernel.

2. Turning off the system without proper shutdown procedure.

3. Defective hardware, such as problem with the disk.

fsck Command:

Used to find the inconsistencies and repair them.

Syntax:

#fsck {option} {device}

Options

-F {fstype} – limit to check the specified file system.
-m – check but do not repair, for checking the status of the file system.

df Command:

Used to monitor disk space usage at file system level, also used to determine the following,

1. The amount of disk space occupied by currently mounted or unmounted file systems.
2. The total amount of the used and available space.
3. The fraction of the file system’s total capacity that has been used.

Syntax:

#df {-F fstype} {option} {file system}

du Command:

Used to get the report on disk usage at the directory and file level, also used to determine the following,

1. Total space allocated to a directory.
2. Total space allocated to a directory subtree.
3. Total space allocated to a non-directory file.

Syntax:

#du {option} {file}

quot Command:

Used to get the report on disk usage by user name, if you want to know how much space is being used by each user on a given file system, can make use of this command.

Syntax:

#quot {option} {filesystem}

Hope this is informative.

Thanks

Logu

Logu_microsoft@hotmail.com
91-98414 99143

2 comments:

Anonymous said...

Can anyone recommend the top performing Managed Service software for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central helpdesk software
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

visit the site visit this site right here click resources best site you can check here view it now