Viosmaint May2015
Viosmaint May2015
Viosmaint May2015
HANDOUT AT:
HTTP://WWW.CIRCLE4.COM/FORSYTHE/VIOSMAINT-MAY2015.PDF
Jaqui Lynch
[email protected]
AGENDA
1
5/20/2015
FUNDAMENTALS BEFORE
YOU START
JUST PUBLISHED
2
5/20/2015
STAY CURRENT
VIOS Lifecycle
Version GA EOM EOS/EOL
1.5 11/07 2008 09/11
2.1 11/08 2010 09/12
2.2.0 0 9/10 2011 09/13
2.2.1 10/11 10/12 04/15
2.2.2 10/12 10/13 09/16
2.2.3 4Q13
2.2.4 2Q15
Latest release:
2.2.3.4 FP27 SP04
Basically AIX 6100-09-044-1441
Requires NIM at 6100-09-04 or 7100-03-04
Can be applied to 2.2.3.0, 2.2.3.1, 2.2.3.2 or 2.2.3.4
Note there are three Interim fixes on Fix Central for this leave
Download updates from Fix Central:
http://www-933.ibm.com/support/fixcentral/
Download base from entitled software:
https://www-05.ibm.com/servers/eserver/ess/ProtectedServlet.wss
HMC latest version is v8.8.2.0M1 (MH01455) with patches MH01499, MH01507 and MH01515
Also check MPIO driver versions as there are specific requirements for each VIO release
3
5/20/2015
GENERAL
• Keep it simple
• Ensure LMB is the same on all servers if you want to use LPM
• Use hot pluggable adapters rather than built in ones
Easier maintenance
• Use dual VIO to allow for concurrent updates
• All adapters should be desired, not required
• Don’t mix multipath drivers / HBAs
• Run HMC Scanner and/or Sysplan before and after all changes
• Plan for at least one update per year (IBM normally puts out 2)
• Separate VIOs for production and non prod on large systems
• Test failover (SEA failover and disk if vio goes down)
• Use VIO commands wherever possible rather than going into oem_setup_env
• mirror vio rootvg
• NOTE – v2 requires at LEAST 30GB in rootvg
• Fix Paging- By default VIO has a 512MB hd6 and a 1.5GB paging00 on the same LUN
• Add logging and set up dump devices properly
• Run VIOS Advisor regularly
• Check errpt regularly
• NEVER run at 100% entitlement – ensure it is high enough and there are plenty of VPs
and memory
• Backup regularly – use NIM or scripts
SIZING
4
5/20/2015
MORE ON SIZING
If using 10Gb or 8Gb adapters need more memory for buffering and more CPU to handle traffic
High values for VIO adapter slots can also increase memory needs
Not uncommon to see a VIO now needing 6-8GB memory and entitlement of 1-2 cores
10
5
5/20/2015
HBA SETTINGS
11
HBA TUNING
• NOTE – as of AIX v7.1 tl2 (or 6.1 tl8) num_cmd_elems is limited to 256 on the VFCs so set
num_cmd_elems to the high number on the VIO but to no more than 256 on the NPIV clients
• See: http://www-01.ibm.com/support/docview.wss?uid=isg1IV63282
12
6
5/20/2015
fcs0
bus_intr_lvl 115 Bus interrupt level False
bus_io_addr 0xdfc00 Bus I/O address False
bus_mem_addr 0xe8040000 Bus memory address False
init_link al INIT Link flags True
intr_priority 3 Interrupt priority False
lg_term_dma 0x800000 Long term DMA True
max_xfer_size 0x100000 Maximum Transfer Size True (16MB DMA)
num_cmd_elems 200 Maximum number of COMMANDS to queue to the adapter True
pref_alpa 0x1 Preferred AL_PA True
sw_fc_class 2 FC Class for Fabric True
13
At AIX 6.1 TL2 VFCs will always use a 128MB DMA memory area even with
default max_xfer_size
Remember make changes too both VIO servers and client LPARs if using NPIV
VIO server setting must be at least as large as the client setting
Remember VFCs on the client are limited to num_cmd_elems=256 after AIX 6.1
tl8 or 7.1 tl2
14
7
5/20/2015
VIO SERVER
15
NETWORK
16
8
5/20/2015
VIRTUAL ETHERNET
Link aggregation
Put vio1 aggregate on a different switch to vio2 aggregate
Provides redundancy without having to use NIB
Allows full bandwidth and less network traffic (NIB is pingy)
Basically SEA failover with full redundancy and bandwidth
If VIOS only handling network then disable network threading on the virtual Ethernet
chdev –dev ent? thread=0
Non threaded improves LAN performance
Threaded (default) is best for mixed vSCSI and LAN
http://www14.software.ibm.com/webapp/set2/sas/f/vios/documentation/perf.html
17
NETWORK
no -p -o rfc1323=1
no -p -o tcp_sendspace=262144
no -p -o tcp_recvspace=262144
no -p -o udp_sendspace=65536
no -p -o udp_recvspace=655360
Also check the actual NIC interfaces and make sure they are set to at least
these values
You can’t set udp_sendspace > 65536 as IP has an upper limit of 65536 bytes
per packet
18
9
5/20/2015
# ifconfig -a
en6:
flags=1e080863,580<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTIC
AST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN>
lo0:
flags=e08084b,1c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST
,GROUPRT,64BIT,LARGESEND,CHAIN>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1%1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
19
Depends on:
• Available CPU power
Scales by entitlement not by VPs
• MTU size
• Distance between receiver and sender
• Offloading features
• Coalescing and aggregation features
• TCP configuration
• Firmware on adapters and server
• Ensuring all known efixes are on for 10GbE issues
10
5/20/2015
MTU 1500 MTU 9000 MTU 1500 MTU 9000 MTU 65390 MTU 65390
9117-MMD 991 Mb/s 1.9 Gb/s 1.6 Gb/s 7 Gb/s 3.09 Gb/s 19.7 Gb/s
S824 1.4 Gb/s 4.7 Gb/s 2.55 Gb/s 13 Gb/s 49.2 Gb/s
21
Ent4 is the virtual adapter defined at the HMC with external access
(SEA goes here)
VIO1 is priority 1 and VIO2 is priority 2
Ent5 is the virtual adapter on Vlan 1 with no external
(IP will go here)
Ent6 is the control channel on vlan 255
mkvdev –sea ent0 –vadapter ent4 –default ent4 –defaultid 1 –attr ha_mode=auto ctl_chan=ent6
Creates ent7 as the SEA
Do not mess up priorities or ctl_chan or you will cause a spanning tree loop
22
11
5/20/2015
INSTALLATION
23
INSTALL OPTIONS
Using NIM
http://www-01.ibm.com/support/docview.wss?uid=isg3T1011386
From a mksysb
http://pic.dhe.ibm.com/infocenter/flexsys/information/index.jsp?topic=%2Fcom.ibm.acc.psm.resources.doc%2Fvios%2Fsdm
c_vios-vios_backup_restore_file_nim.html
24
12
5/20/2015
Use of NIM to back up, install, and update the VIOS is supported.
Note: For install, always create the SPOT resource directly from the VIOS mksysb
image. Do NOT update the SPOT from an LPP_SOURCE.
On the NIM Master, use the operation updateios to update the VIOS Server.
"nim –o updateios –a lpp_source=lpp_source1 ... ... ..."
On the NIM Master, use the operation alt_disk_install to update an alternate disk
copy of the VIOS Server.
"nim –o alt_disk_install –a source=rootvg –a disk=target_disk
–a fix_bundle=(Value) ... ... ..."
If NIM is not used to update the VIOS, only the updateios or the alt_root_vg
command from the padmin shell can be used to update the VIOS.
25
Copy the VIOS mksysb image from the CD to your NIM master
• On VIOS 2.2 media there are 3 images now – the 3rd is on DVD 2
• Copy all 3 images individually to a directory and then use cat to combine them
cat /export/mksysb/vios2.2/mksysb_image /export/mksysb/vios2.2/mksysb_image2
/export/mksysb/vios2.2/mksysb_image3 >/export/mksysb/nim_vios2.2mksysb
Copy the bosinst.data from the DVD and create a viosbosinst resource
You can now use bos_inst to do a mksysb install once the partition profile is defined
http://www-01.ibm.com/support/docview.wss?uid=isg3T1011386
26
13
5/20/2015
MAINTENANCE AND
UPGRADES
27
UPDATING VIOS
Run lsvopt and make sure no one is using the FBO devices
1. Normally upgrade HMC first then firmware then VIOS and then AIX
2. BUT – check the readme for all of the above first to make sure there is not a
different required order
3. Download the updates and cross-check compatibility using FLRT
4. Read the readme again
5. Run errpt to check for problems,check there are no stale partitions, missing disks
or paths, etc
• lsvg rootvg checks for stale PPs and physical volumes.
• lsvg -p rootvg looks for missing disks.
• lspath - checks for missing paths.
• errpt checks for errors.
6. Ensure all paths on clients are redundant so LPARs will stay up when this VIOS is
rebooted
7. Run HMC Scanner or sysplan to document prior to changes
8. Backup the VIOS
9. Mount the NFS filesystem or DVD or FBO image to be used for update
10. If using SSPs there are specific additional steps outlined in the README
28
14
5/20/2015
MIGRATION 1/2
Back the VIO up before doing anything and again when done!
If migrating from a pre v2 level ensure VP folding is turn off after the migration
Note – once at v2.1 you need to update to 2.2.3.1 prior to applying 2.2.3.4
2.2.3.4 requires a minimum release of 2.2.3.0 in order to be applied
Single step update requires VIO between 2.2.1.1 and 2.2.2.x
NIM allows you to create a single merged lpp_source to get around this but cannot be
used with SDDPCM
29
MIGRATION 2/2
Once you are on v2.1 then upgrades are all done using updateios or nim
There are specific concerns around updates if you are running SSPs (Shared
storage pools)
30
15
5/20/2015
$ ioslevel
2.2.3.2
$cat /usr/ios/cli/ios.level
$cat /usr/ios/cli/SPLEVEL.TXT
The above two will get you the IOS level and the SP
$ updateios -commit
All updates have been committed.
$ oem_setup_env
# /usr/sbin/emgr –P
There is no efix data on this system.
31
16
5/20/2015
# ls -l /home/padmin/saveit
total 824
-rw-r--r-- 1 root staff 118 Jul 22 12:33 b740vio2.disktmp.txt
-rw-r--r-- 1 root staff 24 Jul 22 12:33 b740vio2.ioslevel.txt
-rw-r--r-- 1 root staff 16 Jul 22 12:33 b740vio2.oslevel.txt
-rw-r--r-- 1 root staff 8038 Jul 22 12:33 b740vio2.vioadapter.txt
-rw-r--r-- 1 root staff 4528 Jul 22 12:33 b740vio2.viodisk.txt
-rw-r--r-- 1 root staff 59593 Jul 22 12:33 b740vio2.viodisks.txt
-rw-r--r-- 1 root staff 8800 Jul 22 12:33 b740vio2.violsdevv.txt
-rw-r--r-- 1 root staff 11967 Jul 22 12:33 b740vio2.violsmapall.npiv.txt
-rw-r--r-- 1 root staff 19363 Jul 22 12:33 b740vio2.violsmapall.txt
-rw-r--r-- 1 root staff 4595 Jul 22 12:33 b740vio2.vioslots.txt
-rw-r--r-- 1 root staff 227944 Jul 22 12:33 b740vio2.viovpd.txt
-rw-r--r-- 1 root staff 37 Jul 22 12:33 cfgname.txt
-rw-r--r-- 1 root staff 0 Jul 22 12:33 entstat.txt
-rw-r--r-- 1 root staff 240 Jul 22 12:33 firewall.txt
-rw-r--r-- 1 root staff 652 Jul 22 12:33 hostmap.txt
-rw-r--r-- 1 root staff 5970 Jul 22 12:33 optimize.txt
-rw-r--r-- 1 root staff 713 Jul 22 12:33 routinfo.txt
-rw-r--r-- 1 root staff 240 Jul 22 12:33 user.txt
-rw-r--r-- 1 root staff 15071 Jul 22 12:33 view.txt
33
oem_setup_env
# mount /usr/local/backups
# su - padmin -c "ioscli backupios -file /usr/local/backups/b740vio2-jul2214.mksysb -mksysb"
/usr/local/backups/b740vio2-jul2214.mksysb doesn't exist.
Creating /usr/local/backups/b740vio2-jul2214.mksysb
*** Here it is doing a savevgstructs for rootclients_vg *******
Creating information file for volume group rootclients_vg.
Creating list of files to back up.
Backing up 6 files
6 of 6 files (100%)
0512-038 savevg: Backup Completed Successfully.
Backup in progress. This command can take a considerable amount of time
to complete, please be patient...
17
5/20/2015
Download from Fix Central the iso image for 2.2.3.3 – I do this to my NIM server
It came down as H52175995.iso
mkdir /cdrom
loopmount -i H52175995.iso -o "-V cdrfs -o ro" -m /cdrom
smitty bffcreate – I do this on my NIM server and create a directory to put the files in that the VIO
has access to
In this case /usr/local/soft/vios2233
Normally I copy the files locally to the VIO in case I lose the network during the
install
35
*******************************************************************************
installp PREVIEW: installation will not actually occur.
*******************************************************************************
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Mandatory Fileset Updates
-------------------------
(being installed automatically due to their importance)
bos.rte.install 6.1.9.16 # LPP Install Commands
<< End of Success Section >>
Prompts you to reply Y which you do and it installs them
36
18
5/20/2015
After bos.rte.install is installed it then prompts you re installing the other 272 fixes
Check estimated space needed and free space and if all is good then:
Reply Y and they begin installing – takes about 2 hours depending
$ioslevel
Shows as 2.2.3.3
$oem_setup_env
# oslevel -s
6100-09-03-1415
bosboot –a –d hdisk0
bosboot –a –d hdisk1
bootlist –m normal hdisk0 hdisk1
$ ioslevel
2.2.3.3
$ oem_setup_env
# oslevel -s
Should show: 6100-09-03-1415
6100-09-03-1415
# instfix -i | grep ML
All filesets for 6100-00_AIX_ML were found.
All filesets for 6100-01_AIX_ML were found.
All filesets for 6100-02_AIX_ML were found.
All filesets for 6100-03_AIX_ML were found.
All filesets for 6100-04_AIX_ML were found.
All filesets for 6100-05_AIX_ML were found.
All filesets for 6100-06_AIX_ML were found.
All filesets for 6100-07_AIX_ML were found.
All filesets for 6.1.0.0_AIX_ML were found.
All filesets for 6100-08_AIX_ML were found.
All filesets for 6100-09_AIX_ML were found.
# lppchk -v
# lppchk -vm3
# oslevel -s -l 6100-09-03-1415
#errpt | more – check there are no errors
Once all checks are passed and VIO2 is back up then go do the same upgrade to VIO1
38
19
5/20/2015
# oslevel -s -l 6100-08-02-1316
Fileset Actual Level Service Pack Level
-----------------------------------------------------------------------------
bos.alt_disk_install.boot_images 6.1.8.0 6.1.8.15
bos.loc.utf.ES_ES 6.1.7.15 6.1.8.15
39
# oslevel -s -l 6100-08-02-1316
Fileset Actual Level Service Pack Level
-----------------------------------------------------------------------------
bos.alt_disk_install.boot_images 6.1.8.0 6.1.8.15
bos.loc.utf.ES_ES 6.1.7.15 6.1.8.15
updateios –commit
Updateios -accept -install -dev /usr/local/soft/missing
To remove:
# /usr/sbin/emgr -r -L <EFIX label>
emgr -r -L IV46869m3a
40
20
5/20/2015
BACKUP AND
RECOVERY
41
BACKING UP VIOS
Use viosbr to backup user defined virtual and logical resources on the VIO
Make sure to save that backup in rootvg
• viosbr –backup –file /tmp/viosabkupbr
• You can also use viosbr to view or restore
• http://publib.boulder.ibm.com/infocenter/systems/scope/hw/topic/p7hcg/viosbr.htm
You may also want to use snap to grab other critical data
If the media library is large and is on rootvg then you can add the –nomedialib flag
42
21
5/20/2015
lsvg – if you have other VGs i.e. datavg then for each …..
su - padmin -c "ioscli savevgstruct datavg"
su - padmin -c "ioscli viosbr –backup –file /tmp/viosabr.backup”
This creates a nim_resources.tar file that can be used for restores described at:
http://public.dhe.ibm.com/software/server/vios/docs/backupios_mod.pdf
43
22
5/20/2015
MONITORING
45
46
23
5/20/2015
NMON MONITORING
May need to enable accounting on the SEA first – this is done on the VIO
chdev –dev ent* -attr accounting=enabled
47
topas –C
Most important value is app – available pool processors
This represents the current number of free physical cores in the pool
lparstat
Shows the app column and poolsize
48
24
5/20/2015
30
25
20
15
10
0
04:00
04:01
04:02
04:02
04:03
04:04
04:05
04:05
04:06
04:07
04:08
04:08
04:09
04:10
04:11
04:11
04:12
04:13
04:14
04:14
04:15
04:16
04:17
04:17
04:18
04:19
04:20
04:20
04:21
04:22
04:23
04:23
04:24
04:25
04:26
04:26
04:27
04:28
04:29
04:29
49
NPIV STATISTICS
BUT as of v2.2.3
VIOS Performance advisor supports NPIV aggregation information
As of v2.2.2
http://www-01.ibm.com/support/knowledgecenter/POWER7/p7hcg/fcstat.htm?cp=POWER7%2F1-8-3-8-2-60
fcstat –n wwpn device_name
i.e. fcstat –n C05012345678000 fcs0
Provides statistics at the WWPN for the virtual adapter
You can also try fcstat -client
50
25
5/20/2015
NETSTAT –V VIO
SEA
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 83329901816 Packets: 83491933633
Bytes: 87482716994025 Bytes: 87620268594031
Interrupts: 0 Interrupts: 18848013287
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 67836309
Bad Packets: 0
Max Packets on S/W Transmit Queue: 374
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
“No Resource Errors” can occur when the appropriate amount of memory can not be added
quickly to vent buffer space for a workload situation.
You can also see this on LPARs that use virtual Ethernet without an SEA
51
BUFFERS
Max buffers is an absolute threshold for how many buffers can be allocated
Use entstat –d (-all on vio) or netstat –v to get this information
52
26
5/20/2015
HMC
MAINTENANCE
53
Step 1 Save upgrade data and then backup to USB stick or remote FTP using GUI
Step 2 check we have plenty of memory
monhmc -r mem -n 0
Mem: 4095732k total, 3978304k used, 117428k free, 311480k buffers
So our server has 4GB memory
monhmc -r disk -n 0
Check if filesystems are full
If they are in use a lot then
chhmcfs -o f -d 0
The above clears out all temp files
monhmc -r disk -n 0
27
5/20/2015
Since it is an upgrade we need to either use the media or do it via the CLI
On the first of the two ssh sessions: Login and cd /hmcdump
getupgfiles -h ftp.software.ibm.com -u anonymous --passwd ftp -d /software/server/hmc/network/v7780
hmcshutdown -r -t now
Causes it to do the upgrade and takes about 20 minutes
HMC 778 is now apar MB03715 PTF MH01377
55
Then do MH01404 is latest update (requires MH01388) using same process as above
After the reboot put in a new USB stick (if that is how backup was done)
Save upgrade data and then backup to USB stick or FTP server using the GUI
DVD has been disabled at one of the versions so you now need to backup to an FTP
server or the 8GB USB stick that you may have purchased with the server.
56
28
5/20/2015
HMC V8
UPGRADING TO HMC V8
Check memory and hardware prereqs
i.e.no POWER5, etc
HMC must already be at v7.780 with fixpack MH01402 or HMC v7.7.9
prior to upgrade
PowerVM 2.2.3.0 is required for the new performance metrics
Check prereqs if using redundant HMCs
Process:
Back it up
Get the upgrade files
Reboot to upgrade to v8
Apply first mandatory PTF (can do via GUI)
Reboot
Repeat till you run out of fixes
Backup again after the last reboot
58
29
5/20/2015
chhmc -c altdiskboot -s enable --mode upgrade Boot from install image to upgrade
59
HMC SCANNER
60
30
5/20/2015
I run it from AIX as Windows and Java issues have caused problems
61
FIRMWARE
MAINTENANCE
31
5/20/2015
ENTITLEMENT
• Starting with POWER8 IBM will be checking entitlement when applying
firmware fixes.
• Entitlement requires an HWMA
63
64
32
5/20/2015
There are some natural points at which firmware should be evaluated for potential
updates:
When a subscription notice advises of a critical or HIPER (highly pervasive) fix,
the environment should be reviewed to determine if the fix should be applied.
When one of the twice-yearly updates is released.
Whenever new hardware is introduced into the environment the firmware pre-
reqs and co-reqs should be evaluated.
Anytime HMC firmware levels are adjusted.
Whenever an outage is scheduled for a system which otherwise has limited
opportunity to update or upgrade.
When the firmware level your system is on is approaching end-of-service.
If other similar hardware systems are being upgraded and firmware consistency
can be maximized by a more homogenous firmware level.
On a yearly cycle if firmware has not been updated or upgraded within the last
year.
65
PAGE 66
33
5/20/2015
USEFUL COMMANDS
67
USEFUL COMMANDS
Command History
$ fc -l
725 lsrep
726 backupios -file /usr/local/backups/b750viobkp
727 exit
728 lsmap -vadapter vhost0
729 fc –l
68
34
5/20/2015
USEFUL COMMANDS
vSCSI Commands
mkvdev -vdev hdisk2 -vadapter vhost0
mkvdev –fbo –vadapter vhost0
NPIV
Setup NPIV mappings
vfcmap –vadapter vfchost0 –fcp fcs0
lsmap –npiv –all
lsmap –vadapter vfchost0 –npiv
lsdev –virtual
lsnports
lsdev –slots
lscfg –vpl vfchost0
69
USEFUL COMMANDS
$ lsdev -virtual
name status description
ent5 Available Virtual I/O Ethernet Adapter (l-lan)
ent6 Available Virtual I/O Ethernet Adapter (l-lan)
ent7 Available Virtual I/O Ethernet Adapter (l-lan)
vasi0 Available Virtual Asynchronous Services Interface (VASI)
vbsd0 Available Virtual Block Storage Device (VBSD)
vfchost0 Available Virtual FC Server Adapter
vfchost1 Available Virtual FC Server Adapter
vhost0 Available Virtual SCSI Server Adapter
vhost1 Available Virtual SCSI Server Adapter
vsa0 Available LPAR Virtual Serial Adapter
b740ios1_rv1 Available Virtual Target Device - Logical Volume
b740l1_rv1 Available Virtual Target Device - Logical Volume
vtopt0 Available Virtual Target Device - File-backed Optical
vtopt1 Available Virtual Target Device - File-backed Optical
vtscsi0 Available Virtual Target Device - Disk
vtscsi1 Available Virtual Target Device - Disk
vtscsi2 Available Virtual Target Device - Disk
vtscsi3 Available Virtual Target Device - Disk
ent8 Available Shared Ethernet Adapter
70
35
5/20/2015
USEFUL COMMANDS
VTD b740l1_rv1
Status Available
LUN 0x8300000000000000
Backing device lv_b740l1
Physloc
Mirrored N/A
VTD vtopt0
Status Available
LUN 0x8200000000000000
Backing device
Physloc
Mirrored N/A
VTD vtopt1
Status Available
LUN 0x8100000000000000
Backing device
Physloc
Mirrored N/A
71
USEFUL COMMANDS
Status:NOT_LOGGED_IN
FC name:fcs0 FC loc code:U78AA.001.WZSG8PD-P1-C5-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name: VFC client DRC:
Status:LOGGED_IN
FC name:fcs0 FC loc code:U78AA.001.WZSG8PD-P1-C5-T1
Ports logged in:3
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs0 VFC client DRC:U8205.E6B.10934CP-V8-C36
72
36
5/20/2015
USEFUL COMMANDS
$ lsnports
name physloc fabric tports aports swwpns awwpns
fcs0 U78AA.001.WZSG8PD-P1-C5-T1 1 64 63 2048 2041
$ lsdev -slots
# Slot Description Device(s)
HEA 1 Logical I/O Slot lhea0 ent0
U8205.E6B.10934CP-V1-C0 Virtual I/O Slot vsa0
U8205.E6B.10934CP-V1-C11 Virtual I/O Slot ent5
U8205.E6B.10934CP-V1-C12 Virtual I/O Slot ent6
U8205.E6B.10934CP-V1-C13 Virtual I/O Slot ent7
U8205.E6B.10934CP-V1-C21 Virtual I/O Slot vhost0
U8205.E6B.10934CP-V1-C22 Virtual I/O Slot vhost1
U8205.E6B.10934CP-V1-C23 Virtual I/O Slot vhost2
U8205.E6B.10934CP-V1-C31 Virtual I/O Slot vfchost0
U8205.E6B.10934CP-V1-C32 Virtual I/O Slot vfchost1
U8205.E6B.10934CP-V1-C33 Virtual I/O Slot vfchost2
U8205.E6B.10934CP-V1-C32769 Virtual I/O Slot vasi0
U8205.E6B.10934CP-V1-C32773 Virtual I/O Slot vasi1
U8205.E6B.10934CP-V1-C32774 Virtual I/O Slot vasi2
U8205.E6B.10934CP-V1-C32775 Virtual I/O Slot vasi3
U8205.E6B.10934CP-V1-C32776 Virtual I/O Slot vasi4
73
74
37
5/20/2015
hscroot@bpichmc:~>lshmc -b
"bios=D6E149AUS-1.09
"
hscroot@bpichmc:~>lshmc -r
ssh=enable,sshprotocol=,remotewebui=enable,xntp=disable,xntpserver=127.127.1.0,syslogserver=,syslogtcpserver=,syslogtlsserver=,altdiskb
oot=disable,ldap=disable,kerberos=disable,kerberos_default_realm=,kerberos_realm_kdc=,kerberos_clockskew=,kerberos_ticket_lifetime=,kp
asswd_admin=,trace=,kerberos_keyfile_present=,kerberos_allow_weak_crypto=,legacyhmccomm=disable,security=legacy,sol=disabled
hscroot@bpichmc:~>lshmc -e
emch=disabled,callhome=enabled,registered_hmcs=
75
saveupgdata –r disk
ls –la /hmcdump
76
38
5/20/2015
Useful Commands:
lshmc
vtmenu - way better than ascii console
lshwres
77
hscroot@bpichmc:~>monhmc -r mem -n 0
Mem: 4043216k total, 3885308k used, 157908k free, 484132k buffers (has 4GB)
hscroot@bpichmc:~>monhmc -r proc -n 0
Cpu0 : 0.0%us, 0.7%sy, 0.0%ni, 98.3%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
hscroot@bpichmc:~>monhmc -r swap -n 0
Swap: 2040244k total, 137456k used, 1902788k free, 1036824k cached
hscroot@bpichmc:~>monhmc -r disk -n 0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 16121184 7100064 8202208 47% /
/dev/sda3 6040320 297672 5435808 6% /var
/dev/mapper/HMCDataVG-HomeLV 10321208 245052 9551868 3% /home
/dev/mapper/HMCDataVG-LogLV 8256952 1292372 6545152 17% /var/hsc/log
/dev/mapper/HMCDataVG-DumpLV 123854820 319672 117243692 1% /dump
/dev/mapper/HMCDataVG-ExtraLV 20642428 198692 19395160 2% /extra
/dev/mapper/HMCDataVG-DataLV 227067260 455376 215077548 1% /data
hscroot@bpichmc:~>lshmcfs
filesystem=/var,filesystem_size=8063,filesystem_avail=6390,temp_files_start_time=07/14/2014 13:11:00,temp_files_size=783
filesystem=/dump,filesystem_size=120951,filesystem_avail=114495,temp_files_start_time=07/14/2014 21:09:00,temp_files_size=0
filesystem=/extra,filesystem_size=20158,filesystem_avail=18940,temp_files_start_time=none,temp_files_size=0
filesystem=/,filesystem_size=15743,filesystem_avail=8009,temp_files_start_time=07/22/2014 23:18:00,temp_files_size=0
78
39
5/20/2015
hscroot@bpic8hmc:~>monhmc -r mem -n 0
Mem: 41263576k total, 3608896k used, 37654680k free, 551600k buffers
Either it has 41GB memory or there is a bug ☺
hscroot@bpic8hmc:~>monhmc -r proc -n 0
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
hscroot@bpic8hmc:~>monhmc -r swap -n 0
Swap: 2040244k total, 0k used, 2040244k free, 934024k cached
hscroot@bpic8hmc:~>monhmc -r disk -n 0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 16121184 6715032 8587240 44% /
/dev/sda3 6040320 270112 5463368 5% /var
/dev/mapper/HMCDataVG-HomeLV 10321208 244856 9552064 3% /home
/dev/mapper/HMCDataVG-LogLV 8256952 479796 7357728 7% /var/hsc/log
/dev/mapper/HMCDataVG-DumpLV 61927420 187024 58594668 1% /dump
/dev/mapper/HMCDataVG-ExtraLV 20642428 198692 19395160 2% /extra
/dev/mapper/HMCDataVG-DataLV 144497320 195428 136961860 1% /data
hscroot@bpic8hmc:~>lshmcfs
filesystem=/var,filesystem_size=8063,filesystem_avail=7185,temp_files_start_time=07/14/2014 16:33:00,temp_files_size=318
filesystem=/dump,filesystem_size=60475,filesystem_avail=57221,temp_files_start_time=07/14/2014 20:15:00,temp_files_size=0
filesystem=/extra,filesystem_size=20158,filesystem_avail=18940,temp_files_start_time=none,temp_files_size=0
filesystem=/,filesystem_size=15743,filesystem_avail=8385,temp_files_start_time=07/22/2014 22:43:00,temp_files_size=0
79
lshmc
-V - Displays HMC version information.
-v - Displays HMC VPD information.
-r - Displays HMC remote access settings.
-n - Displays HMC network settings.
-b - Displays the BIOS level of the HMC.
-l - Displays the current locale for the HMC.
-L - Displays all supported locales for the HMC.
-h - Displays HMC hardware information.
-i - Displays HMC Integrated Management Module (IMM)
settings.
-e - Displays HMC settings for Events Manager for Call
Home.
-F [<attribute names>] - delimiter-separated list of the names of the
attributes to be listed for the specified HMC
setting. If no attribute names are specified,
then all attributes will be listed.
--header - prints a header of attribute names when -F is
also specified
--help - prints this help
80
40
5/20/2015
hscroot@bpichmc:~>lshmc -V
"version= Version: 8
Release: 8.1.0
Service Pack: 0
HMC Build level 20140602.3
MH01421: Required fix for HMC V8R8.1.0 (06-03-2014)
MH01436: Fix for OpenSSL,GnuTLS (06-11-2014)
MH01441: Fix for HMC V8R8.1.0 (06-23-2014)
","base_version=V8R8.1.0
“
hscroot@bpichmc:~>lshmc -v
"vpd=*FC ????????
*VC 20.0
*N2 Wed Jul 23 04:45:57 UTC 2014
*FC ????????
*DS Hardware Management Console
*TM 7042-CR6
*SE 102EEEC
*MN IBM
*PN 0B20PT
*SZ 4140253184
*OS Embedded Operating Systems
*NA 10.250.134.20
*FC ????????
*DS Platform Firmware
*RM V8R8.1.0.0
"
81
VIOS ADVISOR
NOW THE PART
COMMAND
82
41
5/20/2015
PART COMMAND
part –i interval
i.e. part –I 30 produces a 30 minute file and shows the name of the tar file created
Download and extract the tar file
Then open the vios_advisor.xml file in a browser to see the results
83
VIOS ADVISOR
84
42
5/20/2015
VIOS ADVISOR
85
VIOS ADVISOR
86
43
5/20/2015
VIOS ADVISOR
87
VIOS ADVISOR
88
44
5/20/2015
VIOS ADVISOR
89
VIOS ADVISOR
90
45
5/20/2015
Handout at:
Http://www.circle4.com/forsythe/viosmaint-may2015.pdf
91
REFERENCES
92
46
5/20/2015
USEFUL LINKS
93
USEFUL LINKS
AIX Wiki
• https://www.ibm.com/developerworks/wikis/display/WikiPtype/AIX
HMC Scanner
• http://www.ibm.com/developerworks/wikis/display/WikiPtype/HMC+Scanner
Workload Estimator
• http://ibm.com/systems/support/tools/estimator
Performance Tools Wiki
• http://www.ibm.com/developerworks/wikis/display/WikiPtype/Performance+Monitoring+Tools
Performance Monitoring
• https://www.ibm.com/developerworks/wikis/display/WikiPtype/Performance+Monitoring+Documen
tation
Other Performance Tools
• https://www.ibm.com/developerworks/wikis/display/WikiPtype/Other+Performance+Tools
• Includes new advisors for Java, VIOS, Virtualization
VIOS Advisor
• https://www.ibm.com/developerworks/wikis/display/WikiPtype/Other+Performance+Tools#OtherP
erformanceTools-VIOSPA
Capturing Debug output for padmin
• http://www-01.ibm.com/support/docview.wss?uid=isg3T1012362
94
47
5/20/2015
95
48