Create Free Blog | Random Blog »   Report Abuse | Login   

 

What is minfree?

September 15th, 2009

Whenever we creating a new file system on a slice, the newfs command reserves the space between 1 to 10 percent of the file system space depending on the file system for maintenance purpose. This space is referred to as minfree space.

Using with following command we can see the minfree space for a particular file system.

#fstyp -v /dev/dsk/c0t1d0s1 1 head

We can also change the minfree space. Suppose we want to change the minfree value with 2 then see the below example

#newfs -m 2 /dev/dsk/c0t0d0s1

 

Posted by Gopal | Filed in File System faq | Comment now »

File System Structure

September 1st, 2009

Unix File System Structure

Unix File System Structure

 

Posted by Gopal | Filed in File System | Comment now »

If Super Block is corrupted, how can you repair the file system?

August 30th, 2009

  • If Super Block is corrupted, the system will go to the maintenance mode that means single user mode.
  • There we check which super block is corrupted using with following syntax.

# newfs -N /dev/rdsk/c0t0d0s5

  • Then we can repair that super block with alternate super block using with the following syntax.

# fsck -F -o b=<alternate superblock number> /dev/rdsk/c0t0d0s5

 

Posted by Gopal | Filed in File System faq | Comment now »

How to add a new hard disk in Solaris and how to create a new file system?

August 30th, 2009

  • After adding a disk physically in Solaris, we need to check that the disk is detected or not with using the command ‘format‘.
  • If it is not detected we need to use ‘devfsadm‘ command.  This command automatically create the device drivers and detect the disk. That means we need not reboot the system.
  • Then we need to create slices on this disk using with ‘format‘ command as per our required slice sizes.
  • After creating slices, take one slice and create the file system using the command newfs / mkfs.

Syntax: newfs /dev/rdsk/c0t0d0s4

  • Finally mount the file system into already existing directory.

Syntax: #mount /dev/dsk/c0t0d0s4 /sys1

 

Posted by Gopal | Filed in File System faq | Comment now »

Types of File Systems in Solaris

August 29th, 2009

The Solaris operating system supports three types of file systems.

  1. Disk based File System
  2. Distributed File System
  3. Pseudo File System

1. Disk based File System:

UFS: The Unix File System in the Solaris operating system is based on the Berkeley file system. The Solaris OS allow the ufs to grow to multiple terabytes in size.

HSFS: This High Sierra File System is developed for use on CD-ROM media.

PCFS: The PC File System allows the Solaris OS to access the PC-DOS formatted file systems. Users can use UNIX commands for direct read and write access to PC-DOS files.

UDFS: The Universal Disk Format File System is used for optical storage

 

Posted by Gopal | Filed in Solaris | Comment now »