Solaris and HP-UX interview Questions

Few Good Interview Questions



1) What file do you modify to change the mail aliases (Provide the full

path) ?

2) What command do you run after modifying the aliases file make the

changes active?

3) How do you enable logging on a UFS file system?

4) What commands can you use to dynamically add scsi disks to a sun

system?

5) How do you install package to a specific directory? e.g like to

install wget in /home/vin/wget rather than the default one "/usr". ----

This was not answered by me.

6) What command shows what modules are loaded into the Kernel?

7) What command increases the priority of a process and all sub

processes on a solaris system?

8) What command in Solaris, do you use to setup aliases for devices?

9) How do you watch network traffic on interface qfe3?

10 ) What command shows TCP/IP parameter settings?

11) How do you set Network cards to 100 full interactively &

permanently?

12) What tools in Solaris help you diagnose harware failures?

13) How do you determine by how much a Veritas Volume can be expanded?

14) How do you grow a Veritas VXVM volume?

15) Where is the dump from a system crash normally kept? Can we

customize it?

16) How do you determine Volume Status in Veritas VxVM?

17) Why would you deport a diskgroup in VxVM?

18) How do you create additional state databases in solaris volume

manager? -- This was the tough one..!!

19) Does Solaris Volume Manager have soft partitioning?

20) How do you clear volume information from a solaris volume manager

disk?

21) How do you shutdown a Veritas Cluster Server, leaving the

applications running from the command line?

22) How do you speed up processing of a process and All it's child

processes? -- This was quite tricky..!!



1. You can ping servers on the subnet your workstation is on, but not other subnets. What is wrong?

2. If you can ping a server, but can't telnet or ssh to it, what could be the problem?

3. If a user logs in to UNIX, it displays the desktop and then immediately logs you back out, what could be wrong?

4. If you mistype a password, how do you clear it out to retype the password again.

5. When would you want to reconfigure the kernel and how would you do it?

6. Which is your favorite editor, shell, programming shell and why?

7. Why should you never have '.' in root's path?

8. If fsck is running, what is the one thing you shouldn't do?

9. What are the 3 or 4 major flavors of UNIX and what are their SA tools?

10. What kind of PC - UNIX connectivity programs are you familiar with?

11. What are: UFS, NFS, SaMBa, LDAP, NIS, DNS, Veritas

12. If you send an e-mail to someone and it comes back "Message Undeliverable", what could be wrong.

13. How do you give a user access to an application or program that needs to run as root without giving them the root password?

14. When you "ping server" and "ping server.domainname", you get different results. Why?

15. Someone pings a server from another location and gets a different result than if you ping the same server onsite. What is going on?

16. You know the reason the server won't boot is because of ODS, but the root partition isn't on ODS. How do you go about fixing it?

17. How would you truncate a log file that is growing too large if you don't have space to compress it or to move it somewhere else? How would you do it "hot"?

18. When the key is in the lock position on a Sun Enterprise server, can you do a Stop-A? Explain.

19. What does "boot -a" do?

20. What is uadmin and what does it do?

21. What does "ypwhich servername" do? Why would you use it?

22. If you have multiple ethernet interfaces, how do you keep it from routing between them?

23. Can you add HDD's to a Sun server and not have to do a reconfiguration reboot? Explain.

24. You can receive e-mail, but can't send any. What is wrong?

25. If you have forgotten the root password for a server, how do you get back in?

26. What makes NIS+ more secure than NIS?

27. After displaying the banner page, it says: Clock TOD does not match TOD on any IO boards

How do you go about fixing this and what is it telling you?

28. What are the differences between Solaris 2.6 and lower and 7 and higher?

29. How can you search for commands at the boot prompt if you only know part of the command?

30. What are the two settings you can change to make a system boot faster?

31. What are the differences between Sun OS and Solaris?

32. What do soft partitions buy you with Solaris Volume Manager?

33. How can you set EEPROM settings from Solaris?





________________________________________

How to configure/ reconfigure SmartArray RAID Controller

How to configure/ reconfigure the Internal RAID card on an HP-RX6600 Server with HP-UX




Here is an example, screenshot where I reconfigured a mirrored disk set.
There are totally 8 disks in the server and each 2 disks are mirrored.
The Logical drive number-2 has been deleted to get 2 free disks.
Note:
Check on OS side which disks are assigned to whatever volumes and double check if there is no DATA on the disks before performing this delete operation.
srvap01::root>saconfig /dev/ciss1

