Livio Teixeira Filho
RESUME ( English )

CURRICULO ( Portugues )

Home


UNIX TIPS

Solaris

HP-UX

AIX

Linux


DOWNLOADS

( my publications )

File and Print Serving with Linux on IBM i5

Solaris to AIX Migration: A Guide for System Administrators

Achieving High Availability on Linux for System z with Linux-HA Release 2


PICTURES

IBM-Rochester/MN (Jan/2005)

Gustavo 1 year old Birthday (Jul/2005)

São Luis/MA (Sep/2005)

Jan to Apr/2006

Texas (Apr to May/2006)

May to Aug/2006

Sep to Dec/2006

Italy/Feb-2007

Jan to Mar/2007

Washington/VA (Jun/2007)

Chesterfield/VA (Oct/2007)

New York (Jun/2008)

Dec/2008 to Jan/2009)

Itacare/Bahia (Jan/2009)

Jan to Dec/2010

Moto trail (Ago/2010)

Orlando/FL (Jan/2011)

Flying around Campinas (2011)

Flying Avid Flyer around Tatui (Jan/2012)

TIPS - AIX

1- AIX - Geral

1.1- Missing filesets for the ML
1.2- How to make a disk to disk copy using backup/restore commands
1.3- How to verify when AIX was installed
1.4- How to verify the HMC IP from the AIX client
1.5- Filemon samples
1.6- How to kill the CLOSE_WAIT sections on AIX 5.x
1.7- How to list the disks serial from a VIOC ( Virtual I/O Client)
1.8- How to remove MPIO disks ( example )
1.9- How to recover the Dlpar feature
1.10- How to verify which process is using a file that was deleted and is causing filesystem contention

2- HMC - Generic (there are variations acording with patch level)

2.1- How to see the frame names
2.2- List partitions per frame (example)
2.3- List memory per partition (exemple)
2.4- How to open and close console in text mode

3- HMC - P4 (there are variations acording with patch level)

3.1- Partition Reset
3.2- Partition start

4- HMC - P5/P6 (there are variations acording with patch level)

4.1- Partition State
4.2- Partition Start
4.3- To see the LED code
4.4- Hard Reset
4.5- List of slots per frame
4.6- List Virtual SCSI information
4.7- List Virtual Ethernet information
4.8- List VIOS versus VIOC information

5- Hardware IBM

5.1- HBAs Model X Part number/Fru Number

6- GPFS

6.1- Implementation sample based on version 2.3.0.28
































1.1- Missing filesets for the ML

instfix -icqk 5200-05_AIX_ML |grep ":-:"



1.2- Disk to Disk copy using backup/restore commands

find . |backup -ivqf - | (cd Dest_Dir ; restore -xvqdf -)



1.3- How to verify when AIX was installed

lslpp -h

bos.rte.install Filese Level Action ...



1.4- How to verify the HMC IP from the AIX client

lsrsrc "IBM.ManagementServer"



1.5- Filemon samples

filemon -o filemon.out;sleep 15;trcstop
awk '/Most Active Physical Volumes/,/^$/' filemon.out
awk '/Most Active Logical Volumes/,/^$/' filemon.out
awk '/Most Active Files/,/^$/' filemon.out



1.6- How to kill the CLOSE_WAIT sections on AIX 5.x ( example )

root@server />netstat -a | grep CLOSE
tcp4 104 0 server.49196 server.43787 CLOSE_WAIT
tcp4 104 0 server.49195 server.41383 CLOSE_WAIT

root@server />netstat -Aan | grep CLOSE
f10000f30cd08358 tcp4 104 0 162.87.218.139.491 162.87.218.139.437 CLOSE_WAIT
f10000f305e8fb58 tcp4 104 0 162.87.218.139.491 162.87.218.139.413 CLOSE_WAIT

root@server />rmsock f10000f30cd08358 tcpcb
socket 0xcd08000 is removed.

root@server />rmsock f10000f305e8fb58 tcpcb
socket 0x5e8f800 is removed.

root@server />netstat -a | grep CLOSE
root@server />



1.7- How to list the disks serial from a VIOC ( Virtual I/O Client)

odmget -q attribute=unique_id CuAt|grep -p $HDISK\"



1.8- How to remove MPIO disks ( example )

lspath -F"name:connection:parent:path_status:status" |grep -v Enable |awk -F ":" '{print "rmpath -dl "$1" -p "$3" -w "$2}'



1.9- How to recover the Dlpar feature

/usr/sbin/rsct/install/bin/recfgct
/usr/sbin/rsct/bin/rmcctrl -z
/usr/sbin/rsct/bin/rmcctrl -A
/usr/sbin/rsct/bin/rmcctrl -p
startsrc -s ctcas



1.10- How to verify which process is using a file that was deleted and is causing filesystem contention

fuser -x -u -c -V -d /mount_point_name



2.1- How to see the frame names

lssyscfg -r frame --all -F name



2.2- List partition per frame (example)

lssyscfg -r lpar -m "7038-6M2*105AAED" --all



2.3- List memory per partition (example)

