AIX backup to VIOS repository - VIOS

Checking VIOS repository information

1
2
3
4
5
6
7
8
cradmin1@spuxvios6b:/home/cradmin1 $ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
122381 12111 rootvg 270336 116224

Name File Size Optical Access
aix-7200-05-03-2148.iso 7870 None ro
spuxckmu02_mksysb.udf 20480 vtopt1 rw
spuxifdb02_mksysb.udf 81920 vtopt0 rw

Checking AIX mapping

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cradmin1@spuxvios6b:/home/cradmin1 $ lsmap -all
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost0 U9009.42A.78D7B10-V2-C20 0x00000003

VTD vs_ifdb02_rtvg
Status Available
LUN 0x8100000000000000
Backing device spuxifdb02_rtvg
Physloc
Mirrored N/A

VTD vtopt0
Status Available
LUN 0x8200000000000000
Backing device /var/vio/VMLibrary/spuxifdb02_mksysb.udf
Physloc
Mirrored N/A

SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1 U9009.42A.78D7B10-V2-C21 0x00000004

VTD vs_ckmu02_rtvg
Status Available
LUN 0x8100000000000000
Backing device spuxckmu02_rtvg
Physloc
Mirrored N/A

VTD vtopt1
Status Available
LUN 0x8200000000000000
Backing device /var/vio/VMLibrary/spuxckmu02_mksysb.udf
Physloc
Mirrored N/A

Checking VIOS available disk space

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cradmin1@spuxvios6b:/home/cradmin1 $ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00cd7b1000004b0000000181f59c30ff
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 528 (270336 megabytes)
MAX LVs: 256 FREE PPs: 227 (116224 megabytes)
LVs: 13 USED PPs: 301 (154112 megabytes)
OPEN LVs: 12 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: non-relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 4096 CRITICAL VG: no
FS SYNC OPTION: no CRITICAL PVs: no
ENCRYPTION: no

Increase VIOS repository by 40GB

1
2
3
4
5
6
7
8
9
10
cradmin1@spuxvios6b:/home/cradmin1 $ chrep -size 40G
cradmin1@spuxvios6b:/home/cradmin1 $ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
163303 53033 rootvg 270336 75264

Name File Size Optical Access
aix-7200-05-03-2148.iso 7870 None ro
spuxckmu02_mksysb.udf 20480 vtopt1 rw
spuxifdb02_mksysb.udf 81920 vtopt0 rw

Unload and remove existing mksysb UDF images

1
2
cradmin1@spuxvios6b:/home/cradmin1 $ unloadopt -vtd vtopt0
cradmin1@spuxvios6b:/home/cradmin1 $ rmvopt -f -name spuxifdb02_mksysb.udf

Re-create a large mksysb UDF file for AIX backup

1
2
3
4
5
6
7
8
9
10
11
cradmin1@spuxvios6b:/home/cradmin1 $ mkvopt -name spuxifdb02_mksysb.udf -size 120G
cradmin1@spuxvios6b:/home/cradmin1 $ loadopt -vtd vtopt0 -disk spuxifdb02_mksysb.udf

cradmin1@spuxvios6b:/home/cradmin1 $ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
163303 12073 rootvg 270336 75264

Name File Size Optical Access
aix-7200-05-03-2148.iso 7870 None ro
spuxckmu02_mksysb.udf 20480 vtopt1 rw
spuxifdb02_mksysb.udf 122880 vtopt0 rw

Re-configure AIX mksysb device

1
2
3
4
5
cradmin1@spuxifdb02:/root # rmdev -dl cd0
cd0 deleted
cradmin1@spuxifdb02:/root # cfgmgr
cradmin1@spuxifdb02:/root # lsdev -Cc cdrom
cd0 Available Virtual SCSI Optical Served by VIO Server

Storage - VMware ESXi

