Monday, 26 August 2013

Solaris Some important Questions

1.NFS client is not able to access NFS server? Troubleshooting steps?
   @.Verify the connectivity between NFS server & NFS client
   @.Check the NFS ports are open in network side.
   @.Verify the shares are properly exported to NFS clients
2.If on jumpstart client, boot command "boot net install" doesn't work, what could be the possible reasons?
  @.Check the network connectivity using watch-net-all from OK prompt.
  @.Verify the MAC address in Jumpstart server.
3.What is /etc/system file gets corrupted? How will system bootup?
   If you modify your /etc/system file in Solaris and screw it up or it gets corrupt, when you try to reboot, the server will no longer startup.

To recover from this problem:

1) As the server starts booting, press Stop+A (at the same time)

2) At OK> prompt, type "boot -as"

3) Solaris will now go into an interactive boot and will ask you several things.

4) Answer using all the defaults until it asks for your system file. 

5) Either specify the name of a backup system file (if you have one) OR type "/dev/null"

6) It will allow the system to boot with a vanilla kernel so that you can fix the broken /etc/system

7) Fix the /etc/system file

  4.What is mean by paging & server average time.

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

@.If the LUNS average service time is more than 30 ,then you need to check with SAN team .They will help you with issue. May be they will spread the LUNS to multiple physical disks in the back end.

Solaris 10 Interview questions

Solaris Administrator Interview Questions


1 Tell Me the problem u have faced?
2 what is the veritas volume manager?
3 difference between solaris 10,9?
4 What is the zone,how to add memory without restart,is it possible?
5 How to replace the failed hdd in svm explain the procedure?
6 R u working Disaster Recovery Setup?



1 how to change boot order in ok promt
2 how to add the Kernal patch & precaution?
3 what is the at & crontab?how many felds?
4 what is the root mirror & how to configure step by step?
5 what is the metadb ?& algaritham?



1.How to do the Kernal Patch?& after installed patch system not booting or some problem how to resolve?
2 How to check ip address in OK Prompt
3 How to check mirror disk in OK Prompt
4
How to check Kernal version OK Prompt
5
How to check disk & boot disk in OK prompt?
6
How to revert the server in working status after install the patch had problem..
7
How to configure the Zones?
8
How to configure the Veritas mirror volume  with 2 disk?
9
How to manage the server remotly through console?
10
How to configure the T-series server?
11
how to perform Performance Tuning?
12
What are the Veritas daemons?
13
How to bring disk under Veritas control ?
14
What is the difference between init1 & init S?
15
How to boot system from OK Prompt?
16
How many run levels ?
17
How to go ok Prompt from init run level 3?

Sunday, 25 August 2013

Solaris Sparc Server Consoles using ALOM Commands

            ALOM (Advanced Lights Out Manager System Controller) only on SUN Sparc system
                   
1.Alom System COntroller enables you to remotely manage and administrator a server
2.It comes preinstalled on the machine , so as soon you plug in power cable, it works
3.Yes,It uses server's standby power,which enables you to remotely power off & on server
4.ALOM Monitors hardware in the server like CPU,RAM,Power supply,etc,and much more like Voltage and status of alarms.
5.of course,all this exercise assumes you configured ALOM's network parameters.Try to have dedicated management subnet for this
6.If you access ALOM and stay idle for 1 min .it will switch the serial console
7.You can type "console" and reach serial console of remote system from your cube or home living room.





Some ALOM Shell Commands:-
cannot login to the ALOM?
Try default password which is the last 8 digits of the chassis serial no.Usernameis "admin"
So find about them by yourself and see what help offers you.
sc> help  ------> It shows available commands
Most used commands will be:-
sc>setsc set if_network true
sc>setsc netsc_dhcp false
sc>setsc netsc_ipaddr 192.168.2.4
sc>setsc netsc_ipnetmask 255.255.255.0
sc>setsc netsc_ipgateway 192.168.2.1
sc>resetsc 
Are you sure you want reset the sc[y.n] y

sc> shownetwork
sc configuration is:
IP address :192.168.2.4
Gateway address:192.168.2.1
Netmask:255.255.255.0
Ethernet address:00:14:4f:64:b2:6f

