Solaris Interview Questions & Answers

  1. “ No “ without label the drive, you can’t do anything
  • # vi /var/spool/cron/crontabs/root
  • The command to edit the crontab is #crontab -e
  1. If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is greater than 5 percent, and the average service time  (svc_t) is greater than 30 milliseconds, then  one of the following action needs to be taken

System can not find the /etc/path_to_install file. It might be missing or corrupted and needs to be rebuild.

To rebuild this file  boot the system with  -ar option :

ok>boot -ar

Press enter to select default values for the questions asked during booting and select yes to rebuild /etc/path_to_install

The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y

system will continue booting after rebuilding the file.

# Vi /etc/system

(To comment the error line in /etc/system files, we have to use *)

Incremental: Only those files will be included which have been changed since the last backup.

Differential: Only those files will be included which have been changed since the last Full backup.

  1. 0-9 level0 = Full Backup1-9 = Incremental backup of file,That have changed since the last lower level backup.

Crontab: job can be scheduled

At: Job can be a run once only

ufsdump: 

  1. Used for complete file system backup.
  2. It copies every thing from regular files in a file system to special character and block device files.
  3. It can work on mounted or unmounted file systems.

Tar:

  1. Used for single or multiple files backup.
  2. Can’t backup special character & block device files.
  3. Works only on mounted file system.
  1. # ufsdump 0uf /dev/rmt/1
  1. # ufsdump 0f  – /dev/rdsk/c0t0d0s6 | (cd /mnt/haz ufsrestore xf -)
  1. Physical fiber cable which is connect to the 2 nodes is called a HTEARTBEAT

#/etc/lvm/md.tab

or

#/etc/opt/SUNWmg/md.tab

RAID 0 Concatenation/Striping
RAID 1 Mirroring
RAID 5-Striped array with rotating parity.

  • Concatenation: Concatenation is joining of two or more disk slices to add up the disk space. Concatenation is serial in nature i.e. sequential data operations are performed serially on first disk then second disk and so on. Due to serial nature new slices can be added up without having to take the backup of entire concatenated volume, adding slice and restoring backup.
  • Striping: Spreading of data over multiple disk drives mainly to enhance the performance by distributing data in alternating chunks – 16 k interleave across the stripes. Sequential data operations are performed in parallel on all the stripes by reading/writing 16k data blocks alternatively form the disk stripes.
  • Mirroring: Mirroring provides data redundancy by simultaneously writing data on to two sub mirrors of a mirrored device. A submirror can be a stripe or concatenated volume and a mirror can have three mirrors. Main concern here is that a mirror needs as much as the volume to be mirrored.
  • RAID 5: RAID 5 provides data redundancy and advantage of striping and uses less space than mirroring. A RAID 5 is made up of at least three disks, which are striped with parity information written alternately on all the disks. In case of a single disk failure the data can be rebuild using the parity information from the remaining disks.

rpc.yppasswdd
Ypxfrd
rpc.ypupdated

For 64 bit:
# eeprom boot-file=”/kernel/sparc9/unix
or
OK printenv boot-file
OK settenv boot-file kernel/sparc9/unix

For 32 bit:
# eeprom boot-file=”/kernel/unix
or
OK printenv boot-file
OK settenv boot-file kernel/unix

Hardmount: Normal file system mount used mainly for mounting local file systems. Once a file system is hard mounted, can use a normal filesystem untill its umount.

Soft mount: It allows automatic unmounting if the filesystem is idle for a specified timeout period. It is mainly used for network filesystems like NFS It can be configured using Autofs and the network filesystem can be soft mounted.

Server : # share  & dfmount
Client : # showmount –e (hostname) and dfshares

# /etc/init.d/nfs.server start
# /etc/init.d/nfs.server stop

  1. # find / -name “abc” –exec rm {};

# /usr/dt/bin/dtconfig –e   ( enable)
# /usr/dt/bin/dtconfig –d   ( disable)

  1. #passwd –x –1 (username)
  • Setuid : When setuid permission set on a executable file, user who access the file is granted access permission of the owner of the file.

# find / -prem –4000

  • setgid : Permission similar to setuid, The process is changed to owner of the file.

# find / -prem –2000

  • Stickybit : It is a special permission that protect the files within a public writable directory. Stickybit permission set the shared directory, user can create a files or directory. But only by owner of the directory can modify or delete.

# find / -prem –1000

 

  1. UMASK is a Unix environment variable, which automatically sets file permissions on newly created files.
  1. Setuid to set on  /usr/bin/passwd  command
  1. Iostat ,vmstat , prstat , sar ,netstat, top

To set the high priority for the process

-20 high priorities
+20 low priorities

Eg: # nice –20 oracle

  1. ftp = 21ssh = 22Telnet = 23nfs = 2049nis = 749

Ping test, service enable or not in (/etc/inetd.conf), NIS problem

If telnet is not working, first of all you will not be get connected, login through console access and then find out with ps -ef | grep telnetd or Kill -1

# ps –U oracle

or

#ps –fu oracle | grep smon

# psradm –f (no of the process)
# psradm –a –n ( no of the process)

# prtconf –vp | grep bootpath

or

# eeprom

DSK: Block level devices
RDSK: Raw level device or character level device