List all the SCSI Host Bus Adapters on the system.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[cradmin1@spvmesxi07:~] esxcli storage core adapter list 
HBA Name Driver Link State UID Capabilities Description
-------- -------- ---------- ------------------------------------ ------------------- -----------
vmhba0 smartpqi link-n/a sas.51402ec0190d6310 (0000:b1:00.0) Microsemi HPE P408i-a SR Gen10
vmhba1 lpfc link-up fc.2000b47af16d8400:1000b47af16d8400 Second Level Lun ID (0000:61:00.0) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba2 lpfc link-down fc.2000b47af16d8401:1000b47af16d8401 Second Level Lun ID (0000:61:00.1) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba3 lpfc link-up fc.2000b47af16d8415:1000b47af16d8415 Second Level Lun ID (0000:12:00.0) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba4 lpfc link-down fc.2000b47af16d8416:1000b47af16d8416 Second Level Lun ID (0000:12:00.1) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba68 lpfc link-up fc.2000b47af16d8415:1000b47af16d8415 (0000:12:00.0) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba69 lpfc link-down fc.2000b47af16d8416:1000b47af16d8416 (0000:12:00.1) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba70 lpfc link-up fc.2000b47af16d8400:1000b47af16d8400 (0000:61:00.0) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter
vmhba71 lpfc link-down fc.2000b47af16d8401:1000b47af16d8401 (0000:61:00.1) Emulex Corporation Emulex LightPulse LPe31000/LPe32000 PCIe Fibre Channel Adapter

* vmhba0 = embedded raid adapter
* vmhba1 = fc connection (normal)
* vmhba2 = fc connection (no cable connected/disconnected)

Test-NetConnection - Windows

Test remote connection port

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PS C:\Users\bfadmin\Desktop\scripts> Test-NetConnection -ComputerName suwsrepo01 -Port 6400


ComputerName : suwsrepo01
RemoteAddress : 10.114.232.190
RemotePort : 6400
InterfaceAlias : sysappnet-534
SourceAddress : 10.114.234.116
TcpTestSucceeded : True


PS C:\Users\bfadmin\Desktop\scripts> Test-NetConnection -ComputerName suwsrepo01 -Port 6401
WARNING: TCP connect to (10.114.232.190 : 6401) failed


ComputerName : suwsrepo01
RemoteAddress : 10.114.232.190
RemotePort : 6401
InterfaceAlias : sysappnet-534
SourceAddress : 10.114.234.116
PingSucceeded : True
PingReplyDetails (RTT) : 1 ms
TcpTestSucceeded : False

help show - HPE 3PAR