******************** SmartArray RAID Controller /dev/ciss1 ********************
Auto-Fail Missing Disks at Boot = disabled
Cache Configuration Status = cache enabled
Cache Ratio = 25% Read / 75% Write
---------- PHYSICAL DRIVES ----------
Location Ct Enc Bay WWID Size Status
Wii Hardware Bundle - WhiteInternal 1I 1 4 0x5000c5000abc8e01 146.8 GB OK

Internal 1I 1 3 0x5000c5000abb9e55 146.8 GB OK

Internal 1I 1 2 0x5000c5000eccbd45 146.8 GB OK

Internal 1I 1 1 0x5000c5000eccae31 146.8 GB OK

Internal 2I 1 8 0x5000c5000abcc631 146.8 GB OK

Internal 2I 1 7 0x5000c5000abc8571 146.8 GB OK

Internal 2I 1 6 0x5000c5000abbfb35 146.8 GB OK

Internal 2I 1 5 0x5000c5000aba8415 146.8 GB OK

---------- LOGICAL DRIVE 0 ----------
Device File = c1t0d0
RAID Level = 1+0
Size = 139979 MB
Stripe Size = 128 KB
Status = OK
Participating Physical Drive(s):
Ct Enc Bay WWID
1I 1 4 0x5000c5000abc8e01
1I 1 3 0x5000c5000abb9e55
Participating Spare Drive(s):
None
---------- LOGICAL DRIVE 1 ----------
Device File = c1t0d1
RAID Level = 1+0
Size = 139979 MB
Stripe Size = 128 KB
Status = OK
Participating Physical Drive(s):
Ct Enc Bay WWID
2I 1 8 0x5000c5000abcc631
2I 1 7 0x5000c5000abc8571
Participating Spare Drive(s):
None
---------- LOGICAL DRIVE 2 ----------
Device File = c1t0d2
RAID Level = 1+0
Size = 139979 MB
Stripe Size = 128 KB
Status = OK
 Participating Physical Drive(s):
Ct Enc Bay WWID
2I 1 6 0x5000c5000abbfb35
2I 1 5 0x5000c5000aba8415
Participating Spare Drive(s):
None
---------- LOGICAL DRIVE 3 ----------
Device File = c1t0d3
RAID Level = 1+0
Size = 139979 MB
Stripe Size = 128 KB
Status = OK
Participating Physical Drive(s):
Ct Enc Bay WWID
1I 1 2 0x5000c5000eccbd45
1I 1 1 0x5000c5000eccae31
Participating Spare Drive(s):
None

srvap01::root>pvdisplay /dev/dsk/c1t0d2

pvdisplay: Couldn't find the volume group to which

physical volume "/dev/dsk/c1t0d2" belongs.

pvdisplay: Cannot display physical volume "/dev/dsk/c1t0d2".





srvap01::root>saconfig /dev/ciss1 -D 2

Are you sure you want to delete logical drive 2 on

SmartArray RAID controller /dev/ciss1? (y/[n]): y

Logical drive 2 deleted





srvap01::root>
srvap01::root>pvdisplay /dev/dsk/c1t0d2

pvdisplay: Couldn't find the volume group to which
Physical volume "/dev/dsk/c1t0d2" belongs.

pvdisplay: Cannot display physical volume "/dev/dsk/c1t0d2".
srvap01::root>saconfig /dev/ciss1 -D 2

Are you sure you want to delete logical drive 2 on

SmartArray RAID controller /dev/ciss1? (y/[n]): y

Logical drive 2 deleted
srvap01::root>saconfig /dev/ciss1


******************** SmartArray RAID Controller /dev/ciss1 ********************
Auto-Fail Missing Disks at Boot = disabled

Cache Configuration Status = cache enabled

Cache Ratio = 25% Read / 75% Write



---------- PHYSICAL DRIVES ----------

Location Ct Enc Bay WWID Size Status
Internal 1I 1 4 0x5000c5000abc8e01 146.8 GB OK
Internal 1I 1 3 0x5000c5000abb9e55 146.8 GB OK
Internal 1I 1 2 0x5000c5000eccbd45 146.8 GB OK
Internal 1I 1 1 0x5000c5000eccae31 146.8 GB OK
Internal 2I 1 8 0x5000c5000abcc631 146.8 GB OK
Internal 2I 1 7 0x5000c5000abc8571 146.8 GB OK
Internal 2I 1 6 0x5000c5000abbfb35 146.8 GB UNASSIGNED
Internal 2I 1 5 0x5000c5000aba8415 146.8 GB UNASSIGNED



---------- LOGICAL DRIVE 0 ----------