sc>showplatform
SUNW,SUN-Fre-v240
Domanin status
------- ------
hostname OS running


sc>showenvironment ------> all hardware details like Hdd,system temperature,Fans,powersupply,
sc>usershow            ------> It will show username,permissions password 
sc>password         ---->Use to change the ALOM password for the account Must be between 6 & 8 characters 
sc>poweroff        ---->Graceful shutdown of the Solaris OS after "SC Alert:Hostsystem has shut down" wait until                                  you see this message beforepoering the system back on 
sc>poweroff -y --->Instructs ALOM to proceed without prompting 
sc>poweroff -f --->Forces an immediate shutdown regardless of the state of the host 
sc>poweron -c ---> Instructs ALOM to connect to the system console after performing the option 
sc>removefru PS0 --->To prepare POWER SUPPLY 0 form removal "T1000 servers attempting to use the 
                                removefru command on "PS0" Generates message "Could not remove <PS0> system only                                has one power supply 
sc>reset         ---->To force the host server to rest immediately 
sc>reset -c     ---->Instructs ALOM to connect to the system console after performing the operation. 
sc>resetsc     ---> To perform a hard reset of ALOM. This terminates all current ALOM sessions.
 

Saturday, 24 August 2013

Solaris Useful OK prompt commands

                                Some Useful OK prompt commands

OK show-disks  ------> To show the disks
OK probe-scsi  ------> To search the scsi devices attached to the primary scsi controller
OK probe-scsi-all ---> To search all the scsi devices
OK devalias   ----> to list device alias names
OK devalias <alias> <path> --->To temporarily create a device alias
OK printenv            ---->To view the current NVRAM settings
OK setenv <env> <value> -----> To set the envirement variables
OK set-defaults                 -----> To set the open boot prompt settings to the factory default
OK nvalias <alias> <path>  --->To set the device alias permanently to NVRAM
OK nvunalias cdrom1  ----> To remove the nvalias 'cdrom1' from NVRAMRC
OK .version   ------> To find out the Open boot prompt version
OK .ent_addr -----> To find out the ethernet MAC address
OK .speed    -----> To find out the CPU and PCI bus speeds
OK banner    -----> To display the Model,Architecture,processor,openboot version,ethernet address,hostid and etc
OK set-defaults ----> To reset variable values to the factory defaults
OK reset-all -----> To reboot the system from OK Prompt
OK show-devs  ----->To show the PCI devices
OK boot   ---> boot the system from the default boot devices
OK boot cdrom ----> to boot from cdrom
OK boot disk ----> boots the system from device as specified by the disk device alias
OK boot device-path ---->boot from the full device mentioned
OK boot net ----> network boot .boots from a TFTP boot server or Jumpstart server
OK boot net -install  -----> Jumpstart boot.
OK boot tape -----> Tape boot.boots off a SCSI tape if available
OK boot -h ----> boot halted .boot into a halted state(ok prompt) intersting for troubleshooting boot at the lowest level
OK boot -r ----> Reconfiguration boot.Boot and search for all attached device.useful when new device attached to the system
OK boot -s ----> Single user.boots the system to run level 1
OK boot -v ----> verbose boot.show good debugging information.
OK boot -F failsafe   ---> to boot the server to failsafe mode

------------------------------------------------------------------------------------------------------------
                                Displaying System Information
Commands to display additional system related information .Not all commands work on all Platforms
OK .idprom  --------> Display ID PROM contents
OK .traps  --------> Display a list of processor-dependent trap types
OK show-devs ----->display list of installed and probed devices
OK eject floppy ----> Eject the floppy
OK eject cdrom ------>eject the cdrom
OK sync -----> call the operating system to write information to hard disk

-----------------------------------------------------------------------------------------------                      
                        Emergency Keyboard Commands
These are key sequences recognized by the system to perform predetermined
actions at boot time or during normal operation.

Stop     ---> Bypass POST .(This command does not depend on security-mode)
Stop-A ---> Abort.(This will also stop a running system. You can
                    resume normal operations if you enter go at the prompt.
                    Enter anything else and you will stay halted)
