Command

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 34

Solution Enabler upgrade

==================================
Take backup of existing disk group

solution is backup the symdg config by "symdg export dgname -f /var/tmp/dgname.txt"

and then empty the db file > /var/symapi/db/symapi_db.bin

import the backup file back "symdg import dgname -f /var/tmp/dgname.txt"

btw command to check licences info sudo symlmf list -type se

======================================================
# /usr/sbin/emgr -P

To remove the given EFIX, execute the

# /usr/sbin/emgr -r -L <EFIX label>

tcpdump -s0 -vvv -e -n -i en1 port 123

HBA info :
lslpp -l | grep hba

--------------------------
console from puty:
hscroot@localhost:~> mkvterm -m Server-9119-595-SN0201F50 --id 10

hscroot@localhost:~> mkvterm -m Server-9117-570-SN65884EE -p VIO_SERVER1


rmvterm -m Server-9117-570-SN65884EE -p vio_client_1
===============================
vio client space assignment from vio server.

login :padmin

$lsmap -all
$oem_setup_env / r oem
#lspv
#cfgmgr
#chdev -l hdisk24 -a pv=yes
#chdev -l hdisk24 -a reserve_lock=no
#exit
$mkvdev -vdev hdisk24 -vadapter vhost0

To delete from vio server

$rmvdev -vdev hdisk10


#cfgmgr -v
#rmdev -Rdl hdisk0
#cfgmgr -v
------------------
To see vg info from disk info
lquerypv

lsvg -lv rootvg


lqueryvg -atq
lsmap -all -net
ON client

cfgmgr
lspv
To delete:
rmdev -vtd hdisk5
--------------------
for scan : cfgdev
------------
#odmget -q name=inet0 CuAt
#odmdelete -q "name=inet0 and value="net,-hopcount,0,,0,10.16.12.1"" -o CuAt

===============================================
Power path and ODM :
agent:
root 98340 1 0 03:42:17 - 0:00 /usr/bin/naviagent -f
/etc/Navisphere/agent.config

smitty installp
select Install software / or Install and Update from ALL Available Software
select path of packages kept at

Package:EMC.AIX.5.3.0.2

For ODM select following :


@ 5.3.0.2 EMC CLARiiON AIX Support Software
@ 5.3.0.2 EMC CLARiiON FCP Support Software

> + 5.3.0.2 EMC Symmetrix AIX Support Software


+ 5.3.0.2 EMC Symmetrix FCP Support Software

For POwer path:


smitty installp
select Install software
select path of packages kept at
select full emcpower package:

For power path patch:go to power_patch dir:


gunzip file_name------ EMCPower.AIX.5.3.HF01.b003.tar.gz
tar -xf EMCPower.AIX.5.3.HF01.b003.tar

smitty update_all
select path of packages kept at
--------
For 5.3 powerpath :
New file is :
powerpath_odm.tar

@ 5.3.0.2 EMC CLARiiON AIX Support Software


@ 5.3.0.2 EMC CLARiiON FCP Support Software
and select :

EMC -- all:
EMCpower
-------------
Powerapth OBM

If only ODM then :


EMC.CLARiiON.aix.rte 5.3.0.7 COMMITTED EMC CLARiiON AIX Support
EMC.CLARiiON.fcp.MPIO.rte 5.3.0.7 COMMITTED EMC CLARiiON FCP MPIO Support

If OBM with powerpath then:


@ 5.3.0.5 EMC CLARiiON AIX Support Software
@ 5.3.0.5 EMC CLARiiON FCP Support Software
-----------------------------------------------------------
Power path unstall and install:
Package : powerpath_odm.tar
-rw-r--r-- 1 root system 215144448 Aug 24 20:31 powerpath_odm.tar

Vary off volume groups on SAN (if any):


odmdelete -q "name like hdiskpower*" -o CuAt
odmdelete -q "name like hdiskpower*" -o CuDv
odmdelete -q "value3 like hdiskpower*" -o CuDvDr
odmdelete -q "name like hdiskpower*" -o CuVPD
odmdelete -q name=powerpath0 -o CuDv
odmdelete -q name=powerpath0 -o CuAt
odmdelete -q value3=powerpath0 -o CuDvDr
rm /dev/powerpath0
Remove PowerPath software: installp -u EMCpower
cd /dev; rm hdiskpower*; rm rhdiskpower*
savebase -v
Reboot.
Install PowerPath.

===========================================================
To set NW parameter :
bash-3.2# no -a
smitty ---> Performance & Resource Scheduling --> Tuning Kernel & Network
Parameters -->
Tuning Network Option Parameters ---> 1)Change / Show Current Parameters And
2)Change / Show Parameters for Next Boot

Manually:
/usr/lib/perf/sm_setcurrent -t no

Next boot:
no -r

/usr/lib/perf/sm_setcurrent -t no ipqmaxlen=512
/usr/lib/perf/sm_setcurrent -t no rfc1323=1
/usr/lib/perf/sm_setcurrent -t no sb_max=1310720
/usr/lib/perf/sm_setcurrent -t no tcp_ephemeral_high=65500
/usr/lib/perf/sm_setcurrent -t no tcp_ephemeral_low=9000
/usr/lib/perf/sm_setcurrent -t no tcp_recvspace=262144
/usr/lib/perf/sm_setcurrent -t no tcp_sendspace=262144
/usr/lib/perf/sm_setcurrent -t no udp_ephemeral_high=65500
/usr/lib/perf/sm_setcurrent -t no udp_ephemeral_low=9000
/usr/lib/perf/sm_setcurrent -t no udp_recvspace=655360
/usr/lib/perf/sm_setcurrent -t no udp_sendspace=65536

no -r -o ipqmaxlen='512'
no -r -o rfc1323='1'
no -r -o sb_max='1310720'
no -r -o tcp_ephemeral_high='65500'
no -r -o tcp_ephemeral_low='9000'
no -r -o tcp_recvspace='262144'
no -r -o tcp_sendspace='262144'
no -r -o udp_ephemeral_high='65500'
no -r -o udp_ephemeral_low='9000'
no -r -o udp_recvspace='655360'
no -r -o udp_sendspace='65536'

----------------------------
To display info :
aioo -a

=========================================================

TL9 & SP3


To see missing patch:
oslevel -rl 5300-11

oslevel -rl 5300-07


oslevel -sq
oslevel -rq
lppchk -v
oslevel -sl 5300-09-01-0847
---------------------

1)First copy patch and go to that dir .

2)bash-3.00# ls -la | grep to


total 5091080
-rw-r--r-- 1 root staff 2028348 Sep 29 16:42 .toc
Then First remove .toc file

create TOC file :


inutoc .

3)bash-3.2# smitty update_all


PREVIEW only? (update operation will NOT occur) : Yes
COMMIT software updates? No
ACCEPT new license agreements? Yes

