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

Changing HP ServiceGuard clustering parameters

orgdwprd@root:/etc/cmcluster> cmapplyconf -v -C dw_clx.conf
Begin cluster verification...
Checking cluster file: dw_clx.conf
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 7 devices on node orgdwprd
Found 29 devices on node orgdwap1
Analysis of 36 devices should take approximately 6 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 3 volume groups on node orgdwprd
Found 4 volume groups on node orgdwap1
Analysis of 7 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Volume group /dev/lckdwvg is configured differently on node orgdwprd than on node orgdwap1
Volume group /dev/lckdwvg is configured differently on node orgdwap1 than on node orgdwprd
Volume group /dev/vgsap is configured differently on node orgdwprd than on node orgdwap1
Volume group /dev/vgsap is configured differently on node orgdwap1 than on node orgdwprd
Gathering network information
Beginning network prodwng (this may take a while)


orgdwprd@root:/etc/cmcluster> cmapplyconf -v -C dw_clx.conf
Begin cluster verification...
Checking cluster file: dw_clx.conf
Checking nodes ... Done
Checking existing configuration ... Done
Gathering storage information
Found 7 devices on node orgdwprd
Found 29 devices on node orgdwap1
Analysis of 36 devices should take approximately 6 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 3 volume groups on node orgdwprd
Found 4 volume groups on node orgdwap1
Analysis of 7 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Volume group /dev/lckdwvg is configured differently on node orgdwprd than on node orgdwap1
Volume group /dev/lckdwvg is configured differently on node orgdwap1 than on node orgdwprd
Volume group /dev/vgsap is configured differently on node orgdwprd than on node orgdwap1
Volume group /dev/vgsap is configured differently on node orgdwap1 than on node orgdwprd
Gathering network information
Beginning network prodwng (this may take a while)
Completed network prodwng
Cluster dw_CLX1 is an existing cluster
Modifying NODE_TIMorgUT value from 2000000 to 20000000 while cluster dw_CLX1 is running.
Cluster dw_CLX1 is an existing cluster
Checking for inconsistencies
Maximum configured packages parameter is 150.
Configuring 1 package(s).
149 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Modifying configuration on node orgdwprd
Modifying configuration on node orgdwap1
Modifying the cluster configuration for cluster dw_CLX1

Modify the cluster configuration ([y]/n)?
Marking/unmarking volume groups for use in the cluster
Unable to apply the configuration change: No such file or directory
. Check the syslog file(s) for additional information.
cmapplyconf: Unable to apply the configuration
orgdwprd@root:/etc/cmcluster>

Solaris: df: cannot statvfs - ERROR

OS: Sun Solaris 8/10
Hardware: Fire-V880

Error Message:

df: cannot statvfs /oracle/test/vol158: I/O error
df: cannot statvfs /oracle/test/vol159: I/O error
df: cannot statvfs /oracle/test/vol160: I/O error
df: cannot statvfs /oracle/test/vol161: I/O error
/dev/vx/dsk/testdg/vol16
142369792 140858696 1499360 99% /oracle/test/vol16
df: cannot statvfs /oracle/test/vol162: I/O error
df: cannot statvfs /oracle/test/vol163: I/O error
df: cannot statvfs /oracle/test/vol164: I/O error
df: cannot statvfs /oracle/test/vol165: I/O error
# vxprint -vt grep -i disabled
v vol125 - DISABLED ACTIVE 243609600 SELECT - fsgen
v vol158 - DISABLED ACTIVE 284774400 SELECT - fsgen
v vol159 - DISABLED ACTIVE 284774400 SELECT - fsgen
v vol160 - DISABLED ACTIVE 284774400 SELECT - fsgen
v vol161 - DISABLED ACTIVE 284774400 SELECT - fsgen
v vol162 - DISABLED ACTIVE 284774400 SELECT - fsgen
You may get errors on Filesystems and the volumes will get disabled automatically.
This may be due to intermittent connection loss with the Storage.
1. Try to enable the volume with command vxvol enable volxxx
2. Then check the state of the PLEX and if the plex state is in "Recover" State then,
make the plex "Clean" and "Stale" using the following script if you have multiple volumes

