Advertisements

Category Archives: AIX

Checking HBA status on AIX

Storage team checked and it was not showing light on the fiber

Index Slot Port Address Media Speed State Proto
===================================================
298 3 42 28a280 id N4 In_Sync FC
314 4 42 28b280 id N4 In_Sync FC

298 3/42 28a280 Online F 4 G AN A_S4_VIT_aix_HBA5C93 Emulex HBA 10:00:00:00:c9:86:5c:93
314 4/42 28b280 Online F 4 G AN A_S4_VIT_aix_HBA5C92 Emulex HBA 10:00:00:00:c9:86:5c:92

Listing HBA cards on AIX

root@aix:/ # lsdev -Cc adapter |grep fcs
fcs0 Available 01-00 4Gb FC PCI Express Adapter (df1000fe)
fcs1 Available 01-01 4Gb FC PCI Express Adapter (df1000fe)
fcs2 Available 06-00 4Gb FC PCI Express Adapter (df1000fe)
fcs3 Available 06-01 4Gb FC PCI Express Adapter (df1000fe)
fcs4 Available 0B-00 4Gb FC PCI Express Adapter (df1000fe)
fcs5 Available 0B-01 4Gb FC PCI Express Adapter (df1000fe)
fcs6 Available 0I-00 4Gb FC PCI Express Adapter (df1000fe)
fcs7 Available 0I-01 4Gb FC PCI Express Adapter (df1000fe)
fcs8 Available 0K-00 4Gb FC PCI Express Adapter (df1000fe)
fcs9 Available 0K-01 4Gb FC PCI Express Adapter (df1000fe)

Listing the WWPN of the HBA cards

root@aix:/ # lsdev -Cc adapter |grep fcs | awk ‘{print “echo “$1” `lscfg -vl “$1” | grep \”Network Address\”`”‘} | sh
fcs0 Network Address………….10000000C986EF2E
fcs1 Network Address………….10000000C986EF2F
fcs2 Network Address………….10000000C9865C92
fcs3 Network Address………….10000000C9865C93
fcs4 Network Address………….10000000C986ECDC
fcs5 Network Address………….10000000C986ECDD
fcs6 Network Address………….10000000C986F158
fcs7 Network Address………….10000000C986F159
fcs8 Network Address………….10000000C9865B8C
fcs9 Network Address………….10000000C9865B8D

Shows that the cable is connected

root@aix:/ # lsattr -El fscsi2 | grep attach
attach switch How this adapter is CONNECTED False
root@aix:/ # lsattr -El fscsi3 | grep attach
attach switch How this adapter is CONNECTED False

Fibre was replaced

Checking HBA link status

root@aix:/ # fcstat fcs2

FIBRE CHANNEL STATISTICS REPORT: fcs2

Device Type: 4Gb FC PCI Express Adapter (df1000fe) (adapter/pciex/df1000fe)
Serial Number: 1C910080BA
Option ROM Version: 02E8277F
ZA: Z1F2.70A5
World Wide Node Name: 0x20000000C9865C92
World Wide Port Name: 0x10000000C9865C92

FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 4 GBIT
Port Speed (running): 4 GBIT
Port FC ID: 0x28b280
Port Type: Fabric
Attention Type: Link Up
Topology: Point to Point or Fabric

Seconds Since Last Reset: 11518131

Transmit Statistics Receive Statistics
——————- ——————
Frames: 391415147 1672088546
Words: 100836128512 731260150528

LIP Count: 0
NOS Count: 124979
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 3
Loss of Sync Count: 2
Loss of Signal: 1
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 1420
Invalid CRC Count: 0

IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics
Input Requests: 143103337
Output Requests: 57507565
Control Requests: 1604694
Input Bytes: 2879322009348
Output Bytes: 387479621632
root@aix:/ # fcstat fcs3

FIBRE CHANNEL STATISTICS REPORT: fcs3

Device Type: 4Gb FC PCI Express Adapter (df1000fe) (adapter/pciex/df1000fe)
Serial Number: 1C910080BA
Option ROM Version: 02E8277F
ZA: Z1F2.70A5
World Wide Node Name: 0x20000000C9865C93
World Wide Port Name: 0x10000000C9865C93

FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 4 GBIT
Port Speed (running): 4 GBIT
Port FC ID: 0x28a280
Port Type: Fabric
Attention Type: Link Up
Topology: Point to Point or Fabric

Seconds Since Last Reset: 11518140

