Search This Blog

Monday, May 7, 2012

Shutting Down or rebooting the nPartition (Or Rebooting the vPars Monitor)

To halt or reboot the hard partition gracefully, you need to do the following:
Log into every virtual partition that is running and gracefully shutdown the partition via the HP-UX command shutdown.
There is no command that shuts down all the virtual partitions at the same time. You need to shutdown every virtual partition one at a time.
For our example, if all our partitions were up, we would need to shut them down:

winona1# vparstatus
winona1# shutdown -h

winona2# vparstatus
winona2# shutdown -h

winona3# vparstatus
winona3# shutdown -h

After the last virtual partition is shut down, you will be at the vPars Monitor prompt (MON>) on the console.
To reboot the hard partition, use the vPars Monitor command
# reboot
MON>reboot

To shut down the rp5470/L3000 or rp7400/N4000 servers, access the GSP using Ctrl-B. You can then use the GSP command PC to power off the server. For example:
MON> ^B
GSP> PC

Alternatively, you can power off the rp5470/L3000 or rp7400/N4000 servers via the physical power switch.
Because no partitions are running and vPars Monitor is running only in memory, shutting down the vPars Monitor this way does not corrupt the server's memory.
To power off the cells assigned to the nPartition, access the GSP using Ctrl-B. You can then go to the Command Menu and use the command PE to power off the cells. For example:

MON> ^B
GSP MAIN MENU:
 CO: Consoles
VFP: Virtual Front Panel
 CM: Command Menu
 CL: Console Logs
 SL: Show chassis Logs
 HE: Help
  X: Exit Connection

GSP> cm
Enter HE to get a list of available commands

GSP:CM> PE

This command controls power enable to a hardware device.

 B - Cabinet
 C - Cell
 I - IO Chassis
     Select Device: c

 Enter cabinet number: 0
 Enter slot number: 6

 The power state is ON for the Cell in Cabinet 0, Slot 6.
 In what state do you want the power? (ON/OFF) OFF

 GSP:CM>

To add a persistent static route, you will need to create a route-ethX file.

To add a persistent static route, you will need to create a route-ethX file.

/etc/sysconfig/network-scripts/route-ethXX here refers to your interface number.

Every entry or a route has three lines as follows:

GATEWAY=xxx.xxx.xxx.xxx
NETMASK=yyy.yyy.yyy.yyy
ADDRESS=zzz.zzz.zzz.zzz

As the names implies, they are the gateway IP, Netmask and the IP/Network Address.

Note the number next to each of the three entities. This number defines the route entry number and should be the same on all the entities.

Example:

[root@vm network-scripts]# cat route-eth1
 GATEWAY0=10.1.117.1
 NETMASK0=255.255.255.0
 ADDRESS0=10.1.117.0


#route add -net 192.125.169.45 netmask 255.255.255.255 gw 195.232.168.1 eth1
# cd /etc/sysconfig/network-scripts/
# vi route-eth1

GATEWAY0=195.232.168.1
NETMASK0=255.255.255.255
ADDRESS0=192.125.169.45


Default route is at path:
/etc/sysconfig/network

How to check the FC card version:


testlab:/root # fcmsutil /dev/fcd0 vpd
                V I T A L   P R O D U C T   D A T A
                ---------   -------------   -------

 Product Description    : "HP 2Gb Fibre Channel FC/GigE Combo Adapter                 "

 Part number            : "A9782-60002"

 Engineering Date Code  : "A-4550"

 Part Serial number     : "PRA07071KM"

 Misc. Information      : "PW=25W;PCI 66MHZ;PCI-X 133MHZ"

 Mfd. Date              : "4608"

 Check Sum              : 0xee

 EFI version            : "001.49"

 ROM Firmware version   : "003.003.154"

 Asset Tag              : "NA"

nologin significance

You are preparing to do your monthly maintenance and want to ensure no new logins occur. You also want to make sure that no one can login during the maintenance period. Which actions do you need to take?

Create /etc/nologin file on your system
Set the NOLOGIN feature value to 1 withing /etc/default/security

ls -la result is unreadable

ls -la result is unreadable

Able to read the directory by root user, but not by normal user

$ ls
. unreadable

 
It is purely a permission problem.
The directory is not having read permission for either the user/group/other but having write and execute permissions

Go to its parent directory.

testlab:/usr/sap/trans#ls -ld data
drwxrwx--x  2053 root       sapsys     3379200 May  7 13:20 data
testlab:/usr/sap/trans#chmod g+r data
testlab:/usr/sap/trans#chmod o+r data
testlab:/usr/sap/trans#ls -ld data
drwxrwxr-x  2053 root       sapsys     3379200 May  7 13:20 data