Sei sulla pagina 1di 13

Command Reference :SVC

lsnode -delim , ---- This command will lists the nodes attached to
SVC.
O/P

id

name UPS_serial_number
WWNN status
IO_group_id
IO_group_name
config_node
UPS_unique_id
hardware
iscsi_name iscsi_alias
panel_name enclosure_id
canister_id
enclosure_serial_number

15

NODE1_160603
100016S149 500507680100C834 online
io_grp0
yes 20400000468C1109 CG8 iqn.198603.com.ibm:2145.dc-xyzabc.node1160603
160603

16

NODE2_160600
100016S184 500507680100C81C online
io_grp0
no
20400000468C1204 CG8 iqn.198603.com.ibm:2145.dc-xyzabc.node2160600
160600

17

NODE3_160533
100016T050 500507680100C82B online
io_grp1
no
2040000046900140 CG8 iqn.198603.com.ibm:2145.dc-xyzabc.node3160533
160533

lsmdiskgrp ------ this command displays all the storages attached to


the SVC

id

name status
mdisk_count
extent_size
free_capacity
real_capacity
overallocation
easy_tier_status

vdisk_count
capacity
virtual_capacity used_capacity
warning
easy_tier

BLR1STODS83001_R5_POOL1
online
24
7.23TB
26.76TB
26.76TB
26.76TB
inactive

OXIV2xyzabc_SAS_POOL1 online
3.75TB
105.55TB
105.55TB
inactive

BLR1STODS83001_R10_HYBRID_POOL1 online
64
128 2.33TB
47.17TB
47.17TB
47.17TB
active

248
78

33.98TB
80
off

72
1323 109.30TB
105.55TB
96
80
690
95

128

128
off
49.50TB
80
on

lsmdisk ----- displays all the disks attached to SVC

id

name status
mode mdisk_grp_id
mdisk_grp_name
ctrl_LUN_# controller_name UID tier

capacity

XIV_SAS_VOL48
online
managed
4
OXIV2xyzabc_SAS_POOL1
1.5TB 1
DC-OXIV2xyzabc
001738004f1d0df4000000000000000000000000000000000000000000000000
generic_hdd

XIV_SAS_VOL47
online
managed
4
OXIV2xyzabc_SAS_POOL1
1.5TB 2
DC-OXIV2xyzabc
001738004f1d0df3000000000000000000000000000000000000000000000000
generic_hdd

XIV_SAS_VOL46
online
managed
4
OXIV2xyzabc_SAS_POOL1
1.5TB 3
DC-OXIV2xyzabc
001738004f1d0df2000000000000000000000000000000000000000000000000
generic_hdd

--------------------------------------------------------------------------------------------------------------------------------------------------------------lshost
displays hosts created
id name

port_count iogrp_count status

DC_FRS_CLUSTER

10

degraded

DC_TSM_CLUSTER

online

DC_AML_CLUSTER

online

lsvdisk 5458 ----- 5458 is vdisk id


display the LUN details

id 1445
name RTGS2
IO_group_id 0
IO_group_name io_grp0

status online
mdisk_grp_id 6
mdisk_grp_name BLR1STODS83001_R10_HYBRID_POOL1
capacity 328.00GB
type striped

lshostvdiskmap qb4apod ---- qb4apod is host name


displays disks attached to host

id name

SCSI_id vdisk_id vdisk_name

vdisk_UID

9 DC_RTGS_CLS 0
1445
RTGS2
6005076801808641A000000000000CFF
9 DC_RTGS_CLS 1
537
RTGS_EXPORT_WIN
6005076801808641A00000000000136A

lsvdiskhostmap qbc_DC_045 ---- qbc_DC_045 is vdisk name


displays the disk host map details

id

name

SCSI_id host_id host_name

vdisk_UID

1446 RTGS_QRM 1
9
DC_RTGS_CLS
6005076801808641A000000000000D00

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

lsvdisk -filtervalue name=FCR_DATA* -delim ,


This command lists out the vdisk deatils with the name

lshost
Lists the hosts deatils

lshostvdiskmap <hostname>
This command lists the vdisks mapped to host

svctask addhost <Hostname>


This command add the host.
svctask mkhost -name OXIV2xyzabcadadsasa -hbawwpn 2100001B328169F0 force -mask 1111
svctask addhostport -hbawwpn 2101001B32A169F0 OXIV2xyzabcadadsasa
svctask addhostport -hbawwpn 10000000C95F4CB2 asdasasdasdas /* For
adding new port to SVC*/

