달력

11

« 2017/11 »

  •  
  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  •  
  •  

'Veritas'에 해당되는 글 2

  1. 2013.10.11 Veritas 스토리지 iostat정보
  2. 2013.10.10 Veritas 스토리지 정보 보는 명령어 모음

iostat 과 veritas 디스크 볼류정보및 구성정보보는 명령어로 아무리 iostat과 매칭하려고 해도 되지 않아서 

이것저것 찾아본결과 베리타스명령어에서 제공하는 것이 있었다.... 젠장....

# vmstat -help

usage: vmstat [-V] [-n] [delay [count]]

              -V prints version.

              -n causes the headers not to be reprinted regularly.

              -a print inactive/active page stats.

              -d prints disk statistics

              -D prints disk table

              -p prints disk partition statistics

              -s prints vm table

              -m prints slabinfo

              -t add timestamp to output

              -S unit size

              delay is the delay between updates in seconds. 

              unit size k:1000 K:1024 m:1000000 M:1048576 (default is K)

              count is the number of updates.

# vxstat -u m -g oradata

                      OPERATIONS          BYTES           AVG TIME(ms)

TYP NAME              READ     WRITE      READ     WRITE   READ  WRITE 

vol vol1          17608816  72956948 1153817.2773m 638245.1098m   0.10   0.03 


아래는 iostat 처럼 인터벌시간과 횟수를 주고  돌게하는 예제 .. 이제야 찾음

# vxstat -g oradata -i 1 -c 100 -d  

                      OPERATIONS          BLOCKS           AVG TIME(ms)

TYP NAME              READ     WRITE      READ     WRITE   READ  WRITE 


Fri 11 Oct 2013 03:38:46 PM KST

dm  fuckveritas          0         0         0         0   0.00   0.00 

dm  oradata01     17608819  72957249 2363017808 1307130951   0.09   0.03 


Fri 11 Oct 2013 03:38:47 PM KST

dm  fuckveritas          0         0         0         0   0.00   0.00 

dm  oradata01            0         0         0         0   0.00   0.00 


Fri 11 Oct 2013 03:38:48 PM KST

dm  fuckveritas          0         0         0         0   0.00   0.00 

dm  oradata01            0         0         0         0   0.00   0.00 


Fri 11 Oct 2013 03:38:49 PM KST

dm  fuckveritas          0         0         0         0   0.00   0.00 

dm  oradata01            0         4         0        66   0.00   0.50 


신고
Posted by ORACLE,DBA,BIG,DATA,JAVA 흑풍전설

DB 이관을 하는데 스토리지 이슈가 하도 많아서 고생을 했다.
VERITAS 장비인데 관련 명령어를 남기려고 한다.

 

1. 디스크 그룹 정보 보기

# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
fas32200_4   auto:cdsdisk    oradata01    oradata      online thinrclm
fas32200_5   auto:cdsdisk    orasys01     oracle       online thinrclm
fas32200_7   auto:cdsdisk    orasys01     orasys       online thinrclm
fas32200_8   auto:cdsdisk    oratemp01    oratemp      online thinrclm
sda          auto:none       -            -            online invalid
-            -         fuckveritas  oradata      removed was:fas32200_6
비슷한명령어 : vxdisk -o alldgs list

 

2. 특정디스크 그룹의 정보보기

# vxdg list oradata
Group:     oradata
dgid:      1375321897.11.hostname.com
import-id: 1024.94
flags:     cds
version:   180
alignment: 8192 (bytes)
ssb:            on
autotagging:    on
detach-policy: global
dg-fail-policy: obsolete
ioship: off
copies:    nconfig=default nlog=default
config:    seqno=0.1788 permlen=51360 free=51354 templen=4 loglen=4096
config disk fas32200_4 copy 1 len=51360 state=clean online
log disk fas32200_4 copy 1 len=4096

 

3. 특정 디스크 그룹의 남은 용량

# vxdg -g oradata free ( spare 는 남은 장비까지 정보인듯 )
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
oradata01    fas32200_4   fas32200_4   10737350656 1744      -

 

4. 디스크 상세 정보 볼때

# vxprint -g oradata -l
Group:    oradata
info:     dgid=1375321897.11.hostname.com noautoimport
version:  180
alignment: 8192 (bytes)
detach-policy: global
dg-fail-policy: dgdisable
ioship: off
copies:   nconfig=default nlog=default
devices:  max=32767 cur=1
minors:   >= 25000
cds=on

Disk:     fuckveritas
assoc:    removed (most recent device: fas32200_6)
mediatype: unknown
Disk:     oradata01
info:     diskid=1375321897.9.hostname.com
assoc:    device=fas32200_4 type=auto
flags:    autoconfig
device:   path=/dev/vx/dmp/fas32200_4s3
devinfo:  publen=10737352400 privlen=65536
mediatype: hdd
Subdisk:  oradata01-01
info:     disk=oradata01 offset=0 len=10737350656
assoc:    vol=vol1 plex=vol1-01 (offset=0)
flags:    enabled busy
device:   device=fas32200_4 path=/dev/vx/dmp/fas32200_4s3 diskdev=201/67
mediatype: hdd
Plex:     vol1-01
info:     len=10737350656
type:     layout=CONCAT
state:    state=ACTIVE kernel=ENABLED io=read-write
assoc:    vol=vol1 sd=oradata01-01
flags:    busy complete
mediatype: hdd
Volume:   vol1
info:     len=10737350656
type:     usetype=fsgen
state:    state=ACTIVE kernel=ENABLED cdsrecovery=0/0 (clean)
assoc:    plexes=vol1-01
          exports=(none)
policies: read=SELECT (round-robin) exceptions=GEN_DET_SPARSE
flags:    open writeback thinreclaim
logging:  type=REGION loglen=0 serial=0/0 mapalign=0 maplen=0 nummaps=64 (disabled)
apprecov: seqno=0/0
recovery: mode=default
recov_id=0
device:   minor=25000 bdev=199/25000 cdev=199/25000 path=/dev/vx/dsk/oradata/vol1
perms:    user=root group=root mode=0600
guid: {8094a294-fa61-11e2-b14f-2bad5275fc54}
tp_alloc_size: 4096
mediatype: hdd

# vxprint -g oradata -vt
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE

v  vol1         -            ENABLED  ACTIVE   10737350656 SELECT -        fsgen

신고
Posted by ORACLE,DBA,BIG,DATA,JAVA 흑풍전설