Transmit Statistics Receive Statistics
——————- ——————
Frames: 4294967295 4294967295
Words: 1099511627520 1099511627520

LIP Count: 0
NOS Count: 305070
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 3
Loss of Sync Count: 310
Loss of Signal: 2
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 633
Invalid CRC Count: 0

IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics
Input Requests: 262598606
Output Requests: 731955157
Control Requests: 736433
Input Bytes: 68507685800533
Output Bytes: 191832750846466
root@aix:/ # lsattr -El fscsi2
attach switch How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True+
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True+
scsi_id 0x28b280 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True

Advertisements

Removing jfs2 filesystem

Removing filesystem /tsmdbtmp

root@aix:/ # df -m
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5120.00 4061.67 21% 15690 2% /
/dev/hd2 5120.00 1654.30 68% 62483 14% /usr
/dev/hd9var 4096.00 1206.40 71% 13476 5% /var
/dev/hd3 4096.00 2477.13 40% 3112 1% /tmp
/dev/hd1 10752.00 9897.09 8% 266 1% /home
/dev/hd11admin 512.00 511.57 1% 5 1% /admin
/proc – – – – – /proc
/dev/hd10opt 6144.00 2451.30 61% 45594 7% /opt
/dev/livedump 512.00 511.31 1% 5 1% /var/adm/ras/livedump
/dev/fslv01 1024.00 1020.62 1% 560 1% /usr/users
/dev/fslv02 2048.00 1693.61 18% 70 1% /local
/dev/fslv03 20480.00 8860.54 57% 38450 2% /usr/software/oracle
/dev/fslv04 51200.00 27043.68 48% 17670 1% /bkpcvrd
/dev/fslv05 2048.00 1948.29 5% 89 1% /audit
/dev/fslv06 234592.00 130406.19 45% 81 1% /usr/oradata/orarvt1
/dev/fslv07 6144.00 6142.74 1% 3 1% /home/db2inst1
/dev/fslv08 511904.00 511825.50 1% 4 1% /tsmdbtmp

Remove the filesystem

root@aix:/ # rmfs -r /tsmdbtmp

Checking logical volume, volume group and physical volume information

root@aix:/ # lslv fslv08
LOGICAL VOLUME: fslv08 VOLUME GROUP: tsmdbtmp
LV IDENTIFIER: 00c94ad400004c000000015d801914eb.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 15997 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 15997 PPs: 15997
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 2
MOUNT POINT: /tsmdbtmp LABEL: /tsmdbtmp
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
INFINITE RETRY: no

Checking volume group tsmdbtmp

root@aix:/ # lsvg tsmdbtmp
VOLUME GROUP: tsmdbtmp VG IDENTIFIER: 00c94ad400004c000000015d801914eb
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 15999 (511968 megabytes)
MAX LVs: 256 FREE PPs: 1 (32 megabytes)
LVs: 2 USED PPs: 15998 (511936 megabytes)
OPEN LVs: 0 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: 16256 MAX PVs: 2
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 512 CRITICAL VG: no

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active
hdisk4 00c94ad4801882d5 tsmdbtmp active

Checking if there is an active logical volume

root@aix:/ # lsvg -l tsmdbtmp
tsmdbtmp:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv00 jfs2log 1 1 1 closed/syncd N/A
fslv08 jfs2 15997 15997 1 closed/syncd /tsmdbtmp

Deactivating a volume group and removing disk

root@aix:/ # varyoffvg tsmdbtmp

root@aix:/ # exportvg tsmdbtmp

I need to return the disk to storage. Removing device from system

root@aix:/ # rmdev -dl hdisk4
hdisk4 deleted

Replacing a disk in AIX

IBM technician informed that disk on DQD 82MC-P3-D5 needs to be replaced.

Server is ESERVER P5 570 9117 with 2 LPARs

aix6
aix7

Listing disks

root@aix6:/ # lsdev -Cc disk
hdisk0 Available 08-08-00 SAS Disk Drive
hdisk1 Available 08-08-00 SAS Disk Drive
hdisk2 Available 08-08-00 SAS RAID 5 Disk Array
hdisk3 Available 0D-08-00 SAS RAID 5 Disk Array
hdisk4 Available 01-00-02 MPIO FC 2145
hdisk21 Available 01-00-02 MPIO FC 2145
hdisk22 Available 01-00-02 MPIO FC 2145
hdisk44 Available 01-00-02 MPIO FC 2145
hdisk55 Available 01-00-02 MPIO FC 2145
hdisk56 Available 01-00-02 MPIO FC 2145
hdisk57 Available 01-00-02 MPIO FC 2145