/opt/hsc/bin/lshwres -m "7040-681*02345DB" -r mem

2.4- How to open and close console in text mode

Abrir: mkvterm -m NOME-DO-FRAME -p NOME-DA-PARTIÇÃO
Fechar: rmvterm -m NOME-DO-FRAME -p NOME-DA-PARTIÇÃO


3.1- Partition Reset (P4)

reset_partition -m machine -p partition -t soft (or hard)



3.2- Partition Start (P4)

start_partition -p partition -f profile_name -m machine



4.1- Partition State (P5)

lssyscfg -r lpar -m machine -F name,state --header



4.2- Partition Start (P5)

chsysstate -m machine -o on -r lpar -n lpar_name -f profile_name



4.3- To see the LED code (P5)

lsrefcode -r lpar -m machine



4.4- Hard Reset

chsysstate -r lpar -m machine -n partition -o shutdown --immed --restart



4.5- List of slots per frame

lshwres -r io --rsubtype slot -F unit_phys_loc:phys_loc:lpar_name:description --header -m machine



4.6- List Virtual SCSI information

lshwres -r virtualio --rsubtype scsi -m frame_name --level lpar



4.7- List Virtual Ethernet information

lshwres -r virtualio --rsubtype eth -m frame_name --level lpar



4.8- List VIOS versus VIOC information

lshwres -m frame_name -r virtualio --rsubtype scsi-Flpar_name,slot_num,remote_lpar_name,remote_slot_num



5.1- HBAs Model X Part number/Fru Number

6227 Adapter:
09P1173
00P1882
03N4167
24L0023
09P4038
09P1162

6228 Adapter:
00P4495
00P2996
09P5080
09P0102
03N2452
09P5079
00P2995
00P4494
80P4384

6239 Adapter:
00P4295
00P4297
80P6415

5716 Adapter:
80P4544


6.1- GPFS Implementation sample based on version 2.3.0.28

a) Increase /var size in all nodes (recovery area) (> 400MB)
b) Resize /tmp for more than 200MB (gpfs dump area)
c) Configure ntp
d) Setup etherchannel
e) Network tunning
no -r -o ipqmaxlen=512 ( we also recommend to verify at least RCF1323, tcp_recvspace and tcp_sendspace )

f) Setup FCs to fastfail
g) Setup ssh keys in all hosts
h) Add hosts in /etc/hosts
i) Verify if /usr/bin/ssh and /usr/bin/scp exist. If not, make soft links
j) Add this line in /etc/ssh/ssh_config ( sshd restart is not needed )
StrictHostKeyChecking no

k) Install the gpfs package and patches
l) Add path in /.profile-> PATH=$PATH:/usr/lpp/mmfs/bin
m) Assign necessary disks
1 or 3 disks for tiebreaker and others for data

n) Assign PVID for the disks
o) create /var/mmfs/etc/node.list like example below

server-a:quorum
server-b:quorum
server-c
server-d
server-e
server-f

p) create the gpfs cluster
mmcrcluster -p server-a -s server-b -n /var/mmfs/etc/node.list -r /usr/bin/ssh -R /usr/bin/scp -C cluster-name -A

q) check gpfs cluster
mmlscluster
mmlsconfig

r) Create the file to setup NSD ( /tmp/nsd.txt)

vpath5:::descOnly:-1:gpfsnsd01
vpath6:::dataAndMetadata:-1:gpfsnsd02
vpath7:::dataAndMetadata:-1:gpfsnsd03
vpath8:::dataAndMetadata:-1:gpfsnsd04
vpath9:::dataAndMetadata:-1:gpfsnsd05
vpath10:::dataAndMetadata:-1:gpfsnsd06
vpath11:::dataAndMetadata:-1:gpfsnsd08
vpath12:::dataAndMetadata:-1:gpfsnsd09
vpath13:::dataAndMetadata:-1:gpfsnsd10

mmcrnsd -F /tmp/nsd.txt -v yes

s) Add a tie breaker disk
mmchconfig tiebreakerDisks=gpfsnsd01

t) Start gpfs cluster
mmstartup -C cluster-name

u) create a gpfs fs
create a file named /tmp/nodes.fs.nsd

gpfsnsd02:::dataAndMetadata:-1
gpfsnsd03:::dataAndMetadata:-1
gpfsnsd04:::dataAndMetadata:-1
gpfsnsd05:::dataAndMetadata:-1
gpfsnsd06:::dataAndMetadata:-1
gpfsnsd08:::dataAndMetadata:-1
gpfsnsd09:::dataAndMetadata:-1
gpfsnsd10:::dataAndMetadata:-1

mmcrfs /new_share /dev/gpfs_dev -F /tmp/nodes.fs.nsd -B 64K -A yes
mount /new_share

v) mount on other nodes:
ssh node_name mount mount /new_share

If it is a new node in the cluster:

ssh node_name cfgmgr
mmstartup -w node_name
ssh node_name mount mount /new_share

x) - If you want to add more nodes:
mmaddnode node_name
ssh node_name cfgmgr
mmstartup -w node_name
ssh node_name mount /new_share