========================================================
Avamar 서버의 용량이 Full 되어 GC 실행 안될 시 진행 방법 ( v7.1 이하 만 진행 )
========================================================
1. GC 실행환경 확인(default, Avamar Version 5.0.3.29)
--------------------
# avmaint config --avamaronly | grep -i disk
disknocreate="90"
disknocp="96"
disknogc="85"
disknoflush="94"
diskwarning="50"
diskreadonly="65"
disknormaldelta="2"
2. GC 실행환경 변경
-------------------
아래내용 순서대로 변경(적용 될때까지)
avmaint config --ava disknocp=99
avmaint config --ava disknoflush=98
avmaint config --ava disknocreate=97
avmaint config --ava disknogc=96
avmaint config --ava diskreadonly=70
avmaint config --ava disknocp=96
avmaint config --ava disknoflush=94
avmaint config --ava disknocreate=90
avmaint config --ava disknogc=85
avmaint config --ava diskreadonly=65
asynccrunching : true(default) --> false
----------------------------------------
변경전 값 확인
--------------
#: avmaint config --avamaronly | grep -i async
asynccrunching="true"
변경 명령어
-----------
#: avmaint config --avamaronly asynccrunching=false
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gsanconfig asynccrunching="true"/>
변경후 값 확인
--------------
#: avmaint config --avamaronly | grep -i async
asynccrunching="false"
diskreadonly : 65(default) --> 70 ~ 75
--------------------------------------
변경전 값 확인
--------------
#: avmaint config --avamaronly | grep -i diskreadonly
diskreadonly="65"
변경 명령어
-----------
#: avmaint config diskreadonly=70 --avamaronly
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gsanconfig disknogc="65"/>
변경 후 값 확인
---------------
#: avmaint config --avamaronly | grep -i diskreadonly
diskreadonly="70"
3. Garbagecollect Run
---------------------
#: su - dpn
ID 확인
-------
/>: id
uid=502(dpn) gid=500(admin) groups=500(admin) context=user_u:system_r:unconfined_t
ssh-key loading
---------------
/>: ssh-agent bash
/>: ssh-add /home/dpn/.ssh/dpnid
GC run
------
/>: echo "/usr/local/avamar/bin/cron_env_wrapper gc_cron --timeout=14400 --noconversion" | at now
tail -f /usr/local/avamar/var/cron/gc.log
garbagecollect start
1. maint sched stop
command : dpnctl stop maint
2. gc run
command : avmaint garbagecollect --ava --kill=0 --maxpass=0 --refcheck=true --maxtime=14400
3. gc end
gc end check
command : avmaint gcstatus
--> gc runing : status="processing"
--> gc end : status="idle"
4. if status="idle" than run maint sched stop
maint sched stop
command : dpnctl start maint
***
#!/bin/bash
su - dpn<<EOF
ssh-agent bash
ssh-add ~/.ssh/dpnid
avmaint garbagecollect --ava --kill=0 --maxpass=0 --refcheck=true --maxtime=28800
EOF
****
/root/gc_script/gc_start.sh
4. 참고 사항
gc_cron optin
-------------
dpn@avamar:~/>: gc_cron --help
Flags: --ap --bindir --convcount --conversion --convtime --duplog --error --expert --flagfile --full --gccount --hfsaddr --id --infomsgs --inside --killsnapups --limitadjust --logfile --mcserver --n --nodes --outside --override --passes --password --pollrate --probedir --pswd --q --quiet --refcheck --run --runasanyuser --savesysinfo --server --throttlelevel --timeout --timestamps --usehistory --user --v --vardir --verbose
gc_corn option
dpn@avamar:~/>: gc_cron --full --timeout=7200 --verbose
2009/07/09-09:33:06 avmaint garbagecollect --throttlelevel=0 --maxtime=7200 --maxpass=0 --usehistory=false --avamaronly
2009/07/09-09:33:06 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2009/07/09-09:33:06 <garbage-collect-params
2009/07/09-09:33:06 gccount="0"
2009/07/09-09:33:06 refcheck="true"
2009/07/09-09:33:06 killsecs="0"
2009/07/09-09:33:06 maxtime="7200"
2009/07/09-09:33:06 maxpass="0"
2009/07/09-09:33:06 throttle="0"
2009/07/09-09:33:06 usehistory="false"
2009/07/09-09:33:06 limitadjust="0"/>
2009/07/09-09:33:06 ======== awaiting garbage collection completion ========
dpn@avamar:~/>: gc_cron --gccount=1 --throttlelevel=1 --timeout=7200
2009/07/09-09:36:58 avmaint garbagecollect --gccount=1 --throttlelevel=1 --maxtime=7200 --maxpass=0 --usehistory=false --avamaronly
2009/07/09-09:36:58 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2009/07/09-09:36:58 <garbage-collect-params
2009/07/09-09:36:58 gccount="1"
2009/07/09-09:36:58 refcheck="true"
2009/07/09-09:36:58 killsecs="0"
2009/07/09-09:36:58 maxtime="7200"
2009/07/09-09:36:58 maxpass="0"
2009/07/09-09:36:58 throttle="1"
2009/07/09-09:36:58 usehistory="false"
2009/07/09-09:36:58 limitadjust="0"/>
2009/07/09-09:36:58 ======== awaiting garbage collection completion ========
dpn@avamar:~/>: gc_cron --gccount=1 --timeout=7200
2009/07/09-09:47:11 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2009/07/09-09:47:11 <garbage-collect-params
2009/07/09-09:47:11 gccount="1"
2009/07/09-09:47:11 refcheck="true"
2009/07/09-09:47:11 killsecs="0"
2009/07/09-09:47:11 maxtime="7200"
2009/07/09-09:47:11 maxpass="0"
2009/07/09-09:47:11 throttle="0"
2009/07/09-09:47:11 usehistory="false"
2009/07/09-09:47:11 limitadjust="0"/>
2009/07/09-09:47:11 ======== awaiting garbage collection completion ========
avmaint garbagecollect --ava --kill=0 --maxpass=0 --refcheck=true --maxtime=14400
1시간 : 3600
2시간 : 7200
3시간 : 10800
4시간 : 14400
5시간 : 18000
6시간 : 21600
'Backup Solution & IT Study > DellEMC' 카테고리의 다른 글
[IDPA DP*]DellEMC IDPA DP 점검 명령어 ( IDPA DP Status Check) (0) | 2021.03.02 |
---|---|
[Avamar]Checkpoint , GC Manual 진행 방법 (0) | 2021.03.02 |
[Avamar]Avamar Power on & off 방법 (1) | 2021.03.02 |
[Avamar]Avamar rollback 방법 (401) | 2021.03.02 |
[Avamar]VMDK 파일 복구 명령어 (0) | 2021.03.02 |
댓글