Trying to find disk with Hardware Location Code DQD 82MC-P3-D5

root@aix6:/ # lsdev -Cc disk | awk ‘{print “lscfg -vpl “$1’}
lscfg -vpl hdisk0
lscfg -vpl hdisk1
lscfg -vpl hdisk2
lscfg -vpl hdisk3
lscfg -vpl hdisk4
lscfg -vpl hdisk21
lscfg -vpl hdisk22
lscfg -vpl hdisk44
lscfg -vpl hdisk55
lscfg -vpl hdisk56
lscfg -vpl hdisk57

root@aix6:/ # lsdev -Cc disk | awk ‘{print “lscfg -vpl “$1” | grep \”Hardware Location Code\””‘} | sh
Hardware Location Code……U789D.001.DQD60VA-P3-D5
Hardware Location Code……U789D.001.DQD60VA-P3-D6

Found on LPAR aix7

root@aix7:/root # lsdev -Cc disk | awk ‘{print “lscfg -vpl “$1” | grep \”Hardware Location Code\””‘} | sh
Hardware Location Code……U789D.001.DQD82MC-P3-D1
Hardware Location Code……U789D.001.DQD82MC-P3-D2
Hardware Location Code……U789D.001.DQD82MC-P3-D3
Hardware Location Code……U789D.001.DQD82MC-P3-D4
Hardware Location Code……U789D.001.DQD82MC-P3-D5
Hardware Location Code……U789D.001.DQD82MC-P3-D6

root@aix7:/root # lscfg -vpl hdisk4
hdisk4 U789D.001.DQD82MC-P3-D5 SAS Disk Drive (450000 MB)

Manufacturer…………….IBM
Machine Type and Model……ST3450856SS
FRU Number………………44V4432
ROS Level and ID…………45363134
Serial Number……………3QQ0KZEP
EC Level………………..L35857
Part Number……………..44V4433
Device Specific.(Z0)……..000005329F001002
Device Specific.(Z1)……..1217E614
Device Specific.(Z2)……..0021
Device Specific.(Z3)……..000-0
Device Specific.(Z4)……..
Device Specific.(Z5)……..22
Device Specific.(Z6)……..L35857
Hardware Location Code……U789D.001.DQD82MC-P3-D5

PLATFORM SPECIFIC

Name: disk
Node: disk
Device Type: block

Before replacing the disk using diag, remove disk definition otherwise you will receive the error: The device is currently in use and cannot be removed

root@aix7:/root # rmdev -dl hdisk4
hdisk4 deleted

Run diag

root@aix7:/root # diag
DIAGNOSTIC OPERATING INSTRUCTIONS VERSION 7.1.3.15 801001

LICENSED MATERIAL and LICENSED INTERNAL CODE – PROPERTY OF IBM
(C) COPYRIGHTS BY IBM AND BY OTHERS 1982, 2014.
ALL RIGHTS RESERVED.

These programs contain diagnostics, service aids, and tasks for
the system. These procedures should be used whenever problems
with the system occur which have not been corrected by any
software application procedures available.

In general, the procedures will run automatically. However,
sometimes you will be required to select options, inform the
system when to continue, and do simple tasks.

Several keys are used to control the procedures:
– The Enter key continues the procedure or performs an action.
– The Backspace key allows keying errors to be corrected.
– The cursor keys are used to select an option.

Press the F3 key to exit or press Enter to continue.

FUNCTION SELECTION 801002

Move cursor to selection, then press Enter.

Diagnostic Routines
This selection will test the machine hardware. Wrap plugs and
other advanced functions will not be used.
Advanced Diagnostics Routines
This selection will test the machine hardware. Wrap plugs and
other advanced functions will be used.
Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)
This selection will list the tasks supported by these procedures.
Once a task is selected, a resource menu may be presented showing
all resources supported by the task.
Resource Selection
This selection will list the resources in the system that are supported
by these procedures. Once a resource is selected, a task menu will
be presented showing all tasks that can be run on the resource(s).

TASKS SELECTION LIST 801004

From the list below, select a task by moving the cursor to
the task and pressing ‘Enter’.
To list the resources for the task highlighted, press ‘List’.

Run Diagnostics
Run Error Log Analysis
Run Exercisers
Display or Change Diagnostic Run Time Options

