[ LUN 생성 ]
svctask mkvdisk -mdiskgrp 0 -name TEST-VOL -size 53687091200 -unit b

svctask mkvdisk -cache readwrite -copies 1 -iogrp io_grp0 -mdiskgrp Pool -name TEST-VOL -size 10 -syncrate 50 -unit gb -vtype striped

svctask mkvdisk -cache readwrite -copies 1 -iogrp io_grp0 -mdiskgrp Pool0 -name CLI-VOL -size 10 -syncrate 100 -unit gb -vtype striped


[ Mapping Host ]

#lshost
-> hostid 검색

#lsvdisk
-> Volume ID 검색

#lsarray

#lshostvdiskmap
-> Host mapping 확인


svctask mkvdiskhostmap -force -host 6 24

svctask mkvdiskhostmap -force -host 3 -scsi 2 5
svctask mkvdiskhostmap -force -host 3 5

삭제 svctask rmvdiskhostmap -host 3 5

 

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

Get to know all the SVC commands in CLI

NOTE: Vol names and host names are as per their "CASE" ..
 
SVCTASK COMMANDS:
 
01) svctask mkvdiskhostmap -force -host host_name volume_name   ( to force map host)
02) svctask expandvdisksize/shrinkvdisksize -size 30 -unit gb diskname ( to expand/shrink vdisk)
03) svctask mkhost -force -hbawwpn 10000000C9B0FA1C:10000000C9C0CCC2 -mask 1111 -name host_name -type generic   ( to create a new host)
04) svctask mkvdisk -autoexpand -cache readwrite -copies 1 -grainsize 32 -iogrp io-grp0 -mdiskgrp group_name -name disk_name -rsize 2% -size 50 -syncrate 50 -unit gb -vtype striped    (to create new thin disk)
05) svctask mkrcrelationship -aux aux_volume -cluster 0000020060802D48 -master master_volume   ( to enable new PPRC)
07) svctask mkrcconsistgrp -cluster 0000020060802D48 -name group_name   (to create empty consist group )
08) svctask addhostport -force -hbawwpn 10000000C9F219AC host_name   ( to add FC port to host)
09) svctask stoprcconsistgrp -access group_name  ( to stop pprc and give mount access)
10) svctask startrcconsistgrp -primary master/aux -force group_name    ( to start the pprc)
11) svctask migratevdisk -mdiskgrp mdiskgrp_name -vdisk disk_name   ( to migrate vdisk to new group) 
12) svctask rmvdisk -force vdisk_name    ( to remove a lun)
13) svctask chvdisk -name new_name actual_name  ( rename a lun)
14) svctask shrinkvdisksize -size zz -unit gb disk_name
15) svctask mkuser -name user_name -usergrp group_name -password xxxxxxx
16) svctask stopsystem -node 5   ( shutdown node )
16) svctask chrcconsistgrp -name new_name rc_name
18) svctask chuser -password xxxxx user_id  ( to change password)

SVCINFO COMMANDS:
 
01) svcinfo lsvdiskhostmap volume_name  ( to find all host mappings to a volume)
02) svcinfo lsvdisk -filtervalue name=volume_name    ( to get details of the volume)
03) svcinfo lsvdisk -filtervalue vdisk_UID= uid      ( to get details of the volume)
04) svcinfo lsfabric -wwpn 110021200212   ( to know wwpn belongs to which host)
05) svcinfo lsfabric -host hostname   ( to know wwpn mappings of specific host)
06) svcinfo lshostvdiskmap host_name ( to see disks mapped to hosts)
07) svcinfo lsrcconsistgrp (gives list of consistency gropus)
08) svcinfo lsvdisksyncprogress  ( to see the PPRC copy status)
09) svcinfo lscopystatus ( to see PPRC coopy status)

'잡동사니' 카테고리의 다른 글

2열 시트 커버  (0) 2016.08.09
거실  (0) 2016.07.05
[투싼ix] 도어내캐치  (1) 2016.04.04
[투싼ix] 클러스터 이오나이저  (0) 2016.04.04

+ Recent posts