Device File = c1t0d0

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK



Participating Physical Drive(s):



Ct Enc Bay WWID

1I 1 4 0x5000c5000abc8e01

1I 1 3 0x5000c5000abb9e55



Participating Spare Drive(s):



None



---------- LOGICAL DRIVE 1 ----------



Device File = c1t0d1

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK



Participating Physical Drive(s):



Ct Enc Bay WWID

2I 1 8 0x5000c5000abcc631

2I 1 7 0x5000c5000abc8571



Participating Spare Drive(s):



None



---------- LOGICAL DRIVE 3 ----------



Device File = c1t0d3

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK



Participating Physical Drive(s):



Ct Enc Bay WWID

1I 1 2 0x5000c5000eccbd45

1I 1 1 0x5000c5000eccae31



Participating Spare Drive(s):



None



srvap01::root>ioscan -funC disk

Class I H/W Path Driver S/W State H/W Type Description

=================================================================================

disk 4 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-V

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0

disk 1 0/6/0/0/0/0/1/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d0 /dev/dsk/c1t0d0s2 /dev/rdsk/c1t0d0 /dev/rdsk/c1t0d0s2

/dev/dsk/c1t0d0s1 /dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s1 /dev/rdsk/c1t0d0s3

disk 2 0/6/0/0/0/0/1/0/0/0.0.1 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d1 /dev/rdsk/c1t0d1

disk 3 0/6/0/0/0/0/1/0/0/0.0.2 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d2 /dev/dsk/c1t0d2s2 /dev/rdsk/c1t0d2 /dev/rdsk/c1t0d2s2

/dev/dsk/c1t0d2s1 /dev/dsk/c1t0d2s3 /dev/rdsk/c1t0d2s1 /dev/rdsk/c1t0d2s3

disk 5 0/6/0/0/0/0/1/0/0/0.0.3 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d3 /dev/rdsk/c1t0d3





srvap01::root>ioscan -fun

Class I H/W Path Driver S/W State H/W Type Description

====================================================================================

tty 0 0/0/1/0 rmp3f01 CLAIMED INTERFACE PCI class(255,0) (103c1303)

tty 1 0/0/1/1 rmp3f01 CLAIMED INTERFACE PCI SimpleComm (103c1302)

tty 2 0/0/1/2 asio0 CLAIMED INTERFACE PCI Serial (103c1048)

/dev/diag/mux2 /dev/mux2 /dev/tty2p0

OO 0 0/0/2/0 UsbOhci CLAIMED INTERFACE USB OHCI Interface

OO 1 0/0/2/0.0 UsbMiniBus CLAIMED INTERFACE USB Composite Device

OO 2 0/0/2/0.0.0 UsbBootKeyboard CLAIMED DEVICE Virtual Keyboard

OO 3 0/0/2/1 UsbOhci CLAIMED INTERFACE USB OHCI Interface

OO 4 0/0/2/1.0 UsbMiniBus CLAIMED INTERFACE USB Composite Device

ext_bus 0 0/0/2/1.0.16 UsbScsiAdaptor CLAIMED INTERFACE USB SCSI Stack Adaptor

disk 4 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-V

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0

ctl 2 0/0/2/1.0.16.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c0t7d0

OO 8 0/0/2/2 UsbEhci CLAIMED INTERFACE USB EHCI Interface

graphics 0 0/0/4/0 gvid_core CLAIMED INTERFACE PCI Display (10025159)

lan 0 0/4/2/0 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core

lan 1 0/4/2/1 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core

ext_bus 1 0/6/0/0/0/0/1/0/0/0 ciss CLAIMED INTERFACE PCIe SAS SmartArray P400 RAID Controller

/dev/ciss1

disk 1 0/6/0/0/0/0/1/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d0 /dev/dsk/c1t0d0s2 /dev/rdsk/c1t0d0 /dev/rdsk/c1t0d0s2

/dev/dsk/c1t0d0s1 /dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s1 /dev/rdsk/c1t0d0s3

disk 2 0/6/0/0/0/0/1/0/0/0.0.1 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d1 /dev/rdsk/c1t0d1

disk 3 0/6/0/0/0/0/1/0/0/0.0.2 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d2 /dev/dsk/c1t0d2s2 /dev/rdsk/c1t0d2 /dev/rdsk/c1t0d2s2

/dev/dsk/c1t0d2s1 /dev/dsk/c1t0d2s3 /dev/rdsk/c1t0d2s1 /dev/rdsk/c1t0d2s3

disk 5 0/6/0/0/0/0/1/0/0/0.0.3 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d3 /dev/rdsk/c1t0d3

