본문 바로가기

개발 및 운영118

BTRFS 복구 https://ownyourbits.com/2019/03/03/how-to-recover-a-btrfs-partition/ 잘 설명되어있는 사이트! # btrfs restore /dev/sdXY /restore/ 마운트가 안되는 상태에서 위 명령어로 복구 가능 --- 아래는 번역 오류가 나면... 먼저 scrubing을 시도 합니다. 체크섬을 사용하여 데이터 무결성을 검사하고 손상된 데이터를 복구하려고 시도합니다. scrubing는 안전한 것으로 간주되며 일반적으로 가장 먼저 시도해야 합니다. scrub 시작 # btrfs scrub start /mnt scrub 상태보기 # btrfs scrub status /mnt 일반적으로 몇 시간이 걸립니다 이렇게 하면 가능한 한 많이 해결되지만 모든 문제를 해결.. 2019. 11. 22.
Kubernetes yaml 자동 생성기 Kubernetes에서 사용할 Deployment/Service설정 yaml을 온라인 상에서 GUI로 만들 수 있게ㅜ도와주는걸 만들었습니다. https://jc-lab.github.io/auto-generator/#/ kube-yaml-generator jc-lab.github.io github에 소스 공개되어 있으니 기능 추가 및 개선 PR주심 넘나 감사! https://github.com/jc-lab/auto-generator/ jc-lab/auto-generator Contribute to jc-lab/auto-generator development by creating an account on GitHub. github.com 2019. 11. 9.
Webpack + openpgp시 Error: Cannot find module 'stream' 오류 openpgp을 사용하는 프로젝트를 webpack으로 번들링하면 아래와 같은 오류가 발생한다. Error: Cannot find module 'stream' at o (/bundle.js:4293:292) at /bundle.js:4293:449 at Object. (/bundle.js:28885:38) at Object.76.stream (/bundle.js:28943:4) at o (/bundle.js:4293:398) at /bundle.js:4293:449 at Object. (/bundle.js:28422:13) at Object.75../node-conversions (/bundle.js:28875:4) at o (/bundle.js:4293:398) at /bundle.js:4293:449 .. 2019. 11. 8.
Error: Cannot find module 'electron' 문제발생시 INFO Launching Electron... internal/modules/cjs/loader.js:630 throw err; ^ Error: Cannot find module 'electron' Require stack: - ...\electron-output\index.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:627:15) at Function.Module._load (internal/modules/cjs/loader.js:531:27) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/.. 2019. 11. 1.
AWS NAT Instance 포트포워딩시 Source IP 유지하기 https://gist.github.com/jc-lab/b80aa4183c0f8c3971260ac2ee49443d AWS NAT Instance configure-pat.sh for Keep source ip AWS NAT Instance configure-pat.sh for Keep source ip - configure-pat.sh gist.github.com 기존에는 configure-pat.sh에 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 으로 되어있는데 이러면 내/외부 모든 패킷에 MASQUERADE가 적용되어 DNAT를 이용한 Port Forwarding시 Source IP가 NAT Instance의 IP으로 변하게 됩니다. 따라서 MySQL.. 2019. 10. 26.
AWS Lambda 기본 (삽질기) 요즘 AWS Lambda를 써보는데 기본적인 걸로 삽질을 했다..ㅋㅋ 1. VPC의 Subnet는 기본적으로 서로 통신이 가능하다. 삽질한 내용은 아니지만 기본적인 내용인데 인터넷을 보면 잘못 설명한 글이 몇몇 있었다. 한 VPC내의 모든 Subnet들은 라우터로 연결된 것으로 묘사되는데 서로 통신이 가능하단 뜻이다. 2. API Gateway이랑 연동할 때 Lambda에서 Timeout발생시 502 Bad Gateway가 뜬다. 3. Security Group는 Rule이 없으면 기본적으로 모든 Inbound를 거부한다. 4. Lambda를 VPC로 연결했을 때 기본적으로 AWS Service에 연결할 수 없다. 따라서 VPC에 Endpoint를 만들어서 외부 endpoint가 아닌 VPC 내부의 en.. 2019. 10. 24.
반응형