Stop-D  ---> Enter diagnostic mode(set diag-switch?to true)
Stop-N  ---> Reset NVRAM contents to default values.

                                     
    

Tuesday, 20 August 2013

Solaris Zones Important Interview Questions

                    Solaris Zones Important Interview Questions


A. Zone configuration command:-
#zonecfg -z zonename --> to create new zone
#zoneadm -z zonename install---> To install the zone
#zoneadm -z zonename boot   ---> To boot the non-global zone
#zoeadm -z zonename halt    ---> To halt the non-global zone
#zonecfg -z zonename delete ---> To delete the non-global zone
B. From Global Zone Non-global Zone status:-
  @configured--->Configuration was completed & committed
  @installed --->The package has been successfully installed
  @Ready     --->The virtual platform has been established
  @Running   --->The zone booted successfully and is now running
  @Incomplte --->Transition state during install or uninstall operation
C.Zones Daemon
1.zoneadmd
2.zschd

1.What is difference between global zone and non-global zone ?
Base Solaris operating system is called global zone.(Directly installed on physical hardware).
Solaris operating system which are hosted by global zone is called Non-global zones or local zone.
2.How to find out global zone name from non-global zone ?
There is no possible from get global zone name form non-global zone.
Oracle made this one intentionally for security reasons
3.What type of Non-global in solaris 10?
There are three type non-global zones
 @ Whole root zone--> if it's no inherit file
 @ Sparse root zone---> find zonecfg -z zonename-->inherit-pkg-dir:/lib,/platform,/sbin,/usr
 @ Branded zone
4.What is the difference between whole root zone & sparse root zone?
Whole root zones have all their binaries of their own zone root filesystem,
while sparse root zones mount /usr,/lib,/platform,/sbin from the global zone.
5.To login non global zone from global zone->"zlogin -C zonename"
6.Is it possible to assign VXFS to non-global zone-->Yes
7.Is it possible to put resource control to nonglobal zone?
  Yes,we can restrict the memory,cpu,swap
8.online Resource capping---> To find the current capped-memory
   #rcapstat -z 1 1
   #zonecfg -z zonename info
 To incrase the capped memory form current value online.
   #rcapadm -z zonename -m 90M
bash-3.00# rcapstat -z
    id zone            nproc    vm   rss   cap    at avgat    pg avgpg
     2 zone1              35   43M   49M   50M 7904K    0K 1912K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
bash-3.00# rcapadm -z zone1 -m 90M
bash-3.00# rcapstat -z
    id zone            nproc    vm   rss   cap    at avgat    pg avgpg
     2 zone1              35   43M   49M   50M 7904K    0K 1912K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   90M    0K    0K    0K    0K

9.How to boot local zone in single user mode?
   boot the local zone using #zoneadm -z zonename boot
   using "init 1" boot the zone in single user mode
   #zoneadm -z  zonename boot -s
10.Is it possible to add new IP address on Non-global zone on fly ? If yes how to do that?
 Yes.we can plumb new IP on zones using ifconfig command
  #ifconfig bge0:1 plumb up  --> to plumb the interface
  #ifconfig bge0:1 192.168.1.2 netmask 255.255.255.0 zone zonename--> To assign ipaddress
11.What is Branded zone ?
Branded zone is used to install older version of Solaris or Linux in Solaris 10 global zone.
12.Where the zone's configuration file resides ?
   Zone configuration file can be founf in /etc/zones/zone_name.xml
13.Which configuration file will be having zone's current state ?
   current state will be written in global  zone /etc/zones/index.xml
14.How many Solaris zones can be create in on global zone?
Maximum of 8191 local zones can be created within a single operating system instance.
15.To list the  Non-Global Zone status from Global zone ?
  #zoneadm list -cv




 


Monday, 19 August 2013

Solaris Important Files

                                                   Solaris Important Files
@/etc/vfstab { Filesystem mount table}
@/var/adm/loginlog { Log of login attempts}
@/etc/default/* { Important default settings}
@/etc/system { Kernel modules and con g}
@/var/adm/messages { Syslog location}
@/etc/auto * { Automounter con fig files}
@/etc/inet/ipnodes { IPv4 & v6 host files (read before /etc/hosts)}