ctl 1 0/6/0/0/0/0/1/0/0/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c1t7d0

ipmi 0 250/0 ipmi CLAIMED INTERFACE IPMI Controller

/dev/ipmi

tty 3 250/1 asio0 CLAIMED INTERFACE Built-in RS232C

/dev/diag/mux3 /dev/mux3 /dev/tty3p0

acpi_node 0 250/2 acpi_node CLAIMED INTERFACE Acpi Hardware

usbmsvbus 0 255/1 mass_storage CLAIMED VIRTBUS USB Mass Storage



srvap01::root>pvdisplay /dev/dsk/c1t0d2

pvdisplay: Couldn't find the volume group to which

physical volume "/dev/dsk/c1t0d2" belongs.

pvdisplay: Cannot display physical volume "/dev/dsk/c1t0d2".





srvap01::root>rmsf -a -v /dev/dsk/c1t0d2

rmsf: Removing special file /dev/dsk/c1t0d2

rmsf: Removing special file dsk/c1t0d2s1

rmsf: Removing special file dsk/c1t0d2s2

rmsf: Removing special file dsk/c1t0d2s3

rmsf: Removing special file rdsk/c1t0d2

rmsf: Removing special file rdsk/c1t0d2s1

rmsf: Removing special file rdsk/c1t0d2s2

rmsf: Removing special file rdsk/c1t0d2s3





srvap01::root>ioscan -funC disk

Class I H/W Path Driver S/W State H/W Type Description

=================================================================================

disk 4 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-V

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0

disk 1 0/6/0/0/0/0/1/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d0 /dev/dsk/c1t0d0s2 /dev/rdsk/c1t0d0 /dev/rdsk/c1t0d0s2

/dev/dsk/c1t0d0s1 /dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s1 /dev/rdsk/c1t0d0s3

disk 2 0/6/0/0/0/0/1/0/0/0.0.1 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d1 /dev/rdsk/c1t0d1

disk 5 0/6/0/0/0/0/1/0/0/0.0.3 sdisk CLAIMED DEVICE HP LOGICAL VOLUME

/dev/dsk/c1t0d3 /dev/rdsk/c1t0d3





srvap01::root>saconfig /dev/ciss1



******************** SmartArray RAID Controller /dev/ciss1 ********************



Auto-Fail Missing Disks at Boot = disabled

Cache Configuration Status = cache enabled

Cache Ratio = 25% Read / 75% Write



---------- PHYSICAL DRIVES ----------



Location Ct Enc Bay WWID Size Status



Internal 1I 1 4 0x5000c5000abc8e01 146.8 GB OK

Internal 1I 1 3 0x5000c5000abb9e55 146.8 GB OK

Internal 1I 1 2 0x5000c5000eccbd45 146.8 GB OK

Internal 1I 1 1 0x5000c5000eccae31 146.8 GB OK

Internal 2I 1 8 0x5000c5000abcc631 146.8 GB OK

Internal 2I 1 7 0x5000c5000abc8571 146.8 GB OK

Internal 2I 1 6 0x5000c5000abbfb35 146.8 GB UNASSIGNED

Internal 2I 1 5 0x5000c5000aba8415 146.8 GB UNASSIGNED



---------- LOGICAL DRIVE 0 ----------



Device File = c1t0d0

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK



Participating Physical Drive(s):



Ct Enc Bay WWID

1I 1 4 0x5000c5000abc8e01

1I 1 3 0x5000c5000abb9e55



Participating Spare Drive(s):



None



---------- LOGICAL DRIVE 1 ----------



Device File = c1t0d1

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK



Participating Physical Drive(s):



Ct Enc Bay WWID

2I 1 8 0x5000c5000abcc631

2I 1 7 0x5000c5000abc8571



Participating Spare Drive(s):



None



---------- LOGICAL DRIVE 3 ----------
Device File = c1t0d3

RAID Level = 1+0

Size = 139979 MB

Stripe Size = 128 KB

Status = OK
Participating Physical Drive(s):

Ct Enc Bay WWID

1I 1 2 0x5000c5000eccbd45

1I 1 1 0x5000c5000eccae31

Participating Spare Drive(s):

None
srvap01::root>saconfig /dev/ciss1 -R 0 -P 2I:1:5 -P 2I:1:6

-s To specify a spare drive to be included in


srvap01::root>saconfig /dev/ciss1 -R 0 -p 2I:1:5 -p 2I:1:6

Logical drive 2 created

srvap01::root>saconfig

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...