show

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
showalert        - show status of system alerts
showaocfg - show all Adaptive Optimization configurations
showauthparam - show authentication parameters
showbanner - show the banners
showbattery - show battery status information
showblock - show block mapping info for vvs, lds, pds
showcage - show disk cage information
showcert - show SSL certificate
showcim - show the CIM server information
showclienv - show CLI environment parameters
showcorequest - Displays the status of commands sent for CO approval
and queue size.
showcpg - show Common Provisioning Groups (CPGs)
showdate - show date and time on all system nodes
showdomain - show domains in the system
showdomainset - show sets of domains in the system
showeeprom - show node eeprom information
showencryption - show encryption information
showeventlog - show event logs
showfirmwaredb - show current database of firmware levels
showflashcache - show the status of the flash cache per node or VV
showfpg - show file provisioning groups
showfs - show information on File Persona cluster
showfsarchive - show details of policy settings for VFS, lists retained
files and inquires about validation jobs
showfsaudit - Display File Access Audit settings.
showfsav - show antivirus properties for file persona
showfsgroup - show local group information associated with
File Persona
showfshare - show file shares information
showfsip - show the network config of a Virtual File Server
showfsnap - show file store snapshots
showfsnapclean - show details of an on-demand snapshot reclamation task
showfsndmp - show details of NDMP properties of a file persona
showfspn - show details of SPN and VFS association.
showfsquota - show filesystem quota information
showfsroute - show routes to a target address
showfstore - show file store information
showfsuser - show local user information associated with File Persona
showhost - show host and host path information
showhostset - show sets of hosts in the system
showinventory - show hardware inventory
showiscsisession - show iscsi sessions
showld - show logical disks (LDs) in the system
showldch - show LD to PD chunklet mapping
showldmap - show LD to VV mapping
showlicense - show installed license key
shownet - show network configuration and status
shownode - show node and its component information
shownodeenv - show node environmental status (voltages, temperatures)
showpatch - show what patches have been applied to the system
showpd - show physical disks (PDs) in the system
showpdata - show preserved data status
showpdch - show status of selected chunklets of physical disks
showpdvv - show PD to VV mapping
showport - show ports in the system
showportarp - show ARP table for ports
showportdev - show detailed information about devices on a port
showportisns - show iSNS host information for ports
showportlesb - show Link Error Status Block information about
devices on Fibre Channel port
showportpel - show Phy Error Log information about
devices on SAS port
showqos - show QoS rules in the system
showrcopy - show Remote Copy configuration information
showrctransport - show information about end-to-end transport for
Remote Copy
showrole - show information about roles in the system
showrsv - show information about reservation and registration
of VLUNs connected on a Fibre Channel port
showsched - show scheduled tasks in the system
showsnmpmgr - show SNMP trap managers
showsnmppw - shows SNMP access passwords
showsnmpuser - show SNMPv3 users and their authentication and
privacy protocols
showspace - show estimated free space
showspare - show information about spare and relocated chunklets
showsr - show System Reporter status
showsralertcrit - show System Reporter alert criteria
showsshkey - show ssh public keys authorized by the current user
showsys - show system information (system name, serial number etc.)
showsysmgr - show system manager startup state
showtarget - show unrecognized targets
showtask - show information about tasks
showtemplate - show templates
showtoc - show system Table of Contents (TOC) summary
showtocgen - show system Table of Contents (TOC) generation number
showuser - show user accounts and SSH keys
showuseracl - show user access control list
showuserconn - show user connections
showvasa - show properties of the VASA web service provider
showversion - show software versions
showvfs - show Virtual File Server information
showvlun - show virtual LUNs (VLUNs) in the system
showvv - show virtual volumes (VVs) in the system
showvvcpg - show VV space distribution among CPGs
showvvmap - show VV to LD mapping
showvvolsc - show VVol storage containers in the system
showvvolvm - show information about virtual machines (vVol-based)
in the system
showvvpd - show VV distribution across PDs
showvvset - show sets of VVs in the system
showwsapi - show the Web Services API server information
showwsapisession - show the Web Services API server sessions information

showport - HPE 3PAR

Show Remote Copy ports

1
2
3
4
5
6
7
8
ppsn3par01 cli% showport -rcip
N:S:P State ---HwAddr--- IPAddr Netmask Gateway MTU Rate Duplex AutoNeg
0:3:1 ready 9418824A8D39 192.168.195.176 255.255.255.0 192.168.195.1 1500 1Gbps Full Yes
1:3:1 ready 941882459D09 192.168.195.177 255.255.255.0 192.168.195.1 1500 1Gbps Full Yes
2:3:1 ready 94188249269D 192.168.195.178 255.255.255.0 192.168.195.1 1500 1Gbps Full Yes
3:3:1 ready 9418824AB8ED 192.168.195.179 255.255.255.0 192.168.195.1 1500 1Gbps Full Yes
----------------------------------------------------------------------------------------------
4

