Posts

Showing posts from July, 2014

Power Blades console

Ways of getting partition consoles NOTE1: Better use putty instead of command prompt...as command prompt mimic the character twice for some unknown reasons. NOTE2: I usually open partition consoles through vnc sessions raher than any putty session 1. Reaching Partition console using 30002 session      This can be done only if fsp is in runtime (smsgr mfgState  command should  display runtime ) and the fsp is primary fsp.      a. go to asm (https:// ) network services -> debug vtty -> you will see 3 text boxes partition id sessiosn id and timeout.           Enter the partition id ( you can get this id either from phyp or from hmc)..in case of blades.....we usually have one partition...so we always use '1' for blades           Enter the session id as '0' ( this should always be zero   for partition consoles ...'1' is for getting partition firmware oflite sesisons...which is only used for pfw debug purpose )           Enter the timeout as you wish

VIOS Errors solutions

vios1host inet0 changed Method error (/usr/lib/methods/chgif):         0514-068 Cause not known. 0821-510 ifconfig: error calling entry point for /usr/lib/drivers/if_en: The spe cified device does not exist. 0821-103 : The command /usr/sbin/ifconfig en0 inet  9.124.62.181 arp netmask 255 .255.255.0 mtu 1500 up failed. 0821-007 cfgif: ifconfig command failed.         The status of"en0" Interface in the current running system is uncertain. 0821-103 : The command /usr/lib/methods/cfgif -len0 failed. # rmdev -dl en0 en0 deleted smitty chinet # rmtcpip Running: rmdev -d -l en1 Running: rmdev -d -l en4 Deleting inet0  ODM entry Running cfgmgr to initialize the network interfaces Saving current /etc/hosts file to /etc/hosts.save file. Then cleaning up /etc/hosts file Saving current /etc/resolv.conf file to /etc/resolv.conf.save. Then remov ing /etc/resolv.conf file Setting host name to: localhost Setting hostid to: 127.0.0.1 Please reboot the machine!

VIOS AIX SAN installation commands

Steps to insll AIX on SAN 1) check the SEA settings # ifconfig -a en26: flags=1e080863,180         inet 9.124.62.172 netmask 0xffffff00 broadcast 9.124.62.255          tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0 lo0: flags=e08084b,1c0         inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255         inet6 ::1%1/0          tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 2) check SEA $ lsmap -all -net SVEA   Physloc ------ -------------------------------------------- ent24  U9117.MMC.06FF076-V1-C2-T1 SEA                 NO SHARED ETHERNET ADAPTER FOUND SVEA   Physloc ------ -------------------------------------------- ent25  U9117.MMC.06FF076-V1-C4-T1 SEA                   ent26 Backing device        ent12 Status                Available Physloc               U78C0.001.DBJU087-P2-C8-T3 3) check all virtual devices $ lsdev -virtual name             status      description ent24            Available   Virtual I/O Ethernet Adapter (

More VIOS commands

RAID controller USB UHC Spec --> local disk Location code website need to find? SCSI Adapter create LVM on VIOS if we hv single physical disk lsdev -virtul ent1 -- virtual adapter lsdev ent0 ---physical adapter lsmap -all -net netstat -state chdev -dev ent0 -attr state=detach mkdev VIOS Adapter 2 Port VLAN 1 port 3 vlan 99 bridge NO $ oem_setup_env 32 LPM_VIOS juno 37 c05076050e790000 c05076050e790001 show WWPN no lscfg -vpl fcs0 http://9.126.134.190/na_admin/ show hardisks lspv mkvdev -sea ent0 -vadapter ent1 -default ent1 -defaultid 1 5) Scan for new disks from your server Log into your server and scan for new hardware. SCAN SAN disks LUNS In AIX: AIX# cfgmgr AIX# fget_config -Avada $ vfcmap -vadapter vfchost2 -fcp fcs1 $ lsmap -all -npiv Name          Physloc                            ClntID ClntName       ClntOS ------------- ---------------------------------- ------ -------------- ------- vfchost0      U8205

VIOS commands steps

Check current DISK in AIX # lsdev -c disk -S a hdisk0 Available  Virtual SCSI Disk Drive set the bootlist to hdisk0 # bootlist -m normal hdisk0 lspv --> to find the free disk lspv -free DISK MAPPING $ lsdev -virtual name             status      description ent2             Available   Virtual I/O Ethernet Adapter (l-lan) ent4             Available   Virtual I/O Ethernet Adapter (l-lan) vfchost0         Available   Virtual FC Server Adapter vfchost1         Available   Virtual FC Server Adapter vhost0           Available   Virtual SCSI Server Adapter vsa0             Available   LPAR Virtual Serial Adapter name             status      description ent5             Available   Shared Ethernet Adapter $ lsmap -vadapter vhost0 SVSA            Physloc                                      Client Partition ID --------------- -------------------------------------------- ------------------ vhost0          U8205.E6B.065469R-V2-C3                      0x00000001

How to take console for IVM

system> env -T system:blade[5] ok>console                  DESTINATION BLADE IS IN POWER OFF STATE         SOL session is temporarily not available.         Attempting to re-establish your session ...         SOL connection is re-established. SOL session is now active.         SOL session is temporarily not available.         Attempting to re-establish your session ...         SOL connection is re-established. SOL session is now active. system:blade[5]> sol -status enabled SOL Session: Active SOL retry interval: 250 ms SOL retry count: 7 SOL bytes sent: 0 SOL bytes received: 105 SOL destination IP address: 192.199.199.85 SOL destination MAC: 00:1A:64:47:40:DA SOL I/O module slot number: 1 SOL console user ID: USERID SOL console login from: 9.126.97.184 (SSH) SOL console session started: 03/14/12 -- 11:30:47 SOL console session stopped: N/A Blade power state: On system:blade[5]> ping 192.199.199.85 Invalid syntax.  Type 'ping -h

HMC Commands

   Davinder:~ # mksysconn --ip 10.0.6.1 Enter the management console access password for the system: Davinder:~ # lssyscfg -r sys name=Server-9117-MMB-SN068D79P,type_model=9117-MMB,serial_num=068D79P,ipaddr=9.126.137.118,state=Operating,detailed_state=None,sys_time=10/13/2012 11:14:35,power_off_policy=1,active_lpar_mobility_capable=1,inactive_lpar_mobility_capable=1,active_lpar_share_idle_procs_capable=1,active_mem_expansion_capable=0,hardware_active_mem_expansion_capable=0,active_mem_sharing_capable=1,addr_broadcast_perf_policy_capable=0,bsr_capable=1,cod_mem_capable=1,cod_proc_capable=1,dynamic_platform_optimization_capable=1,electronic_err_reporting_capable=1,firmware_power_saver_capable=1,hardware_power_saver_capable=1,hardware_discovery_capable=1,hardware_mem_encryption_capable=0,hca_capable=1,huge_page_mem_capable=1,lhea_capable=1,lpar_avail_priority_capable=1,lpar_proc_compat_mode_capable=1,lpar_remote_restart_capable=1,lpar_suspend_capable=1,micro_lpar_capable=1,os400_capab