After this :
PREVIEW only? (update operation will NOT occur) no
COMMIT software updates? no---- yes
ACCEPT new license agreements? yes

After this :
After Upgrading AIX server to TL9 or higher make sure to stop the websm service
#stopsrc -s http4websm
After that comment out the folllowing line in the /etc/inittab file to stop websm
permanently.
webserverstart:2:once:startsrc -s http4websm >/dev/null 2>&1

bash-3.00# lppchk -v
bash-3.00# lppchk -c
------------------------------
To install APAR package :
IZ50430 :

1)First copy the package IZ50430 from the IBM site .

2)run inutoc .

3)smitty installp --> Update Software by Fix (APAR) --> INPUT device / directory
for software [.]
--->
FIXES to install [IZ47510]
PREVIEW only? (update operation will NOT occur) yes
COMMIT software updates? no
SAVE replaced files? yes

After This:
PREVIEW only? (update operation will NOT occur) No
COMMIT software updates? no ----> keep in applied
state .
SAVE replaced files? yes

lslpp -l | grep bos.rte.serv


bos.rte.serv_aid 5.3.10.0 APPLIED Error Log Service Aids

or

emgr -d -e IV10539.epkg.Z ------------> To precheck


emgr -e IV10539.epkg.Z

To check: It will show install APR efix


emgr -P
emgr -l
instfix -ivk |grep IV11158 -- but not working.

Log file in /var/adm/ras/emgr.log


===========================================================================

Max process:
lsattr -El sys0

=====================
lsvg -o|lsvg -il

=====================
Memory utilization
vmstat performance
vmstat -wt 2 10

avm value*4096/1024/1024
svmon -P
svmon -G -O unit=GB

======================
swap status
lsps -a
=======================
performance commands

A) vmstat 1 10
B) iostat -Dl 1 10
C) ps vg
D) ps aux
E) lsps -a
F) vmstat -v
G) vmo -a
H) no -a
I ) ioo -a
J)svmon -G
K)tprof -skeuj -x sleep 30 --> generate Generating sleep.prof
snap -gc -- /tmp/ibm..

#oslevel -s
#df -g
#lspv
#vmo -a
#ioo -a
#no -a
#ulimit -Ha
#ulimit -Sa
#lsattr -El sys0

Following logs to be collected in peak load hours.


#svmon -G
#vmstat 1 10
#vmstat -v
#iostat -D 1 1
#sar 1 10
#iostat -d 1 10
#iostat -Dl 2 5
#ps aux
#lsps -a
#lsps -s
#ps vg |head -1 ; ps vg |sort -rn +6 | head -20
#ps aux | head -1 ; ps aux | sort -rn +2 | head -20
ps vg
vmstat -wt 2
snap -gbfLc

====================
java:
j532redist.tar -- Java 5
For user untar this in user home dir. go to following path and set path in .profile
command file:/aps/posidex/sdk/jre/bin
java -version

========================
Port process and killing procedure :
bash-3.00# netstat -Aan | grep 443
f100060002860398 tcp 0 0 *.443 *.* LISTEN
bash-3.00# rmsock f100060002860398 tcpcb
The socket 0x2860008 is being held by proccess 291002 (java).
--------------------
to kill CLOSE_WAIT process on port

for i in `netstat -Aan | grep 1561 |grep CLOSE_WAIT |awk '{print $1}'`; do echo "
proc : $i "; rmsock $i tcpcb; donenetstat -Aan | grep
1561 |grep CLOSE_WAIT |awk '{print $1}'
===========================
AIX parameter : tux6:
no -p -o rfc1323=1
no -p -o sb_max=1310720
no -p -o tcp_sendspace=262144
no -p -o tcp_recvspace=262144
no -p -o udp_sendspace=65536
no -p -o udp_recvspace=655360
nfso -p -o nfs_rfc1323=1
nfso -p -o nfs_socketsize=60000
nfso -p -o nfs_tcp_socketsize=600000
vmo -p -o minperm%=5
vmo -p -o maxperm%=90
vmo -p -o maxclient%=90
vmo -p -o minfree=960
vmo -p -o maxfree=1088
vmo -p -o lru_file_repage=0
vmo -p -o lru_poll_interval=10
ioo -p -o j2_maxPageReadAhead=128
ioo -p -o maxpgahead=16
ioo -p -o j2_maxRandomWrite=32
ioo -p -o maxrandwrt=32
ioo -p -o j2_nBufferPerPagerDevice=1024
ioo -p -o pv_min_pbuf=1024
ioo -p -o numfsbufs=2048
ioo -p -o j2_nPagesPerWriteBehindCluster=32
Increase the following if using raw LVMs (default is 9)
ioo -p -o lvm_bufvnt=12

Async I/O
=========
chdev -l aio -a maxreqs=8192
chdev -l aio -a maxservers=100
chdev -l aio -a minservers=50
--------------
no -p -o rfc1323=1
ioo -p -o maxpgahead=16
ioo -p -o j2_maxRandomWrite=32
ioo -p -o maxrandwrt=32
ioo -p -o j2_nBufferPerPagerDevice=1024
ioo -p -o pv_min_pbuf=1024
ioo -p -o numfsbufs=2048
ioo -p -o j2_nPagesPerWriteBehindCluster=32
ioo -p -o lvm_bufvnt=12
chdev -l aio -a maxreqs=8192
chdev -l aio -a maxservers=100
chdev -l aio -a minservers=50
=========================================================
to display lock vg:
bash-3.00# lsvg -o | lsvg -il
0516-1201 lsvg: Warning: Volume group sybase_raw is locked. This command
will continue retries until lock is free. If lock is inadvertent
and needs to be removed, execute 'chvg -u sybase_raw'.
=============================================================
error:
errpt
errpt -a
To see individual process :

errpt -aj F7FA22C9


====================================
Clone boot:
bash-3.00# lspv
hdisk0 00ceb4bc61ec31e5 rootvg active
hdisk1 00ceb4bc8e635fea altinst_rootvg
bash-3.00# bootlist -m normal -o
hdisk0 blv=hd5

bash-3.00# bootlist -m normal hdisk1

bash-3.00# bootlist -m normal -o


hdisk1 blv=hd5
===================================
console move:
IBM console of lpar Sr.No 06E27A3 is moved from 10.16.18.217 to 10.16.58.184

-------------------------------
Smbha mapping
mount -v cifs -n MLXESEARCH01/esearch_operator/admin@001 -o
uid:0204,gid:0201,fmode:0777 uploadfiles /e-search/data/dump/utldump

new:
MLXESEARCH01 uploadfiles /e-search/data/dump/utldump cifs May 22 08:57
uid:00203,gid:0202,fmode:00777
========================
ROOT paswd recovery:
DVD: other mass storage device

