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
Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts
Thursday, June 12, 2008
Managing Hard and Symbolic Links in Solaris/Unix:
This article explains the purpose and usage of hard and symbolic links. A link is a file that points to another file. There are two kinds of link available
1.Hard Link:
a. A Hard Link is a pointer to a file that is indistinguishable from the original file.
b. Any changes made to a file are effective regardless of the name used to refer to the file – the link file or the original file name.
c. The link and the file are on the same file system because both have the same inode number.
d. A hard link can only point to a file, not to a directory.
e. You cannot create a hard link file without having the existing file.
f. The hard link file will consume the same amount of the disk as that of the original file.
g. If you delete the link file, the other will exist and the reverse is also applicable.
Syntax of the Hard Link file:
To create a hard link file,
#ln {source} {Target}
To remove the same file,
#rm {linkfile}
2.Symbolic Link:
a. A Symbolic Link is an indirect pointer to a file and it can span the file systems.
b. A symbolic link can be pointed to either file or directory.
c. You can create a symbolic link without having the existing file.
d. The symbolic link file will have the different inode number.
e. The symbolic link file will just have the details of the pointer information of the original file alone. Hence it won’t consume the same space as that of the original file.
f. It is just like a shortcut in the Windows.
g. If you delete the shortcut link file, the original file will exist. The reverse is obviously not applicable. It is better to clean up the shortcut files i.e, symbolic file before deleting the source file.
Syntax of the Symbolic Link file:
#ln –s {Source} {Target}
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
1.Hard Link:
a. A Hard Link is a pointer to a file that is indistinguishable from the original file.
b. Any changes made to a file are effective regardless of the name used to refer to the file – the link file or the original file name.
c. The link and the file are on the same file system because both have the same inode number.
d. A hard link can only point to a file, not to a directory.
e. You cannot create a hard link file without having the existing file.
f. The hard link file will consume the same amount of the disk as that of the original file.
g. If you delete the link file, the other will exist and the reverse is also applicable.
Syntax of the Hard Link file:
To create a hard link file,
#ln {source} {Target}
To remove the same file,
#rm {linkfile}
2.Symbolic Link:
a. A Symbolic Link is an indirect pointer to a file and it can span the file systems.
b. A symbolic link can be pointed to either file or directory.
c. You can create a symbolic link without having the existing file.
d. The symbolic link file will have the different inode number.
e. The symbolic link file will just have the details of the pointer information of the original file alone. Hence it won’t consume the same space as that of the original file.
f. It is just like a shortcut in the Windows.
g. If you delete the shortcut link file, the original file will exist. The reverse is obviously not applicable. It is better to clean up the shortcut files i.e, symbolic file before deleting the source file.
Syntax of the Symbolic Link file:
#ln –s {Source} {Target}
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Directory Hierarchy in Solaris:
This articles the directory hierarchy structure in the Solaris file systems. Just like other OS, Solaris organized into directories and directories organized into a hierarchy called a directory tree. The understanding of the directories in Solaris file system is more important.
1./bin - symbolic link to the /usr/bin directory.
2./dev – Contains logical devices names for the devices.
3./device – device related files controlled by the file system: devfs.
4./lib – Contains shared libraries such as SMF executables.
5./etc – administrative and configuration files.
6./export – Commonly used to hold user home directories.(you can define as per your wish)
7./home – Default mount point for user home directories.
8./mnt – Default mount point used to temporarily mount file systems.
9./sbin – Contains system administration command s and utilities.
10./tmp – Contains temporary files that are deleted when the system is rebooted.
11./usr – UNIX system resources, Holds OS commands and programs.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
1./bin - symbolic link to the /usr/bin directory.
2./dev – Contains logical devices names for the devices.
3./device – device related files controlled by the file system: devfs.
4./lib – Contains shared libraries such as SMF executables.
5./etc – administrative and configuration files.
6./export – Commonly used to hold user home directories.(you can define as per your wish)
7./home – Default mount point for user home directories.
8./mnt – Default mount point used to temporarily mount file systems.
9./sbin – Contains system administration command s and utilities.
10./tmp – Contains temporary files that are deleted when the system is rebooted.
11./usr – UNIX system resources, Holds OS commands and programs.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Package administration in the Solaris:
This article helps in administering the package in the Solaris such as adding, removing, upgrading, patching, getting info, etc. As we already know that in Linux we use rpm and yum commands for installing or removing the packages. But in Solaris, the above said commands are non-functional.
1.Installing a Package:
#pkgadd – used for installing the package, the default installation spool directory is /var/spool/pkg.
Example
#pkgadd –a {admin} – indicate to use the installation administration file specified by admin instead of the default file.
#pkgadd –d {device} – the package to be installed must be copied from the device.
2.Checking a Package:
#pkgchk – used to check the accuracy of the installed files
Example
To check the content of an installed package SUNWbash,
#pkgchk –c SUNWbash
To check the file attribute of an installed package SUNWPython,
#pkgchk –a SUNWPython
3. Retrieving information about Packages:
#pkginfo – to retrieve the information about the s/w package installed in the system,
Example
To get information on the list of fully installed package,
#pkginfo –i
To get information on the list of partially installed package,
#pkginfo –p
To get the information on the selective category, can be retrieved by the category value set in the pkginfo for the attribute values.
#pkginfo –c {category value}
4. Removing a Package:
#pkgrm – to remove the completely or partially installed package
To remove the source package by using the admin specified installation file instead of the default file,
#pkgrm –a {admin}
To remove all the files of the package including those shared by other packages.
#pkgrm –A packagename
To remove the package in the non-interactive mode, the default is the interactive mode,
#pkgrm –n SUNWPython
Hope the above information is useful while dealing with some packages.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
1.Installing a Package:
#pkgadd – used for installing the package, the default installation spool directory is /var/spool/pkg.
Example
#pkgadd –a {admin} – indicate to use the installation administration file specified by admin instead of the default file.
#pkgadd –d {device} – the package to be installed must be copied from the device.
2.Checking a Package:
#pkgchk – used to check the accuracy of the installed files
Example
To check the content of an installed package SUNWbash,
#pkgchk –c SUNWbash
To check the file attribute of an installed package SUNWPython,
#pkgchk –a SUNWPython
3. Retrieving information about Packages:
#pkginfo – to retrieve the information about the s/w package installed in the system,
Example
To get information on the list of fully installed package,
#pkginfo –i
To get information on the list of partially installed package,
#pkginfo –p
To get the information on the selective category, can be retrieved by the category value set in the pkginfo for the attribute values.
#pkginfo –c {category value}
4. Removing a Package:
#pkgrm – to remove the completely or partially installed package
To remove the source package by using the admin specified installation file instead of the default file,
#pkgrm –a {admin}
To remove all the files of the package including those shared by other packages.
#pkgrm –A packagename
To remove the package in the non-interactive mode, the default is the interactive mode,
#pkgrm –n SUNWPython
Hope the above information is useful while dealing with some packages.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Installation of Solaris 10:
This article explains the step by step procedure for installing the Solaris 10 on the SPARC machine and X86 machines. The installation of Solaris 10 in X86 is somewhat similar to the deployment of the Linux. Installation of Solaris 10 in SPARC machine is bit different.
Hardware Requirements:
Before starting the installation process, all the hardware components must be checked for the hardware compatibility first. Please make sure all the needed drivers available for the X86 machines.
Installation in the X86 Machine:
1.Insert the Solaris 10 CD or DVD into the appropriate drive.
2.Set the Boot priority as required in the BIOS.
3.On the initial, Solaris Booting Systems. Decide whether you need to modify the device settings.
a.Install device driver or install time updates.
b.Disable ACPI – Advanced Configuration and Power Interfaces.
c.Set up a serial console.
d.Reset the default boot device.
4.Select the installation type
a.Solaris Interactive. (Default GUI)
b.Custom Jumpstart.
c.Solaris Interactive Text (Desktop session).
d.Solaris Interactive Text (Console session).
5.Two scenario to proceed
a.If it detects all the devices, then proceed to step 7.
b.If the problem in detecting the keyboard, monitor and mouse, go to step 6.
6. Two ways to go from here
a.Configure the keyboard, Monitor and Mouse as per the instruction on the screen.
b.If you want to do the text installation, press f4 to skip the steps related to the GUI display and will let directly to the step 7.
7.Select the language.
8.Please precede the installation and configure the disk space for the file system. Can use the automatic partitioning or can do the manual partitioning as well. The recommended disk partitioning is /boot (100 MB), /swap (twice the RAM) and / (remaining space).
9.Select the default package list or select the package manually.
10.Answer any additional configuration questions, if you are prompted.
11.After the installing the package, it will automatically reboot.
Installation in the SPARC Machine:
1.Insert the Solaris 10 CD or DVD into the appropriate drive.
2.Set the Boot priority as required in the BIOS.
3.Start the Solaris installation program by booting through CD / DVD
a.For GUI installation, type the below command in the ok prompt
Ok boot cdrom
b.For Text installer in a desktop session, type the below command in the ok prompt
Ok boot cdrom –text
c.For Text installer in a console session, type the below command in the ok prompt
Ok boot cdrom –nowin
4.Select the language.
5.Answer the system configuration questions such as hostname, IP address and others.
6.Select the reboot option at the end of installation and specify the media you are using to install.
7.Please precede the installation and configure the disk space for the file system. Can use the automatic partitioning or can do the manual partitioning as well. The recommended disk partitioning is /boot (100 MB), /swap (twice the RAM) and / (remaining space).
8.Select the default package list or select the package manually.
9.Answer any additional configuration questions, if you are prompted.
Please revert if you have any issue while deploying the package.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Hardware Requirements:
Before starting the installation process, all the hardware components must be checked for the hardware compatibility first. Please make sure all the needed drivers available for the X86 machines.
Installation in the X86 Machine:
1.Insert the Solaris 10 CD or DVD into the appropriate drive.
2.Set the Boot priority as required in the BIOS.
3.On the initial, Solaris Booting Systems. Decide whether you need to modify the device settings.
a.Install device driver or install time updates.
b.Disable ACPI – Advanced Configuration and Power Interfaces.
c.Set up a serial console.
d.Reset the default boot device.
4.Select the installation type
a.Solaris Interactive. (Default GUI)
b.Custom Jumpstart.
c.Solaris Interactive Text (Desktop session).
d.Solaris Interactive Text (Console session).
5.Two scenario to proceed
a.If it detects all the devices, then proceed to step 7.
b.If the problem in detecting the keyboard, monitor and mouse, go to step 6.
6. Two ways to go from here
a.Configure the keyboard, Monitor and Mouse as per the instruction on the screen.
b.If you want to do the text installation, press f4 to skip the steps related to the GUI display and will let directly to the step 7.
7.Select the language.
8.Please precede the installation and configure the disk space for the file system. Can use the automatic partitioning or can do the manual partitioning as well. The recommended disk partitioning is /boot (100 MB), /swap (twice the RAM) and / (remaining space).
9.Select the default package list or select the package manually.
10.Answer any additional configuration questions, if you are prompted.
11.After the installing the package, it will automatically reboot.
Installation in the SPARC Machine:
1.Insert the Solaris 10 CD or DVD into the appropriate drive.
2.Set the Boot priority as required in the BIOS.
3.Start the Solaris installation program by booting through CD / DVD
a.For GUI installation, type the below command in the ok prompt
Ok boot cdrom
b.For Text installer in a desktop session, type the below command in the ok prompt
Ok boot cdrom –text
c.For Text installer in a console session, type the below command in the ok prompt
Ok boot cdrom –nowin
4.Select the language.
5.Answer the system configuration questions such as hostname, IP address and others.
6.Select the reboot option at the end of installation and specify the media you are using to install.
7.Please precede the installation and configure the disk space for the file system. Can use the automatic partitioning or can do the manual partitioning as well. The recommended disk partitioning is /boot (100 MB), /swap (twice the RAM) and / (remaining space).
8.Select the default package list or select the package manually.
9.Answer any additional configuration questions, if you are prompted.
Please revert if you have any issue while deploying the package.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Monday, June 9, 2008
Evolution/History of UNIX:
This article gives information on the history and evolution of the UNIX. UNIX was the first operating system; it also has been a trail blazer in the field of operating systems. Other OS like windows, Linux and others have adopted the features first proposed by and implemented in UNIX. UNIX is not an operating system that was built by one company with a wonderful marketing department.
UNIX, pronounced as yoo-niks, is not the name of one operating system; it refers to a family of operating systems.
Brief History of UNIX:
1. The roots lie in Comprehensive time sharing system CTSS developed by Corbato at MIT in the early 1960s.
2. In 1969, emergence of UNIX at the AT & T Bell labs.
3. After several hits, first BSD Berkeley Software Distribution version released in 1978.
4. In 1982, Sun Microsystems released first UNIX workstation based on the BSD flavor of UNIX.
5. Finally in the year, SPARC station1 introduced.
UNIX Flavors:
UNIX is the oldest OS that pioneered several OS concepts used by other OS such as Microsoft DOS and Microsoft Windows. Originally, Bell Lab distributed UNIX along with the source code so that, anybody could modify and customize the OS to meet specific needs. The following are the different flavors of UNIX with Vendor and Chip architecture.
1. Solaris – Sun Microsystems – SPARC, X86
2. HP-UX – Hewlett Packard – IA 64 and HP PA-RISC
3. Irix- Silicon Graphics – MIPS
4. AIX – IBM – PowerPC
5. UNIXWare – SCO/Caldera – Xeon, Pentium, X86
6. Linux – Freeware – Alpha, SPARC, PowerPC and Intel
Characteristics of UNIX:
1. UNIX is built from small components; each component does one job and does it well.
2. Support for virtually all n/w protocols.
3. Many flavors of UNIX.
4. Wide variety of s/w available for UNIX.
5. Open standard and open source.
6. Multitasking and multiprocessing.
The underlying philosophy of UNIX may be classified as independence, interconnection and innovation.
Hope the above information is useful.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
UNIX, pronounced as yoo-niks, is not the name of one operating system; it refers to a family of operating systems.
Brief History of UNIX:
1. The roots lie in Comprehensive time sharing system CTSS developed by Corbato at MIT in the early 1960s.
2. In 1969, emergence of UNIX at the AT & T Bell labs.
3. After several hits, first BSD Berkeley Software Distribution version released in 1978.
4. In 1982, Sun Microsystems released first UNIX workstation based on the BSD flavor of UNIX.
5. Finally in the year, SPARC station1 introduced.
UNIX Flavors:
UNIX is the oldest OS that pioneered several OS concepts used by other OS such as Microsoft DOS and Microsoft Windows. Originally, Bell Lab distributed UNIX along with the source code so that, anybody could modify and customize the OS to meet specific needs. The following are the different flavors of UNIX with Vendor and Chip architecture.
1. Solaris – Sun Microsystems – SPARC, X86
2. HP-UX – Hewlett Packard – IA 64 and HP PA-RISC
3. Irix- Silicon Graphics – MIPS
4. AIX – IBM – PowerPC
5. UNIXWare – SCO/Caldera – Xeon, Pentium, X86
6. Linux – Freeware – Alpha, SPARC, PowerPC and Intel
Characteristics of UNIX:
1. UNIX is built from small components; each component does one job and does it well.
2. Support for virtually all n/w protocols.
3. Many flavors of UNIX.
4. Wide variety of s/w available for UNIX.
5. Open standard and open source.
6. Multitasking and multiprocessing.
The underlying philosophy of UNIX may be classified as independence, interconnection and innovation.
Hope the above information is useful.
Thanks
Logu
Logu_microsoft@hotmail.com
91-98414 99143
Subscribe to:
Posts (Atom)