lsvdiskhostmap <Vdisk ID or Vdisk Name>


This command gives the details of the vdisk and mapped to host

chvdisk -name <old name> <new name>


This command is used to change the name of the existing vdisk

lsrcconsistgrp -delim :
This command lists out the status of the Copy servies (GM,MM)

svctask expandvdisksize -size 1 -unit gb aix_v1


To expand the disk we use this command
Flash copy map

lsfcmap -delim :

--------------------------------------------------------------------------------------------------------------------------------------------------------------------svcinfo commandname -?
svctask commandname -?

svcinfo commandname -filtervalue? will show what output formatting


filters are available for that command and lets you reduce the level
of output

Host process commands

lshbaportcandidate
lshost
mkhost
addhostport
rmhostport
chhost
rmhost
lshostvdiskmap

VDisk process commands

lsvdisk
mkvdisk
chvdisk
rmvdisk
mkvdiskhostmap
lsvdiskhostmap
rmvdiskhostmap
expandvdisksize
shrinkvdisksize

migratevdisk
lsmigrate
lsvdiskmember
lsdiskextent

Cluster process commands

lscluster
chcluster
detectmdisk
settimezone
startstats
stopstats
stopcluster
lsiogroup
chiogroup

Node process commands

lsnode
addnode
chnode
rmnode
stopcluster -node

Storage Subsystem and Mdisk process commands

lscontroller
chcontroller
lsmdiskgroup

mkmdiskgroup
chmdiskroup
rmmdiskgroup
addmdisk
lsmdisk
chmdisk
setquorum
lsmdiskmember
lsmdiskextent
lsfreeextents
includemdisk
--------------------------------------------------------------------------------------------------------------------------------------------------------------------ssh admin@170.152.60.229 svctask mkvdisk -mdiskgrp MDG_ikw -vtype
image -iogrp xcel_io_grp0 -name ikw_vd240 -mdisk mdisk240

svcinfo lsvdisk 2396

/*Lun ID*/

svctask mkhost -name asdasasdasdasadasasa -hbawwpn 2100001B320A61F7

svcinfo lshostvdiskmap adsasaasdas


svcinfo lsvdiskhostmap Vdisk ID or Vdisk Name

lscontroller

id controller_name
product_id_low

ctrl_s/n
product_id_high

vendor_id

0 DC-OXIV2xyzabc
2810XIV-

4F1D0000
LUN-0

IBM

1 DC-BLR1STODS81001
2107900

75BHNZ10000

IBM

2 DC-BLR1STODS83001
2107900

75KG7110000

IBM

Metromirroring Status :- lsrcconsistgrp

output
======================================================================
================================================
IBM_2145:DC-xyzabc:monitor>lsrcconsistgrp
id name
master_cluster_id master_cluster_name aux_cluster_id
aux_cluster_name primary state
relationship_count
copy_type cycling_mode
0 FCR_MM_CG 0000020060219068 DC-xyzabc
abcdxyz master consistent_synchronized 208
none

000002006021904C NLmetro

1 FCC_MM_CG 0000020060219068 DC-xyzabc


abcdxyz master consistent_synchronized 173
none

000002006021904C NLmetro

2 BRN_MM_CG 0000020060219068 DC-xyzabc


abcdxyz master consistent_synchronized 91
none

000002006021904C NLmetro

3 FCAT_MM_CG 0000020060219068 DC-xyzabc


abcdxyz master consistent_synchronized 25
none

000002006021904C NLmetro

4 IMB_MM_CG 0000020060219068 DC-xyzabc


abcdxyz master consistent_synchronized 41
none

000002006021904C NLmetro

5 RTGS_MM_CG 0000020060219068 DC-xyzabc


abcdxyz master consistent_synchronized 7
none

000002006021904C NLmetro

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

In case of Sequential lun

svctask mkvdisk -mdiskgrp bld8300_1_7P -size 16 -name uslpm1604_A017 iogrp 0 -vtype seq -unit gb
In case of Stipped Lun
svctask mkvdisk -mdiskgrp mdg6_7_P_300 -iogrp 1 -size 35 -vtype
striped -unit gb -name us2211_mdg6_001

svctask mkvdisk -mdiskgrp bld8300_1_7P -size 16 -vtype seq -name