Show all ports

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
spsn3par01 cli% showport
N:S:P Mode State ----Node_WWN---- -Port_WWN/HW_Addr- Type Protocol Label Partner FailoverState
0:0:1 target ready 2FF70002AC027B22 20010002AC027B22 host FC - 1:0:1 none
0:0:2 target ready 2FF70002AC027B22 20020002AC027B22 host FC - 1:0:2 none
0:1:1 initiator ready 50002ACFF7027B22 50002AC011027B22 disk SAS DP-1 - -
0:1:2 initiator ready 50002ACFF7027B22 50002AC012027B22 disk SAS DP-2 - -
0:2:1 target loss_sync 2FF70002AC027B22 20210002AC027B22 free FC - 1:2:1 none
0:2:2 target loss_sync 2FF70002AC027B22 20220002AC027B22 free FC - 1:2:2 none
0:2:3 target loss_sync 2FF70002AC027B22 20230002AC027B22 free FC - 1:2:3 none
0:2:4 target loss_sync 2FF70002AC027B22 20240002AC027B22 free FC - 1:2:4 none
0:3:1 peer ready - 9418824A633D rcip IP IP0 - -
1:0:1 target ready 2FF70002AC027B22 21010002AC027B22 host FC - 0:0:1 none
1:0:2 target ready 2FF70002AC027B22 21020002AC027B22 host FC - 0:0:2 none
1:1:1 initiator ready 50002ACFF7027B22 50002AC111027B22 disk SAS DP-1 - -
1:1:2 initiator ready 50002ACFF7027B22 50002AC112027B22 disk SAS DP-2 - -
1:2:1 target loss_sync 2FF70002AC027B22 21210002AC027B22 free FC - 0:2:1 none
1:2:2 target loss_sync 2FF70002AC027B22 21220002AC027B22 free FC - 0:2:2 none
1:2:3 target loss_sync 2FF70002AC027B22 21230002AC027B22 free FC - 0:2:3 none
1:2:4 target loss_sync 2FF70002AC027B22 21240002AC027B22 free FC - 0:2:4 none
1:3:1 peer ready - 9418824832B9 rcip IP IP1 - -
2:0:1 target ready 2FF70002AC027B22 22010002AC027B22 host FC - 3:0:1 none
2:0:2 target ready 2FF70002AC027B22 22020002AC027B22 host FC - 3:0:2 none
2:1:1 initiator ready 50002ACFF7027B22 50002AC211027B22 disk SAS DP-1 - -
2:1:2 initiator ready 50002ACFF7027B22 50002AC212027B22 disk SAS DP-2 - -
2:2:1 target loss_sync 2FF70002AC027B22 22210002AC027B22 free FC - 3:2:1 none
2:2:2 target loss_sync 2FF70002AC027B22 22220002AC027B22 free FC - 3:2:2 none
2:2:3 target loss_sync 2FF70002AC027B22 22230002AC027B22 free FC - 3:2:3 none
2:2:4 target loss_sync 2FF70002AC027B22 22240002AC027B22 free FC - 3:2:4 none
2:3:1 peer ready - 94188249D285 rcip IP IP2 - -
3:0:1 target ready 2FF70002AC027B22 23010002AC027B22 host FC - 2:0:1 none
3:0:2 target ready 2FF70002AC027B22 23020002AC027B22 host FC - 2:0:2 none
3:1:1 initiator ready 50002ACFF7027B22 50002AC311027B22 disk SAS DP-1 - -
3:1:2 initiator ready 50002ACFF7027B22 50002AC312027B22 disk SAS DP-2 - -
3:2:1 target loss_sync 2FF70002AC027B22 23210002AC027B22 free FC - 2:2:1 none
3:2:2 target loss_sync 2FF70002AC027B22 23220002AC027B22 free FC - 2:2:2 none
3:2:3 target loss_sync 2FF70002AC027B22 23230002AC027B22 free FC - 2:2:3 none
3:2:4 target loss_sync 2FF70002AC027B22 23240002AC027B22 free FC - 2:2:4 none
3:3:1 peer ready - 94188248FBE9 rcip IP IP3 - -
-------------------------------------------------------------------------------------------------------
36

showrctransport - HPE 3PAR

Show information about end-to-end transport for Remote Copy

1
2
3
4
5
6
7
8
9
10
11
12
13
spsn3par01 cli% showrctransport
N:S:P Peer_Address Address State Type
0:3:1 192.168.195.176 192.168.197.176 missing rcip
1:3:1 192.168.195.177 192.168.197.177 missing rcip
2:3:1 192.168.195.178 192.168.197.178 missing rcip
3:3:1 192.168.195.179 192.168.197.179 missing rcip

ppsn3par01 cli% showrctransport
N:S:P Peer_Address Address State Type
0:3:1 192.168.197.176 192.168.195.176 missing rcip
1:3:1 192.168.197.177 192.168.195.177 missing rcip
2:3:1 192.168.197.178 192.168.195.178 missing rcip
3:3:1 192.168.197.179 192.168.195.179 missing rcip

Remote Copy (RC) basic administration - HPE 3PAR

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ppsn3par01 cli% showrcopy links

Remote Copy System Information
Status: Started, Normal

Link Information