Add Resource to Resource List
Automatic Error Log Analysis and Notification
Backup and Restore Media
Certify Media
Change Hardware Vital Product Data
Configure Platform Processor Diagnostics
Delete Resource from Resource List
Disk Maintenance
Display Configuration and Resource List
Display Firmware Device Node Information
Display Hardware Error Report
Display Hardware Vital Product Data
Display Multipath I/O (MPIO) Device Configuration
Display Previous Diagnostic Results
Display Resource Attributes
Display Service Hints
Display Software Product Data
Display or Change Bootlist
Format Media
Gather System Information
Hot Plug Task
IBM Tape Drive Service Aids
This selection provides a set of tools to perform utility functions on
Tape and Medium Changer Devices supported by the Atape Device Driver.
Identify and Attention Indicators
Log Repair Action
Microcode Tasks
Periodic Diagnostics
RAID Array Manager
Update Disk Based Diagnostics

Hot Plug Task 801004

Move cursor to desired item and press Enter.

PCI Hot Plug Manager
SCSI and SCSI RAID Hot Plug Manager

SCSI and SCSI RAID HOT PLUG MANAGER 802481

The following operations can be performed on devices attached to
SCSI and SCSI RAID Hot Plug Enclosure devices.

Make selection, use Enter to continue.

List Hot Swap Enclosure Devices
This selection lists all scsi hot swap slots and their contents.
Identify a Device Attached to a SCSI Hot Swap Enclosure Device
This selection sets the Identify indication.
Attach a Device to an SCSI Hot Swap Enclosure Device
This selection sets the Add indication and prepares
the slot for insertion of a device.
Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
This selection sets the Remove indication and prepares
the device for removal.
Configure Added/Replaced Devices
This selection runs the configuration manager on the
parent adapter where devices have been added or replaced.

REMOVE OR REPLACE DEVICE ATTACHED TO A SCSI HOT SWAP ENCLOSURE DEVICE 802485

The following is a list of configured, unconfigured and populated
SCSI Hot Swap Enclosure device slots. Select a slot to remove or
replace the device attached to that slot.
ENSURE THAT NO OTHER HOST IS USING THE DEVICE BEFORE REMOVING IT.

Make selection, use Enter to continue.

U789D.001.DQD50B4-
ses0 P4-Y1
slot 1 P4-D1 cd0

U789D.001.DQD82MC-
ses1 P3-Y2
ses2 P3-Y1
slot 1 P3-D1 hdisk0
slot 2 P3-D2 hdisk1
slot 3 P3-D3 hdisk2
slot 4 P3-D4 hdisk3
slot 5 P3-D5 [populated]
slot 6 P3-D6 hdisk5

Tell the technician to replace the disk. After disk is replaced, press Enter

The LED should be in the Remove state for the selected device. You may now remove or replace the device. Use ‘Enter’ to indicate you are finished.

Instead of showing populated, it will show the disk name

REMOVE OR REPLACE DEVICE ATTACHED TO A SCSI HOT SWAP ENCLOSURE DEVICE 802485

The following is a list of configured, unconfigured and populated
SCSI Hot Swap Enclosure device slots. Select a slot to remove or
replace the device attached to that slot.
ENSURE THAT NO OTHER HOST IS USING THE DEVICE BEFORE REMOVING IT.

Make selection, use Enter to continue.

U789D.001.DQD50B4-
ses0 P4-Y1
slot 1 P4-D1 cd0

U789D.001.DQD82MC-
ses1 P3-Y2
ses2 P3-Y1
slot 1 P3-D1 hdisk0
slot 2 P3-D2 hdisk1
slot 3 P3-D3 hdisk2
slot 4 P3-D4 hdisk3
slot 5 P3-D5 hdisk4
slot 6 P3-D6 hdisk5

Source:
Replacing a disk drive with the AIX system or logical partition powered on
Replacing a SCSI disk drive

Creating a jfs2 filesystem in AIX

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active

Configures devices

root@aix:/ # cfgmgr

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active
hdisk4 none None

Comparing lspv output, the new disk is hdisk4. Checking ID to see if it matches

root@aix:/ # lsattr -El hdisk4 | grep -i 600507680191818C1000000000000C98
unique_id 33213600507680191818C1000000000000C9804214503IBMfcp Device Unique Identification False

Using script to query all disks

for i in `lspv | awk ‘{print $1’}`
do
echo $i `lsattr -El $i | grep unique_id`
done

Creating volume group with PP SIZE 16MB is not possible