uslpm1604_A017 -mdisk MDISK Name -iogrp 0 -unit gb
svctask mkvdisk -mdiskgrp mdg11_DS6800_1 -size 35 -name
uslpms1501_L004 -iogrp 0 -unit gb
svctask mkvdisk -mdiskgrp mdg7_DS4800_1 -size 35 -vtype seq -name
acs3_mp1_221 -mdisk mdisk79 --iogrp 0 --unit gb

svctask mkvdiskhostmap -host

Host764BD_grp1 us2211_mdg6_001

svctask mkvdiskhostmap -host abcdxyzadasda -force vdisk_id


Assign in case of a cluster*/

/*To

svcinfo lsvdiskhostmap us2211_mdg6_001

svctask rmvdiskhostmap -host

sobms870 661

svctask chvdisk -name USDMS007_L001 asdasasdasdasadasasa

svctask mkhost -name OXIV2xyzabcadadsasa -hbawwpn 2100001B328169F0 force -mask 1111


svctask addhostport -hbawwpn 2101001B32A169F0 OXIV2xyzabcadadsasa
svctask addhostport -hbawwpn 10000000C95F4CB2 asdasasdasdas /* For
adding new port to SVC*/

svctask addhost asdasasdasdasadasasa

svctask rmdhostport -hbawwpn 10000000C95F4CB2 asdasasdasdas /* For


adding port from SVC*/

svcinfo lshbaportcandidate

svctask migratevdisk -vdisk u1510_1610_L012 -mdiskgrp mdg8_DS4300_1 threads 4


svcinfo lsmigrate

svctask expandvdisksize -size 200 -unit gb


svctask expandvdisksize -size 1 -unit gb aix_v1

svcinfo catauditdump /*displays only SVCTASK


memory contents)

commands*/(dispplays in-

To transfer the above in-memory content to disk then use the below
command

>svctask dumpauditlog

svctask cumpauditdump /* It clears the Audit logs*/


svcinfo lsauditlogdumps /* Displays the audit log dumps*/

>svcinfo lscluster itsosvccl1

Copy Services:

FC

svctask mkfcmap -sourceabcdxyzadasda2205_A002 targetabcdxyzadasda2205_F002 -name Map_2205_F002

svctask chfcmap -consistgrp FC_A

Map_2205_F002 (FLash Copy)

svctask startrcrelationship force primary master GM2202_1149

svctask chrcrelationship -consistgrp

GM_MPN GM220_1149

svcinfo stoprcconsistgrp access 241

svctask rmfcmap Map_2205_F002

GM

svctask mkrcrelationship -master 1191 -aux 816 -cluster BLD-SVC1 -name


GM_1191 -global

svcinfo stoprcconsistgrp access 255

svcinfo lsrcconsistgrp -delim :

svctask startrcrelationship GM2202_1149


svctask startrcconsistgrp force GM_NAME
status goes to Idiling)

(After this the

svctask stoprcconsistgrp access GM_NAME


svctask startrcconsistgrp force primary master GM_NAME
only in case GM stopped)
svctask startrcconsistgrp force primary master GM_MPN
svctask startrcconsistgrp force primary master 240

(use this

svctask startrcconsistgrp force primary master 249

svcinfo lsrcrelationship -filtervalue state=inconsistent_copying delim :

svctask mkrcconsistgrp -name GM_MPN -aux BLD-SVC2

svctask chrcconsistgrp -name GM_MPN rccstgrp0

svctask chrcrelationship -name GM2202_1150 GM_2208_1150

svctask chrcrelationship -consistgrp

GM_MPN GM_2208_1150

-> svctask detectmdisk

Manually rescan the fibre-channel network for any new managed disks
(MDisks)

-> svcinfo lsdetectmdiskcandidate

This is used to detect the unmanaged mdisks

-> svctask mkmdiskgrp name New_MdiskGrp_Name


It returns an unique ID after creating new Mdisk Grp

# svctask migratevdisk -vdisk 4 -mdiskgrp Group0 -threads 2

This is command to migrate one vdisk to other in different mdiskgrp,


threads 2 refers to the CPU process, if no of threads increases
that will complete the migrations faster and it will reduce the number
of vidisks parallely migrated at a time, default # of threads are 4

For 8G4 node cluster the best practice is go with 8 vdisk migrations
with 4 threads
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

Potrebbero piacerti anche