Solaris Commands Interview Preparation Guide Download PDF Add New Question
Solaris Commands frequently Asked Questions by expert members with experience in Solaris Commands. These interview questions and answers on Solaris Commands will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. So get preparation for the Solaris Commands job interview
55 Solaris Commands Questions and Answers:
1 :: How to unfreeze the svcgroup, (enable onl. & offl.)?
#haconf -makerw
#hagrp -unfreez SG -persistent
#haconf -dump -makero
#hagrp -unfreez SG -persistent
#haconf -dump -makero
Post Your Answer
2 :: How to check the connectivity between 2 nodes?
Get the mac address from both the nodes
#getmac /dev/qfe:0
Sv from server side
Cv from client side
#./dlpiping –sv /dev/qfe:0 macaddresss
#./dlpiping –cv /dev/qfe:0 macaddresss
#getmac /dev/qfe:0
Sv from server side
Cv from client side
#./dlpiping –sv /dev/qfe:0 macaddresss
#./dlpiping –cv /dev/qfe:0 macaddresss
Post Your Answer
3 :: How to stop the VCS?
Stop the cluster on the local server but leave the
application/s running, do not failover the application/s
#hastop -local
Stop cluster on local server but evacuate (failover) the
application/s to another node within the cluster
#hastop -local -evacuate
Stop the cluster on all nodes but leave the application/s
running
#hastop -all -force
application/s running, do not failover the application/s
#hastop -local
Stop cluster on local server but evacuate (failover) the
application/s to another node within the cluster
#hastop -local -evacuate
Stop the cluster on all nodes but leave the application/s
running
#hastop -all -force
Post Your Answer
4 :: Explain What are the service group dependence?
4types
Online local
Online remote
Online global
Offline global
Online local
Online remote
Online global
Offline global
Post Your Answer
5 :: Explain SUN CLUSTER offline cluster resources on smslu131?
verify resources are online on tgui1-svc
# scstat
Take all resources offline
# scswitch –F –g smsweb-rg
verify resources are offline on both tgui1 & tgui2
# scstat
verify resources are offline on tgui1-svc & tgui2-svc
# scstat
switch resources online on smslu131
#scswitch –Z –g smsweb-rg
verify resources are online on tgui1-svc
#scstat
verify resources are online on tgui1-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui2-svc
verify resources are online on tgui2-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui1-svc
verify resources are online on tgui1-svc
# scstat
# scstat
Take all resources offline
# scswitch –F –g smsweb-rg
verify resources are offline on both tgui1 & tgui2
# scstat
verify resources are offline on tgui1-svc & tgui2-svc
# scstat
switch resources online on smslu131
#scswitch –Z –g smsweb-rg
verify resources are online on tgui1-svc
#scstat
verify resources are online on tgui1-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui2-svc
verify resources are online on tgui2-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui1-svc
verify resources are online on tgui1-svc
# scstat
Post Your Answer
6 :: How to delete a service group?
1. Check the Service Group dependancy with other service
group
#hares -dep <Service Group>
2.to make the cluster configuration to read write mode.
haconfig -dump ro
3.Switch the online Service groups to the other system.
#hagrp -switch <Service group> -to <host2>
4.Make the Service group stable on other Host or freez them
on other node:
#hares -freeze <Service group> -sys <host2>
5.Make the service group offline on host1
#hagrp -disable <service group> -sys <host1>
group
#hares -dep <Service Group>
2.to make the cluster configuration to read write mode.
haconfig -dump ro
3.Switch the online Service groups to the other system.
#hagrp -switch <Service group> -to <host2>
4.Make the Service group stable on other Host or freez them
on other node:
#hares -freeze <Service group> -sys <host2>
5.Make the service group offline on host1
#hagrp -disable <service group> -sys <host1>
Post Your Answer
7 :: How to add a server group?
#haconf –makerw
#hagrp –add groupname
#hagrp –modify groupname systemList –add node1 node2
#haconf –dump -makero
#hagrp –add groupname
#hagrp –modify groupname systemList –add node1 node2
#haconf –dump -makero
Post Your Answer
8 :: Suppose main.cf files corrupted how will you rectify?
We can recreate a corrupt main.cf configuration file using the below two files.
1)main.cf.previous
2)main.cmd
1)main.cf.previous
2)main.cmd
Post Your Answer
9 :: How to identify VXVM version?
If running on solaris use following command to get vxvm version-
pkginfo -l packagename
pkginfo -l packagename
Post Your Answer
10 :: What the path of scconf in cluster?
/usr/cluster/bin/scconf is the path in suncluster
Post Your Answer