Target Node Address Status Options
spsn3par01 0:3:1 192.168.197.176 Down 10240KB/s tput
spsn3par01 1:3:1 192.168.197.177 Down 10240KB/s tput
spsn3par01 2:3:1 192.168.197.178 Down 10240KB/s tput
spsn3par01 3:3:1 192.168.197.179 Down 10240KB/s tput
receive 0:3:1 receive Up -
receive 1:3:1 receive Up -
receive 2:3:1 receive Up -
receive 3:3:1 receive Up -

Show RC status

1
psn3par01 cli% showrcopy

Start RC groups

1
2
3
4
5
6
ppsn3par01 cli% startrcopygroup OCR_RCG01
ppsn3par01 cli% startrcopygroup EFAP_RCG01
ppsn3par01 cli% startrcopygroup ESAP_RCG01
ppsn3par01 cli% startrcopygroup INAP_RCG01
ppsn3par01 cli% startrcopygroup FNET_RCG01
ppsn3par01 cli% startrcopygroup FNET_RCG02
Create RC pairs
1
2
3
4
5
6
7
8
[SDC]
reatevv CPG_SDC_FC_R1 SDC-SAS-AIX-FNAPP-36 1T
setvv -snp_cpg CPG_SDC_FC_R1 SDC-SAS-AIX-FNAPP-36

[PDC]
admitrcopyvv PDC-SAS-AIX-FNAPP-36 FNET_RCG01 spsn3par01:SDC-SAS-AIX-FNAPP-36

startrcopygroup FNET_RCG01

Version of installed software - WAS

Showing installed WebSphere Application Server software version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# pwd
/WAS_INT/IBM/WebSphere/AppServer/profiles/ppuxinap02Node01/bin

# ./versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002, 2012; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.1.48, dated 2/8/12

--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------

Report at date and time January 10, 2025 9:47:48 AM HKT

Installation
--------------------------------------------------------------------------------
Product Directory /usr/IBM/WebSphere/AppServer
Version Directory /usr/IBM/WebSphere/AppServer/properties/version
DTD Directory /usr/IBM/WebSphere/AppServer/properties/version/dtd
Log Directory /home/intprd/var/ibm/InstallationManager/logs

Product List
--------------------------------------------------------------------------------
JAVA8 installed
ND installed

Installed Product
--------------------------------------------------------------------------------
Name IBM SDK, Java Technology Edition, Version 8
Version 8.0.7.20
ID JAVA8
Build Level pap6480sr7fp20-20221020_01
Build Date 10/20/22
Architecture PPC64

Installed Product
--------------------------------------------------------------------------------
Name IBM WebSphere Application Server Network Deployment
Version 9.0.5.14
ID ND
Build Level f5142244.01
Build Date 10/31/22
Package com.ibm.websphere.ND.v90_9.0.5014.20221031_0911
Architecture PPC64
Installed Features WebSphere Application Server traditional
EJBDeploy tool for pre-EJB 3.0 modules
Embeddable EJB container
Stand-alone thin clients and resource adapters
Optional Languages Simplified Chinese
Traditional Chinese

--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------

AIX update from 7200-05-03-2148 to 7200-05-08-2420

Pre-check

1
2
3
4
5
6
7
# oslevel -s
7200-05-03-2148

# /usr/sbin/emgr -P
There is no efix data on this system.

# mkdir /source/aix7200_05_08_2420

Prepare AIX update source

1
$ scp -i ~/id_rsa /drives/g/* root@192.168.231.78:/source/aix7200_05_08_2420/

Update AIX using alt_disk_copy

1
2
3
4
5
6
7
8
9
10
11
12
# lspv
hdisk0 00c68080d8c8a24d rootvg active
hdisk1 00c68080dd396f5e altinst_rootvg

# alt_rootvg_op -X altinst_rootvg
Bootlist is set to the boot disk: hdisk0 blv=hd5

# lspv
hdisk0 00c68080d8c8a24d rootvg active
hdisk1 00c68080dd396f5e None

# alt_disk_copy -d hdisk1 -b update_all -l /source/aix7200_05_08_2420/

Battery (Conservation) Mode - Linux

Check Ideapad_laptop kernel module exposes the current conservation_mode

1
2
$ cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
1

Disable conservation mode

1
# echo 0 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

Enable conservation mode

1
# echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode