github 에서 배포 전용키를 넣을 때 여러 고민에 빠지게 된다.

- 만약 배포에 레파지토리를 접근해야한다면?
- 여러 배포키를 등록하는 것이 관리상 어렵다면?


등등 배포에 대한 고민과 머신 전용 키 관리에 여러 고민이 있게 되는데,
github 는 다음과 같이 심플하게 처리하란다.

https://developer.github.com/guides/managing-deploy-keys/

- 머신에서 사용하는 전용 account 를 만든다.
- 그 account 에 deploy key 를 추가한다.
- 그 account 를 team 에 추가하거나 collaborator 로 추가한다.

그럼 사용중인 키 (공개키, 비밀키) 가 어떤 계정에 연결되어 있는지 확인을 하려면?

https://help.github.com/articles/error-key-already-in-use/

ssh -T -ai ~/.ssh/id_rsa git@github.com

이렇게 하면 어떤 계정의 어떤 레파지토리에 연결되어 있는지 확인해준다.

Posted by 눈빛마음
:

Ubuntu 에서 Dell Raid Controller 를 다루려면 아무래도 이것저것 신경이 쓰인다.

그걸 그냥 놓치고 있자니 디스크가 언제 Fail 날지도 모르고, 매주 방문해서 쳐다보고 있기도 뭐하고...

다음의 URL 을 참고해서 관리툴을 설치하자!

http://www.linuxcat.org/showthread.php?tid=68

#/etc/apt/sources.list 에 다음의 내용 추가 (물론 각자 패키지에 맞게 수정 요함)

"deb http://hwraid.le-vert.net/ubuntu precise main"


그 다음엔 패키지 키 추가

wget -O - http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add -


그리고 실제 패키지 설치

apt-get install megacli megactl megaraid-status


그러면 다음과 같은 명령어들을 쓸수 있게 된다.

# megacli -LDInfo -Lall -aALL

# megacli -PDList -aALL

# megacli -AdpEventLog -GetEvents -f logfile -aALL


이 명령어들을 어떻게 봐야 하냐고? 그건 직접 보셔야 할 듯..

그치만 다행이(?) Fail 난 로그 하나를 여러분께 나눌 수 있게 되어 나눕니다~

# megacli -LDInfo -Lall -aALL



Adapter 0 -- Virtual Drive Information:

Virtual Drive: 0 (Target Id: 0)

Name                :

RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0

Size                : 557.75 GB

Sector Size         : 512

Mirror Data         : 557.75 GB

State               : Degraded

Strip Size          : 64 KB

Number Of Drives per span:2

Span Depth          : 2

Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU

Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU

Default Access Policy: Read/Write

Current Access Policy: Read/Write

Disk Cache Policy   : Disk's Default

Encryption Type     : None

Default Power Savings Policy: Controller Defined

Current Power Savings Policy: None

Can spin up in 1 minute: Yes

LD has drives that support T10 power conditions: Yes

LD's IO profile supports MAX power savings with cached writes: No

Bad Blocks Exist: No

Is VD Cached: Yes

Cache Cade Type : Read Only




Exit Code: 0x00

이건 정상일 때의 메시지 입니다.


# megacli -LDInfo -Lall -aALL



Adapter 0 -- Virtual Drive Information:

Virtual Drive: 0 (Target Id: 0)

Name                :

RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0

Size                : 557.75 GB

Sector Size         : 512

Mirror Data         : 557.75 GB

State               : Optimal

Strip Size          : 64 KB

Number Of Drives per span:2

Span Depth          : 2

Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU

Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU

Default Access Policy: Read/Write

Current Access Policy: Read/Write

Disk Cache Policy   : Disk's Default

Encryption Type     : None

Default Power Savings Policy: Controller Defined

Current Power Savings Policy: None

Can spin up in 1 minute: Yes

LD has drives that support T10 power conditions: Yes

LD's IO profile supports MAX power savings with cached writes: No

Bad Blocks Exist: No

Is VD Cached: Yes

Cache Cade Type : Read Only




Exit Code: 0x00


Posted by 눈빛마음
:

# sudo apt-get install python-setuptools
# sudo easy_install pip
# sudo pip install virtualenv

Posted by 눈빛마음
:

카테고리

분류 전체보기
Secret
일기
개인 기록
IT

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

달력

«   2024/03   »
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
31

글 보관함