for i in `vxprint grep "Disk group:" awk '{ print $3 }'` ; do
for j in `vxprint -g $i grep "RECOVER" awk '{ print $2 }'` ; do
vxmend -g $i fix stale $j
vxmend -g $i fix clean $j
done
done
Reference:

http://support.veritas.com/docs/231913

+++++Post Your Queries related to HP-UX/SOlaris/VCS/VXVM - http://unixadvice.formyjob.net/ +++++++++

---------------------------------------------------------------------------------------------------------------------------------
Solaris 10 Zone Control Commands



The following control commands can be used to manage and monitor transitions between states:


• zlogin options zone-name

• zoneadm -z zone-name boot

• zoneadm -z zone-name halt
• zoneadm -z zone-name install
• zoneadm -z zone-name ready

• zoneadm -z zone-name reboot

• zoneadm -z zone-name uninstall

• zoneadm -z zone-name verify

• zonecfg -z zone-name: Interactive mode; can be used to remove properties of the following types: fs, device, rctl, net, attr

• zonecfg -z zone-name commit

• zonecfg -z zone-name create

• zonecfg -z zone-name delete

• zonecfg -z zone-name verify

Solaris 10 Zone Control Commands



The following control commands can be used to manage and monitor transitions between states:


• zlogin options zone-name

• zoneadm -z zone-name boot

• zoneadm -z zone-name halt

• zoneadm -z zone-name install

• zoneadm -z zone-name ready

• zoneadm -z zone-name reboot

• zoneadm -z zone-name uninstall

• zoneadm -z zone-name verify

• zonecfg -z zone-name: Interactive mode; can be used to remove properties of the following types: fs, device, rctl, net, attr

• zonecfg -z zone-name commit

• zonecfg -z zone-name create

• zonecfg -z zone-name delete

• zonecfg -z zone-name verify

Solaris 11 Reference:
http://solaristipsandtricks.blogspot.in/#!/2011/12/solaris-11-smf-and-nscd.html

EFI - dbprofile

nullnull

HP-UX Ignite make_net_recovery procedure to take a net backup and to restore it on the client machine.

{note: Please post your comments at the end of this page}
STEP1:


Run the make_net_recovery from the client machine ie SAND-BOX



# make_net_recovery -s IGNITE-SRV -A -x inc_entire=vg00



IGNITE-SRV = hostname of the Ignite server



======= 09/23/10 10:16:05 UAE Started make_net_recovery. (Thu Sep 23 10:16:05

UAE 2010)