Insert OS DVD 1/8


On partition rmb--> deactivate partition
while shutting donw press key 1 it will take u to SMS menu

1 --> SMS menu


5--> select boot option
1->select install/boot device
4-- IDE
1-IDE cdrom select 1
3-Service mode boot
1-- yes
1 - type 1 to use this window as system console

1-type 1 and press entre to have Englist list to install


3-start maintaince mode to system recovery
1-access root volume
0-continue
1- Here select hdisk0/1 -->1
1-Access this volume group and start shell

After this
passwd --> Change root password

After This
shutdown now -> partition come in non active mode -- remove CDROM and then active

===================================
Change fibre and disk value:

bash-3.00# lsattr -El hdisk8


PCM PCM/friend/MSYMM_RAID5 Path Control Module
True
PR_key_value none Persistant Reserve Key Value
True
algorithm fail_over Algorithm
True
clr_q yes Device CLEARS its Queue on error
True
hcheck_interval 10 Health Check Interval
True
hcheck_mode nonactive Health Check Mode
True
location Location Label
True
lun_id 0x16000000000000 Logical Unit Number ID
False
lun_reset_spt yes FC Forced Open LUN
True
max_transfer 0x40000 Maximum TRANSFER Size
True
node_name 0x5006048c52a56ff6 FC Node Name
False
pvid 00c5d8c0540043260000000000000000 Physical volume identifier
False
q_err no Use QERR bit
True
q_type simple Queue TYPE
True
queue_depth 16 Queue DEPTH
True
reserve_policy single_path Reserve Policy
True
rw_timeout 40 READ/WRITE time out value
True
scsi_id 0x14200 SCSI ID
False
start_timeout 180 START UNIT time out value
True
ww_name 0x5006048c52a56ff6 FC World Wide Name
False

chdev -l hdisk8 -a queue_depth=32


chdev -l hdisk8 -a max_transfer=0x100000
after

bash-3.00# lsattr -El hdisk8


PCM PCM/friend/MSYMM_RAID5 Path Control Module
True
PR_key_value none Persistant Reserve Key Value
True
algorithm fail_over Algorithm
True
clr_q yes Device CLEARS its Queue on error
True
hcheck_interval 10 Health Check Interval
True
hcheck_mode nonactive Health Check Mode
True
location Location Label
True
lun_id 0x16000000000000 Logical Unit Number ID
False
lun_reset_spt yes FC Forced Open LUN
True
max_transfer 0x100000 Maximum TRANSFER Size
True
node_name 0x5006048c52a56ff6 FC Node Name
False
pvid 00c5d8c0540043260000000000000000 Physical volume identifier
False
q_err no Use QERR bit
True
q_type simple Queue TYPE
True
queue_depth 32 Queue DEPTH
True
reserve_policy single_path Reserve Policy
True
rw_timeout 40 READ/WRITE time out value
True
scsi_id 0x14200 SCSI ID
False
start_timeout 180 START UNIT time out value
True
ww_name 0x5006048c52a56ff6 FC World Wide Name
False

-------------------
for fcs:
bash-3.00# lsatter -El fcs0
bash: lsatter: command not found
bash-3.00# lsattr -El fcs0
bus_intr_lvl Bus interrupt level False
bus_io_addr 0xffc00 Bus I/O address False
bus_mem_addr 0xffebf000 Bus memory address False
init_link al INIT Link flags True
intr_msi_1 66117 Bus interrupt level False
intr_priority 3 Interrupt priority False
lg_term_dma 0x800000 Long term DMA True
max_xfer_size 0x100000 Maximum Transfer Size True
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

chdev -l fcs0 -a max_xfer_size=0x1000000 -P

After:
bash-3.00# lsattr -El fcs0
bus_intr_lvl Bus interrupt level False
bus_io_addr 0xffc00 Bus I/O address False
bus_mem_addr 0xffebf000 Bus memory address False
init_link al INIT Link flags True
intr_msi_1 66117 Bus interrupt level False
intr_priority 3 Interrupt priority False
lg_term_dma 0x800000 Long term DMA True
max_xfer_size 0x1000000 Maximum Transfer Size True
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

================================================
After Upgrading AIX server to TL9 or higher make sure to stop the websm service
#stopsrc -s http4websm
After that comment out the folllowing line in the /etc/inittab file to stop
websm permanently.
webserverstart:2:once:startsrc -s http4websm /dev/null 2&1

========================
NIC : 595

diag -->Task Selection--->Hot Plug Task-->PCI Hot Plug Manager--> Identify a PCI
Hot Plug Slot-->Press U5791.001.99B0W8Y-P2-C04 PCI-X capable, 64 bit, 133MHz slot
ent2 en
will blink adapter card on the server

smitty ether-->Adapter--> Change / Show Characteristics of an Ethernet Adapter--


>Media speed 1000_Full_Duplex

smitty mktcpip-->

smitty etherchannel --> To make aggregation.

to Link etherchannel -- fallback from two different switch

First down detach ip


ifconfig en0 down detach
rmdev -Rdl en0
rmdev -Rdl et0
rmdev -Rdl ent0
cfgmgr
to ether channeling:
smitty etherchannel --- > Add An EtherChannel / Link Aggregation --> select ent0
--> enter --> Backup Adapter-- F4-->
select another port ent2 --enter -- It create aggregate port ent3

smitty mktcpip -- select ent3 port

1. check active channel:


entstat -d ent2| grep Active <--Active channel: primary
channel

2. unplug cable from primary channel or testing it with command:


/usr/lib/methods/ethchan_config -f ent2 <--it will do a failover

3. checking:
entstat -d ent2 | grep Active <--Active channel: backup
adapter
errpt | head <--ETHERCHANNEL FAILOVER

4. switch back:
/usr/lib/methods/ethchan_config -f ent2 <--it will do a switch again

5. checking:
entstat -d ent2 | grep Active <--Active channel: primary
channel
errpt | head <--ETHERCHANNEL RECOVERY

----------------------
nfs in /etc/filesystem:

/reinsurance6:

dev = 10.16.58.40:/sybasepool/241_18_MLXILPREMIADB_reinsurance6

vfs = nfs

options =
rw,bg,hard,intr,sec=sys:dh:krb5:krb5i:krb5p,proto=tcp,vers=3,rsize=32768,wsize=3276
8

mount = false
--------------
smitty mknfsexp --------- make entry in /etc/export

Add
a Directory to Exports List

Type or select values in entry fields.


Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]


