FAQ and Interview Questions:: An Overview
FAQ and Interview Questions:: An Overview
FAQ and Interview Questions:: An Overview
Unix is a widely used Operating system. It comes in several flavours such as Linux,
Solarir, AIX, HP-UX, FreeBSD, Tru64 etc.,
My daily routine work is monitoring which includes mail box monitoring ( Including
alert monitoring for server disk space memory cpu utilization etc)
BMC bucket monitoring for new tickets, BAC monitoring to check server health, and
also to work on scheduled activities like patching, package installation etc in test and
production environments.
I will proactively monitor server logs on critical servers to check if any errors ( memory
mount points related disk space related etc). I will go through pending tickets, check if
calendar notices are in place for all scheduled activites, check if all change and problem
tickets are in place and approved or not. I will also try to go through sun website, blogs
etc to keep myself updated)
There are 1000 + servers of various kinds. There may be even more servers that I am not
aware of.
Sun Fire model numbers have prefixes indicating the type of system
command is psrinfo –v
Sample output.
#> psrinfo -v
Status of virtual processor 0 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 1 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 2 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 3 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 4 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 5 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 6 as of: 02/21/2010 07:30:16
on-line since 02/25/2009 19:35:47.
.......................................etc... .
Command: modinfo|grep vx
See for hard errors. Check var/adm/messages also. If there are more hard errors run
explorer and send output to sun. Sun can finally decide if replacement is required or not.
iostat -En
c0t0d0 Soft Errors: 6 Hard Errors: 1 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-M1712 Revision: 1004 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 1 No Device: 0 Recoverable: 0
Illegal Request: 6 Predictive Failure Analysis: 0
c1t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWL9Z7
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWLD7M
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t4d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWLDNT
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t5d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWL4WW
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWLB00
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t3d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No:
0546TWLBUZ
Size: 146.80GB <146800115712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
Solaris virtual memory system combines physical memory with available swap
df -kh swap
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
12G 5.0G 6.7G 43% /
swap -s
total: 19183832k bytes allocated + 15131600k reserved = 34315432k used, 20783856k
available
top | grep -i swap
Memory: 40G phys mem, 15G free mem, 22G swap, 22G free swap
More info: http://www.princeton.edu/~unix/Solaris/troubleshoot/ram.html
Inode is a unique number given to a file in Unix OS. Every file in Unix has a inode
number. unix treats directories/folders as a file so they are also having a inode value
total 451589
Solaris 9
1. The PROM displays system identification information and then runs self-test
diagnostics to verify the system's hardware and memory.
2. Then, the PROM loads the primary boot program, bootblk, whose purpose is to load
the secondary boot program (that is located in the ufs file system) from
3. The bootblk program finds and executes the secondary boot program, ufsboot, and
loads it into memory.
4. After the ufsboot program is loaded, the ufsboot program loads the kernel.
5. The kernel initializes itself and begins loading modules by using ufsboot to read the
files. When the kernel has loaded enough modules to mount the root (/) file
system, the kernel unmaps the ufsboot program and continues, using its own resources.
6. The kernel creates a user process and starts the /sbin/init process, which starts other
processes by reading the /etc/inittab file.
7. The /sbin/init process starts the run control (rc) scripts, which execute a series of other
scripts. These scripts (/sbin/rc*) check and mount file systems, start
-load
-kernel initilization
init phase
-run rc
svc.stat phase
# mkdir /vol01
Hard Links :
2.ls -l command shows all the links with the link column(Second) shows No. of links.
4.Removing any link just reduces the link count but doesn't affect other links.
2. ls -l command shows all links with second column value 1 and the link points to
original file.
3. Link has the path for original file and not the contents.
4.Removing soft link doesn't affect anything but removing original file the link becomes
dangling link which points to nonexistent file.
Is slice 2 backup entire system backup. Meaning can I take entire system backup
using slice 2.
partition 'c' (slice 2) actually represents all of the blocks on the disk drive.
The "dd" command can backup the entire disk using slice 2.
dd if=/dev/olddisk of=/dev/newdisk with all the devices unmounted and from single user
mode
System Activity Recorder can monitor several system functions related to overall system
performance
• cpu utilization
• hard disk utilization
• terminal IO
• number of files open
• processes running
Example:
sar 2 5
SunOS servername 5.9 Generic_122300-22 sun4u 02/21/2010
10:51:34 %usr %sys %wio %idle
10:51:36 6 1 0 92
10:51:38 6 0 0 93
10:51:40 6 0 0 94
10:51:42 5 1 0 93
10:51:44 0 0 0 100
Average 5 1 0 94
What is iostat
syntax:
Basic synctax is iostat interval count
option – let you specify the device for which information is needed like disk , cpu or
terminal. (-d , -c , -t or -tdc ) . x options gives the extended statistics .
interval – is time period in seconds between two samples . iostat 4 will give data at each 4
seconds interval.
count – is the number of times the data is needed . iostat 4 5 will give data at 4 seconds
interval 5 times
Example
$ iostat -xtc 5 2
disk r/s w/s Kr/s Kw/s wait actv svc_t %w %b tin tout us sy wt id
in progress)
What is encapsulation
Ufsdump is a flavour specific command for backup in Solaris where as tar is a general
unix command for the backup.
tar - create tape archives and add or extract files
fsdump - incremental file system dump
Ufsdump is only for ufs filesystems and since it is able to use deeper knowledge of the
internals gains some performance.
The size of files you put into a tar archive (not the archive itself)
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin
export PATH