@(#)Ignite-UX Revision C.7.5.142

@(#)ignite/net_recovery (opt) Revision:

/branches/IUX_RA0803/ignite/src@72866 Last Modified: 2008-02-06

15:49:50 -0700 (Wed, 06 Feb 2008)





* Testing for necessary pax patch.

* Checking Versions of Recovery Tools

* Scanning system for IO devices...

* Boot device is: 0/2/1/0.0x5382d3ae4c7121c.0x0

* Creating System Configuration.

* /opt/ignite/bin/save_config -f /var/opt/ignite/recovery/client_mnt/0x0

01F29BC2AFD/recovery/2010-09-23,10:16/system_cfg vg00

* Backing Up Volume Group /dev/vg00

* /usr/sbin/vgcfgbackup /dev/vg00

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

* Creating Map Files for Volume Group /dev/vg00

* /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg00.mapfile /dev/vg00

vgexport: Volume group "/dev/vg00" is still active.

vgexport: Preview of vgexport on volume group "/dev/vg00" succeeded.



* Backing Up Volume Group /dev/vgDB2

* /usr/sbin/vgcfgbackup /dev/vgDB2

Volume Group configuration for /dev/vgDB2 has been saved in /etc/lvmconf/vgDB2.conf

* Creating Map Files for Volume Group /dev/vgDB2

* /usr/sbin/vgexport -s -p -m /etc/lvmconf/vgDB2.mapfile /dev/vgDB2

recovery.log (24%)



vgexport: Volume group "/dev/vgDB2" is still active.

vgexport: Preview of vgexport on volume group "/dev/vgDB2" succeeded.



* Creating Control Configuration.

WARNING: Failed to find "/dev/vgDB2/lvDB2snd" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2mnt" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2trans" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvoracle" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvoraclient" in IOTree, will not be added

to the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvorastage" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvorasnd" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lv102_64" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvoraarch" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2reorg" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2data1" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2data2" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvDB2data3" in IOTree, will not be added to

the _hp_hide_other_disks list

recovery.log (56%)

WARNING: Failed to find "/dev/vgDB2/lvDB2data4" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvoriglogA" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvoriglogB" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvmirrlogA" in IOTree, will not be added to

the _hp_hide_other_disks list

WARNING: Failed to find "/dev/vgDB2/lvmirrlogB" in IOTree, will not be added to

the _hp_hide_other_disks list

* Creating Archive File List

* Creating Archive Configuration



* /opt/ignite/lbin/make_arch_config -c /var/opt/ignite/recovery/client_m

nt/0x001F29BC2AFD/recovery/2010-09-23,10:16/archive_cfg -g /var/opt/ig

nite/recovery/client_mnt/0x001F29BC2AFD/recovery/2010-09-23,10:16/flis

t -n 2010-09-23,10:16 -r ipf -b 64 -d Recovery\ Archive -L

/var/opt/ignite/recovery/arch_mnt -l

IGNITE-SRV:/var/opt/ignite/recovery/archives/SAND-BOX -i 1 -m t

* Saving the information about archive to

/var/opt/ignite/recovery/previews

* Creating The Networking Archive



* /opt/ignite/data/scripts/make_sys_image -d

/var/opt/ignite/recovery/arch_mnt -t n -s local -n 2010-09-23,10:16 -m

t -w /var/opt/ignite/recovery/client_mnt/0x001F29BC2AFD/recovery/2010-

09-23,10:16/recovery.log -u -R -g /var/opt/ignite/recovery/client_mnt/

0x001F29BC2AFD/recovery/2010-09-23,10:16/flist -a 10491250



* Preparing to create a system archive.

recovery.log (87%)

IGNITE-SRV:/var/opt/ignite/recovery/archives/SAND-BOX -i 1 -m t

* Saving the information about archive to

/var/opt/ignite/recovery/previews

* Creating The Networking Archive



* /opt/ignite/data/scripts/make_sys_image -d

/var/opt/ignite/recovery/arch_mnt -t n -s local -n 2010-09-23,10:16 -m

t -w /var/opt/ignite/recovery/client_mnt/0x001F29BC2AFD/recovery/2010-

09-23,10:16/recovery.log -u -R -g /var/opt/ignite/recovery/client_mnt/

0x001F29BC2AFD/recovery/2010-09-23,10:16/flist -a 10491250



* Preparing to create a system archive.

* The archive is estimated to reach 5245625 kbytes.

* Free space on /var/opt/ignite/recovery/arch_mnt

after archive should be about 1293351 kbytes.



* Archiving contents of SAND-BOX via tar to

/var/opt/ignite/recovery/arch_mnt/2010-09-23,10:16.

* Creation of system archive complete.



* Creating CINDEX Configuration File



* /opt/ignite/bin/manage_index -q -c 2010-09-23,10:16\ Recovery\ Archive

-i /var/opt/ignite/recovery/client_mnt/0x001F29BC2AFD/CINDEX -u

Recovery\ Archive







======= 09/23/10 10:38:47 UAE make_net_recovery completed with warnings



*********************************************************************************************************



STEP2:

Boot the client machine with Ignite server.

Error description:
When you try to boot with LAN0 or LAN1 to boot with IGNITE server you get this following error.

PXE-E18: Timeout. Server did not respond

In new itanium boxes dbprofile needs to be defined.
Interrupt the boot
Select Change Confinguration
New configuration
Enter the shell

The below example is done in my environment with a BL-860c server and I have HP-UX 11.31. when i was trying to recover a make_net_recovery from a IGNITE server i faced this issue.


Shell> dbprofile -dn new1

Profile Name: new1
Network Type: IPv4
Client IP address: 0.0.0.0
Gateway IP address: 0.0.0.0
Subnet Mask: 0.0.0.0
Server IP address: 16.26.86.25
Boot File: /opt/ignite/boot/nbp.efi
Optional Data:

Shell>
Shell> lanboot select -dn new1
01 Acpi(HWP0002,PNP0A03,200)/Pci(2|0)/Mac(0017A4993DCB)
02 Acpi(HWP0002,PNP0A03,200)/Pci(2|1)/Mac(0017A4993DCA)
Select Desired LAN: 1

BOOTP Server IP Address: 10.100.100.49
DHCP Server IP Address: 0.0.0.0
Boot file name: /opt/ignite/boot/nbp.efi

Retrieving File Size............|
PXE-E18: Timeout. Server did not respond.
Exit status code: Invalid Parameter

To set all the IP s and the boot file enter the following command.

shell> dbprofile -dn new1 -sip 10.100.100.49 -cip 10.100.100.11 -gip 10.100.100.1 -b /opt/ignite/boot/nbp.efi

where cip- client IP, SIP - Ignite server IP, gip - gateway IP and b - bootfile
Shell> lanboot -dn new1

Client MAC Address: 00 1F 29 BC 2A FC
Client IP Address: 10.100.100.11
Subnet Mask: 255.255.255.0
BOOTP Server IP Address: 10.100.100.49
DHCP Server IP Address: 0.0.0.0
Boot file name: /opt/ignite/boot/nbp.efi

Retrieving File Size.
Retrieving File (TFTP).
@(#) HP-UX IA64 Network Bootstrap Program Revision 1.0
Downloading HPUX bootloader
Starting HPUX bootloader
Obtaining size of fpswa.efi (328192 bytes)
Downloading file fpswa.efi (328192 bytes)

(C) Copyright 1999-2006 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.035

Booting from Lan
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)



Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
1. target OS is B.11.23 IA
2. target OS is B.11.31 IA
3. Exit Boot Loader

Choose an operating system to install that your hardware supports:3

Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
Exiting bootloader.

Shell>
Shell>
Shell>
Shell>
Shell>
Shell>
Shell>
Shell> lanboot -dn new1

Client MAC Address: 00 1F 29 BC 2A FC
Client IP Address: 10.100.100.11
Subnet Mask: 255.255.255.0
BOOTP Server IP Address: 10.100.100.49
DHCP Server IP Address: 0.0.0.0
Boot file name: /opt/ignite/boot/nbp.efi

Retrieving File Size.
Retrieving File (TFTP).
@(#) HP-UX IA64 Network Bootstrap Program Revision 1.0
Downloading HPUX bootloader
Starting HPUX bootloader
Obtaining size of fpswa.efi (328192 bytes)
Downloading file fpswa.efi (328192 bytes)

(C) Copyright 1999-2006 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.035

Booting from Lan
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)

HP-UX - How to convert Strict/Distributed to normal Volume

use this following website to view and discuss and post about various UNIX related issues and break fixes. please share your views.

http://unixadvice.formyjob.net/forum.htm


How to convert Strict/Distributed volumes to normal.
Some times the HP engineers will create the volumes with strict / distributed instead of doing striping in the volume manager. We may not have enough disks to extend the volumes, in that case we can remove the strict allocation and make the volume as normal volume.

To turn off the Distributed allocation policy:

# lvchange -D n /dev/vg02/lvol1

That can be done online. After that you should be able to do your lvextend.


Change the allocation policy of a logical volume to nonstrict:

#lvchange -s n /dev/vg01/lvol7




HOST2@root:/> lvdisplay -v /dev/vgsap/test |more
--- Logical volumes ---
LV Name /dev/vgsap/test
VG Name /dev/vgsap
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24784
Current LE 3098
Allocated PE 3098
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation PVG-strict/distributed
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk12 628 628
/dev/disk/disk13 628 628
/dev/disk/disk14 628 628
/dev/disk/disk15 627 627
/dev/disk/disk19 498 498
/dev/disk/disk22 89 89

--- Logical extents ---
LE PV1 PE1 Status 1
000000000 /dev/disk/disk12 00011520 current
000000001 /dev/disk/disk13 00011520 current
000000002 /dev/disk/disk14 00011520 current
000000003 /dev/disk/disk15 00011520 current
000000004 /dev/disk/disk12 00011521 current
000000005 /dev/disk/disk13 00011521 current
000000006 /dev/disk/disk14 00011521 current
000000007 /dev/disk/disk15 00011521 current
000000008 /dev/disk/disk12 00011522 current
000000009 /dev/disk/disk13 00011522 current
000000010 /dev/disk/disk14 00011522 current
000000011 /dev/disk/disk15 00011522 current
000000012 /dev/disk/disk12 00011523 current
000000013 /dev/disk/disk13 00011523 current
000000014 /dev/disk/disk14 00011523 current
000000015 /dev/disk/disk15 00011523 current
000000016 /dev/disk/disk12 00011524 current
HOST2@root:/>

HOST2@root:/> lvchange -D n /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully changed.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

HOST2@root:/> lvchange -s n /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully changed.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

HOST2@root:/> lvextend -L 26832 /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

HP-UX extending strict/ distributed volumes with PVG

how to extend strict/distributed volumes.
HP-UX version : 11.31
HOST1@root:/> ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP IR Volume
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 2 0/3/0/0/0/0.10.4.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 3 0/3/0/0/0/0.10.4.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d1 /dev/rdsk/c3t0d1
disk 4 0/3/0/0/0/0.10.4.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
disk 5 0/3/0/0/0/0.10.4.0.0.0.3 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d3 /dev/rdsk/c3t0d3
disk 6 0/3/0/0/0/0.10.4.0.0.0.4 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d4 /dev/rdsk/c3t0d4
disk 7 0/3/0/0/0/1.20.4.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 8 0/3/0/0/0/1.20.4.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 9 0/3/0/0/0/1.20.4.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 10 0/3/0/0/0/1.20.4.0.0.0.3 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d3 /dev/rdsk/c5t0d3
disk 11 0/3/0/0/0/1.20.4.0.0.0.4 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d4 /dev/rdsk/c5t0d4
HOST1@root:/> ioscan -funC disk |wc -l
25
HOST1@root:/>
HOST1@root:/> xpinfo -i

Device File ALPA Tgt Lun Port CU:LDev Type Serial#
================================================================================
/dev/rdisk/disk12 d5 00 00 CL6A 00:28 OPEN-V 00025796
/dev/rdisk/disk13 e4 00 01 CL5A 01:02 OPEN-V 00025796
/dev/rdisk/disk14 e4 00 02 CL5A 03:15 OPEN-V 00025796
/dev/rdisk/disk15 e4 00 03 CL5A 04:02 OPEN-V 00025796
/dev/rdisk/disk16 d5 00 04 CL6A 02:02 OPEN-V 00025796
HOST1@root:/>
HOST1@root:/> ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rchgr/autoch1 /dev/rac/c1t0d0
/dev/rdisk/disk1 /dev/rdsk/c0t0d0
/dev/rdisk/disk1_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk1_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk1_p3 /dev/rdsk/c0t0d0s3
/dev/pt/pt2 /dev/rscsi/c2t0d0
/dev/rscsi/c4t0d0
/dev/rtape/tape3_BEST /dev/rmt/c6t0d0BEST
/dev/rtape/tape3_BESTn /dev/rmt/c6t0d0BESTn
/dev/rtape/tape3_BESTb /dev/rmt/c6t0d0BESTb
/dev/rtape/tape3_BESTnb /dev/rmt/c6t0d0BESTnb
/dev/rtape/tape4_BEST /dev/rmt/c1t0d1BEST
/dev/rtape/tape4_BESTn /dev/rmt/c1t0d1BESTn
/dev/rtape/tape4_BESTb /dev/rmt/c1t0d1BESTb
/dev/rtape/tape4_BESTnb /dev/rmt/c1t0d1BESTnb
/dev/rdisk/disk12 /dev/rdsk/c3t0d0
/dev/rdsk/c5t0d0
/dev/rdisk/disk13 /dev/rdsk/c3t0d1
/dev/rdsk/c5t0d1
/dev/rdisk/disk14 /dev/rdsk/c3t0d2
/dev/rdsk/c5t0d2
/dev/rdisk/disk15 /dev/rdsk/c3t0d3
/dev/rdsk/c5t0d3
/dev/rdisk/disk16 /dev/rdsk/c3t0d4
/dev/rdsk/c5t0d4
HOST1@root:/dev/dsk> insf -C disk
insf: Installing special files for sdisk instance 21 address 0/3/0/0/0/0.10.4.0.0.0.5
insf: Installing special files for sdisk instance 22 address 0/3/0/0/0/0.10.4.0.0.0.6
insf: Installing special files for sdisk instance 23 address 0/3/0/0/0/0.10.4.0.0.0.7
insf: Installing special files for sdisk instance 24 address 0/3/0/0/0/0.10.4.0.0.1.0
insf: Installing special files for sdisk instance 17 address 0/3/0/0/0/1.20.4.0.0.0.5
insf: Installing special files for sdisk instance 18 address 0/3/0/0/0/1.20.4.0.0.0.6
insf: Installing special files for sdisk instance 19 address 0/3/0/0/0/1.20.4.0.0.0.7
insf: Installing special files for sdisk instance 20 address 0/3/0/0/0/1.20.4.0.0.1.0
insf: Installing special files for esdisk instance 25 address 64000/0xfa00/0x17
insf: Installing special files for esdisk instance 26 address 64000/0xfa00/0x18
insf: Installing special files for esdisk instance 27 address 64000/0xfa00/0x19
insf: Installing special files for esdisk instance 28 address 64000/0xfa00/0x1a

vgextend -g PVGRAID5-2 /dev/vgsap /dev/disk/disk25 /dev/disk/disk26


HOST1@root:/dev/dsk> strings /etc/lvmpvg
VG /dev/vgsap
PVG PVRAID5
/dev/disk/disk12
/dev/disk/disk13
/dev/disk/disk14
/dev/disk/disk15
HOST1@root:/dev/dsk> cp /etc/lvmpvg /var/tmp/lvmpvg.bck
HOST1@root:/dev/dsk> vgextend -g PVRAID5-2 /dev/vgsap /dev/disk/disk25 /dev/disk/disk26 /dev/disk/disk27 /dev/disk/disk28
Volume group "/dev/vgsap" has been successfully extended.
Physical volume group "PVRAID5-2" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST1@root:/dev/dsk> strings /etc/lvmpvg
VG /dev/vgsap
PVG PVRAID5
/dev/disk/disk12
/dev/disk/disk13
/dev/disk/disk14
/dev/disk/disk15
PVG PVRAID5-2
/dev/disk/disk25
/dev/disk/disk26
/dev/disk/disk27
/dev/disk/disk28
HOST1@root:/dev/dsk>
HOST1@root:/dev/dsk> lvextend -L 135168 /dev/vgsap/lvsapdata1 PVRAID5-2
Logical volume "/dev/vgsap/lvsapdata1" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST1@root:/dev/dsk>

Installing Ingress Controller - Kubernetes

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