* Pathname of directory to export [/usr/perf]
/
Anonymous UID [-2]
Public filesystem? no
+
* Export directory now, system restart or both both
+
Pathname of alternate exports file []
Allow access by NFS versions []
+
External name of directory (NFS V4 access only) []
Referral locations (NFS V4 access only) []
Replica locations []
Ensure primary hostname in replica list yes
+
Allow delegations? no
+
Scatter none
+
* Security method 1 [sys,krb5p,krb5i,krb5,dh]
+
* Mode to export directory read-only
+
Hostname list. If exported read-mostly []
----------------------
bash-3.2# cat /etc/exports
/dump -anon=0,public,vers=2:3:4,noauto,sec=sys:krb5p:krb5i:krb5:dh,rw
/mistmp1 -anon=0,public,vers=2:3:4,noauto,sec=sys:krb5p:krb5i:krb5:dh,rw
/mistmp2 -anon=0,public,vers=2:3:4,noauto,sec=sys:krb5p:krb5i:krb5:dh,rw

nfs mount: 10.24.155.165: : RPC: Program not registered

nfsd nfs inoperative


rpc.statd nfs inoperative
rpc.lockd nfs inoperative

------------------------------------------------
===============================================
If already in clone :
Cloning on AIX system.

One disk should be free for this cloning other than rootdisk.

1) If previous cloning is there then export altinst_rootvg

#exportvg alinst_rootvg

2) This disk will come as NONE in lspv output.

3) Then fire the command

# smitty alt_clone

a) select target disk


b) accept new licence agreement -yes
c) Set bootlist to boot from this device- NO

=============================================================================
To boot from clone disk:
bash-3.00# lspv
hdisk0 00ceb4bc61ec31e5 rootvg active
hdisk1 00ceb4bc8e635fea altinst_rootvg

bash-3.00# bootlist -m normal -o


hdisk0 blv=hd5

Then change bootlist to hdisk1 by


bootlist -m normal hdisk1

===============================================================================

bash-3.00# lspv
hdisk0 00c01f50f3529214 rootvg active
hdisk1 00c01f50e9a1c319 rootvg active

------------------------------------------
bash-3.00# bootlist -m normal -o
hdisk2
ent0 speed=auto duplex=auto

Find out primary boot disk , then start copy missing lv from mirrored to primary
(e.g lg_dumplv)

---------------------------------
to migrate hdisk :
/usr/sbin/migratepv hdisk16(source) hdisk0(new)

Break mirror :
------------

1)If in rootvg 2 disk present but having 2 lvs i.e hd6(paging os lv) and paging00
lv then
remove paginglv with smitty -->Paging Space -->Deactivate a Paging Space --> then
Remove a Paging Space
Then migrate hd6(paging) with below command.

smitty migratepv/ migratepv -l lg_dumplv hdisk0(source) hdisk1(destination)


unmirrorvg rootvg hdisk1 --->morror disk .

reducevg rootvg hdisk1 ---> mirror disk

Start clone:
------------
smitty
Software Installation and Maintenance
Alternate Disk Installation
Clone the rootvg to an Alternate Disk
Target Disk(s) to install [hdisk1]
...
...
...
ACCEPT new license agreements? [yes]
...
Set bootlist to boot from this disk on next reboot? [no]

OR

/usr/sbin/alt_disk_copy -P "all" -B -d "hdisk5"

=======================
to start root mirroring
extendvg rootvg hdisk1
smitty mirrorvg --> select rootdg -- select mirror disk
========================
rst console command:
/usr/sbin/rsct/install/bin/recfgct
/usr/sbin/rsct/bin/rmcctrl -z
/usr/sbin/rsct/bin/rmcctrl -A
/usr/sbin/rsct/bin/rmcctrl -p
================================---==
HMC configuration :
system management-->server-->connections--->Add managed System-->Select Add managed
system
-->add -->IP Address/hostname-- give hmc primary ip, passwd
(abc1234/abc123/acleop$#)

after this add secondary IP


Select Server Sr.No:--->conenctions--->Add managed system . Give ip/passwd as above
To find server hmc ip:
Server Sr.No.--->Conenctions--->Service Processor Status. It shows
Primary/Secondary hmc ip.

To delete server from HMC list:


Server Sr.No.--->Conenctions--->Reset or remove connections

------------------------

If server showing not available / no connection then ........

system management-->server-->Operation -- Rebuild


=============================
Local installation.
1)mount TL 1 of 2 Dvd
2)Go to mount point cd /TL
3) smitty mlang
4) Add Additional Language Environments

5) CULTURAL convention to install en_US


+
LANGUAGE translation to install en_US
+
* INPUT device/directory for software [/TL]
+
EXTEND file systems if space needed? yes

# locale -a
C
POSIX
en_US
en_US.8859-15
en_US.ISO8859-1
EN_US
EN_US.UTF-8
=============================
HMC console problem:

For vio client to take login of client from vio server, give connand from $ prompt
$mkvt -id 6
~. ----> to exit from
lspartition -dlpar

For P570
console from puty:
hscroot@localhost:~> mkvterm -m Server-9119-595-SN0201F50 --id 10

==================================
File size for transfer
chuser command.
chuser fsize_hard=NUMBER-OF-512byte-BLOCKS username
chuser fsize=NUMBER-OF-512byte-BLOCKS username
Use "-1" for unlimited.
2. Verify that the ftp daemon is configured to allow output file of the
size.
chuser fsize=-1 ora10g
------------------
for migration:
cat /tmp/passwd |awk -F: '{print " mkdir -p " $6 }'
cat /etc/passwd |awk -F: '{print "useradd " " -u " $3 " -g " $4 " -d " $6 "
-m " " -s " $7 " " $1 }'
cp /etc/passwd /etc/passwd_12Apr12
cp /etc/security/passwd /etc/security/passwd_12Apr12

tar -cvf migrate.tar

------------------------------------
password / user configuration file :
/etc/security/login.cfg
----
pwdadm -c ora10g
173 smitty user
174 chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s hpadm

=====================================x====

hdiskpower0 00c4b0749c0a5e9b suatvg active

hdiskpower1 none None

smitty--> Set Characteristics of a Volume Group ->Add a Physical Volume to a


Volume Group
Force the creation of a volume group? no
+
* VOLUME GROUP name [suatvg]
+
* PHYSICAL VOLUME names [hdiskpower1]

Logical volume NAME [suatlv02]


* VOLUME GROUP name suatvg
* Number of LOGICAL PARTITIONS [160]
#
PHYSICAL VOLUME names [hdiskpower0 hdiskpower1]
+
Logical volume TYPE [jfs2]
+
POSITION on physical volume middle
+
RANGE of physical volumes minimum
+
MAXIMUM NUMBER of PHYSICAL VOLUMES []
#
to use for allocation
Number of COPIES of each logical 1
+
partition
Mirror Write Consistency? active
+
Allocate each logical partition copy yes
+
on a SEPARATE physical volume?
RELOCATE the logical volume during yes
+
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512]
#
Enable BAD BLOCK relocation? yes
+
SCHEDULING POLICY for writing/reading parallel
+
logical partition copies
Enable WRITE VERIFY? no
+
File containing ALLOCATION MAP []
Stripe Size? [Not Striped]
+
Serialize IO? no

-----------------
create filesystem
mkvg -f -y'tuxdatavg' -s'128' hdiskpower0

mklv -y'tux09lv' -t'jfs2' tuxdatvg 240(logical partition) hdiskpower0

crfs -v jfs2 -d tux09lv -m /tuxdata09 -A yes -p rw

----------------------------
(for stripe lv creation)
mklv -y'tux02lv' -t'jfs2' '-S128K' tuxdata02vg 800 hdiskpower0 hdiskpower1
hdiskpower2
=================================

IBM blade console

putty -- ssh ---


system> console -T blade[7] -- > -o for force

for vio client from vio server


mkvt -id partitionid
================================
missing:
bash-3.00# oslevel -rl 5300-03
Fileset Actual Level Recommended ML
-----------------------------------------------------------------------------
bos.cifs_fs.rte 5.3.0.10 5.3.0.30

for vio client:


$ extendvg -f rootvg hdisk0
$ mirrorios
This command causes a reboot. Continue [y|n]?

mirrorvg rootvg
=======================================
awk command:
cat /tmp/list1 |awk '{print "portshow "$2"/"$3"" " |grep
21:01:00:1B:32:AA:0C:7A"}'
portshow 1/1 |grep 21:01:00:1B:32:AA:0C:7A
========================================================
swap / pagging space:
smitty mklv
Logical volume NAME [paging00]
* VOLUME GROUP name rootvg
* Number of LOGICAL PARTITIONS [64]
#
PHYSICAL VOLUME names []
+
Logical volume TYPE [paging]
+
POSITION on physical volume middle
+
RANGE of physical volumes minimum
+
MAXIMUM NUMBER of PHYSICAL VOLUMES []
#
to use for allocation
Number of COPIES of each logical 2

smitty lvm -->Paging Space--> Change / Show Characteristics of a Paging Space -->
select paging00
Use this paging space each time the system is yes

smitty lvm --> Activate a Paging Space

-----------------------
To increase swap space

chps -s 20 hd6
chps -s 116 hd6 -- increase by 116pp

to decrease pagging space :

========================================
To stop web service port 443

/etc/inittab file
hash line webserver
==============================
To recover rootpassword
\Take backup of /etc/security/passwd
edit passwd file remove entry and add following entry for default password:

root:
password = QpFhmE66lp0W6
lastupdate = 1308209412

sysadm:
password = 3YB5Ad.BLRZns
lastupdate = 1308115225
flags =

perf:
password = XPaRSjY5qVf/c
lastupdate = 1302170033

====================================================
EFS:

bash-3.2# efsenable -a
EFS has already been enabled on this system.

{IBM-PS702C1-07-CL3} /guiapp $ efskeymgr -o ksh


Problem initializing EFS framework. Please install latest version of clic.rte

------------------------------------------------------
Time zone:
smitty time -- ---System Environments---Change / Show Date, Time, and Time
Zone---Change Time Zone Using User Entered Values

[Entry Fields]
* Standard Time ID(only alphabets) [IST]
* Standard Time Offset from CUT([+|-]HH:MM:SS) [-5:30]
Day Light Savings Time ID(only alphabets) []
Day Light Savings Time Offset from CUT([+|-]HH:MM: []
SS)
Start Daylight Savings Day([Mmm.ww.dd|Jn]) []
Start Daylight Savings Time(HH:MM:SS) []
Stop Daylight Savings Day([Mmm.ww.dd|Jn]) []
Stop Daylight Savings Time(HH:MM:SS) []

entry in /etc/timezone :

/etc/environment
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/
java14/bin
TZ=IST-5:30
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
----------------------------------------
HACMP smitty :

smitty hacmp --> System Management (C-SPOC) --> Storage -->


Volume Groups
Logical Volumes
File Systems
Physical Volumes

To refresh :

smitty hacmp --> Extended Configuration --> Extended Verification and


Synchronization

-----------------
For Increase and decrease filesystem in HACMP:
smitty clstop---->
* Stop now, on system restart or both now
+
Stop Cluster Services on these nodes [iCoreAIX_prod,iCoreAIX_stby]

+
BROADCAST cluster shutdown? false

+
* Select an Action on Resource Groups Bring Resource Groups Offline

It will remove concurrent from 10.16.0.138

/etc/scripts/disableip.sh

emgr -d -e IV07548sp6.110908.epkg.Z -- Validate


emgr -e IV07548sp6.110908.epkg.Z -- > TO install

bash-3.2# lslpp -l | grep -i cluster.es.cspoc.cmds


cluster.es.cspoc.cmds 6.1.0.6 COMMITTED ES CSPOC Commands

/etc/scripts/enableip.sh

smitty clstart

* Start now, on system restart or both now

+
Start Cluster Services on these nodes [iCoreAIX_prod,iCoreAIX_stby]

+
* Manage Resource Groups Automatically

+
BROADCAST message at startup? true

+
Startup Cluster Information Daemon? true

+
Ignore verification errors? false

+
Automatically correct errors found during Interactively
===============================================================================
/dev/m1_index42 200.00 0.03 199.97 1% /m1/index42
smitty cspoc -- > storage--> File Systems --> Change / Show Characteristics of a
File System

Volume group name consol21vg


Resource Group Name DB_RG
* Node Names iCoreAIX_stby,iCoreAIX_prod
* File system name
/m1/index42
NEW mount point [/m1/index42]

/
SIZE of file system Unit Size
Gigabytes

+
Number of units [201]

#
Mount GROUP [] Mount AUTOMATICALLY at
system restart? no

+
PERMISSIONS read/write

+
Mount OPTIONS []

+
Start Disk Accounting? no

+
Block Size (bytes) 4096
Inline Log? no Inline Log size (MBytes)
[0]

#
Extended Attribute Format [v1]
ENABLE Quota Management? no

+
Allow Small Inode Extents? [yes]

+
Logical Volume for Log loglv_21
Then

Refresh / Syncronisation:

smitty hacmp --> Extended Configuration -- Extended Verification and


Synchronization

Type or select values in entry fields.


Press Enter AFTER making all desired changes.

[Entry Fields]
* Verify changes only? [No]

+
* Logging [Standard]

========================================================

to reduce :
smitty cspoc -- > storage--> File Systems --> Change / Show Characteristics of a
File System

Type or select values in entry fields.


Press Enter AFTER making all desired changes.
[Entry Fields]
Volume group name consol21vg
Resource Group Name DB_RG
* Node Names iCoreAIX_stby,iCoreAIX_prod
* File system name
/m1/index42
NEW mount point [/m1/index42]

/
SIZE of file system Unit Size
Gigabytes

+
Number of units [200]

#
Mount GROUP [] Mount AUTOMATICALLY at
system restart? no

+
PERMISSIONS read/write

+
Mount OPTIONS []

+
Start Disk Accounting? no

+
Block Size (bytes) 4096
Inline Log? no Inline Log size (MBytes)
[0]

#
Extended Attribute Format [v1]
ENABLE Quota Management? no

+
Allow Small Inode Extents? [yes]

+
Logical Volume for Log loglv_21
+

====================================

Virtual ip alias :

smitty ---> Communications Applications and Services --> TCP/IP --> Further
Configuration-- > Network Interfaces --> Network Interface Selection -->
Configure Aliases ---> Add an IPV4 Network Alias --> en0 04-08 Standard
Ethernet Network Interface -->

Network INTERFACE en0

* IPV4 ADDRESS (dotted decimal) [10.50.37.42]


Network MASK (hexadecimal or dotted decimal) [255.255.255.0]

=============================
sddpcm multipathing software :
lspcmcfg --------------> all vg info
lslpp -l | grep -i sddpcm
pcmpath query adapter / device ---------> It shows all paths.

lspath -l hdisk3

pcmpath query adapter

DEV#: 14 DEVICE NAME: hdisk14 TYPE: 2145 ALGORITHM: Load Balance


SERIAL: 60050768028080E1C000000000000135
===========================================================================
Path# Adapter/Path Name State Mode Select Errors
0* fscsi0/path0 OPEN NORMAL 133 0
1 fscsi0/path1 OPEN NORMAL 4422109 1
2 fscsi1/path2 OPEN NORMAL 4387123 0
3* fscsi1/path3 OPEN NORMAL 127 0

pcmpath query device 14


pcmpath clear device 14 1 count error

===================================================
1 gbps speed :

chdev -l en0 -a state=detach


chdev -l ent0 -a media_speed=1000_Full_Duplex
chdev -l en0 -a state=up
mkdev -l inet0

1) ifconfig enX down detach


3) make changes in smitty / devices / communications / Ethernet Adapter /
Adapter / Change Show Charac../
( smitty eadap )
or by chdev -l entX -a media_speed='100_Half_Duplex'
5) smitty tcpip inet /Change Show / (select interface) and change
Current STATE to up.
( Don't do ifconfig enX up - this will put an
IP address of 0.0.0.0 )
6) mkdev -l inet0 (to activate all routes)

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

VG: [Entry Fields]


VOLUME GROUP name [sybase13vg]
Physical partition SIZE in megabytes 256
+
* PHYSICAL VOLUME names [hdiskpower10 hdiskpower11
hdiskpower12 hdiskpower13]
+
Activate volume group AUTOMATICALLY no
+
at system restart?
Volume Group MAJOR NUMBER []
+#
Create VG Concurrent Capable? yes
+
Auto-varyon in Concurrent Mode? no
+

LV

[Entry Fields]
Logical volume NAME [lvol31]
* VOLUME GROUP name sybase12
* Number of LOGICAL PARTITIONS [2000]
#
PHYSICAL VOLUME names [hdiskpower327 hdiskpower328
hdiskpower329 hdiskpower330 hdiskpower331]
+
Logical volume TYPE [raw]
+
POSITION on physical volume outer_middle
+
RANGE of physical volumes minimum
+
MAXIMUM NUMBER of PHYSICAL VOLUMES []
#
to use for allocation
Number of COPIES of each logical 1
+
partition
Mirror Write Consistency? active
+
Allocate each logical partition copy yes
+
on a SEPARATE physical volume?
RELOCATE the logical volume during reorganization? yes
+
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [4096]
#
Enable BAD BLOCK relocation? yes
+
SCHEDULING POLICY for writing/reading parallel
+
logical partition copies
Enable WRITE VERIFY? no
+
File containing ALLOCATION MAP []
Stripe Size? [128K]
+
Serialize IO? no

in path /dev/
ls -la rlvol32

chown sybase:staff rlvol32


============================================================
sodo :

package:sudo-1.8.3-2.ppc.rpm

Sudo command path : /usr/local/bin/sudo

to install : rpm -ivh sudo-1.8.3-2.ppc.rpm

Then edit in /etc/sudoers : Put following entry


For user: User_Alias USERADMINUSERS = mounter
For permission:Cmnd_Alias USERADMINCMD = /usr/sbin/mount,
/usr/sbin/umount, /usr/sbin/useradd, /usr/symcli/bin/symsnap
For no password : USERADMINUSERS ALL= (root) NOPASSWD: USERADMINCMD

For user su command:

# Cmnd alias specification

Cmnd_Alias CHUSWITCHADM=/usr/bin/su - istadm

# User privilege specification

%istmong ALL=(ALL) CHUSWITCHADM


%istmong ALL=(ALL) NOPASSWD:CHUSWITCHADM

=============================================================

sftp connection :

file path : /etc/ssh/sshd_config file


MaxStartups 300
===========================================================
dump device in aix :

sysdumpdev -L -----------> To check dump

In chasis :
service tool -- >AMM service data
For vio server : Blade service data -- >Select blade -- > dump type Partition -->
inititiate

To enable :

smitty sysdumpdev --> Always ALLOW System Dump


=======================================================
Share in AIX and solaris :

mount -F nfs -o vers=2 10.24.155.165:/mistmp /mistmp


=================================================
To check filesystem block size

lsfs -qa
lsfs -q /m1/bbysvcredo1b
=======================================
redo option :

cio,minpout=0,maxpout=0,rw
block size: 512
===========================================
User addition in HACMP cluster :

To add user in hacmp


smitty hacmp --> System Management (C-SPOC) --> Security and Users --> Users in
an HACMP cluster --> Add a User to the Cluster --> select DB_RG

To verufy new user

To syncronised: -- Not to sync in user


smitty hacmp --> System Management (C-SPOC) --> Security and Users --> Users in
an HACMP cluster -->List Users in the Cluster --> select DB_RG -- now search user
id in iCoreAIX_stby and iCoreAIX_prod

smitty hacmp ---> Extended Configuration --> Extended Verification and


Synchronization --->Verify changes only? enter

=============================================
OS parching missing patches:

oslevel -sq -----------> Current patch level

oslevel -sl 6100-06-05-1115 ---- > Missing patches


lppchk -v -----------> to see broken pipe

Patching check:
lppchk -v
oslevel -rq
installp -ug < missing patch >

oslevel -rl 6100-07


==============================================
installation:

installp -acgNd /tmp/AIX6.1_TL6_SP6 bos.mh ---- To install broken

=====================================================
To create package image :

smitty bffcreate

================================
DVD:
It represent : DVD: other mass storage device

Assign DVD: Always keep DVD in desire state to all lpars


Find out the Lpar to which DVD is connected.
----
114.145: 6.1 :
1) lsdev -Cc cdrom
cd0 Available 0A-08-00 IDE DVD-ROM Drive
2)rmdev -Rdl cd0
3)lsdev |grep -i 0A-08
ide0 Available 0A-08 ATA/IDE Controller Device

lsslot -c slot
U7879.001.DQD2P9H-P1-T15 Logical I/O Slot pci10 ide0

rmdev -Rdl ide0


rmdev -Rdl pci10
---

Click -- > Lpar -->Dynamic Logical partition ( It shows Other Mass Storage
Controller)-->Physical Adpter---> move/remove

10.16.241.18 /cdrom /cdrom


10.16.114.145
-----
mount DVD
mount -v cdrfs -r /dev/cd0 /cdrom

======================================================
crontab -l adm --- Unhash below lines.
0 * * * * /usr/lib/sa/sa1 1200 3 &
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 3600 -ubcwyaqvm &

refresh inetd

sar -a
==========================
dtspcd taking more SPU , then hash in /etc/inetd.conf
#dtspcd stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd

=============================
will ask password next login
pwadm -x <id>
=====================================
To change kernel bit from 32 to 64.

AIX5L (TechnicalUser)

If you are running AIX 5.1

Switching >From 32 to 64 Bit Mode

To switch from 32-bit mode to 64-bit mode run the following commands, in the given
order:

1.ln -sf /usr/lib/boot/unix_64 /unix


2.ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
3.bosboot -ad /dev/ipldevice
4.shutdown -Fr
5.bootinfo -K (should now show 64)

Switching From 64 To 32-Bit Mode

To switch from 64-bit mode to 32-bit mode run the following commands, in the given
order:

1.ln -sf /usr/lib/boot/unix_mp /unix


2.ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
3.bosboot -ad /dev/ipldevice
4.shutdown -Fr
5.bootinfo -K (should now show 32)

============================
rsh aix
make entry in /etc/hosts and .rhosts
bash-3.2# cat .rhosts
10.50.35.148 +

unhash below entry:


shell stream tcp6 nowait root /usr/sbin/rshd rshd
login stream tcp6 nowait root /usr/sbin/rlogind rlogind

change /etc/security/
refresh serrvice:
refresh -s inetd
====================================
cross cable IP configuration:
ifconfig en2 192.168.1.1 netmask 255.255.255.0 up

=======================================
PV id issue :

bash-3.2# lsvg -p ihelpvg


ihelpvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 removed 199 0 00..00..00..00..00
hdisk3 active 199 0 00..00..00..00..00

After:
bash-3.2# chpv -v a hdisk2
bash-3.2# lsvg -p ihelpvg
ihelpvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 199 0 00..00..00..00..00
hdisk3 active 199 0 00..00..00..00..00
====================================================
To reset unsuccessfull login :
lsuser shailesh
chuser unsuccessful_login_count=0 suraj

pwdadm -c perf --> password will not ask net time


===========================
5.3 to 6.1 upgradation :
cd /usr/lpp/bos/pre_migration

boot form clone

boot form os disk hdisk2

bootlist -m normal cd0

bootpath change to cd0

shutdown -Fr

/tmp take backup

� Select current console as the system console when prompted.

� Select English language when prompted.

. Change/show Installation setting and install -- option 2

5)Either type 0 and press Enter to install with current settings, or type the
number of the setting you want to change and press Enter.
migration option
0 ---
1--- Migration Installation Summary
0 -- Migration Confirmation
691 pkgs

3 vt100

7) Software License Agreements

Move cursor to desired item and press Enter.

Accept License Agreements ---> select

ACCEPT Installed License Agreements yes +

Installation Assistant

Move cursor to desired item and press Enter. --- Tasks Completed - Exit to Login
change boot list to rootdisk
after 6.1 reboot the server
smitty update_all
sp3 10.16.114.145 /tmp 1.21gb

reboot the server

vacpp.90.aix53TL6-71.mar2012.ptf.tar

=================================

No utmpx entry. You must exec "login" from the lowest level "shell"
then :

cp -rp /var/adm/utmpx /var/adm/utmpx_bkp


>/var/adm/utmpx
======================================================
emcp_mond binary is available @

http://powerlink.emc.com > Support > Software Downloads and Licensing > Downloads
P-R > PowerPath for AIX > (Look for �PowerPath 5.5 P02 HF01 EMCP_MOND Tool 1.0 for
AIX�)

Attached is the script for your reference.

1. Uncompress and untar the package.

2. The package contains an install script (install.sh) which will replace

the existing emcp_mond binary with the binary contained in the fix.

Usage: install.sh -f|--file <path_to_fixed_binary>

Ex : install.sh -f ./emcp_mond

OR

2. The package can also be installed by following the steps below:

a. Stop any existing instances of emcp_mond by running

/etc/rc.emcp_mond stop

b. Check if the process has been stopped by running

ps -ef | grep emcp_mond

c. Backup the existing emcp_mond binary

cp /usr/sbin/emcp_mond /tmp/emcp_mond.orig

d. Copy the emcp_mond binary from the package to /usr/sbin

cp ./emcp_mond /usr/sbin/

3. Start the new emcp_mond by running


/etc/rc.emcp_mond start

================================================================================
IP trace :

/usr/sbin/iptrace -i en2 -s 172.16.22.93 -d 172.16.41.60 /tmp/iptrace_26sep12

