AIX usful command
# chdev -l fscsi3 -a attach=pt_to_pt
Method error (/usr/lib/methods/chggen):
0514-018 The values specified for the following attributes
are not valid:
attach How this adapter is CONNECTED
# lsattr -El fscsi3
attach switch How this adapter is CONNECTED False
dyntrk yes Dynamic Tracking of FC Devices True+
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True+
scsi_id 0x9a28a9 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
# lsattr -El fscsi2
attach pt_to_pt How this adapter is CONNECTED False
dyntrk yes Dynamic Tracking of FC Devices True+
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True+
scsi_id 0x2 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
lscfg
* pci1 U78CD.001.FZH6167-P1 PCI Express Bus
+ fcs2 U78CD.001.FZH6167-P1-C4-T1 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi2 U78CD.001.FZH6167-P1-C4-T1 FC SCSI I/O Controller Protocol Device
* hdisk17 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400600000000 MPIO IBM 2107 FC Disk
* hdisk18 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400900000000 MPIO IBM 2107 FC Disk
* sfwcomm2 U78CD.001.FZH6167-P1-C4-T1-W0-L0 Fibre Channel Storage Framework Comm
* hdisk15 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400300000000 MPIO IBM 2107 FC Disk
+ fcs3 U78CD.001.FZH6167-P1-C4-T2 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi3 U78CD.001.FZH6167-P1-C4-T2 FC SCSI I/O Controller Protocol Device
* sfwcomm3 U78CD.001.FZH6167-P1-C4-T2-W0-L0 Fibre Channel Storage Framework Comm
* pci0 U78CD.001.FZH6167-P2 PCI Express Bus
+ fcs0 U78CD.001.FZH6167-P2-C4-T1 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi0 U78CD.001.FZH6167-P2-C4-T1 FC SCSI I/O Controller Protocol Device
* sfwcomm0 U78CD.001.FZH6167-P2-C4-T1-W0-L0 Fibre Channel Storage Framework Comm
+ fcs1 U78CD.001.FZH6167-P2-C4-T2 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi1 U78CD.001.FZH6167-P2-C4-T2 FC SCSI I/O Controller Protocol Device
* sfwcomm1 U78CD.001.FZH6167-P2-C4-T2-W0-L0
smitty etherchannel
smit tcpip
# /usr/lib/methods/ethchan_config -a ent4 ent1
# /usr/lib/methods/ethchan_config -a ent4 ent2
# /usr/lib/methods/ethchan_config -a ent4 ent3
mirror VG
http://howtoaix.blogspot.com/2013/01/how-to-mirror-rootvg-in-aix.html
mirrorvg rootvg hdisk1
bosboot -ad /dev/hdisk1
bootlist -m normal hdisk1
migratepv hdisk5 hdisk10
reducevg rootvg hdisk5
reboot
migratepv hdisk5 hdisk10
https://www-945.ibm.com/support/fixcentral/swg/downloadFixes?parent=Other%2Bsoftware%2Bproducts&product=ibm/StorageSoftware/System+Storage+Multipath+Subsystem+Device+Driver&release=AIX_SDDPCM_2670&platform=AIX&function=fixId&fixids=SubSystem_Device_Driver_AIX_72_SDDPCM_2.6.7.0&includeRequisites=1&includeSupersedes=0&downloadMethod=http
| * devices.sas.disk.ibm.mpio.rte 1.0.0.0
| * devices.fcp.disk.ibm.mpio.rte 1.0.0.24
bos.rte v=7, r<3 # Base Level Fileset
devices.scsi.disk.rte 7.2.0.0 # Base Level Fileset
/usr/lpp/mmfs/bin/mmgetstate -a /usr/lpp/mmfs/bin/mmstartup
lsmpio
lslpp -L devices.common.IBM.mpio.rte
reducevg -f rootvg 00cabd50db130e38
reducevg -d rootvg 00cabd50db130e38 (remove deda one from rootvg)
rmlv hd7
mklv -y lg_dumplv -c 1 -t sysdump rootvg 16 hdiskx
sysdumpdev -p /dev/lg_dumplv -P
chdev -l hdisk1 -P -a queue_depth=256
chdev -l hdisk1 -P -a max_transfer=0x1000000
chdev -l hdisk0 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk1 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk2 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk3 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk4 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk17 -P -a queue_depth=256
chdev -l hdisk18 -P -a queue_depth=256
lsattr -EHl hdisk0
chdev –l hdisk0 –a pv=yes
chdev –l hdisk1 –a pv=yes
chdev –l hdisk2 –a pv=yes
chdev –l hdisk3 –a pv=yes
chdev –l hdisk4 –a pv=yes
chdev -l fcs4 -a max_xfer_size=0x1000000 -a num_cmd_elems=4096 –P
chdev -l fcs5 -a max_xfer_size=0x1000000 -a num_cmd_elems=4096 –P
{p880db2:root}/ # lslv db2striplv
LOGICAL VOLUME: db2striplv VOLUME GROUP: db2vg
LV IDENTIFIER: 00c9cb9700004c000000014c327bb45c.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 9999 PP SIZE: 512 megabyte(s)
COPIES: 1 SCHED POLICY: striped
LPs: 2016 PPs: 2016
STALE PPs: 0 BB POLICY: non-relocatable
INTER-POLICY: maximum RELOCATABLE: no
INTRA-POLICY: middle UPPER BOUND: 18
MOUNT POINT: /db2data LABEL: /db2data
DEVICE UID: 0 DEVICE GID: 0
DEVICE PERMISSIONS: 432
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes (superstrict)
Serialize IO ?: NO
INFINITE RETRY: no PREFERRED READ: 0
STRIPE WIDTH: 18
STRIPE SIZE: 128k
DEVICESUBTYPE: DS_LVZ
--inode-limit 30000000 Maximum number of inodes
We set the blocksize to 256K for each filesystem :
mmcrfs /dev/gw1data -F /disk_file1 -B 256K -T /gw1data
Page pool
The page pool is 64 MB by default. We set it to 2048
mmchconfig pagepool=2048M
mmchfs gpfs5 --inode-limit 30000000
rm -rf /var/mmfs
rm /var/adm/ras/mm*
rm -rf /tmp/mmfs
rm -rf /usr/lpp/mmfs
mmdf gpfs6 --block-size auto
mmcrfs /dev/ftm2data -F ftm2data.txt -B 256K -T /ftm2data
mmcrfs /dev/ftm3data -F ftm3data.txt -B 256K -T /ftm3data
mmcrfs /dev/ftm4data -F ftm4data.txt -B 256K -T /ftm4data
mmcrfs /dev/ftm5data -F ftm5data.txt -B 256K -T /ftm5data
mmchfs ftm1data --inode-limit 17476288
mmchfs ftm2data --inode-limit 17476288
mmchfs ftm3data --inode-limit 17476288
mmchfs ftm4data --inode-limit 17476288
Create a LV with striped among five disks
# mklv -S128K -y db2v01 db2data 1023 hdisk18 hdisk23 hdisk24 hdisk25 hdisk26 hdisk27
db2v01
mmchfs ftm5data --inode-limit 17476288
# lsfs -q /db2data1
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/fslv00 -- /db2data1 jfs2 2147483648 rw yes no
(lv size: 2147483648, fs size: 2147483648, block size: 4096, sparse files: yes, inline log: yes, inline log size: 1024, EAformat: v1, Quota: no, DMAPI: no, VIX: yes, EFS: no, ISNAPSHOT: no, MAXEXT: 0, MountGuard: no)
#
Method error (/usr/lib/methods/chggen):
0514-018 The values specified for the following attributes
are not valid:
attach How this adapter is CONNECTED
# lsattr -El fscsi3
attach switch How this adapter is CONNECTED False
dyntrk yes Dynamic Tracking of FC Devices True+
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True+
scsi_id 0x9a28a9 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
# lsattr -El fscsi2
attach pt_to_pt How this adapter is CONNECTED False
dyntrk yes Dynamic Tracking of FC Devices True+
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True+
scsi_id 0x2 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True
lscfg
* pci1 U78CD.001.FZH6167-P1 PCI Express Bus
+ fcs2 U78CD.001.FZH6167-P1-C4-T1 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi2 U78CD.001.FZH6167-P1-C4-T1 FC SCSI I/O Controller Protocol Device
* hdisk17 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400600000000 MPIO IBM 2107 FC Disk
* hdisk18 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400900000000 MPIO IBM 2107 FC Disk
* sfwcomm2 U78CD.001.FZH6167-P1-C4-T1-W0-L0 Fibre Channel Storage Framework Comm
* hdisk15 U78CD.001.FZH6167-P1-C4-T1-W500507630718112C-L4001400300000000 MPIO IBM 2107 FC Disk
+ fcs3 U78CD.001.FZH6167-P1-C4-T2 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi3 U78CD.001.FZH6167-P1-C4-T2 FC SCSI I/O Controller Protocol Device
* sfwcomm3 U78CD.001.FZH6167-P1-C4-T2-W0-L0 Fibre Channel Storage Framework Comm
* pci0 U78CD.001.FZH6167-P2 PCI Express Bus
+ fcs0 U78CD.001.FZH6167-P2-C4-T1 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi0 U78CD.001.FZH6167-P2-C4-T1 FC SCSI I/O Controller Protocol Device
* sfwcomm0 U78CD.001.FZH6167-P2-C4-T1-W0-L0 Fibre Channel Storage Framework Comm
+ fcs1 U78CD.001.FZH6167-P2-C4-T2 PCIe2 2-Port 16Gb FC Adapter (df1000e21410f103)
* fscsi1 U78CD.001.FZH6167-P2-C4-T2 FC SCSI I/O Controller Protocol Device
* sfwcomm1 U78CD.001.FZH6167-P2-C4-T2-W0-L0
smitty etherchannel
smit tcpip
# /usr/lib/methods/ethchan_config -a ent4 ent1
# /usr/lib/methods/ethchan_config -a ent4 ent2
# /usr/lib/methods/ethchan_config -a ent4 ent3
mirror VG
http://howtoaix.blogspot.com/2013/01/how-to-mirror-rootvg-in-aix.html
mirrorvg rootvg hdisk1
bosboot -ad /dev/hdisk1
bootlist -m normal hdisk1
migratepv hdisk5 hdisk10
reducevg rootvg hdisk5
reboot
migratepv hdisk5 hdisk10
https://www-945.ibm.com/support/fixcentral/swg/downloadFixes?parent=Other%2Bsoftware%2Bproducts&product=ibm/StorageSoftware/System+Storage+Multipath+Subsystem+Device+Driver&release=AIX_SDDPCM_2670&platform=AIX&function=fixId&fixids=SubSystem_Device_Driver_AIX_72_SDDPCM_2.6.7.0&includeRequisites=1&includeSupersedes=0&downloadMethod=http
| * devices.sas.disk.ibm.mpio.rte 1.0.0.0
| * devices.fcp.disk.ibm.mpio.rte 1.0.0.24
bos.rte v=7, r<3 # Base Level Fileset
devices.scsi.disk.rte 7.2.0.0 # Base Level Fileset
/usr/lpp/mmfs/bin/mmgetstate -a /usr/lpp/mmfs/bin/mmstartup
lsmpio
lslpp -L devices.common.IBM.mpio.rte
reducevg -f rootvg 00cabd50db130e38
reducevg -d rootvg 00cabd50db130e38 (remove deda one from rootvg)
rmlv hd7
mklv -y lg_dumplv -c 1 -t sysdump rootvg 16 hdiskx
sysdumpdev -p /dev/lg_dumplv -P
chdev -l hdisk1 -P -a queue_depth=256
chdev -l hdisk1 -P -a max_transfer=0x1000000
chdev -l hdisk0 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk1 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk2 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk3 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk4 -P -a queue_depth=256 -a reserve_policy=no_reserve
chdev -l hdisk17 -P -a queue_depth=256
chdev -l hdisk18 -P -a queue_depth=256
lsattr -EHl hdisk0
chdev –l hdisk0 –a pv=yes
chdev –l hdisk1 –a pv=yes
chdev –l hdisk2 –a pv=yes
chdev –l hdisk3 –a pv=yes
chdev –l hdisk4 –a pv=yes
chdev -l fcs4 -a max_xfer_size=0x1000000 -a num_cmd_elems=4096 –P
chdev -l fcs5 -a max_xfer_size=0x1000000 -a num_cmd_elems=4096 –P
{p880db2:root}/ # lslv db2striplv
LOGICAL VOLUME: db2striplv VOLUME GROUP: db2vg
LV IDENTIFIER: 00c9cb9700004c000000014c327bb45c.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 9999 PP SIZE: 512 megabyte(s)
COPIES: 1 SCHED POLICY: striped
LPs: 2016 PPs: 2016
STALE PPs: 0 BB POLICY: non-relocatable
INTER-POLICY: maximum RELOCATABLE: no
INTRA-POLICY: middle UPPER BOUND: 18
MOUNT POINT: /db2data LABEL: /db2data
DEVICE UID: 0 DEVICE GID: 0
DEVICE PERMISSIONS: 432
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes (superstrict)
Serialize IO ?: NO
INFINITE RETRY: no PREFERRED READ: 0
STRIPE WIDTH: 18
STRIPE SIZE: 128k
DEVICESUBTYPE: DS_LVZ
--inode-limit 30000000 Maximum number of inodes
We set the blocksize to 256K for each filesystem :
mmcrfs /dev/gw1data -F /disk_file1 -B 256K -T /gw1data
Page pool
The page pool is 64 MB by default. We set it to 2048
mmchconfig pagepool=2048M
mmchfs gpfs5 --inode-limit 30000000
rm -rf /var/mmfs
rm /var/adm/ras/mm*
rm -rf /tmp/mmfs
rm -rf /usr/lpp/mmfs
mmdf gpfs6 --block-size auto
mmcrfs /dev/ftm2data -F ftm2data.txt -B 256K -T /ftm2data
mmcrfs /dev/ftm3data -F ftm3data.txt -B 256K -T /ftm3data
mmcrfs /dev/ftm4data -F ftm4data.txt -B 256K -T /ftm4data
mmcrfs /dev/ftm5data -F ftm5data.txt -B 256K -T /ftm5data
mmchfs ftm1data --inode-limit 17476288
mmchfs ftm2data --inode-limit 17476288
mmchfs ftm3data --inode-limit 17476288
mmchfs ftm4data --inode-limit 17476288
Create a LV with striped among five disks
# mklv -S128K -y db2v01 db2data 1023 hdisk18 hdisk23 hdisk24 hdisk25 hdisk26 hdisk27
db2v01
mmchfs ftm5data --inode-limit 17476288
# lsfs -q /db2data1
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/fslv00 -- /db2data1 jfs2 2147483648 rw yes no
(lv size: 2147483648, fs size: 2147483648, block size: 4096, sparse files: yes, inline log: yes, inline log size: 1024, EAformat: v1, Quota: no, DMAPI: no, VIX: yes, EFS: no, ISNAPSHOT: no, MAXEXT: 0, MountGuard: no)
#
Comments