[리눅스 실무 기초 #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, … 더 읽기

[리눅스 실무 기초 #6] 새 하드디스크 추가 및 LVM 설정 (/data 영역 확장)

지난 5편에서 Rocky Linux를 깔끔하게 설치해 봤으니, 이제 실제로 하드디스크를 하나 더 꽂아서 용량을 늘리는 작업을 해보겠습니다. 보통 “그냥 파티션 나눠서 쓰면 안 되나?”라고 생각하실 수도 있지만, 실무에서는 99% **LVM(Logical Volume Manager)**을 씁니다. 운영 중에 갑자기 “용량 모자라요!”라는 요청이 들어왔을 때, 서비스 중단 없이 디스크를 슥 늘릴 수 있는 유연함 때문이죠. 오늘 작업은 root 권한으로 … 더 읽기

[Linux Fundamentals #5] Rocky Linux 9.7 Minimal Install: Why Do This in a “One-Click” World?

(For the Korean version, click here) We live in an era where you can spin up a server with just a single click—a “one-click setup”—on cloud platforms like AWS or GCP. It’s incredibly convenient. So, it’s fair to ask: “Does an engineer really need to know how to install an OS manually anymore?” In my … 더 읽기

[리눅스 실무 기초 #5] Rocky Linux 9.7 Minimal 설치: 클릭 한 번이면 끝나는 시대에 이걸 왜 할까?

요즘은 AWS나 GCP 같은 클라우드 환경에서 클릭 몇 번, 이른바 ‘딸깍’ 한 번이면 OS 설치가 완료되는 시대입니다. 참 편리하고 빠른 세상이죠. 그런데 여기서 이런 의문이 들 수 있습니다. “과연 엔지니어가 이 수동 설치 과정을 굳이 해볼 필요가 있을까?” 제 생각은 이렇습니다. 클라우드가 제공하는 이미지만 가져다 쓰면, OS는 우리에게 그저 내부를 알 수 없는 **’블랙박스’**일 뿐입니다. … 더 읽기

[Linux Fundamentals #4] The Essential Lifeline for Low-Spec Servers: Swap Memory Setup Guide

(For the Korean version, click here) Introduction: Why Services Stop Without Warning When operating AWS Lightsail or small cloud instances (with 1GB to 2GB of RAM), the most common issue you’ll face is the ‘DB going down due to out-of-memory’ errors. (Though I haven’t personally encountered this on AWS Lightsail yet!) When available memory is … 더 읽기

[리눅스 실무 기초 #4] 저사양 서버의 필수 생명줄: Swap 메모리 설정 가이드

서론: 서비스가 예고 없이 멈추는 이유 AWS Lightsail이나 소형 클라우드 인스턴스(RAM 1GB~2GB)를 운영하다 보면 가장 자주 마주치는 문제가 바로 ‘메모리 부족으로 인한 DB 다운’ 현상입니다.(AWS Lightsail에서는 아직 이 현상을 확인하지는 않았어요) 리눅스 커널은 가용 메모리가 고갈되면 시스템 보호를 위해 특정 프로세스를 강제로 종료하는 OOM(Out of Memory) Killer를 작동시키는데, 대개 그 타겟은 메모리 점유율이 높은 MySQL이나 … 더 읽기

[Linux Fundamentals #3] Creating a Personal Admin Account and Setting Up Passwordless sudo

(For the Korean version, click here) Introduction: Why Use a Personal Account Instead of the Default? When you first create an AWS Lightsail or EC2 instance, you are typically provided with a default account like bitnami or ubuntu. However, to manage a server effectively or to leave a clear trail of your own administrative actions, … 더 읽기