root@aix:/ # mkvg -y tsmdbtmp -s 16 hdisk4
0516-1254 mkvg: Changing the PVID in the ODM.
0516-1208 mkvg: Warning, The Physical Partition Size of 16 requires the
creation of 32000 partitions for hdisk4. The system limitation is 16256
physical partitions per disk at a factor value of 16. Specify a larger
Physical Partition Size or a larger factor value in order create a
volume group on this disk.
0516-862 mkvg: Unable to create volume group.

Creating volume group with PP SIZE 32MB.

root@aix:/ # mkvg -y tsmdbtmp -s 32 hdisk4
tsmdbtmp

Listing volume group information

root@aix:/ # lsvg tsmdbtmp
VOLUME GROUP: tsmdbtmp VG IDENTIFIER: 00c94ad400004c000000015d801914eb
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 15999 (511968 megabytes)
MAX LVs: 256 FREE PPs: 15999 (511968 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 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: 16256 MAX PVs: 2
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 512 CRITICAL VG: no

Creating filesystem. Logical volume name is fslvXX

root@aix:/ # smitty crfs

Add a File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add a Journaled File System
Add a CDROM File System

F1=Help F2=Refresh F3=Cancel F8=Image
F9=Shell F10=Exit Enter=Do

Add an Enhanced Journaled File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume

F1=Help F2=Refresh F3=Cancel F8=Image
F9=Shell F10=Exit Enter=Do

Add an Enhanced Journaled File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume

+————————————————————————–+
| Volume Group Name |
| |
| Move cursor to desired item and press Enter. |
| |
| rootvg |
| aplicvg |
| tsmpoolvg |
| tsm55logvg |
| tsm55dbvg |
| tsmdbtmp |
| |
| F1=Help F2=Refresh F3=Cancel |
| F8=Image F10=Exit Enter=Do |
F1| /=Find n=Find Next |
F9+————————————————————————–+

Add an Enhanced Journaled File System

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
Volume group name tsmdbtmp
SIZE of file system
Unit Size Megabytes +
* Number of units [511900] #
* MOUNT POINT [/tsmdbtmp]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format +
ENABLE Quota Management? no +
Enable EFS? no +
Allow internal snapshots? no +
Mount GROUP []

Mount logical volume

root@aix:/ # mount /tsmdbtmp

Check filesystem size

root@aix:/ # df -m /tsmdbtmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/fslv08 511904.00 511825.51 1% 4 1% /tsmdbtmp

UXMON: AIX syslog alarm: TAPE DRIVE FAILURE with ID 5537AC5F

Node : aix.setaoffice.com
Node Type : IBM RS/6000 64 HTTPS
Severity : warning
OM Server Time: 2017-01-21 12:03:23
Message : UXMON: AIX syslog alarm: TAPE DRIVE FAILURE with ID 5537AC5F
Msg Group : OS
Application : syslog
Object : 5537AC5F
Event Type :
not_found

Instance Name :
not_found

Instruction : Has been detected an alarm in the AIX errpt module
The annotation of this case will show the template description of this ID
If you feel this event is useless you can filter out it using the uxmonsyslog.cfg, see this
same file and/or documentation for details

Checking device status

root@aix:/ # lsdev -Cc tape | grep rmt109
rmt109 Available 0I-00-02 IBM 3580 Ultrium Tape Drive (FCP)

Checking device information

root@aix:/ # lscfg -vpl rmt109
rmt109 U789D.001.DQD16LD-P1-C1-T1-W50050763004BE309-L0 IBM 3580 Ultrium Tape Drive (FCP)

Manufacturer…………….IBM
Machine Type and Model……ULT3580-TD5
Serial Number……………00078AE800
Device Specific.(FW)……..F990

PLATFORM SPECIFIC

Name: tape
Node: tape
Device Type: byte

In our environment rmt109 is part of a tape library. BUR team needs to check tape W50050763004BE309

Checking AIX HBA link

lsattr -El fscsi. Look for the attach parameter

root@aix:/ # lsattr -El fscsi1
attach none How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
root@aix:/ # lsattr -El fscsi3
attach al How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id 0x1 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True

The adapter fcs2 I know that is connected

root@aix:/ # lsattr -El fscsi2
attach switch How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id 0x2bd00 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True

After plugging the fibre, I ran cfgmgr to recognize the hardware

root@aix:/ # cfgmgr

And runnning again lsattr -El fscsi I see that the attach parameter changed to switch

root@aix:/ # lsattr -El fscsi1
attach switch How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id 0x14fdc0 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
root@aix:/ # lsattr -El fscsi3
attach al How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id 0x1 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True

root@aix:/ # fcstat fcs1

FIBRE CHANNEL STATISTICS REPORT: fcs1

Device Type: 4Gb FC PCI Express Adapter (df1000fe) (adapter/pciex/df1000fe)
Serial Number: 1C91308281
Option ROM Version: 02E8277F
ZA: Z1F2.70A5
World Wide Node Name: 0x20000000C986EF2F
World Wide Port Name: 0x10000000C986EF2F

FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 4 GBIT
Port Speed (running): 4 GBIT
Port FC ID: 0x28af80
Port Type: Fabric
Attention Type: Link Up
Topology: Point to Point or Fabric

Seconds Since Last Reset: 11519187

Transmit Statistics Receive Statistics
——————- ——————
Frames: 4294967295 4294967295
Words: 1099511627520 1099511627520

LIP Count: 0
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 1
Loss of Sync Count: 1
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 3
Invalid CRC Count: 0

IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics
Input Requests: 614967916
Output Requests: 1227673574
Control Requests: 1180997
Input Bytes: 160727856996239
Output Bytes: 321763800652003

AIX lspath Missing path

Reviewing disk paths, I found some paths showing as Missing and some enabled on the same fscsi

root@aix:/ # lspath -l hdisk31
Enabled hdisk31 fscsi0
Missing hdisk31 fscsi0
Enabled hdisk31 fscsi0
Missing hdisk31 fscsi0
Enabled hdisk31 fscsi2
Missing hdisk31 fscsi2
Enabled hdisk31 fscsi2
Missing hdisk31 fscsi2

To correct this situation we will remove the path and recognize again. Check if there is a disk with only one path

root@aix:/ # lspath

Remove one path, run cfgmgr. Remove the other one and run cfgmgr

root@aix:/ # rmpath -p fscsi2 -d
root@aix:/ # cfgmgr
root@aix:/ # rmpath -p fscsi0 -d
root@aix:/ # cfgmgr

It should display like this

root@aix:/ # lspath -l hdisk31
Enabled hdisk31 fscsi0
Enabled hdisk31 fscsi0
Enabled hdisk31 fscsi2
Enabled hdisk31 fscsi2

How to remove files with strange characters

To remove files that contain symbols and unknown characters, list the files with ls -li and take note of the inode number

root@linux:~ # ls -li
total 4420
2495260 -rw——- 1 root root 13810 Jan 28 2011 ????!
2495249 -rw——- 1 root root 13810 Jan 28 2011 ????!

Run the find command and see if it shows the desired file

root@linux:~ # find . -inum 2495260
./????!

And then complete the find command to search, find and remove the file.

root@linux:~ # find . -inum 2495260 -exec rm -i {} \;
rm: remove regular file `./20\36406\b!’? y

Discover HMC information on AIX 5 and AIX 6

On AIX 5

emerson@aix5:~$ sudo lsrsrc IBM.ManagementServer
Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name = “201.20.130.3”
Hostname = “201.20.130.3”
ManagerType = “HMC”
LocalHostname = “201.20.130.147”
ClusterTM = “9078-160”
ClusterSNum = “”
ActivePeerDomain = “”
NodeNameList = {“aix5”}

On AIX 6

emerson@aix6:~$ lsrsrc IBM.MCP
Resource Persistent Attributes for IBM.MCP
resource 1:
MNName = “172.26.21.111”
NodeID = 2399330769087853952
KeyToken = “HMC2”
IPAddresses = {“172.26.21.120”}
ConnectivityNames = {“172.26.21.111”}
HMCName = “7042CR6*104BB9C”
HMCIPAddr = “172.26.21.120”
HMCAddIPs = “172.16.0.1”
HMCAddIPv6s = “”
ActivePeerDomain = “”
NodeNameList = {“aix6”}

AIX – Mirroring a logical volume

Check the logical volume to be mirrored

root@aix:/ # lsvg -l datavg | grep mirroring
mirroring jfs2 64 64 7 open/syncd /data

Run the command below to make two copies of this logical volume

root@aix:/ # mklvcopy mirroring 2

Then start syncing the volume group

root@aix:/ # nohup syncvg -v datavg &

To verify that the volume is mirrored, verify if the column PPs is the double of the column LPs

root@aix:/ # lsvg -l datavg | grep mirroring
mirroring jfs2 64 128 14 open/stale /data

%d bloggers like this: