[리눅스 실무 기초 #11] 서버의 비명을 듣는 법: top 명령어 완벽 해부와 프로세스 관리

엔지니어로 살다 보면 서비스가 갑자기 느려지거나 응답이 없는 절체절명의 순간을 마주하게 됩니다. 9~10편에서 로그를 통해 과거의 흔적을 쫓았다면, 이번에는 **”지금 누가 내 서버의 자원을 갉아먹고 있는가?”**라는 질문에 답할 차례입니다. 오늘은 서버의 건강 상태를 진단하는 top 명령어와 그 대안인 htop, 그리고 문제 프로세스를 검거하고 처단하는 ps, kill의 디테일을 알아보겠습니다. 1. 실시간 시스템 진단 차트: top 읽는 … 더 읽기

[Linux Fundamentals #10] How to Use Linux tail -f and Tips for Analyzing Large Logs

(For the Korean version, click here) For an engineer, logs are like “SOS signals sent by the server.” If we learned how to find the right files in Part 9, it is now time to read and interpret the messages pouring out of them in real-time. Today, we will cover real-time log monitoring techniques—how to pinpoint … 더 읽기

[리눅스 실무 기초 #10] 리눅스 로그 확인 tail -f 사용법과 대용량 로그 분석 꿀팁

엔지니어에게 로그는 **’서버가 보내는 구조 신호’**와 같습니다. 9편에서 우리가 원하는 파일을 찾아냈다면, 이제는 그 파일 안에서 실시간으로 쏟아지는 메시지를 읽고 해석할 차례입니다. 수백 메가바이트가 넘는 거대 로그 파일 앞에서 당황하지 않고, 지금 당장 벌어지는 에러만 콕 집어내는 실시간 로그 모니터링 기술을 알아보겠습니다. 1. 실시간 감시의 정석: tail -f tail은 원래 파일의 뒷부분만 보여주는 명령어입니다. 하지만 … 더 읽기

[Linux Fundamentals #9] find, egrep, xargs: ‘Server Investigation Techniques’ to Pinpoint Exactly What You Need

(For the Korean version, click here) For an engineer, digging through logs is a daily occurrence. Whether you are troubleshooting an outage or tracing system flow, logs are the first place you look. In a sea of tens of thousands of files, how quickly you find the data you need defines your skill level—and is the … 더 읽기

[리눅스 실무 기초 #9] find, egrep, xargs: 원하는 것만 콕 집어내는 ‘서버 수사 기법’

엔지니어로 살면서 로그(log)를 까보는 건 그야말로 일상다반사입니다. 장애가 발생했을 때나 시스템의 흐름을 파악해야 할 때 가장 먼저 찾게 되는 것이 바로 로그인데, 이때 수만 개의 파일 사이에서 원하는 데이터를 얼마나 빨리 찾아내느냐가 곧 엔지니어의 실력이자 ‘칼퇴’의 지름길입니다. 오늘은 파일 수색의 탐정 find, 내용 검색의 해결사 egrep, 그리고 이 둘을 이어주는 xargs를 통해 강력한 검색 한 … 더 읽기

[Linux Fundamentals #8] LVM Deletion: Your Skills as an Engineer are Proven during Deletion

(For the Korean version, click here) Creating is easy. However, true expertise is revealed during ‘deletion.’ In virtualization or cloud environments, you often encounter a “Busy” or “Cannot be removed” message when trying to delete a volume. This happens because the OS still recognizes and is actively using that volume. A truly ‘clean deletion’ doesn’t just … 더 읽기

[리눅스 실무 기초 #8] LVM 삭제: 지우는 걸 보면 엔지니어 실력이 보입니다

가상화나 클라우드 환경에서 사용 중인 볼륨을 삭제하려고 할 때, 종종 “사용 중이라 제거할 수 없다”는 메시지를 마주하게 됩니다. 이는 OS가 여전히 해당 볼륨을 인식하고 사용 중이기 때문에 발생하는 현상입니다. 진정한 ‘깔끔한 삭제’는 단순히 콘솔 버튼을 누르는 것이 아니라, VM 내부에서 안전하게 연결을 끊는 것부터 시작됩니다. OS에서 마운트를 풀고 LVM 구조를 순서대로 걷어내야 물리적인(혹은 가상적인) 디스크 … 더 읽기

[Linux Fundamentals #7] Expanding LVM: Resizing Storage Without the Drama

(For the Korean version, click here) In our last post, we covered the basics of LVM. Today, we’re diving into the “killer feature” of LVM: Online Expansion. If you’re a sysadmin, you’ve probably heard this before: “The /data partition is at 90%! We need more space ASAP!” In the old days, this was a total … 더 읽기

[리눅스 실무 기초 #7] LVM 용량 확장: 서비스 중단 없이 디스크 늘리기

지난 글에서 LVM의 기초를 다뤘다면, 오늘은 LVM의 진정한 꽃이라 할 수 있는 **’온라인 확장’**을 해보겠습니다. 서버를 운영하다 보면 이런 상황이 꼭 옵니다. “/data 용량이 90%가 넘었어요! 빨리 늘려주세요!” 과거에는 데이터를 백업하고, 더 큰 하드로 교체하고, 다시 복구하는 눈물겨운 작업을 해야 했죠. 하지만 LVM은 다릅니다. 서비스 중단 없이, 데이터 삭제 없이 그냥 새 하드디스크를 기존 영역에 … 더 읽기

[Linux Fundamentals #6] Adding a New Drive and Setting Up LVM (The Pro Way)

(For the Korean version, click here) Now that we’ve got Rocky Linux running from our last post, let’s give it some more breathing room. We’re going to add a new hard drive and set up a proper storage area. You might ask, “Why not just use a simple partition?” Honestly, in a real production environment, … 더 읽기