> 1.Iptrace -i<interface name> -s< Source IP address of host name> -d<target IP
address or hostname> <filename with absolute path>
2.iptrace -i interface name> -s (Source IP> -d<destination IP> <different file
name than above>
ps -eaf | grep iptrace
Kill -15< PID of iptrace> or kill -9< PID of iptrace>
Once process is killed,Unload the iptrace extension by running
command "iptrace -u"
------------------------------------
iptrace -i en0 -s 192.168.121.54 -d 192.168.121.51 -p 7790
/tmp/iptrace_121.54_25feb13

========================================
ssdpcm :

devices.fcp.disk.ibm.mpio.rte --
devices.sddpcm.61.rte
devices.sddpcm.61.2.6.3.2.bff

=================================================
resolve.conf :
/etc/resolv.conf

nameserver 10.50.37.84
nameserver 10.50.37.170
nameserver 10.50.37.171
--------------------
10.50.52.58 :
bash-3.2# cat /etc/resolv.conf
search icicibankltd.com
nameserver 10.16.1.168
nameserver 10.50.37.171
nameserver 10.50.37.170

----------------------
bash-3.2# cat /etc/resolv.conf_19mar13 -------- wrong entry
search icicibankltd.com
nameserver 10.16.1.168
nameserver 10.50.37.84
nameserver 10.50.37.170

================================================
traceroute cron script:
bash-3.2# cat /scripts/traceroute_55_30
echo "******************************************"
date
traceroute 192.168.55.30

bash-3.2# cat /scripts/ping_55_52


echo "************************************************"
date
ping -c 45 192.168.55.52

cron :
00-59 * * * * sh /scripts/traceroute_55_19 >> /tmp/traceroute_55_19
00-59 * * * * sh /scripts/ping_55_52 >> /tmp/ping_55_52

========================================
To remove FC cable :

pcmpath set adapter 3 offline


pcmpath set adapter 3 offline aa
==================================
Login name more than 9 character :

getconf LOGIN_NAME_MAX
change the value:
max_logname 9
as below:
chdev -l sys0 -a max_logname=129
getconf LOGIN_NAME_MAX
Please note that this change will not go into effect until you have rebooted the
operating system
==============================================
Log shipping :
172.25.254.0 172.25.254.14 UHSb 0 0 en1 - - =>
172.25.254/24 172.25.254.14 U 0 0 en1 - -
172.25.254.14 127.0.0.1 UGHS 0 292 lo0 - -
172.25.254.255 172.25.254.14 UHSb 2 6518 en1 - -

route add 172.25.255/24 172.25.254.1 -if en1

172.25.255/24 172.25.254.1 UG 0 0 en1 - -


---------->New entry

traceroute 172.25.255.22
1 172.25.254.1 (172.25.254.1) 1 ms 1 ms 1 ms

==============================================================
command line :
nim -o define -t mksysb -a server=master -a location=/mksysb/mksysb_68_180_28feb13
-a source=IMDVLSVR003 -a mk_image=yes mksysb_68_180

mkvg -f -S -s 256 -v 4096 -P 2048 -y vgname hdiskname


mkly -y lvname -t jfs2 -x 1024 -S 128K vgname ppsize hidskname
crfs -v jfs2 -d lvname -m moutpoint -A yes -a logname=loglv

mkvg -S -s 256 -y m2consol1vg hdisk104 hdisk105 hdisk106 hdisk107


mklv -y m2LogLv1 -t jfs2log -x 4096 -c 1 -S128K m2consol1vg 4 hdisk104 hdisk105
hdisk106 hdisk107
mklv -y m2_data1 -t jfs2 -x 4096 -c 1 -S128K m2consol1vg 800 hdisk104 hdisk105
hdisk106 hdisk107
crfs -v jfs2 -d m2_data1 -m /m2/data1 -a logname=m2LogLv1 -A yes

==================================================================
To update all filesets from a CD that are currently installed on the system, type:
lslpp -lc | awk -F ":" '{print $2}' | tail -n +2 > /tmp/lslpp
installp -agXd /dev/cd0 -e /tmp/install.log -f /tmp/lslpp

=================================================
dscli :
/opt/ibm/dscli
./dscli
Enter the primary management console IP address: 10.50.42.14
Enter the secondary management console IP address:
Enter your username: storageadmin/Ra1ncoat
Enter your password:
dscli> lsflash -l 0000-ffff
mkflash -dev IBM.2107-75WW891 -tgtse -nocp 5200-5227:7200-7227 5300-5327:7300-
7327 522F:722F 532F:732F 5232-523B:7232-723B 5332-533B:7332
-733B

dscli> lsflash -l 0000-ffff


Date/Time: April 1, 2013 10:29:40 AM GMT+05:30 IBM DSCLI Version: 7.6.10.511 DS:
IBM.2107-75WW891
ID SrcLSS SequenceNum Timeout ActiveCopy Recording Persistent Revertible
SourceWriteEnabled TargetWriteEnabled BackgroundCopy OutOfSyncTracks
DateCreated DateSynced State isTgtSE
Pmir
===================================================================================
==================================================================
===================================================================================
=====
5200:7200 52 0 60 Disabled Disabled Disabled Disabled
Enabled Enabled Disabled 3440588
Mon Apr 01 10:17:42 GMT+05:30 2013 Mon Apr 01 10:17:42 GMT+05:30 2013 Valid TSE
No
5201:7201 52 0 60 Disabled Disabled Disabled Disabled
Enabled Enabled Disabled 3440587
Mon Apr 01 10:17:42 GMT+05:30 2013 Mon Apr 01 10:17:42 GMT+05:30 2013 Valid TSE
No
5202:7202 52 0 60 Disabled Disabled Disabled Disabled
Enabled Enabled Disabled 3440586
Mon Apr 01 10:17:42 GMT+05:30 2013 Mon Apr 01 10:17:42 GMT+05:30 2013 Valid TSE
No
5203:7203 52 0 60 Disabled Disabled Disabled Disabled
Enabled Enabled Disabled 3440587

========================================
Increase raw volume :

Type or select values in entry fields.


Press Enter AFTER making all desired changes.

[Entry Fields]
* LOGICAL VOLUME name lvol4103
* Number of ADDITIONAL logical partitions [396]
#
PHYSICAL VOLUME names [hdiskpower393 hdiskpower394]
+
POSITION on physical volume middle
+
RANGE of physical volumes maximum
+
MAXIMUM NUMBER of PHYSICAL VOLUMES [4]
#
to use for allocation
Allocate each logical partition copy superstrict
+
on a SEPARATE physical volume?
File containing ALLOCATION MAP []

/usr/sbin/extendlv -u'4' lvol4103 2(extra pp) hdiskpower393 hdiskpower394

before :
lvol4103 raw 792 792 4 closed/syncd N/A
After:
lvol4103 raw 794 794 4 closed/syncd N/A

============================================================
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available Logical Host Ethernet Port (lp-hea)----------
ent3 Available Logical Host Ethernet Port (lp-hea)----------
ent4 Available EtherChannel / IEEE 802.3ad Link
Aggregation-----------ent0 & ent1
ent5 Available VLAN

ent0--P1-T6--BLADE9--BAY1--GROUP1
ent1--P1-T7--BLADE9--BAY2--GROUP1
ent2--P2-T6--BLADE10--BAY1--GROUP1
ent3--P2-T7--BLADE10--BAY2--GROUP1
=============================================
Data domain DD package :
Atape.driver 12.6.0.0 COMMITTED IBM AIX Enhanced Tape and
/tmp/AtapeIBM -- -rw-r--r-- 1 perf staff 4147200 Apr 11 17:43
Atape.12.6.0.0.bin

==============================================
IBM username and password :

http://www-933.ibm.com/support/fixcentral/aix/selectFixes?
release=6.1&function=release
[email protected] / sysadminoprs
amu15tandel / amol@123

Please share below details.

snap -r (This will clear the old SNAP File and Directory)
#snap -gbfktGLNR (Creates New SNAP at /tmp/ibmsupt )
#snap -c ( This will compress the file )
#mv /tmp/. bmsupt/snap.pax.Z /tmp/ibmsupt/Serial #).snap.pax.Z Regards Mahesh
Waghode

You might also like