<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>System Administration Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<atom:link href="https://lycos7560.com/tag/system-administration/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>생각의 흐름을 타고 다니며 만드는 블로그</description>
	<lastBuildDate>Mon, 16 Mar 2026 21:01:51 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://lycos7560.com/wp-content/uploads/2022/11/cropped-cropped-cropped-log-1-150x150-1-80x80.png</url>
	<title>System Administration Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>LVM(Logical Volume Manager) 구조 및 개념</title>
		<link>https://lycos7560.com/etc/lvmlogical-volume-manager-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ea%b0%9c%eb%85%90/40489/</link>
					<comments>https://lycos7560.com/etc/lvmlogical-volume-manager-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ea%b0%9c%eb%85%90/40489/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Sun, 22 Feb 2026 16:13:57 +0000</pubDate>
				<category><![CDATA[기타]]></category>
		<category><![CDATA[AIX admin]]></category>
		<category><![CDATA[AIX hdisk]]></category>
		<category><![CDATA[AIX LVM]]></category>
		<category><![CDATA[AIX storage]]></category>
		<category><![CDATA[Block Device]]></category>
		<category><![CDATA[Data Storage]]></category>
		<category><![CDATA[Disk allocation]]></category>
		<category><![CDATA[disk device]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[Disk Partition]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[Extent]]></category>
		<category><![CDATA[FC storage]]></category>
		<category><![CDATA[Fibre Channel]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[FileSystem]]></category>
		<category><![CDATA[hdisk]]></category>
		<category><![CDATA[hdisk0]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[IT infrastructure]]></category>
		<category><![CDATA[IT 인프라]]></category>
		<category><![CDATA[JFS]]></category>
		<category><![CDATA[JFS2]]></category>
		<category><![CDATA[LE]]></category>
		<category><![CDATA[Linux admin]]></category>
		<category><![CDATA[Linux LVM]]></category>
		<category><![CDATA[Linux storage]]></category>
		<category><![CDATA[Logical Disk]]></category>
		<category><![CDATA[Logical Extent]]></category>
		<category><![CDATA[Logical Partition]]></category>
		<category><![CDATA[Logical storage]]></category>
		<category><![CDATA[Logical Unit Number]]></category>
		<category><![CDATA[Logical Volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LP]]></category>
		<category><![CDATA[lsdev]]></category>
		<category><![CDATA[lslv]]></category>
		<category><![CDATA[lspv]]></category>
		<category><![CDATA[lsvg]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[lvdisplay]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[LVM architecture]]></category>
		<category><![CDATA[LVM concept]]></category>
		<category><![CDATA[LVM hierarchy]]></category>
		<category><![CDATA[LVM 개념]]></category>
		<category><![CDATA[LVM 계층 구조]]></category>
		<category><![CDATA[LVM 구조]]></category>
		<category><![CDATA[lvs]]></category>
		<category><![CDATA[Mirroring]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[mount point]]></category>
		<category><![CDATA[PE]]></category>
		<category><![CDATA[Physical Disk]]></category>
		<category><![CDATA[Physical Extent]]></category>
		<category><![CDATA[Physical Partition]]></category>
		<category><![CDATA[Physical storage]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PP]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[pvdisplay]]></category>
		<category><![CDATA[pvs]]></category>
		<category><![CDATA[Quorum]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[SAN storage]]></category>
		<category><![CDATA[Server storage]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Storage admin]]></category>
		<category><![CDATA[Storage architecture]]></category>
		<category><![CDATA[Storage concept]]></category>
		<category><![CDATA[Storage hierarchy]]></category>
		<category><![CDATA[Storage layer]]></category>
		<category><![CDATA[storage management]]></category>
		<category><![CDATA[Storage pool]]></category>
		<category><![CDATA[Storage virtualization]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[UNIX admin]]></category>
		<category><![CDATA[UNIX LVM]]></category>
		<category><![CDATA[UNIX storage]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[VGDA]]></category>
		<category><![CDATA[vgdisplay]]></category>
		<category><![CDATA[vgs]]></category>
		<category><![CDATA[Virtual storage]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Group Descriptor Area]]></category>
		<category><![CDATA[Volume management]]></category>
		<category><![CDATA[xfs]]></category>
		<category><![CDATA[가상 스토리지]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[논리 디스크]]></category>
		<category><![CDATA[논리 볼륨]]></category>
		<category><![CDATA[논리 볼륨 관리자]]></category>
		<category><![CDATA[논리 스토리지]]></category>
		<category><![CDATA[논리 파티션]]></category>
		<category><![CDATA[데이터 저장]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[디스크 파티션]]></category>
		<category><![CDATA[디스크 할당]]></category>
		<category><![CDATA[마운트]]></category>
		<category><![CDATA[마운트 포인트]]></category>
		<category><![CDATA[물리 디스크]]></category>
		<category><![CDATA[물리 볼륨]]></category>
		<category><![CDATA[물리 스토리지]]></category>
		<category><![CDATA[물리 파티션]]></category>
		<category><![CDATA[미러링]]></category>
		<category><![CDATA[볼륨 관리]]></category>
		<category><![CDATA[볼륨 그룹]]></category>
		<category><![CDATA[블록 디바이스]]></category>
		<category><![CDATA[서버 스토리지]]></category>
		<category><![CDATA[스토리지]]></category>
		<category><![CDATA[스토리지 가상화]]></category>
		<category><![CDATA[스토리지 개념]]></category>
		<category><![CDATA[스토리지 계층]]></category>
		<category><![CDATA[스토리지 관리]]></category>
		<category><![CDATA[스토리지 관리자]]></category>
		<category><![CDATA[스토리지 구조]]></category>
		<category><![CDATA[스토리지 아키텍처]]></category>
		<category><![CDATA[스토리지 풀]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 운영]]></category>
		<category><![CDATA[엔터프라이즈 스토리지]]></category>
		<category><![CDATA[인프라]]></category>
		<category><![CDATA[쿼럼]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40489</guid>

					<description><![CDATA[<p>LVM의 계층 구조와 주요 개념 LVM(Logical Volume Manager)은 리눅스 및 유닉스 계열 시스템에서 사용자가 논리적인 볼륨 저장소를 설정하고 제어할 수 있도록 하는 운영 체제 명령, 라이브러리 및 도구 세트입니다. (Manager) 이는 실제 물리적 디스크와 응용 프로그램 사이에 장치 드라이버 계층을 두어, 물리적 디스크 구조와 무관하게 스토리지 공간을 논리적으로 관리할 수 있게 해줍니다. (여러 물리적인 디스크들을 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/etc/lvmlogical-volume-manager-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ea%b0%9c%eb%85%90/40489/">LVM(Logical Volume Manager) 구조 및 개념</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-472a844f      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm의-계층-구조와-주요-개념" class="uagb-toc-link__trigger">LVM의 계층 구조와 주요 개념</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-물리적-계층-pv-physical-volume-및-pp-physical-partition" class="uagb-toc-link__trigger">1. 물리적 계층: PV (Physical Volume) 및 PP (Physical Partition)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#pv-physical-volume" class="uagb-toc-link__trigger">PV (Physical Volume)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#pp-physical-partition" class="uagb-toc-link__trigger">PP (Physical Partition)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#관련-명령어" class="uagb-toc-link__trigger">관련 명령어</a></li></ul><li class="uagb-toc__list"><a href="#2-논리적-그룹-계층-vg-volume-group" class="uagb-toc-link__trigger">2. 논리적 그룹 계층: VG (Volume Group)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#vg-volume-group" class="uagb-toc-link__trigger">VG (Volume Group)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#관련-명령어" class="uagb-toc-link__trigger">관련 명령어</a></li></ul><li class="uagb-toc__list"><a href="#3-논리적-할당-계층-lv-logical-volume-및-lp-logical-partition-미러링mirroring" class="uagb-toc-link__trigger">3. 논리적 할당 계층: LV (Logical Volume) 및 LP (Logical Partition) / 미러링(Mirroring)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lv-logical-volume" class="uagb-toc-link__trigger">LV (Logical Volume)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lp-logical-partition" class="uagb-toc-link__trigger">LP (Logical Partition)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#미러링mirroring" class="uagb-toc-link__trigger">미러링(Mirroring)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#관련-명령어" class="uagb-toc-link__trigger">관련 명령어</a></li></ul><li class="uagb-toc__list"><a href="#4-계층-구조의-상위-단계-파일-시스템file-system" class="uagb-toc-link__trigger">4. 계층 구조의 상위 단계: 파일 시스템(File System)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#file-system" class="uagb-toc-link__trigger">File System</a></li></ul><li class="uagb-toc__list"><a href="#주요-개념-요약" class="uagb-toc-link__trigger">주요 개념 요약</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#계층-구조" class="uagb-toc-link__trigger">계층 구조</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#유연성" class="uagb-toc-link__trigger">유연성</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#데이터-무결성" class="uagb-toc-link__trigger">데이터 무결성</a></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">LVM의 계층 구조와 주요 개념</h3>



<p><strong>LVM(Logical Volume Manager)</strong>은 리눅스 및 유닉스 계열 시스템에서 사용자가 논리적인 볼륨 저장소를 설정하고 제어할 수 있도록 하는 운영 체제 명령, 라이브러리 및 도구 세트입니다. (Manager)</p>



<p>이는 실제 <strong>물리적 디스크</strong>와 <strong>응용 프로그램</strong> 사이에 <strong>장치 드라이버 계층</strong>을 두어, <strong>물리적 디스크 구조</strong>와<strong> 무관하게 스토리지 공간을 논리적으로 관리</strong>할 수 있게 해줍니다.</p>



<p>(여러 물리적인 디스크들을 하나의 논리적인 디스크처럼 다룰 수 있게 함 &#8211; 고용량, 고속, 데이터의 무결성 등을 실현 가능)</p>



<ul class="wp-block-list">
<li><strong>LVM이 필요한 이유?</strong></li>
</ul>



<p>기존 파티션 기반 스토리지 관리 방식은 용량 확장이나 재구성이 복잡하고 다운 타임이 발생할 수 있다. </p>



<p>그러나 LVM을 사용하면 하드 드라이브를 재분할할 필요 없이 논리 볼륨을 생성, 크기 조정, 이동 및 삭제할 수 있습니다.</p>



<p>LVM의 진정한 매력은 논리 볼륨과 볼륨 그룹의 크기를 실시간으로 조정할 수 있다는 점에 있습니다.</p>



<p>예를 들어) 갑자기 데이터베이스 용량 필요하다고 해도<strong> LVM을 사용하면 운영 중단 없이 손쉽게 공간을 확장</strong>할 수 있습니다.</p>



<p>LVM은 하드 디스크 위에 얇은 소프트웨어 계층을 덧씌워 하드 드라이브 관리의 연속성과 편의성을 추상화한 것이라고 생각하면 될 것 같습니다.</p>



<div class="wp-block-uagb-container uagb-block-a9759a32 alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<div class="wp-block-uagb-container uagb-block-9b76df1b">
<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" width="960" height="967" src="https://lycos7560.com/wp-content/uploads/2026/02/Lvm.svg_.png" alt="" class="wp-image-40492" style="width:792px;height:auto" srcset="https://lycos7560.com/wp-content/uploads/2026/02/Lvm.svg_.png 960w, https://lycos7560.com/wp-content/uploads/2026/02/Lvm.svg_-298x300.png 298w, https://lycos7560.com/wp-content/uploads/2026/02/Lvm.svg_-150x150.png 150w, https://lycos7560.com/wp-content/uploads/2026/02/Lvm.svg_-768x774.png 768w" sizes="(max-width: 960px) 100vw, 960px" /><figcaption class="wp-element-caption"><a href="https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)">https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)</a></figcaption></figure>
</div>



<div class="wp-block-uagb-container uagb-block-f0a092a6">
<figure class="wp-block-image size-full has-custom-border"><img decoding="async" width="791" height="481" src="https://lycos7560.com/wp-content/uploads/2026/02/image-8.png" alt="" class="wp-image-40490" style="border-width:1px" srcset="https://lycos7560.com/wp-content/uploads/2026/02/image-8.png 791w, https://lycos7560.com/wp-content/uploads/2026/02/image-8-300x182.png 300w, https://lycos7560.com/wp-content/uploads/2026/02/image-8-768x467.png 768w" sizes="(max-width: 791px) 100vw, 791px" /><figcaption class="wp-element-caption"><a href="https://medium.com/@habibullah.127.0.0.1/what-is-lvm-lvm-architecture-how-to-create-pvs-vgs-lvs-in-linux-30acd24e4f0b" target="_blank" rel="noreferrer noopener">https://medium.com/@habibullah.127.0.0.1/what-is-lvm-lvm-architecture-how-to-create-pvs-vgs-lvs-in-linux-30acd24e4f0b</a></figcaption></figure>
</div>
</div></div>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">1. 물리적 계층: PV (Physical Volume) 및 PP (Physical Partition)</h4>



<h5 class="wp-block-heading"><strong>PV (Physical Volume)</strong></h5>



<p>LVM에서 인식하는 <strong>물리적 디스크 드라이브</strong> 자체를 의미하며, AIX 시스템에서는 <code>hdisk0</code>, <code>hdisk1</code>과 같은 이름으로 표시됩니다.</p>



<p><mark style="background-color:rgba(0, 0, 0, 0);color:#ff6900" class="has-inline-color"><strong>하나의 PV는 </strong></mark>반드시 <mark style="background-color:rgba(0, 0, 0, 0);color:#ff6900" class="has-inline-color"><strong>하나의 VG</strong></mark>에만 속할 수 있습니다.</p>



<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong><strong>PP (Physical Partition)</strong></strong></h5>



<p>PV를 일정한 크기로 나눈 <strong>최소의 물리적 단위</strong>입니다.</p>



<p>PP의 크기는 1MB에서 1GB까지 설정 가능하며, <mark style="background-color:rgba(0, 0, 0, 0);color:#ff6900" class="has-inline-color"><strong>동일한 VG 내의 모든 PV</strong></mark>는<mark style="background-color:rgba(0, 0, 0, 0);color:#ff6900" class="has-inline-color"><strong> 동일한 크기의 PP</strong></mark>를 가집니다.</p>



<h5 class="wp-block-heading"><strong><strong>관련 명령어</strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 하드 디스크 총 개수, 파티션 수, 저장 용량 및 사용 가능 용량을 확인
- Linux
lsblk
- AIX
lsdev -Cc disk

# Physical Volumes 총 개수
- Linux
pvs
pvdisplay
- AIX
lspv
lspv hdisk0</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">2. 논리적 그룹 계층: VG (Volume Group)</h4>



<h5 class="wp-block-heading"><strong><strong>VG (Volume Group)</strong></strong></h5>



<p>하나 이상의 <strong>PV들을 논리적으로 묶은 집합체</strong>입니다.</p>



<p>VG 내의 디스크들은 PP라는 단위로 쪼개져 관리되며, 이를 통해 여러 <strong>물리적 디스크에 걸쳐 있는 논리적 볼륨을 생성하는 등 유연한 관리가 가능</strong>해집니다.</p>



<p>데이터 보호를 위해 미러링을 설정하면, <strong>하나의 LP가 2개 또는 3개의 PP에 대응</strong>되어 동일한 데이터 사본을 여러 곳에 저장하게 됩니다.</p>



<h5 class="wp-block-heading"><strong><strong>관련 명령어</strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Volume groups 확인
- Linux
vgs
vgdisplay
- AIX
lsvg
lsvg vgname</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">3. 논리적 할당 계층: LV (Logical Volume) 및 LP (Logical Partition) / <strong>미러링(Mirroring)</strong></h4>



<h5 class="wp-block-heading"><strong><strong><strong>LV (Logical Volume)</strong></strong></strong></h5>



<p>사용자가 실제 데이터를 저장하기 위해 VG 내에서 정의하는 <strong>논리적인 저장 공간</strong>입니다.</p>



<p>LV는 사용자에게는 연속된 공간으로 보이지만, <strong>실제 물리적 위치(PP)는 디스크 상에서 흩어져 있거나 여러 PV에 걸쳐 있을 수 있습니다</strong>.</p>



<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong><strong><strong><strong>LP (Logical Partition)</strong></strong></strong></strong></h5>



<p>LV를 구성하는 <strong>최소 논리 단위</strong>로, <strong>하나 이상의 PP</strong>에 대응됩니다.</p>



<p>※ 참고: AIX에서는 LP/PP라는 용어를 사용하며,<br>Linux LVM에서는 LE/PE(Extent)라는 용어를 사용한다.</p>



<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong><strong><strong><strong><strong>미러링(Mirroring)</strong></strong></strong></strong></strong></h5>



<p>데이터 보호를 위해 미러링을 설정하면, <strong>하나의 LP가 2개 또는 3개의 PP에 대응</strong>되어 동일한 데이터 사본을 여러 곳에 저장하게 됩니다.</p>



<h5 class="wp-block-heading"><strong><strong>관련 명령어</strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Logical volumes 확인
- Linux
lvs
lvdisplay
- AIX
lslv
lslv lvname</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">4. 계층 구조의 상위 단계: 파일 시스템(File System)</h4>



<h5 class="wp-block-heading"><strong><strong><strong>File System</strong></strong></strong></h5>



<p>LV 위에 구축되어 사용자가 <strong>실제 파일을 저장하고 접근할 수 있도록 하는 논리적인 구조</strong>입니다.</p>



<p>생성된 <strong>LV 위에는 JFS 또는 JFS2와 같은 파일 시스템</strong>이 구축되거나, 페이징 공간(Paging Space)으로 사용됩니다.</p>



<p>운영체제는 이러한 파일 시스템을 통해 파일을 저장하고 관리합니다.</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:0;margin-bottom:0"/>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주요 개념 요약</h4>



<h5 class="wp-block-heading"><strong><strong><strong><strong>계층 구조</strong></strong></strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">PV(PP) → VG → LV(LP) → 파일 시스템</pre>



<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong><strong><strong><strong><strong>유연성</strong></strong></strong></strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">LVM을 사용하면 운영 중에 파일 시스템의 용량을 늘리거나 줄이는 것이 가능하며, 
물리적인 디스크 한계를 넘어 스토리지를 효율적으로 관리할 수 있습니다</pre>



<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong><strong><strong><strong><strong><strong>데이터 무결성</strong></strong></strong></strong></strong></strong></h5>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">VGDA(Volume Group Descriptor Area)와 같은 영역에 LVM 구조 정보를 저장하여 관리하며, 
쿼럼(Quorum) 메커니즘을 통해 디스크 장애 시에도 데이터의 무결성을 보장합니다.</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="[리눅스 기초 강의] 41강. 6.3 LVM(Logical Volume Manage)" width="1778" height="1000" src="https://www.youtube.com/embed/eb2cDW-zXlI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p></p>



<p></p>
<p>The post <a href="https://lycos7560.com/etc/lvmlogical-volume-manager-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ea%b0%9c%eb%85%90/40489/">LVM(Logical Volume Manager) 구조 및 개념</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/etc/lvmlogical-volume-manager-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ea%b0%9c%eb%85%90/40489/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Quota (쿼터)</title>
		<link>https://lycos7560.com/ubuntu/quota-%ec%bf%bc%ed%84%b0/39116/</link>
					<comments>https://lycos7560.com/ubuntu/quota-%ec%bf%bc%ed%84%b0/39116/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 12:21:16 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Add User]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[Auto Mount]]></category>
		<category><![CDATA[Create Partition]]></category>
		<category><![CDATA[Create Test File]]></category>
		<category><![CDATA[daemon reload]]></category>
		<category><![CDATA[Disk Limitation]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[Disk Space Limit]]></category>
		<category><![CDATA[Disk Space Management]]></category>
		<category><![CDATA[Disk Space Monitoring]]></category>
		<category><![CDATA[Disk Space Optimization]]></category>
		<category><![CDATA[Disk Usage Limit]]></category>
		<category><![CDATA[edquota]]></category>
		<category><![CDATA[Enforcement Action]]></category>
		<category><![CDATA[fallocate]]></category>
		<category><![CDATA[File Count Limit]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[File System Creation]]></category>
		<category><![CDATA[File System Format]]></category>
		<category><![CDATA[Grace Period]]></category>
		<category><![CDATA[Group Quota]]></category>
		<category><![CDATA[Group Quota Setup]]></category>
		<category><![CDATA[Hard Limit]]></category>
		<category><![CDATA[Inode]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mkfs.ext4]]></category>
		<category><![CDATA[Mount Folder]]></category>
		<category><![CDATA[Package Installation]]></category>
		<category><![CDATA[Quota]]></category>
		<category><![CDATA[Quota Package]]></category>
		<category><![CDATA[Quota 패키지]]></category>
		<category><![CDATA[quotaon]]></category>
		<category><![CDATA[repquota]]></category>
		<category><![CDATA[Soft Limit]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[system performance]]></category>
		<category><![CDATA[tune2fs]]></category>
		<category><![CDATA[User Home Directory]]></category>
		<category><![CDATA[User Quota]]></category>
		<category><![CDATA[User Quota Setup]]></category>
		<category><![CDATA[Warning Message]]></category>
		<category><![CDATA[Warning System]]></category>
		<category><![CDATA[강제 조치]]></category>
		<category><![CDATA[경고 메시지]]></category>
		<category><![CDATA[경고 시스템]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[그레이스 기간]]></category>
		<category><![CDATA[그룹 제한]]></category>
		<category><![CDATA[그룹 쿼터 설정]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[디스크 공간 관리]]></category>
		<category><![CDATA[디스크 공간 모니터링]]></category>
		<category><![CDATA[디스크 공간 최적화]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[디스크 사용량 제한]]></category>
		<category><![CDATA[디스크 용량 제한]]></category>
		<category><![CDATA[디스크 제한]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[사용자 제한]]></category>
		<category><![CDATA[사용자 추가]]></category>
		<category><![CDATA[사용자 쿼터 설정]]></category>
		<category><![CDATA[사용자 홈 디렉토리]]></category>
		<category><![CDATA[소프트 한도]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 성능]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[인오드]]></category>
		<category><![CDATA[자동 마운트]]></category>
		<category><![CDATA[쿼터]]></category>
		<category><![CDATA[테스트 파일 생성]]></category>
		<category><![CDATA[파일 개수 제한]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 시스템 생성]]></category>
		<category><![CDATA[파일 시스템 포맷]]></category>
		<category><![CDATA[파티션 생성]]></category>
		<category><![CDATA[패키지 설치]]></category>
		<category><![CDATA[폴더 마운트]]></category>
		<category><![CDATA[하드 한도]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=39116</guid>

					<description><![CDATA[<p>Quota (쿼터) 리눅스에서 쿼터(Quota)는 사용자 또는 그룹이 사용할 수 있는 디스크 공간 및 파일 개수를 제한하는 시스템 관리 도구 디스크 자원을 효율적으로 관리하고, 특정 사용자가 시스템 디스크 자원을 과도하게 사용하는 것을 방지 파일 시스템을 &#8220;/&#8221; (root) 로 지정하는 것보다는, 별도의 파일시스템을 지정해서 해당 부분을 쓰도록 하는 것이 좋음 &#8220;/&#8221; (root)을 동시에 여러 사용자가 사용하게되면, 우분투 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/quota-%ec%bf%bc%ed%84%b0/39116/">Quota (쿼터)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-1c50404f      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#quota-쿼터" class="uagb-toc-link__trigger">Quota (쿼터)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#quota-기능" class="uagb-toc-link__trigger">Quota 기능</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#quota-개념" class="uagb-toc-link__trigger">Quota 개념</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#quota-실습" class="uagb-toc-link__trigger">Quota 실습</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">Quota (쿼터)</h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>리눅스에서 <strong>쿼터(Quota)</strong>는 사용자 또는 그룹이 사용할 수 있는 디스크 공간 및 파일 개수를 제한하는 시스템 관리 도구</p>



<p>디스크 자원을 효율적으로 관리하고, 특정 사용자가 시스템 디스크 자원을 과도하게 사용하는 것을 방지</p>



<p>파일 시스템을 &#8220;/&#8221; (root) 로 지정하는 것보다는, 별도의 파일시스템을 지정해서 해당 부분을 쓰도록 하는 것이 좋음</p>



<p> &#8220;/&#8221; (root)을 동시에 여러 사용자가 사용하게되면, 우분투 서버를 운영하기 위해서 </p>



<p>디스크를 읽고 쓰는 작업과 일반 사용자가 디스크를 읽고 쓰는 작업이 동시에 발생하므로 전반적으로 시스템의 성능이 저하됨</p>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>Quota</strong> <strong>기능</strong></h3>



<ol class="wp-block-list">
<li><strong>디스크 용량 제한</strong>
<ul class="wp-block-list">
<li>사용자별 또는 그룹별 디스크 사용량 제한 설정</li>
</ul>
</li>



<li><strong>파일 개수 제한</strong>
<ul class="wp-block-list">
<li>사용자가 생성할 수 있는 파일(인오드)의 최대 개수 제한</li>
</ul>
</li>



<li><strong>경고 및 강제 조치</strong>
<ul class="wp-block-list">
<li>사용량이 한도를 초과하면 경고 메시지 출력</li>



<li>설정에 따라 일정 시간을 초과하면 파일 생성/쓰기 제한</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>Quota 개념</strong></h3>



<ol class="wp-block-list">
<li><strong>하드 한도 (Hard Limit)</strong>
<ul class="wp-block-list">
<li>사용자가 절대 초과할 수 없는 디스크 용량이나 파일 개수 한도</li>
</ul>
</li>



<li><strong>소프트 한도 (Soft Limit)</strong>
<ul class="wp-block-list">
<li>사용자가 초과할 수 있지만, 제한된 기간(그레이스 기간) 동안만 허용되는 한도</li>
</ul>
</li>



<li><strong>그레이스 기간 (Grace Period)</strong>
<ul class="wp-block-list">
<li>소프트 한도를 초과했을 때, 허용되는 유예 기간</li>



<li>유예 기간 내에 사용량을 줄이지 않으면 하드 한도가 적용됨</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Quota 실습</h3>



<p class="wp-embed-aspect-16-9 wp-has-aspect-ratio"><a href="https://www.youtube.com/watch?v=vOzw5usBw4M&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=41" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=vOzw5usBw4M&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=41</a></p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1157" height="637" src="https://lycos7560.com/wp-content/uploads/2024/12/image-188.png" alt="" class="wp-image-39118" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-188.png 1157w, https://lycos7560.com/wp-content/uploads/2024/12/image-188-300x165.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-188-768x423.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /><figcaption class="wp-element-caption">10GB 가상의 디스크로 실습0GB 가상의 디스크로 실습</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 파티션 생성
fdisk /dev/sdb

# 파일시스템 생성 및 포맷
mkfs.ext4 /dev/sdb1
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="888" height="887" src="https://lycos7560.com/wp-content/uploads/2024/12/image-189.png" alt="" class="wp-image-39119" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-189.png 888w, https://lycos7560.com/wp-content/uploads/2024/12/image-189-300x300.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-189-150x150.png 150w, https://lycos7560.com/wp-content/uploads/2024/12/image-189-768x767.png 768w" sizes="(max-width: 888px) 100vw, 888px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1036" height="281" src="https://lycos7560.com/wp-content/uploads/2024/12/image-190.png" alt="" class="wp-image-39120" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-190.png 1036w, https://lycos7560.com/wp-content/uploads/2024/12/image-190-300x81.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-190-768x208.png 768w" sizes="(max-width: 1036px) 100vw, 1036px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 사용자의 홈 폴더를 이곳으로 설정
# 폴더 생성 후 마운트
mkdir /userHome

# 재부팅 후 자동 마운트 등록
gedit /etc/fstab

/dev/sdb1 /userhome ext4 defaults 0 0 

# daemon reload
systemctl daemon-reload</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1193" height="515" src="https://lycos7560.com/wp-content/uploads/2024/12/image-191.png" alt="" class="wp-image-39121" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-191.png 1193w, https://lycos7560.com/wp-content/uploads/2024/12/image-191-300x130.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-191-768x332.png 768w" sizes="(max-width: 1193px) 100vw, 1193px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# sdb1을 quota로 사용 준비
tune2fs -O quota /dev/sdb1</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="845" height="219" src="https://lycos7560.com/wp-content/uploads/2024/12/image-192.png" alt="" class="wp-image-39122" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-192.png 845w, https://lycos7560.com/wp-content/uploads/2024/12/image-192-300x78.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-192-768x199.png 768w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption class="wp-element-caption">마운트 전에 실행해야함</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="746" height="179" src="https://lycos7560.com/wp-content/uploads/2024/12/image-196.png" alt="" class="wp-image-39126" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-196.png 746w, https://lycos7560.com/wp-content/uploads/2024/12/image-196-300x72.png 300w" sizes="(max-width: 746px) 100vw, 746px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 사용자 추가 karina, winter
adduser --home /userHome/karina karina
adduser --home /userHome/winter winter</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="864" height="965" src="https://lycos7560.com/wp-content/uploads/2024/12/image-193.png" alt="" class="wp-image-39123" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-193.png 864w, https://lycos7560.com/wp-content/uploads/2024/12/image-193-269x300.png 269w, https://lycos7560.com/wp-content/uploads/2024/12/image-193-768x858.png 768w" sizes="(max-width: 864px) 100vw, 864px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="628" height="193" src="https://lycos7560.com/wp-content/uploads/2024/12/image-194.png" alt="" class="wp-image-39124" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-194.png 628w, https://lycos7560.com/wp-content/uploads/2024/12/image-194-300x92.png 300w" sizes="(max-width: 628px) 100vw, 628px" /><figcaption class="wp-element-caption">개인 폴더가 생성됨</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
#  quota 패키지 설치
sudo apt update
sudo apt install quota
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="937" height="439" src="https://lycos7560.com/wp-content/uploads/2024/12/image-195.png" alt="" class="wp-image-39125" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-195.png 937w, https://lycos7560.com/wp-content/uploads/2024/12/image-195-300x141.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-195-768x360.png 768w" sizes="(max-width: 937px) 100vw, 937px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# quota 시작 
quotaon -va
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="874" height="184" src="https://lycos7560.com/wp-content/uploads/2024/12/image-197.png" alt="" class="wp-image-39127" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-197.png 874w, https://lycos7560.com/wp-content/uploads/2024/12/image-197-300x63.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-197-768x162.png 768w" sizes="(max-width: 874px) 100vw, 874px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# karina / soft 한도 40MB / Hard 한도 50MB 
edquota -u karina</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1202" height="326" src="https://lycos7560.com/wp-content/uploads/2024/12/image-198.png" alt="" class="wp-image-39128" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-198.png 1202w, https://lycos7560.com/wp-content/uploads/2024/12/image-198-300x81.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-198-768x208.png 768w" sizes="(max-width: 1202px) 100vw, 1202px" /><figcaption class="wp-element-caption">ctrl + x 로 저장</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# karina에서 확인
su - karina 

# 테스트용 더미 파일 생성
fallocate -l 10M /userHome/karina/dummyfile.txt</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="811" height="593" src="https://lycos7560.com/wp-content/uploads/2024/12/image-199.png" alt="" class="wp-image-39129" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-199.png 811w, https://lycos7560.com/wp-content/uploads/2024/12/image-199-300x219.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-199-768x562.png 768w" sizes="(max-width: 811px) 100vw, 811px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# quota 명령어로 확인 가능
quota
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1036" height="131" src="https://lycos7560.com/wp-content/uploads/2024/12/image-200.png" alt="" class="wp-image-39130" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-200.png 1036w, https://lycos7560.com/wp-content/uploads/2024/12/image-200-300x38.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-200-768x97.png 768w" sizes="(max-width: 1036px) 100vw, 1036px" /><figcaption class="wp-element-caption">약 6일 정도 후에 Soft로 인하여 손상될 수 있음</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# root
su root

# quota 확인
repquota /userHome/</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="609" height="269" src="https://lycos7560.com/wp-content/uploads/2024/12/image-201.png" alt="" class="wp-image-39131" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-201.png 609w, https://lycos7560.com/wp-content/uploads/2024/12/image-201-300x133.png 300w" sizes="(max-width: 609px) 100vw, 609px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># karina의 기준은 winter 에게 적용
edquota -p karina winter

# quota 확인
repquota /userHome/</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="866" height="546" src="https://lycos7560.com/wp-content/uploads/2024/12/image-202.png" alt="" class="wp-image-39132" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-202.png 866w, https://lycos7560.com/wp-content/uploads/2024/12/image-202-300x189.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-202-768x484.png 768w" sizes="(max-width: 866px) 100vw, 866px" /></figure>
<p>The post <a href="https://lycos7560.com/ubuntu/quota-%ec%bf%bc%ed%84%b0/39116/">Quota (쿼터)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/quota-%ec%bf%bc%ed%84%b0/39116/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; LVM (Logical Volume Manager)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-lvm-logical-volume-manager/39098/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-lvm-logical-volume-manager/39098/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 08:34:07 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Add Disk]]></category>
		<category><![CDATA[Auto Mount on Reboot]]></category>
		<category><![CDATA[Create Snapshot]]></category>
		<category><![CDATA[Data Backup]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Data Redundancy]]></category>
		<category><![CDATA[Disk Capacity Management]]></category>
		<category><![CDATA[Disk Expansion]]></category>
		<category><![CDATA[Disk Integration]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[Disk Partition]]></category>
		<category><![CDATA[Disk Reduction]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[fdisk 명령어]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[File System Format]]></category>
		<category><![CDATA[Flexible Disk Management]]></category>
		<category><![CDATA[initramfs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Logical Disk]]></category>
		<category><![CDATA[Logical Volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[lvcreate]]></category>
		<category><![CDATA[lvdisplay]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[LVM Configuration]]></category>
		<category><![CDATA[LVM Practice]]></category>
		<category><![CDATA[LVM 설정]]></category>
		<category><![CDATA[LVM 실습]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Performance Overhead]]></category>
		<category><![CDATA[Physical Disk]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[pvcreate]]></category>
		<category><![CDATA[Remove Disk]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[Software RAID]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[vgcreate]]></category>
		<category><![CDATA[vgdisplay]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[논리 볼륨]]></category>
		<category><![CDATA[논리적 디스크]]></category>
		<category><![CDATA[데이터 백업]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[데이터 중복성]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[디스크 용량 관리]]></category>
		<category><![CDATA[디스크 제거]]></category>
		<category><![CDATA[디스크 추가]]></category>
		<category><![CDATA[디스크 축소]]></category>
		<category><![CDATA[디스크 통합]]></category>
		<category><![CDATA[디스크 파티션]]></category>
		<category><![CDATA[디스크 확장]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[마운트]]></category>
		<category><![CDATA[물리적 디스크]]></category>
		<category><![CDATA[물리적 볼륨]]></category>
		<category><![CDATA[볼륨 그룹]]></category>
		<category><![CDATA[성능 오버헤드]]></category>
		<category><![CDATA[소프트웨어 RAID]]></category>
		<category><![CDATA[스냅샷]]></category>
		<category><![CDATA[스냅샷 생성]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[유연한 디스크 관리]]></category>
		<category><![CDATA[재부팅 자동 마운트]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 시스템 포맷]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=39098</guid>

					<description><![CDATA[<p>LVM (Logical Volume Manager) LVM은 리눅스 환경에서 유연하고 효율적인 디스크 관리 기능을 제공하는 논리 볼륨 관리 시스템 디스크 공간을 논리적으로 관리하고 확장하거나 축소할 수 있으며, 물리적인 디스크 파티션에 의존하지 않고도 유연한 디스크 관리를 가능하게 함 LVM 주요 개념 3가지 1. Physical Volume (PV) 실제 물리적 디스크 또는 디스크의 파티션 예: /dev/sda1, /dev/sdb1 pvcreate 명령으로 생성 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-lvm-logical-volume-manager/39098/">Ubuntu &#8211; LVM (Logical Volume Manager)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-17d701fc      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm-logical-volume-manager" class="uagb-toc-link__trigger">LVM (Logical Volume Manager)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm-주요-개념-3가지" class="uagb-toc-link__trigger">LVM 주요 개념 3가지</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-physical-volume-pv" class="uagb-toc-link__trigger">1. Physical Volume (PV)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#2-volume-group-vg" class="uagb-toc-link__trigger">2. Volume Group (VG)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#3-logical-volume-lv" class="uagb-toc-link__trigger">3. Logical Volume (LV)</a></li></ul><li class="uagb-toc__list"><a href="#lvm-주요-기능" class="uagb-toc-link__trigger">LVM 주요 기능</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm-장점" class="uagb-toc-link__trigger">LVM 장점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm-단점" class="uagb-toc-link__trigger">LVM 단점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#lvm-실습" class="uagb-toc-link__trigger">LVM 실습</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">LVM (Logical Volume Manager)</h3>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>LVM은 리눅스 환경에서 유연하고 효율적인 디스크 관리 기능을 제공하는 <strong>논리 볼륨 관리 시스템</strong></p>



<p>디스크 공간을 논리적으로 관리하고 확장하거나 축소할 수 있으며, 물리적인 디스크 파티션에 의존하지 않고도 <strong>유연한 디스크 관리</strong>를 가능하게 함</p>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">LVM 주요 개념 3가지</h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">1. Physical Volume (PV)</h5>



<p>실제 물리적 디스크 또는 디스크의 파티션</p>



<p>예: <code>/dev/sda1</code>, <code>/dev/sdb1</code></p>



<p><code>pvcreate</code> 명령으로 생성</p>



<h5 class="wp-block-heading">2. Volume Group (VG)</h5>



<p>여러 PV를 묶어 하나의 <strong>논리적 디스크 풀(pool)</strong>로 만듭니다.</p>



<p>VG는 디스크의 <strong>물리적 경계를 초월하여 디스크를 통합 관리</strong>할 수 있게 합니다.</p>



<p>예: <code>vgcreate my_vg /dev/sda1 /dev/sdb1</code></p>



<h5 class="wp-block-heading">3. Logical Volume (LV)</h5>



<p>VG에서 원하는 크기의 <strong>논리 디스크를 할당하여 생성한 가상의 디스크</strong>입니다.</p>



<p><strong>일반 파일 시스템처럼 마운트</strong>하여 사용합니다.</p>



<p>LV는 필요에 따라 크기를 <strong>동적으로 조정</strong>할 수 있습니다.</p>



<p>예: <code>lvcreate -L 20G -n my_lv my_vg</code></p>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">LVM 주요 기능</h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ol class="wp-block-list">
<li><strong>유연한 디스크 관리</strong>
<ul class="wp-block-list">
<li>디스크 추가/제거가 간단하며, 운영 중에도 가능</li>



<li>파티션 크기 조정이 자유로움.</li>
</ul>
</li>



<li><strong>디스크 공간 통합</strong>
<ul class="wp-block-list">
<li>여러 디스크를 하나의 Volume Group으로 통합하여 사용할 수 있음</li>
</ul>
</li>



<li><strong>스냅샷 기능</strong>
<ul class="wp-block-list">
<li>현재 상태의 복사본(Snapshot)을 생성하여 백업이나 테스트에 사용</li>
</ul>
</li>



<li><strong>디스크 확장/축소</strong>
<ul class="wp-block-list">
<li>LV와 VG의 크기를 유동적으로 조정 가능</li>
</ul>
</li>



<li><strong>RAID 기능 지원</strong>
<ul class="wp-block-list">
<li>LVM은 소프트웨어 RAID와 함께 사용하여 데이터 중복성을 제공할 수 있음</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong>LVM 장점</strong></h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>디스크 크기 및 배치 유연성</li>



<li>디스크 추가 및 제거가 쉬움</li>



<li>파일 시스템 확장/축소가 가능</li>



<li>스냅샷으로 데이터 백업 및 복구 용이</li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong>LVM 단점</strong></h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>설정이 일반 파티션보다 복잡</li>



<li>추가 추상화 계층으로 인해 성능 오버헤드 발생 가능</li>



<li>설정 오류 시 데이터 복구가 더 어려울 수 있음</li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">LVM 실습</h4>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="619" height="402" src="https://lycos7560.com/wp-content/uploads/2024/12/image-173.png" alt="" class="wp-image-39099" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-173.png 619w, https://lycos7560.com/wp-content/uploads/2024/12/image-173-300x195.png 300w" sizes="(max-width: 619px) 100vw, 619px" /><figcaption class="wp-element-caption">LVM 구성 실습 목표 (1)<br><a href="https://www.youtube.com/watch?v=IHWpSXPXb6k&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=40" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=IHWpSXPXb6k&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=40</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1063" height="779" src="https://lycos7560.com/wp-content/uploads/2024/12/image-175.png" alt="" class="wp-image-39101" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-175.png 1063w, https://lycos7560.com/wp-content/uploads/2024/12/image-175-300x220.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-175-768x563.png 768w" sizes="(max-width: 1063px) 100vw, 1063px" /><figcaption class="wp-element-caption">실습 가상하드 준비 2GB, 3GB</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="691" height="352" src="https://lycos7560.com/wp-content/uploads/2024/12/image-174.png" alt="" class="wp-image-39100" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-174.png 691w, https://lycos7560.com/wp-content/uploads/2024/12/image-174-300x153.png 300w" sizes="(max-width: 691px) 100vw, 691px" /><figcaption class="wp-element-caption">LVM 구성 실습 목표 (2)<br><a href="https://www.youtube.com/watch?v=IHWpSXPXb6k&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=40" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=IHWpSXPXb6k&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=40</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# lvm2 패키지 다운로드
sudo apt update
sudo apt -y install lvm2
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1199" height="754" src="https://lycos7560.com/wp-content/uploads/2024/12/image-176.png" alt="" class="wp-image-39102" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-176.png 1199w, https://lycos7560.com/wp-content/uploads/2024/12/image-176-300x189.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-176-768x483.png 768w" sizes="(max-width: 1199px) 100vw, 1199px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="bNSeeZdmjn"><a href="https://lycos7560.com/ubuntu/fdisk-type-help/39077/">fdisk type, help</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;fdisk type, help&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/fdisk-type-help/39077/embed/#?secret=QtYiCfqndP#?secret=bNSeeZdmjn" data-secret="bNSeeZdmjn" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
ls -a /dev/sd*

# Linux LVM 타입으로 파티션 생성
fdisk /dev/sdb
fdisk /dev/sdc</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="972" height="662" src="https://lycos7560.com/wp-content/uploads/2024/12/image-177.png" alt="" class="wp-image-39103" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-177.png 972w, https://lycos7560.com/wp-content/uploads/2024/12/image-177-300x204.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-177-768x523.png 768w" sizes="(max-width: 972px) 100vw, 972px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="964" height="743" src="https://lycos7560.com/wp-content/uploads/2024/12/image-178.png" alt="" class="wp-image-39105" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-178.png 964w, https://lycos7560.com/wp-content/uploads/2024/12/image-178-300x231.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-178-768x592.png 768w" sizes="(max-width: 964px) 100vw, 964px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 물리 볼륨으로 변경
pvcreate /dev/sdb1
pvcreate /dev/sdc1

# 볼륨 "myVG" 그룹 생성
vgcreate "myVG" /dev/sdb1 /dev/sdc1

# 볼륨 확인 
vgdisplay</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1007" height="212" src="https://lycos7560.com/wp-content/uploads/2024/12/image-179.png" alt="" class="wp-image-39106" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-179.png 1007w, https://lycos7560.com/wp-content/uploads/2024/12/image-179-300x63.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-179-768x162.png 768w" sizes="(max-width: 1007px) 100vw, 1007px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="918" height="177" src="https://lycos7560.com/wp-content/uploads/2024/12/image-180.png" alt="" class="wp-image-39107" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-180.png 918w, https://lycos7560.com/wp-content/uploads/2024/12/image-180-300x58.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-180-768x148.png 768w" sizes="(max-width: 918px) 100vw, 918px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="665" height="440" src="https://lycos7560.com/wp-content/uploads/2024/12/image-181.png" alt="" class="wp-image-39108" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-181.png 665w, https://lycos7560.com/wp-content/uploads/2024/12/image-181-300x198.png 300w" sizes="(max-width: 665px) 100vw, 665px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Logical Volume 1G, 3G, 1G 설정
lvcreate --size 1G --name myLG1 myVG
lvcreate --size 3G --name myLG2 myVG

# 저장 공간이 정확하게 떨어지지 않을 수 있기 때문에 나머지를 전부 사용하는 방법(extents)으로 함
lvcreate --extents 100%FREE --name myLG3 myVG 

# 확인
lvdisplay 

# 확인
ls -l /dev/myVG</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="861" height="185" src="https://lycos7560.com/wp-content/uploads/2024/12/image-182.png" alt="" class="wp-image-39109" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-182.png 861w, https://lycos7560.com/wp-content/uploads/2024/12/image-182-300x64.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-182-768x165.png 768w" sizes="(max-width: 861px) 100vw, 861px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1168" height="941" src="https://lycos7560.com/wp-content/uploads/2024/12/image-183.png" alt="" class="wp-image-39110" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-183.png 1168w, https://lycos7560.com/wp-content/uploads/2024/12/image-183-300x242.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-183-768x619.png 768w" sizes="(max-width: 1168px) 100vw, 1168px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="856" height="126" src="https://lycos7560.com/wp-content/uploads/2024/12/image-184.png" alt="" class="wp-image-39111" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-184.png 856w, https://lycos7560.com/wp-content/uploads/2024/12/image-184-300x44.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-184-768x113.png 768w" sizes="(max-width: 856px) 100vw, 856px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># file system 생성 및 포맷
mkfs.ext4 /dev/myVG/myLG1
mkfs.ext4 /dev/myVG/myLG2
mkfs.ext4 /dev/myVG/myLG3

# 마운트 작업
mkdir /lvm1 /lvm2 /lvm3
mount /dev/myVG/myLG1 /lvm1
mount /dev/myVG/myLG2 /lvm2
mount /dev/myVG/myLG3 /lvm3

# 재부팅 자동 마운트 등
gedit /etc/fstab

/dev/myVG/myLG1 /lvm1 ext4 defaults 0 0
/dev/myVG/myLG2 /lvm2 ext4 defaults 0 0
/dev/myVG/myLG3 /lvm3 ext4 defaults 0 0</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1070" height="670" src="https://lycos7560.com/wp-content/uploads/2024/12/image-185.png" alt="" class="wp-image-39112" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-185.png 1070w, https://lycos7560.com/wp-content/uploads/2024/12/image-185-300x188.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-185-768x481.png 768w" sizes="(max-width: 1070px) 100vw, 1070px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1201" height="531" src="https://lycos7560.com/wp-content/uploads/2024/12/image-186.png" alt="" class="wp-image-39113" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-186.png 1201w, https://lycos7560.com/wp-content/uploads/2024/12/image-186-300x133.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-186-768x340.png 768w" sizes="(max-width: 1201px) 100vw, 1201px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="504" height="194" src="https://lycos7560.com/wp-content/uploads/2024/12/image-187.png" alt="" class="wp-image-39114" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-187.png 504w, https://lycos7560.com/wp-content/uploads/2024/12/image-187-300x115.png 300w" sizes="(max-width: 504px) 100vw, 504px" /></figure>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-lvm-logical-volume-manager/39098/">Ubuntu &#8211; LVM (Logical Volume Manager)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-lvm-logical-volume-manager/39098/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RAID 6, RAID 10(1+0)</title>
		<link>https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/</link>
					<comments>https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 07:22:11 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[Auto Mount]]></category>
		<category><![CDATA[Boot Recognition]]></category>
		<category><![CDATA[Data Protection]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Data Stability]]></category>
		<category><![CDATA[Data Striping]]></category>
		<category><![CDATA[Disk Failure]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[Disk Space Efficiency]]></category>
		<category><![CDATA[Dual Parity]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[File System Creation]]></category>
		<category><![CDATA[File System Format]]></category>
		<category><![CDATA[fstab Configuration]]></category>
		<category><![CDATA[fstab 설정]]></category>
		<category><![CDATA[high performance]]></category>
		<category><![CDATA[High Stability]]></category>
		<category><![CDATA[initramfs 업데이트]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[Mirroring]]></category>
		<category><![CDATA[Online Resources]]></category>
		<category><![CDATA[Parallel Storage]]></category>
		<category><![CDATA[Parity]]></category>
		<category><![CDATA[Performance Degradation]]></category>
		<category><![CDATA[RAID 10]]></category>
		<category><![CDATA[RAID 5]]></category>
		<category><![CDATA[RAID 6]]></category>
		<category><![CDATA[RAID Array]]></category>
		<category><![CDATA[RAID Configuration]]></category>
		<category><![CDATA[RAID Implementation]]></category>
		<category><![CDATA[RAID Level]]></category>
		<category><![CDATA[RAID Practice]]></category>
		<category><![CDATA[RAID 구현]]></category>
		<category><![CDATA[RAID 레벨]]></category>
		<category><![CDATA[RAID 배열]]></category>
		<category><![CDATA[RAID 설정]]></category>
		<category><![CDATA[RAID 실습]]></category>
		<category><![CDATA[Read Performance]]></category>
		<category><![CDATA[Recovery Time]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Software RAID]]></category>
		<category><![CDATA[Storage Efficiency]]></category>
		<category><![CDATA[Striping]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tutorial Video]]></category>
		<category><![CDATA[Update initramfs]]></category>
		<category><![CDATA[Write Performance]]></category>
		<category><![CDATA[고성능]]></category>
		<category><![CDATA[고안정성]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[데이터 보호]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[데이터 스트라이핑]]></category>
		<category><![CDATA[데이터 안정성]]></category>
		<category><![CDATA[두 개의 패리티]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[디스크 손상]]></category>
		<category><![CDATA[디스크 용량 효율]]></category>
		<category><![CDATA[레이드 10]]></category>
		<category><![CDATA[레이드 5]]></category>
		<category><![CDATA[레이드 6]]></category>
		<category><![CDATA[미러링]]></category>
		<category><![CDATA[병렬 저장]]></category>
		<category><![CDATA[복구 시간]]></category>
		<category><![CDATA[부팅 시 인식]]></category>
		<category><![CDATA[성능 저하]]></category>
		<category><![CDATA[소프트웨어 RAID]]></category>
		<category><![CDATA[스트라이핑]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[실습 동영상]]></category>
		<category><![CDATA[쓰기 성능]]></category>
		<category><![CDATA[온라인 자료]]></category>
		<category><![CDATA[읽기 성능]]></category>
		<category><![CDATA[자동 마운트]]></category>
		<category><![CDATA[저장 공간 효율]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 시스템 생성]]></category>
		<category><![CDATA[파일 시스템 포맷]]></category>
		<category><![CDATA[패리티]]></category>
		<category><![CDATA[확장성]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=39072</guid>

					<description><![CDATA[<p>RAID 6 데이터를 스트라이핑(Striping) 방식으로 저장하면서, 두 개의 패리티(Parity) 정보를 사용하여 최대 2개의 디스크가 동시에 손상되어도 데이터를 복구할 수 있는 고안정성 RAID 레벨 RAID 5와 비슷하지만, 패리티 블록을 두 개로 늘려 더 높은 안정성을 제공하며, 최소 4개의 디스크가 필요합니다. RAID 6 특징 RAID 6 장점 RAID 6 단점 RAID 6 실습 RAID 10 (1+0) RAID [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/">RAID 6, RAID 10(1+0)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-b1e0c6ae      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6" class="uagb-toc-link__trigger">RAID 6</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6-특징" class="uagb-toc-link__trigger">RAID 6 특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6-장점" class="uagb-toc-link__trigger">RAID 6 장점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6-단점" class="uagb-toc-link__trigger">RAID 6 단점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6-실습" class="uagb-toc-link__trigger">RAID 6 실습</a></li></ul></li><li class="uagb-toc__list"><a href="#raid-10-10" class="uagb-toc-link__trigger">RAID 10 (1+0)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-10-구조" class="uagb-toc-link__trigger">RAID 10 구조</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-10-특징" class="uagb-toc-link__trigger">RAID 10 특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-10-장점" class="uagb-toc-link__trigger">RAID 10 장점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-10-단점" class="uagb-toc-link__trigger">RAID 10 단점</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-10-실습" class="uagb-toc-link__trigger">RAID 10 실습</a></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">RAID 6</h2>



<p>데이터를 <strong>스트라이핑(Striping) 방식</strong>으로 저장하면서, <strong>두 개의 패리티(Parity)</strong> 정보를 사용하여 </p>



<p><strong>최대 2개의 디스크가 동시에 손상</strong>되어도 데이터를 복구할 수 있는 고안정성 RAID 레벨</p>



<p>RAID 5와 비슷하지만, <strong>패리티 블록</strong>을 <strong>두 개</strong>로 늘려 더 높은 안정성을 제공하며, <strong>최소 4개의 디스크</strong>가 필요합니다.</p>



<figure class="wp-block-image"><img decoding="async" width="513" height="266" src="https://lycos7560.com/wp-content/uploads/2024/12/image-72.png" alt="" class="wp-image-38962" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-72.png 513w, https://lycos7560.com/wp-content/uploads/2024/12/image-72-300x156.png 300w" sizes="(max-width: 513px) 100vw, 513px" /><figcaption class="wp-element-caption"><a href="https://coolenjoy.net/bbs/review/476595" target="_blank" rel="noreferrer noopener">https://coolenjoy.net/bbs/review/476595</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>스트라이핑(Striping)</strong></p>



<p>데이터를 여러 디스크에 <strong>작은 단위로 나누어 병렬로 저장</strong>하는 기술</p>



<ul class="wp-block-list">
<li>RAID 레벨에서 주로 사용되며, 디스크의 읽기 및 쓰기 성능을 향상시키기 위해 고안된 방식</li>



<li>데이터를 &#8220;블록&#8221; 단위로 나누어 각 디스크에 분산 저장함으로써 여러 디스크에서 동시에 데이터를 읽거나 쓸 수 있</li>
</ul>
</blockquote>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 6 특징</h3>



<ol class="wp-block-list">
<li><strong>스트라이핑과 이중 패리티</strong>
<ul class="wp-block-list">
<li>데이터를 여러 디스크에 스트라이핑 방식으로 분산 저장.</li>



<li>각 디스크에 두 개의 패리티를 저장하여,<strong> 디스크 두 개가 동시에 고장 나더라도</strong> 데이터를 복구 가능.</li>
</ul>
</li>



<li><strong>높은 데이터 안정성</strong>
<ul class="wp-block-list">
<li>RAID 5보다 더 높은 안정성을 제공하며, 데이터 손실 가능성이 낮음.</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>전체 디스크 중 2개는 패리티 저장에 사용되므로, 총 용량 = (N &#8211; 2) x 단일 디스크 크기(N = 디스크 개수).</li>



<li>예: 4TB 디스크 6개 → RAID 6 용량 = 16TB (8TB는 패리티에 사용).</li>
</ul>
</li>



<li><strong>성능</strong>
<ul class="wp-block-list">
<li>읽기 성능: 스트라이핑 덕분에 RAID 5 수준으로 빠름.</li>



<li>쓰기 성능: 두 개의 패리티 계산으로 인해 RAID 5보다 느림.</li>
</ul>
</li>
</ol>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 6 장점</h3>



<ol class="wp-block-list">
<li><strong>높은 안정성</strong>
<ul class="wp-block-list">
<li>동시에 두 개의 디스크가 고장 나더라도 데이터 복구 가능.</li>



<li>RAID 5보다 안정성이 크게 향상됨.</li>
</ul>
</li>



<li><strong>공간 효율성</strong>
<ul class="wp-block-list">
<li>2개의 패리티를 사용하지만, 여전히 전체 디스크 용량의 대부분을 데이터 저장에 사용 가능.</li>
</ul>
</li>



<li><strong>성능과 안정성의 균형</strong>
<ul class="wp-block-list">
<li>읽기 작업은 스트라이핑 덕분에 빠르고, 데이터 안정성도 보장.</li>
</ul>
</li>



<li><strong>확장성</strong>
<ul class="wp-block-list">
<li>디스크를 추가하여 용량을 쉽게 확장 가능.</li>
</ul>
</li>
</ol>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 6 단점</h3>



<ol class="wp-block-list">
<li><strong>복잡한 패리티 계산</strong>
<ul class="wp-block-list">
<li>두 개의 패리티를 계산해야 하므로 쓰기 작업에서 RAID 5보다 성능이 더 낮음.</li>



<li>쓰기 성능이 중요한 환경에서는 <strong>RAID 10(1+0)</strong>이 더 적합할 수 있음.</li>
</ul>
</li>



<li><strong>디스크 용량 감소</strong>
<ul class="wp-block-list">
<li>RAID 5보다 두 개의 디스크 용량을 패리티에 사용하므로 저장 공간 효율이 약간 낮음.</li>
</ul>
</li>



<li><strong>복구 시간 증가</strong>
<ul class="wp-block-list">
<li>대용량 디스크가 많아질수록 복구 시간이 오래 걸리며, 복구 중 성능 저하가 발생할 수 있음.</li>
</ul>
</li>
</ol>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 6 실습</h3>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="401" height="446" src="https://lycos7560.com/wp-content/uploads/2024/12/image-159.png" alt="" class="wp-image-39073" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-159.png 401w, https://lycos7560.com/wp-content/uploads/2024/12/image-159-270x300.png 270w" sizes="(max-width: 401px) 100vw, 401px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=Li8koNVb8ck&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=39" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=Li8koNVb8ck&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=39</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="748" height="725" src="https://lycos7560.com/wp-content/uploads/2024/12/image-162.png" alt="" class="wp-image-39083" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-162.png 748w, https://lycos7560.com/wp-content/uploads/2024/12/image-162-300x291.png 300w" sizes="(max-width: 748px) 100vw, 748px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
ls -a /dev/sd*
fsidk -l</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1205" height="206" src="https://lycos7560.com/wp-content/uploads/2024/12/image-160.png" alt="" class="wp-image-39075" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-160.png 1205w, https://lycos7560.com/wp-content/uploads/2024/12/image-160-300x51.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-160-768x131.png 768w" sizes="(max-width: 1205px) 100vw, 1205px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="509" height="1702" src="https://lycos7560.com/wp-content/uploads/2024/12/image-161.png" alt="" class="wp-image-39076" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-161.png 509w, https://lycos7560.com/wp-content/uploads/2024/12/image-161-90x300.png 90w, https://lycos7560.com/wp-content/uploads/2024/12/image-161-459x1536.png 459w" sizes="(max-width: 509px) 100vw, 509px" /><figcaption class="wp-element-caption">8개의 Linux raid autodetect type을 생성 (Raid 6과 10 연습)</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># sdb1, sdc1, sdd1, sde1  총 4개를 RAID 6
mdadm --create /dev/md6 --level=6 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="871" height="155" src="https://lycos7560.com/wp-content/uploads/2024/12/image-163.png" alt="" class="wp-image-39084" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-163.png 871w, https://lycos7560.com/wp-content/uploads/2024/12/image-163-300x53.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-163-768x137.png 768w" sizes="(max-width: 871px) 100vw, 871px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
mdadm --detail /dev/md6
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="845" height="651" src="https://lycos7560.com/wp-content/uploads/2024/12/image-164.png" alt="" class="wp-image-39085" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-164.png 845w, https://lycos7560.com/wp-content/uploads/2024/12/image-164-300x231.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-164-768x592.png 768w" sizes="(max-width: 845px) 100vw, 845px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# ext4 파일 시스템을 생성 및 포맷하는 과정
mkfs.ext4 /dev/md6</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1120" height="303" src="https://lycos7560.com/wp-content/uploads/2024/12/image-165.png" alt="" class="wp-image-39086" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-165.png 1120w, https://lycos7560.com/wp-content/uploads/2024/12/image-165-300x81.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-165-768x208.png 768w" sizes="(max-width: 1120px) 100vw, 1120px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 마운트할 폴더 생성
mkdir /raid6 

# raid6에 마운트
mount /dev/md6 /raid6

# 마운트 확인
ls -a /raid6
df
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="805" height="210" src="https://lycos7560.com/wp-content/uploads/2024/12/image-166.png" alt="" class="wp-image-39088" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-166.png 805w, https://lycos7560.com/wp-content/uploads/2024/12/image-166-300x78.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-166-768x200.png 768w" sizes="(max-width: 805px) 100vw, 805px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 부팅 시 자동 마운트 등록
gedit /etc/fstab

/dev/md6 /raid6 ext4 defaults 0 0

# daemon reload
systemctl daemon-reload
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1075" height="418" src="https://lycos7560.com/wp-content/uploads/2024/12/image-167.png" alt="" class="wp-image-39089" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-167.png 1075w, https://lycos7560.com/wp-content/uploads/2024/12/image-167-300x117.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-167-768x299.png 768w" sizes="(max-width: 1075px) 100vw, 1075px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 시스템 재부팅 시에도 RAID 배열을 인식하도록 하는 과정
mdadm --detail --scan /dev/md6 >> /etc/mdadm/mdadm.conf

update-initramfs -u

#배열 등록 확인
cat /etc/mdadm/mdadm.conf
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1117" height="604" src="https://lycos7560.com/wp-content/uploads/2024/12/image-168.png" alt="" class="wp-image-39090" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-168.png 1117w, https://lycos7560.com/wp-content/uploads/2024/12/image-168-300x162.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-168-768x415.png 768w" sizes="(max-width: 1117px) 100vw, 1117px" /></figure>



<div style="height:102px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>RAID 10 (1+0)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="723" height="351" src="https://lycos7560.com/wp-content/uploads/2024/12/image-169.jpg" alt="" class="wp-image-39091" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-169.jpg 723w, https://lycos7560.com/wp-content/uploads/2024/12/image-169-300x146.jpg 300w" sizes="(max-width: 723px) 100vw, 723px" /><figcaption class="wp-element-caption"><a href="https://serverdiskdrives.com/blogs/server-hardware/what-is-then-raid-10" target="_blank" rel="noreferrer noopener">https://serverdiskdrives.com/blogs/server-hardware/what-is-then-raid-10</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p><strong>RAID 1+0</strong>, 흔히 <strong>RAID 10</strong>이라고 불리는 이 구성은 <strong>RAID 1(미러링)</strong>과 <strong>RAID 0(스트라이핑)</strong>의 결합</p>



<ul class="wp-block-list">
<li>데이터를 안전하게 보호하면서 동시에 읽기/쓰기 성능을 향상시키는 RAID 레벨</li>



<li><strong>최소 4개의 디스크</strong>가 필요하며, <strong>디스크</strong>가 <strong>짝수</strong> 개여야 구성 가능</li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>RAID 10 구조</strong></h3>



<p>RAID 10은 먼저 데이터를 미러링(RAID 1)으로 복제한 후, 스트라이핑(RAID 0)을 적용</p>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">구성 예시: 4개의 디스크로 RAID 10 구성</h4>



<ol class="wp-block-list">
<li><strong>미러링(RAID 1)</strong>
<ul class="wp-block-list">
<li>동일한 데이터를 두 개의 디스크에 복사하여 저장</li>



<li>예:
<ul class="wp-block-list">
<li>디스크 1과 디스크 2는 동일한 데이터를 저장</li>



<li>디스크 3과 디스크 4도 동일한 데이터를 저장</li>
</ul>
</li>
</ul>
</li>



<li><strong>스트라이핑(RAID 0)</strong>
<ul class="wp-block-list">
<li>미러링된 디스크 쌍을 스트라이핑하여 읽기/쓰기 성능을 향상</li>



<li>데이터 블록이 디스크 1+2와 디스크 3+4에 번갈아가며 저장됨</li>
</ul>
</li>
</ol>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>RAID 그룹</th><th>디스크 1</th><th>디스크 2</th><th>디스크 3</th><th>디스크 4</th></tr></thead><tbody><tr><td><strong>미러링</strong></td><td>A</td><td>A</td><td>B</td><td>B</td></tr><tr><td><strong>스트라이핑</strong></td><td>A+B</td><td>A+B</td><td>A+B</td><td>A+B</td></tr></tbody></table></figure>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>RAID 10</strong> <strong>특징</strong></h3>



<ol class="wp-block-list">
<li><strong>성능</strong>
<ul class="wp-block-list">
<li>스트라이핑 덕분에 읽기와 쓰기 작업 속도가 RAID 1보다 빠릅니다.</li>
</ul>
</li>



<li><strong>데이터 안전성</strong>
<ul class="wp-block-list">
<li>미러링으로 인해 디스크 하나가 고장 나도 데이터를 복구할 수 있습니다.</li>



<li>각 미러 그룹에서 한 디스크씩(최대 2개)이 고장 나더라도 복구 가능.</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>총 용량 = 디스크 총 개수의 절반 × 단일 디스크 용량.</li>



<li>예: 4TB 디스크 4개 → RAID 10 용량 = 8TB.</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>RAID 10 장점</strong></h3>



<ol class="wp-block-list">
<li><strong>높은 데이터 안정성</strong>
<ul class="wp-block-list">
<li>RAID 1의 미러링 덕분에 디스크 하나가 고장 나도 데이터 복구 가능</li>



<li>RAID 0보다 훨씬 안전함</li>
</ul>
</li>



<li><strong>우수한 성능</strong>
<ul class="wp-block-list">
<li>스트라이핑으로 읽기와 쓰기 성능이 RAID 1보다 훨씬 빠름</li>



<li>특히 데이터 액세스 속도가 중요한 작업에 유리</li>
</ul>
</li>



<li><strong>복구 시간 단축</strong>
<ul class="wp-block-list">
<li>디스크 하나가 고장 나도 나머지 디스크에서 복구가 빠르게 진행됨</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>RAID 10 단점</strong></h3>



<ol class="wp-block-list">
<li><strong>낮은 디스크 효율성</strong>
<ul class="wp-block-list">
<li>전체 디스크 용량의 절반만 데이터 저장에 사용 가능</li>



<li>RAID 5, RAID 6보다 공간 효율성이 낮음</li>
</ul>
</li>



<li><strong>비용이 높음</strong>
<ul class="wp-block-list">
<li>데이터를 미러링하므로 같은 용량을 저장하려면 두 배의 디스크가 필요</li>
</ul>
</li>



<li><strong>복잡성</strong>
<ul class="wp-block-list">
<li>설정 및 관리를 위해 RAID 컨트롤러 또는 소프트웨어 RAID가 필요</li>
</ul>
</li>
</ol>



<div style="height:41px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>RAID 10 실습</strong></h3>



<p> mdadm으로 raid 10을 바로 적용할 수 있음</p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
mdadm --create /dev/md10 --level=10 --raid-devices=4 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1

mkfs.ext4 /dev/md10

mkdir /raid10

mount /dev/md10 /raid10
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1011" height="309" src="https://lycos7560.com/wp-content/uploads/2024/12/image-169.png" alt="" class="wp-image-39092" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-169.png 1011w, https://lycos7560.com/wp-content/uploads/2024/12/image-169-300x92.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-169-768x235.png 768w" sizes="(max-width: 1011px) 100vw, 1011px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
df

mdadm --detail /dev/md10
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="800" height="715" src="https://lycos7560.com/wp-content/uploads/2024/12/image-170.png" alt="" class="wp-image-39093" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-170.png 800w, https://lycos7560.com/wp-content/uploads/2024/12/image-170-300x268.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-170-768x686.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 부팅 시 자동 마운트 등록
gedit /etc/fstab

/dev/md10 /raid10 ext4 defaults 0 0

# daemon reload
systemctl daemon-reload
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1102" height="453" src="https://lycos7560.com/wp-content/uploads/2024/12/image-171.png" alt="" class="wp-image-39094" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-171.png 1102w, https://lycos7560.com/wp-content/uploads/2024/12/image-171-300x123.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-171-768x316.png 768w" sizes="(max-width: 1102px) 100vw, 1102px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 시스템 재부팅 시에도 RAID 배열을 인식하도록 하는 과정
mdadm --detail --scan /dev/md10 >> /etc/mdadm/mdadm.conf

update-initramfs -u

#배열 등록 확인
cat /etc/mdadm/mdadm.conf
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="902" height="608" src="https://lycos7560.com/wp-content/uploads/2024/12/image-172.png" alt="" class="wp-image-39095" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-172.png 902w, https://lycos7560.com/wp-content/uploads/2024/12/image-172-300x202.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-172-768x518.png 768w" sizes="(max-width: 902px) 100vw, 902px" /></figure>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/">RAID 6, RAID 10(1+0)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; RAID 0, 1, 5 실습</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Thu, 05 Dec 2024 11:27:22 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[Data Integrity]]></category>
		<category><![CDATA[Data Protection]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Data Redundancy]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[Disk Failure]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Hardware RAID]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Linear RAID]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[Mirroring]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Parity]]></category>
		<category><![CDATA[Partition]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Performance Degradation]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[RAID 0]]></category>
		<category><![CDATA[RAID 1]]></category>
		<category><![CDATA[RAID 5]]></category>
		<category><![CDATA[RAID 6]]></category>
		<category><![CDATA[Read Speed]]></category>
		<category><![CDATA[Recovery Time]]></category>
		<category><![CDATA[Reliability]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Software RAID]]></category>
		<category><![CDATA[Space Efficiency]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[storage management]]></category>
		<category><![CDATA[Storage Space]]></category>
		<category><![CDATA[Striping]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[System Configuration]]></category>
		<category><![CDATA[Ubuntu - RAID]]></category>
		<category><![CDATA[Write Speed]]></category>
		<category><![CDATA[고가용성]]></category>
		<category><![CDATA[공간 효율성]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[데이터 무결성]]></category>
		<category><![CDATA[데이터 보호]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[데이터 중복성]]></category>
		<category><![CDATA[디스크]]></category>
		<category><![CDATA[디스크 손상]]></category>
		<category><![CDATA[레이드]]></category>
		<category><![CDATA[레이드 0]]></category>
		<category><![CDATA[레이드 1]]></category>
		<category><![CDATA[레이드 5]]></category>
		<category><![CDATA[레이드 6]]></category>
		<category><![CDATA[미러링]]></category>
		<category><![CDATA[복구 시간]]></category>
		<category><![CDATA[부팅]]></category>
		<category><![CDATA[성능]]></category>
		<category><![CDATA[성능 저하]]></category>
		<category><![CDATA[소프트웨어 RAID]]></category>
		<category><![CDATA[스토리지]]></category>
		<category><![CDATA[스토리지 관리]]></category>
		<category><![CDATA[스트라이핑]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 설정]]></category>
		<category><![CDATA[쓰기 속도]]></category>
		<category><![CDATA[안정성]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[운영 체제]]></category>
		<category><![CDATA[읽기 속도]]></category>
		<category><![CDATA[저장 공간]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파티션]]></category>
		<category><![CDATA[패리티]]></category>
		<category><![CDATA[하드웨어 RAID]]></category>
		<category><![CDATA[확장성]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38964</guid>

					<description><![CDATA[<p>1. 하드 7개 추가 2. RAID 0 구축 2. RAID 1 구축 3. RAID 5 구축 (3개) 4. RAID 0 1 5 장치 고장 내기 각 RAID의 장치 하나씩을 제거하여 고장과 같은 상황을 만듬 5. RAID 0 1 5 복구 제거한 하드 3개 추가</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/">Ubuntu &#8211; RAID 0, 1, 5 실습</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-b2b5ecf1      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-하드-7개-추가" class="uagb-toc-link__trigger">1. 하드 7개 추가</a><li class="uagb-toc__list"><a href="#2-raid-0-구축" class="uagb-toc-link__trigger">2. RAID 0 구축</a><li class="uagb-toc__list"><a href="#2-raid-1-구축" class="uagb-toc-link__trigger">2. RAID 1 구축</a><li class="uagb-toc__list"><a href="#3-raid-5-구축-3개" class="uagb-toc-link__trigger">3. RAID 5 구축 (3개)</a><li class="uagb-toc__list"><a href="#4-raid-0-1-5-장치-고장-내기" class="uagb-toc-link__trigger">4. RAID 0 1 5 장치 고장 내기</a><li class="uagb-toc__list"><a href="#5-raid-0-1-5-복구" class="uagb-toc-link__trigger">5. RAID 0 1 5 복구</a></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="3rFZaQu4Nv"><a href="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/">Ubuntu &#8211; Hard disk management (Add Disk)</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu &#8211; Hard disk management (Add Disk)&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/embed/#?secret=tOdDx8CaMS#?secret=3rFZaQu4Nv" data-secret="3rFZaQu4Nv" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div><figcaption class="wp-element-caption">사전 작업이 필요함</figcaption></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">1. 하드 7개 추가</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="417" height="454" src="https://lycos7560.com/wp-content/uploads/2024/12/image-73.png" alt="" class="wp-image-38965" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-73.png 417w, https://lycos7560.com/wp-content/uploads/2024/12/image-73-276x300.png 276w" sizes="(max-width: 417px) 100vw, 417px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=stRWo6sPGyI&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=35">https://www.youtube.com/watch?v=stRWo6sPGyI&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=35</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="754" height="728" src="https://lycos7560.com/wp-content/uploads/2024/12/image-74.png" alt="" class="wp-image-38966" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-74.png 754w, https://lycos7560.com/wp-content/uploads/2024/12/image-74-300x290.png 300w" sizes="(max-width: 754px) 100vw, 754px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="754" height="728" src="https://lycos7560.com/wp-content/uploads/2024/12/image-75.png" alt="" class="wp-image-38968" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-75.png 754w, https://lycos7560.com/wp-content/uploads/2024/12/image-75-300x290.png 300w" sizes="(max-width: 754px) 100vw, 754px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="731" src="https://lycos7560.com/wp-content/uploads/2024/12/image-76.png" alt="" class="wp-image-38969" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-76.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-76-300x290.png 300w" sizes="(max-width: 757px) 100vw, 757px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="747" height="724" src="https://lycos7560.com/wp-content/uploads/2024/12/image-77.png" alt="" class="wp-image-38970" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-77.png 747w, https://lycos7560.com/wp-content/uploads/2024/12/image-77-300x291.png 300w" sizes="(max-width: 747px) 100vw, 747px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="731" src="https://lycos7560.com/wp-content/uploads/2024/12/image-78.png" alt="" class="wp-image-38971" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-78.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-78-300x290.png 300w" sizes="(max-width: 757px) 100vw, 757px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="743" height="441" src="https://lycos7560.com/wp-content/uploads/2024/12/image-79.png" alt="" class="wp-image-38972" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-79.png 743w, https://lycos7560.com/wp-content/uploads/2024/12/image-79-300x178.png 300w" sizes="(max-width: 743px) 100vw, 743px" /><figcaption class="wp-element-caption">위의 과정을 반복</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="748" height="730" src="https://lycos7560.com/wp-content/uploads/2024/12/image-80.png" alt="" class="wp-image-38973" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-80.png 748w, https://lycos7560.com/wp-content/uploads/2024/12/image-80-300x293.png 300w" sizes="(max-width: 748px) 100vw, 748px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1265" height="261" src="https://lycos7560.com/wp-content/uploads/2024/12/image-81.png" alt="" class="wp-image-38974" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-81.png 1265w, https://lycos7560.com/wp-content/uploads/2024/12/image-81-300x62.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-81-768x158.png 768w" sizes="(max-width: 1265px) 100vw, 1265px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1199" height="672" src="https://lycos7560.com/wp-content/uploads/2024/12/image-82.png" alt="" class="wp-image-38975" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-82.png 1199w, https://lycos7560.com/wp-content/uploads/2024/12/image-82-300x168.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-82-768x430.png 768w" sizes="(max-width: 1199px) 100vw, 1199px" /><figcaption class="wp-element-caption">fdisk를 이용하여 파티셔닝 / RAID를 위해서 Linx -&gt; Linux raid auto 로 변경해야함</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="625" height="348" src="https://lycos7560.com/wp-content/uploads/2024/12/image-83.png" alt="" class="wp-image-38977" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-83.png 625w, https://lycos7560.com/wp-content/uploads/2024/12/image-83-300x167.png 300w" sizes="(max-width: 625px) 100vw, 625px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1207" height="744" src="https://lycos7560.com/wp-content/uploads/2024/12/image-84.png" alt="" class="wp-image-38978" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-84.png 1207w, https://lycos7560.com/wp-content/uploads/2024/12/image-84-300x185.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-84-768x473.png 768w" sizes="(max-width: 1207px) 100vw, 1207px" /><figcaption class="wp-element-caption">m을 이용하여 도움말 확인 t를 이용하여 파티션 타입 변경</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1176" height="756" src="https://lycos7560.com/wp-content/uploads/2024/12/image-85.png" alt="" class="wp-image-38979" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-85.png 1176w, https://lycos7560.com/wp-content/uploads/2024/12/image-85-300x193.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-85-768x494.png 768w" sizes="(max-width: 1176px) 100vw, 1176px" /><figcaption class="wp-element-caption">fd : Linux raid auto</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1253" height="488" src="https://lycos7560.com/wp-content/uploads/2024/12/image-86.png" alt="" class="wp-image-38980" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-86.png 1253w, https://lycos7560.com/wp-content/uploads/2024/12/image-86-300x117.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-86-768x299.png 768w" sizes="(max-width: 1253px) 100vw, 1253px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="744" height="243" src="https://lycos7560.com/wp-content/uploads/2024/12/image-87.png" alt="" class="wp-image-38981" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-87.png 744w, https://lycos7560.com/wp-content/uploads/2024/12/image-87-300x98.png 300w" sizes="(max-width: 744px) 100vw, 744px" /><figcaption class="wp-element-caption">w: write로 저장</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1275" height="252" src="https://lycos7560.com/wp-content/uploads/2024/12/image-88.png" alt="" class="wp-image-38982" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-88.png 1275w, https://lycos7560.com/wp-content/uploads/2024/12/image-88-300x59.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-88-768x152.png 768w" sizes="(max-width: 1275px) 100vw, 1275px" /><figcaption class="wp-element-caption">위의 과정을 반복</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># RAID 패키지
sudo apt update
sudo apt -y install mdadm
</pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">2. RAID 0 구축</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="618" height="321" src="https://lycos7560.com/wp-content/uploads/2024/12/image-89.png" alt="" class="wp-image-38983" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-89.png 618w, https://lycos7560.com/wp-content/uploads/2024/12/image-89-300x156.png 300w" sizes="(max-width: 618px) 100vw, 618px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=k50nGEIKL2g&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=36" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=k50nGEIKL2g&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=36</a></figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1213" height="655" src="https://lycos7560.com/wp-content/uploads/2024/12/image-90.png" alt="" class="wp-image-38984" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-90.png 1213w, https://lycos7560.com/wp-content/uploads/2024/12/image-90-300x162.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-90-768x415.png 768w" sizes="(max-width: 1213px) 100vw, 1213px" /><figcaption class="wp-element-caption">fdisk로 확인</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1

# mdadm: 리눅스에서 소프트웨어 RAID를 관리하기 위한 유틸리티
# --create: 새로운 RAID 배열을 생성하기 위한 옵션
# /dev/md0: 생성할 RAID 배열의 장치 이름
# --level=0: RAID 레벨을 지정, 여기서는 RAID 0(스트라이핑) 레벨을 사용
# --raid-devices=2: RAID 배열에 사용할 디스크 장치의 수를 지정, 여기서는 2개의 디스크를 사용
# /dev/sdb1 /dev/sdc1: RAID 배열에 포함될 디스크 파티션, 여기서는 /dev/sdb1과 /dev/sdc1 두 개의 파티션을 사용</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1208" height="196" src="https://lycos7560.com/wp-content/uploads/2024/12/image-91.png" alt="" class="wp-image-38985" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-91.png 1208w, https://lycos7560.com/wp-content/uploads/2024/12/image-91-300x49.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-91-768x125.png 768w" sizes="(max-width: 1208px) 100vw, 1208px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 모든 RAID 배열에 대한 상세 정보를 출력
sudo mdadm --detail --scan</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1224" height="218" src="https://lycos7560.com/wp-content/uploads/2024/12/image-92.png" alt="" class="wp-image-38986" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-92.png 1224w, https://lycos7560.com/wp-content/uploads/2024/12/image-92-300x53.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-92-768x137.png 768w" sizes="(max-width: 1224px) 100vw, 1224px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /dev/md0 장치에 ext4 파일 시스템을 생성
# RAID 배열을 생성한 후, 파일 시스템을 초기화하여 사용할 수 있게 하는 중요한 단계
mkfs.ext4 /dev/md0
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1155" height="388" src="https://lycos7560.com/wp-content/uploads/2024/12/image-93.png" alt="" class="wp-image-38987" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-93.png 1155w, https://lycos7560.com/wp-content/uploads/2024/12/image-93-300x101.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-93-768x258.png 768w" sizes="(max-width: 1155px) 100vw, 1155px" /><figcaption class="wp-element-caption">mkfs.ext4 /dev/md0 </figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1091" height="303" src="https://lycos7560.com/wp-content/uploads/2024/12/image-94.png" alt="" class="wp-image-38988" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-94.png 1091w, https://lycos7560.com/wp-content/uploads/2024/12/image-94-300x83.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-94-768x213.png 768w" sizes="(max-width: 1091px) 100vw, 1091px" /><figcaption class="wp-element-caption">/raid0 위치로 mount</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1225" height="421" src="https://lycos7560.com/wp-content/uploads/2024/12/image-95.png" alt="" class="wp-image-38989" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-95.png 1225w, https://lycos7560.com/wp-content/uploads/2024/12/image-95-300x103.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-95-768x264.png 768w" sizes="(max-width: 1225px) 100vw, 1225px" /><figcaption class="wp-element-caption">/etc/fstab에 등록</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/dev/md0 /raid0 ext4 defaults 0 0</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># mdadm.conf 등록
sudo mdadm --detail --scan /dev/md0 >> /etc/mdadm/mdadm.conf

# 업데이트
sudo update-initramfs -u</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1075" height="597" src="https://lycos7560.com/wp-content/uploads/2024/12/image-98.png" alt="" class="wp-image-38992" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-98.png 1075w, https://lycos7560.com/wp-content/uploads/2024/12/image-98-300x167.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-98-768x427.png 768w" sizes="(max-width: 1075px) 100vw, 1075px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">systemctl daemon-reload</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="936" height="57" src="https://lycos7560.com/wp-content/uploads/2024/12/image-96.png" alt="" class="wp-image-38990" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-96.png 936w, https://lycos7560.com/wp-content/uploads/2024/12/image-96-300x18.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-96-768x47.png 768w" sizes="(max-width: 936px) 100vw, 936px" /><figcaption class="wp-element-caption">등록 후 데몬 재시작</figcaption></figure>



<p></p>



<figure class="wp-block-image"><img decoding="async" width="1157" height="750" src="https://lycos7560.com/wp-content/uploads/2024/12/image-97.png" alt="" class="wp-image-38991" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-97.png 1157w, https://lycos7560.com/wp-content/uploads/2024/12/image-97-300x194.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-97-768x498.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /><figcaption class="wp-element-caption">mdadm &#8211;detail /dev/md0 를 이용하여 정보 확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="629" height="628" src="https://lycos7560.com/wp-content/uploads/2024/12/image-99.png" alt="" class="wp-image-38993" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-99.png 629w, https://lycos7560.com/wp-content/uploads/2024/12/image-99-300x300.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-99-150x150.png 150w" sizes="(max-width: 629px) 100vw, 629px" /></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">2. RAID 1 구축</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># RAID Disk 정보 확인
fdisk -l /dev/sdd
fdisk -l /dev/sde
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1189" height="535" src="https://lycos7560.com/wp-content/uploads/2024/12/image-100.png" alt="" class="wp-image-38994" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-100.png 1189w, https://lycos7560.com/wp-content/uploads/2024/12/image-100-300x135.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-100-768x346.png 768w" sizes="(max-width: 1189px) 100vw, 1189px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1

# mdadm: 리눅스에서 소프트웨어 RAID를 관리하기 위한 유틸리티
# --create: 새로운 RAID 배열을 생성하기 위한 옵션
# /dev/md1: 생성할 RAID 배열의 장치 이름
# --level=1: RAID 레벨을 지정, 여기서는 RAID 1 레벨을 사용
# --raid-devices=2: RAID 배열에 사용할 디스크 장치의 수를 지정, 여기서는 2개의 디스크를 사용
# /dev/sdd1 /dev/sde1: RAID 배열에 포함될 디스크 파티션, 여기서는 /dev/sdd1과 /dev/sde1 두 개의 파티션을 사용</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="926" height="209" src="https://lycos7560.com/wp-content/uploads/2024/12/image-101.png" alt="" class="wp-image-38995" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-101.png 926w, https://lycos7560.com/wp-content/uploads/2024/12/image-101-300x68.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-101-768x173.png 768w" sizes="(max-width: 926px) 100vw, 926px" /><figcaption class="wp-element-caption">부팅장치로 사용이 불가능하다는 의미 y로 넘어가자</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Raid 정보 확인
mdadm --detail /dev/md1</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="947" height="638" src="https://lycos7560.com/wp-content/uploads/2024/12/image-102.png" alt="" class="wp-image-38996" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-102.png 947w, https://lycos7560.com/wp-content/uploads/2024/12/image-102-300x202.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-102-768x517.png 768w" sizes="(max-width: 947px) 100vw, 947px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 마운트할 폴더 생성
sudo mkdir /raid1

# mdadm.conf 등록
sudo mdadm --detail --scan /dev/md1 >> /etc/mdadm/mdadm.conf

# 업데이트
sudo update-initramfs -u

#등록 확인 
cat /etc/mdadm/mdadm.conf</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="700" height="555" src="https://lycos7560.com/wp-content/uploads/2024/12/image-103.png" alt="" class="wp-image-38997" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-103.png 700w, https://lycos7560.com/wp-content/uploads/2024/12/image-103-300x238.png 300w" sizes="(max-width: 700px) 100vw, 700px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /dev/md1 장치에 ext4 파일 시스템을 생성
# RAID 배열을 생성한 후, 파일 시스템을 초기화하여 사용할 수 있게 하는 중요한 단계
mkfs.ext4 /dev/md1
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="727" height="278" src="https://lycos7560.com/wp-content/uploads/2024/12/image-104.png" alt="" class="wp-image-38998" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-104.png 727w, https://lycos7560.com/wp-content/uploads/2024/12/image-104-300x115.png 300w" sizes="(max-width: 727px) 100vw, 727px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># raid1 으로 mount
mount /dev/md1 /raid1

#마운트 확인
df</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1183" height="224" src="https://lycos7560.com/wp-content/uploads/2024/12/image-105.png" alt="" class="wp-image-38999" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-105.png 1183w, https://lycos7560.com/wp-content/uploads/2024/12/image-105-300x57.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-105-768x145.png 768w" sizes="(max-width: 1183px) 100vw, 1183px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /etc/fstab 에 등록 (부팅 시 마운트)
echo '/dev/md1 /raid1 ext4 defaults 0 0' | sudo tee -a /etc/fstab

# 등록 확인
cat /etc/fstab

#데몬 재시작
systemctl daemon-reload</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1169" height="378" src="https://lycos7560.com/wp-content/uploads/2024/12/image-106.png" alt="" class="wp-image-39001" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-106.png 1169w, https://lycos7560.com/wp-content/uploads/2024/12/image-106-300x97.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-106-768x248.png 768w" sizes="(max-width: 1169px) 100vw, 1169px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="532" height="213" src="https://lycos7560.com/wp-content/uploads/2024/12/image-107.png" alt="" class="wp-image-39002" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-107.png 532w, https://lycos7560.com/wp-content/uploads/2024/12/image-107-300x120.png 300w" sizes="(max-width: 532px) 100vw, 532px" /><figcaption class="wp-element-caption">재부팅 후 확인</figcaption></figure>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">3. RAID 5 구축 (3개)</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="475" height="327" src="https://lycos7560.com/wp-content/uploads/2024/12/image-110.png" alt="" class="wp-image-39005" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-110.png 475w, https://lycos7560.com/wp-content/uploads/2024/12/image-110-300x207.png 300w" sizes="(max-width: 475px) 100vw, 475px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=k50nGEIKL2g&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=36" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=k50nGEIKL2g&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=36</a></figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># RAID Disk 정보 확인
fdisk -l /dev/sdf
fdisk -l /dev/sdg
fdisk -l /dev/sdh
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1015" height="406" src="https://lycos7560.com/wp-content/uploads/2024/12/image-108.png" alt="" class="wp-image-39003" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-108.png 1015w, https://lycos7560.com/wp-content/uploads/2024/12/image-108-300x120.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-108-768x307.png 768w" sizes="(max-width: 1015px) 100vw, 1015px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="573" height="183" src="https://lycos7560.com/wp-content/uploads/2024/12/image-109.png" alt="" class="wp-image-39004" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-109.png 573w, https://lycos7560.com/wp-content/uploads/2024/12/image-109-300x96.png 300w" sizes="(max-width: 573px) 100vw, 573px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sdf1 /dev/sdg1 /dev/sdh1</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="926" height="113" src="https://lycos7560.com/wp-content/uploads/2024/12/image-111.png" alt="" class="wp-image-39006" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-111.png 926w, https://lycos7560.com/wp-content/uploads/2024/12/image-111-300x37.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-111-768x94.png 768w" sizes="(max-width: 926px) 100vw, 926px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mdadm --detail /dev/md5
</pre>



<figure class="wp-block-image size-full is-resized"><img decoding="async" width="666" height="575" src="https://lycos7560.com/wp-content/uploads/2024/12/image-112.png" alt="" class="wp-image-39007" style="width:666px;height:auto" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-112.png 666w, https://lycos7560.com/wp-content/uploads/2024/12/image-112-300x259.png 300w" sizes="(max-width: 666px) 100vw, 666px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mkfs.ext4 /dev/md5
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="497" height="245" src="https://lycos7560.com/wp-content/uploads/2024/12/image-113.png" alt="" class="wp-image-39009" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-113.png 497w, https://lycos7560.com/wp-content/uploads/2024/12/image-113-300x148.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo mkdir /raid5

sudo mdadm --detail --scan /dev/md5 >> /etc/mdadm/mdadm.conf

sudo update-initramfs -u

cat /etc/mdadm/mdadm.conf
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1130" height="557" src="https://lycos7560.com/wp-content/uploads/2024/12/image-114.png" alt="" class="wp-image-39010" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-114.png 1130w, https://lycos7560.com/wp-content/uploads/2024/12/image-114-300x148.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-114-768x379.png 768w" sizes="(max-width: 1130px) 100vw, 1130px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mount /dev/md5 /raid5
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="313" height="60" src="https://lycos7560.com/wp-content/uploads/2024/12/image-115.png" alt="" class="wp-image-39011" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-115.png 313w, https://lycos7560.com/wp-content/uploads/2024/12/image-115-300x58.png 300w" sizes="(max-width: 313px) 100vw, 313px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">df
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="620" height="218" src="https://lycos7560.com/wp-content/uploads/2024/12/image-116.png" alt="" class="wp-image-39012" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-116.png 620w, https://lycos7560.com/wp-content/uploads/2024/12/image-116-300x105.png 300w" sizes="(max-width: 620px) 100vw, 620px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">echo '/dev/md5 /raid5 ext4 defaults 0 0' | sudo tee -a /etc/fstab

cat /etc/fstab

systemctl daemon-reload
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="846" height="339" src="https://lycos7560.com/wp-content/uploads/2024/12/image-117.png" alt="" class="wp-image-39013" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-117.png 846w, https://lycos7560.com/wp-content/uploads/2024/12/image-117-300x120.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-117-768x308.png 768w" sizes="(max-width: 846px) 100vw, 846px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="795" height="290" src="https://lycos7560.com/wp-content/uploads/2024/12/image-118.png" alt="" class="wp-image-39014" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-118.png 795w, https://lycos7560.com/wp-content/uploads/2024/12/image-118-300x109.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-118-768x280.png 768w" sizes="(max-width: 795px) 100vw, 795px" /><figcaption class="wp-element-caption">재부팅 후 확인</figcaption></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">4. RAID 0 1 5 장치 고장 내기</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="863" height="525" src="https://lycos7560.com/wp-content/uploads/2024/12/image-119.png" alt="" class="wp-image-39019" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-119.png 863w, https://lycos7560.com/wp-content/uploads/2024/12/image-119-300x183.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-119-768x467.png 768w" sizes="(max-width: 863px) 100vw, 863px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 각 폴더에 더미파일 생성
fallocate -l 100M /raid0/dummy_file.img
fallocate -l 100M /raid1/dummy_file.img
fallocate -l 100M /raid5/dummy_file.img
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1072" height="257" src="https://lycos7560.com/wp-content/uploads/2024/12/image-122.png" alt="" class="wp-image-39022" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-122.png 1072w, https://lycos7560.com/wp-content/uploads/2024/12/image-122-300x72.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-122-768x184.png 768w" sizes="(max-width: 1072px) 100vw, 1072px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>각 RAID의 장치 하나씩을 제거하여 고장과 같은 상황을 만듬</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1044" height="720" src="https://lycos7560.com/wp-content/uploads/2024/12/image-120.png" alt="" class="wp-image-39020" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-120.png 1044w, https://lycos7560.com/wp-content/uploads/2024/12/image-120-300x207.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-120-768x530.png 768w" sizes="(max-width: 1044px) 100vw, 1044px" /><figcaption class="wp-element-caption">하드디스크를 제거</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1002" height="170" src="https://lycos7560.com/wp-content/uploads/2024/12/image-121.png" alt="" class="wp-image-39021" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-121.png 1002w, https://lycos7560.com/wp-content/uploads/2024/12/image-121-300x51.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-121-768x130.png 768w" sizes="(max-width: 1002px) 100vw, 1002px" /><figcaption class="wp-element-caption">ctrl + D로 넘어가기 </figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="678" height="219" src="https://lycos7560.com/wp-content/uploads/2024/12/image-123.png" alt="" class="wp-image-39023" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-123.png 678w, https://lycos7560.com/wp-content/uploads/2024/12/image-123-300x97.png 300w" sizes="(max-width: 678px) 100vw, 678px" /><figcaption class="wp-element-caption">ctrl + D로 넘어가기 </figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="736" height="210" src="https://lycos7560.com/wp-content/uploads/2024/12/image-124.png" alt="" class="wp-image-39024" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-124.png 736w, https://lycos7560.com/wp-content/uploads/2024/12/image-124-300x86.png 300w" sizes="(max-width: 736px) 100vw, 736px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 확인
mdadm --detail /dev/md0
mdadm --detail /dev/md1
mdadm --detail /dev/md5
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1172" height="688" src="https://lycos7560.com/wp-content/uploads/2024/12/image-125.png" alt="" class="wp-image-39025" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-125.png 1172w, https://lycos7560.com/wp-content/uploads/2024/12/image-125-300x176.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-125-768x451.png 768w" sizes="(max-width: 1172px) 100vw, 1172px" /><figcaption class="wp-element-caption">RAID가 비활성화 되어있음</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1149" height="402" src="https://lycos7560.com/wp-content/uploads/2024/12/image-126.png" alt="" class="wp-image-39026" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-126.png 1149w, https://lycos7560.com/wp-content/uploads/2024/12/image-126-300x105.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-126-768x269.png 768w" sizes="(max-width: 1149px) 100vw, 1149px" /><figcaption class="wp-element-caption">RAID가 비활성화 되어있음</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
#장치 확인
ls -l /dev/sd*

df
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="951" height="336" src="https://lycos7560.com/wp-content/uploads/2024/12/image-127.png" alt="" class="wp-image-39027" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-127.png 951w, https://lycos7560.com/wp-content/uploads/2024/12/image-127-300x106.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-127-768x271.png 768w" sizes="(max-width: 951px) 100vw, 951px" /><figcaption class="wp-element-caption">새로 이름이 부여가 된 것을 확인 할 수 있다.</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="543" height="174" src="https://lycos7560.com/wp-content/uploads/2024/12/image-128.png" alt="" class="wp-image-39028" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-128.png 543w, https://lycos7560.com/wp-content/uploads/2024/12/image-128-300x96.png 300w" sizes="(max-width: 543px) 100vw, 543px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
RAID 확
mdadm --detail --scan
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="940" height="188" src="https://lycos7560.com/wp-content/uploads/2024/12/image-129.png" alt="" class="wp-image-39029" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-129.png 940w, https://lycos7560.com/wp-content/uploads/2024/12/image-129-300x60.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-129-768x154.png 768w" sizes="(max-width: 940px) 100vw, 940px" /><figcaption class="wp-element-caption">전부 비활성화 되어있음</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#시작 
mdadm --run /dev/md0
mdadm --run /dev/md1
mdadm --run /dev/md5

mdadm --detail --scan</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="169" src="https://lycos7560.com/wp-content/uploads/2024/12/image-131.png" alt="" class="wp-image-39031" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-131.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-131-300x67.png 300w" sizes="(max-width: 761px) 100vw, 761px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="952" height="220" src="https://lycos7560.com/wp-content/uploads/2024/12/image-130.png" alt="" class="wp-image-39030" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-130.png 952w, https://lycos7560.com/wp-content/uploads/2024/12/image-130-300x69.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-130-768x177.png 768w" sizes="(max-width: 952px) 100vw, 952px" /><figcaption class="wp-element-caption">RAID 0은 작동 X</figcaption></figure>



<figure class="wp-block-image"><img decoding="async" width="431" height="91" src="https://lycos7560.com/wp-content/uploads/2024/12/image-132.png" alt="" class="wp-image-39032" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-132.png 431w, https://lycos7560.com/wp-content/uploads/2024/12/image-132-300x63.png 300w" sizes="(max-width: 431px) 100vw, 431px" /><figcaption class="wp-element-caption">다시 mount</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="541" height="183" src="https://lycos7560.com/wp-content/uploads/2024/12/image-133.png" alt="" class="wp-image-39033" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-133.png 541w, https://lycos7560.com/wp-content/uploads/2024/12/image-133-300x101.png 300w" sizes="(max-width: 541px) 100vw, 541px" /><figcaption class="wp-element-caption">파일은 살아있</figcaption></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 변경 후
gedit /etc/fstab

# 데몬 재시작
systemctl daeon-reload</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1183" height="687" src="https://lycos7560.com/wp-content/uploads/2024/12/image-134.png" alt="" class="wp-image-39034" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-134.png 1183w, https://lycos7560.com/wp-content/uploads/2024/12/image-134-300x174.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-134-768x446.png 768w" sizes="(max-width: 1183px) 100vw, 1183px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="403" height="110" src="https://lycos7560.com/wp-content/uploads/2024/12/image-135.png" alt="" class="wp-image-39035" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-135.png 403w, https://lycos7560.com/wp-content/uploads/2024/12/image-135-300x82.png 300w" sizes="(max-width: 403px) 100vw, 403px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 수정
sudo gedit /etc/mdadm/mdadm.conf

sudo update-initramfs -u
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="931" height="672" src="https://lycos7560.com/wp-content/uploads/2024/12/image-136.png" alt="" class="wp-image-39036" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-136.png 931w, https://lycos7560.com/wp-content/uploads/2024/12/image-136-300x217.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-136-768x554.png 768w" sizes="(max-width: 931px) 100vw, 931px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">mdadm --detail /dev/md1
mdadm --detail /dev/md5</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1146" height="650" src="https://lycos7560.com/wp-content/uploads/2024/12/image-137.png" alt="" class="wp-image-39037" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-137.png 1146w, https://lycos7560.com/wp-content/uploads/2024/12/image-137-300x170.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-137-768x436.png 768w" sizes="(max-width: 1146px) 100vw, 1146px" /><figcaption class="wp-element-caption">mdadm &#8211;detail /dev/md1</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1135" height="727" src="https://lycos7560.com/wp-content/uploads/2024/12/image-138.png" alt="" class="wp-image-39038" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-138.png 1135w, https://lycos7560.com/wp-content/uploads/2024/12/image-138-300x192.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-138-768x492.png 768w" sizes="(max-width: 1135px) 100vw, 1135px" /><figcaption class="wp-element-caption">mdadm &#8211;detail /dev/md5</figcaption></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">5. RAID 0 1 5 복구</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="512" height="516" src="https://lycos7560.com/wp-content/uploads/2024/12/image-139.png" alt="" class="wp-image-39039" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-139.png 512w, https://lycos7560.com/wp-content/uploads/2024/12/image-139-298x300.png 298w, https://lycos7560.com/wp-content/uploads/2024/12/image-139-150x150.png 150w" sizes="(max-width: 512px) 100vw, 512px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=QnyVr_peYx8&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=38" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=QnyVr_peYx8&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=38</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>제거한 하드 3개 추가</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1050" height="771" src="https://lycos7560.com/wp-content/uploads/2024/12/image-140.png" alt="" class="wp-image-39040" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-140.png 1050w, https://lycos7560.com/wp-content/uploads/2024/12/image-140-300x220.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-140-768x564.png 768w" sizes="(max-width: 1050px) 100vw, 1050px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="893" height="779" src="https://lycos7560.com/wp-content/uploads/2024/12/image-141.png" alt="" class="wp-image-39041" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-141.png 893w, https://lycos7560.com/wp-content/uploads/2024/12/image-141-300x262.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-141-768x670.png 768w" sizes="(max-width: 893px) 100vw, 893px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1050" height="804" src="https://lycos7560.com/wp-content/uploads/2024/12/image-142.png" alt="" class="wp-image-39042" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-142.png 1050w, https://lycos7560.com/wp-content/uploads/2024/12/image-142-300x230.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-142-768x588.png 768w" sizes="(max-width: 1050px) 100vw, 1050px" /><figcaption class="wp-element-caption">SCSI 확인 후 2개 더 추가 생성</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1376" height="701" src="https://lycos7560.com/wp-content/uploads/2024/12/image-143.png" alt="" class="wp-image-39043" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-143.png 1376w, https://lycos7560.com/wp-content/uploads/2024/12/image-143-300x153.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-143-768x391.png 768w" sizes="(max-width: 1376px) 100vw, 1376px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 추가된 목록 확인
ls -l /dev/sd*</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="806" height="473" src="https://lycos7560.com/wp-content/uploads/2024/12/image-144.png" alt="" class="wp-image-39044" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-144.png 806w, https://lycos7560.com/wp-content/uploads/2024/12/image-144-300x176.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-144-768x451.png 768w" sizes="(max-width: 806px) 100vw, 806px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 새로운 파티션 생성 (리눅스 오토 fd)
fdisk /dev/sdc
fdisk /dev/sde
fdisk /dev/sdg</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1177" height="729" src="https://lycos7560.com/wp-content/uploads/2024/12/image-145.png" alt="" class="wp-image-39045" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-145.png 1177w, https://lycos7560.com/wp-content/uploads/2024/12/image-145-300x186.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-145-768x476.png 768w" sizes="(max-width: 1177px) 100vw, 1177px" /><figcaption class="wp-element-caption">나머지 2개도 반복</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="736" height="458" src="https://lycos7560.com/wp-content/uploads/2024/12/image-147.png" alt="" class="wp-image-39048" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-147.png 736w, https://lycos7560.com/wp-content/uploads/2024/12/image-147-300x187.png 300w" sizes="(max-width: 736px) 100vw, 736px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# ext4 파일 시스템 생성
mkfs.ext4 /dev/sdc1
mkfs.ext4 /dev/sde1
mkfs.ext4 /dev/sdg1
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1122" height="742" src="https://lycos7560.com/wp-content/uploads/2024/12/image-146.png" alt="" class="wp-image-39047" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-146.png 1122w, https://lycos7560.com/wp-content/uploads/2024/12/image-146-300x198.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-146-768x508.png 768w" sizes="(max-width: 1122px) 100vw, 1122px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">- RAID 0 재생성 -

# 확인
mdadm --detail --scan

# 상세확인 (Raid 0이 md127로 변경됨)
mdadm --detail /dev/md127

# RAID 중지
mdadm --stop /dev/md127

# RAID 재생성
mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1064" height="680" src="https://lycos7560.com/wp-content/uploads/2024/12/image-148.png" alt="" class="wp-image-39049" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-148.png 1064w, https://lycos7560.com/wp-content/uploads/2024/12/image-148-300x192.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-148-768x491.png 768w" sizes="(max-width: 1064px) 100vw, 1064px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># UUID 수정
sudo gedit /etc/mdadm/mdadm.conf

sudo update-initramfs -u

sudo mount /dev/md0 /raid0

gedit /etc/fstab

systemctl daeon-reload</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1183" height="655" src="https://lycos7560.com/wp-content/uploads/2024/12/image-149.png" alt="" class="wp-image-39061" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-149.png 1183w, https://lycos7560.com/wp-content/uploads/2024/12/image-149-300x166.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-149-768x425.png 768w" sizes="(max-width: 1183px) 100vw, 1183px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1187" height="168" src="https://lycos7560.com/wp-content/uploads/2024/12/image-150.png" alt="" class="wp-image-39051" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-150.png 1187w, https://lycos7560.com/wp-content/uploads/2024/12/image-150-300x42.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-150-768x109.png 768w" sizes="(max-width: 1187px) 100vw, 1187px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="950" height="568" src="https://lycos7560.com/wp-content/uploads/2024/12/image-151.png" alt="" class="wp-image-39052" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-151.png 950w, https://lycos7560.com/wp-content/uploads/2024/12/image-151-300x179.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-151-768x459.png 768w" sizes="(max-width: 950px) 100vw, 950px" /></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">- RAID 1 은 재생성이 아닌 추가 -

# 상세 확인
mdadm --detail /dev/md1
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="825" height="653" src="https://lycos7560.com/wp-content/uploads/2024/12/image-152.png" alt="" class="wp-image-39053" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-152.png 825w, https://lycos7560.com/wp-content/uploads/2024/12/image-152-300x237.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-152-768x608.png 768w" sizes="(max-width: 825px) 100vw, 825px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# Raid에 추가
mdadm /dev/md1 --add /dev/sde1

# Raid 확인
mdadm --detail /dev/md1

# 파일 확인
ls -l /raid1</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1022" height="689" src="https://lycos7560.com/wp-content/uploads/2024/12/image-153.png" alt="" class="wp-image-39054" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-153.png 1022w, https://lycos7560.com/wp-content/uploads/2024/12/image-153-300x202.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-153-768x518.png 768w" sizes="(max-width: 1022px) 100vw, 1022px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="856" height="176" src="https://lycos7560.com/wp-content/uploads/2024/12/image-154.png" alt="" class="wp-image-39055" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-154.png 856w, https://lycos7560.com/wp-content/uploads/2024/12/image-154-300x62.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-154-768x158.png 768w" sizes="(max-width: 856px) 100vw, 856px" /></figure>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">- RAID 5 는 재생성이 아닌 추가 -

# 상세 확인
mdadm --detail /dev/md5
</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1119" height="716" src="https://lycos7560.com/wp-content/uploads/2024/12/image-155.png" alt="" class="wp-image-39056" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-155.png 1119w, https://lycos7560.com/wp-content/uploads/2024/12/image-155-300x192.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-155-768x491.png 768w" sizes="(max-width: 1119px) 100vw, 1119px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Raid에 추가
mdadm /dev/md5 --add /dev/sdg1

# Raid 확인
mdadm --detail /dev/md5

# 파일 확인
ls -l /raid5</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1177" height="692" src="https://lycos7560.com/wp-content/uploads/2024/12/image-156.png" alt="" class="wp-image-39057" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-156.png 1177w, https://lycos7560.com/wp-content/uploads/2024/12/image-156-300x176.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-156-768x452.png 768w" sizes="(max-width: 1177px) 100vw, 1177px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="784" height="174" src="https://lycos7560.com/wp-content/uploads/2024/12/image-157.png" alt="" class="wp-image-39058" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-157.png 784w, https://lycos7560.com/wp-content/uploads/2024/12/image-157-300x67.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-157-768x170.png 768w" sizes="(max-width: 784px) 100vw, 784px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Raid 전부 확인
mdadm --detail --scan</pre>



<figure class="wp-block-image size-full"><img decoding="async" width="674" height="120" src="https://lycos7560.com/wp-content/uploads/2024/12/image-158.png" alt="" class="wp-image-39059" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-158.png 674w, https://lycos7560.com/wp-content/uploads/2024/12/image-158-300x53.png 300w" sizes="(max-width: 674px) 100vw, 674px" /></figure>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/">Ubuntu &#8211; RAID 0, 1, 5 실습</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RAID (Redundant Array of Independent/Inexpensive Disks)</title>
		<link>https://lycos7560.com/ubuntu/raid-redundant-array-of-independent-inexpensive-disks/38954/</link>
					<comments>https://lycos7560.com/ubuntu/raid-redundant-array-of-independent-inexpensive-disks/38954/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Thu, 05 Dec 2024 06:13:25 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[Data Integrity]]></category>
		<category><![CDATA[Data Protection]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Data Redundancy]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[Disk Failure]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Hard Disk]]></category>
		<category><![CDATA[Hardware RAID]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Linear RAID]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[Mirroring]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Parity]]></category>
		<category><![CDATA[Partition]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Performance Degradation]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[RAID 0]]></category>
		<category><![CDATA[RAID 1]]></category>
		<category><![CDATA[RAID 5]]></category>
		<category><![CDATA[RAID 6]]></category>
		<category><![CDATA[Read Speed]]></category>
		<category><![CDATA[Recovery Time]]></category>
		<category><![CDATA[Reliability]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Software RAID]]></category>
		<category><![CDATA[Space Efficiency]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[storage management]]></category>
		<category><![CDATA[Storage Space]]></category>
		<category><![CDATA[Striping]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[System Configuration]]></category>
		<category><![CDATA[Write Speed]]></category>
		<category><![CDATA[고가용성]]></category>
		<category><![CDATA[공간 효율성]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[데이터 무결성]]></category>
		<category><![CDATA[데이터 보호]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[데이터 중복성]]></category>
		<category><![CDATA[디스크]]></category>
		<category><![CDATA[디스크 손상]]></category>
		<category><![CDATA[레이드]]></category>
		<category><![CDATA[레이드 0]]></category>
		<category><![CDATA[레이드 1]]></category>
		<category><![CDATA[레이드 5]]></category>
		<category><![CDATA[레이드 6]]></category>
		<category><![CDATA[미러링]]></category>
		<category><![CDATA[복구 시간]]></category>
		<category><![CDATA[부팅]]></category>
		<category><![CDATA[성능]]></category>
		<category><![CDATA[성능 저하]]></category>
		<category><![CDATA[소프트웨어 RAID]]></category>
		<category><![CDATA[스토리지]]></category>
		<category><![CDATA[스토리지 관리]]></category>
		<category><![CDATA[스트라이핑]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 설정]]></category>
		<category><![CDATA[쓰기 속도]]></category>
		<category><![CDATA[안정성]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[운영 체제]]></category>
		<category><![CDATA[읽기 속도]]></category>
		<category><![CDATA[저장 공간]]></category>
		<category><![CDATA[코테]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파티션]]></category>
		<category><![CDATA[패리티]]></category>
		<category><![CDATA[하드 디스크]]></category>
		<category><![CDATA[하드웨어 RAID]]></category>
		<category><![CDATA[확장성]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38954</guid>

					<description><![CDATA[<p>RAID RAID의 정의 RAID(Redundant Array of Independent/Inexpensive Disks) 여러 개의 하드 드라이브를 하나의 논리적 스토리지 단위로 결합하여 성능, 안정성, 또는 데이터 중복성을 향상시키는 기술 RAID는 데이터 저장 방식을 통해 디스크 오류로 인한 데이터 손실 가능성을 중이고, 읽기/쓰기 성능을 향상시키는 데 사용 하드웨어 / 소프트웨어 RAID RAID 사용하는 이유 데이터 중복성: 중요한 데이터를 보호하기 위해 백업과 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/raid-redundant-array-of-independent-inexpensive-disks/38954/">RAID (Redundant Array of Independent/Inexpensive Disks)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-a5af20b5      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid" class="uagb-toc-link__trigger">RAID</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid의-정의" class="uagb-toc-link__trigger">RAID의 정의</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#하드웨어-소프트웨어-raid" class="uagb-toc-link__trigger">하드웨어 / 소프트웨어 RAID</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-사용하는-이유" class="uagb-toc-link__trigger">RAID 사용하는 이유</a></li></ul></li><li class="uagb-toc__list"><a href="#각-raid-방식의-비교-software" class="uagb-toc-link__trigger">각 RAID 방식의 비교 &#8211; Software</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#linear-raid" class="uagb-toc-link__trigger">Linear RAID</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-0" class="uagb-toc-link__trigger">RAID 0</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-1" class="uagb-toc-link__trigger">RAID 1</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-5" class="uagb-toc-link__trigger">RAID 5</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#raid-6" class="uagb-toc-link__trigger">RAID 6</a></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">RAID</h2>



<h3 class="wp-block-heading">RAID의 정의</h3>



<p>RAID(Redundant Array of Independent/Inexpensive Disks)</p>



<p>여러 개의 하드 드라이브를 하나의 논리적 스토리지 단위로 결합하여 성능, 안정성, 또는 데이터 중복성을 향상시키는 기술</p>



<p>RAID는 데이터 저장 방식을 통해 디스크 오류로 인한 데이터 손실 가능성을 중이고, 읽기/쓰기 성능을 향상시키는 데 사용</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">하드웨어 / 소프트웨어 RAID</h3>



<ul class="wp-block-list">
<li>Hardware RAID : 하드웨어 제조업체에서 여러 개의 하드디스크를 가지고 장비를 만들어서 공급 [안정적 / 고비용]</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="723" height="402" src="https://lycos7560.com/wp-content/uploads/2024/12/image-67.jpg" alt="" class="wp-image-38955" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-67.jpg 723w, https://lycos7560.com/wp-content/uploads/2024/12/image-67-300x167.jpg 300w" sizes="(max-width: 723px) 100vw, 723px" /><figcaption class="wp-element-caption"><a href="https://www.stevenjlee.net/2020/03/01/%EC%9D%B4%ED%95%B4%ED%95%98%EA%B8%B0-raid-%EA%B5%AC%ED%98%84-%EB%B0%A9%EC%8B%9D%EA%B3%BC-%EC%A2%85%EB%A5%98%EC%97%90-%EB%8C%80%ED%95%98%EC%97%AC/" target="_blank" rel="noreferrer noopener">https://www.stevenjlee.net/2020/03/01/%EC%9D%B4%ED%95%B4%ED%95%98%EA%B8%B0-raid-%EA%B5%AC%ED%98%84-%EB%B0%A9%EC%8B%9D%EA%B3%BC-%EC%A2%85%EB%A5%98%EC%97%90-%EB%8C%80%ED%95%98%EC%97%AC/</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>Software RAID : 운영체제에서 RAID를 지원하는 방식, 리눅스 운영체제에서 지원 [저비용]</li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 사용하는 이유</h3>



<p>데이터 중복성: 중요한 데이터를 보호하기 위해 백업과 유사한 역할을 수행</p>



<p>성능 향상: 병렬 데이터 접근으로 읽기/쓰기 속도를 증가</p>



<p>확장성: 단일 대용량 디스크 대신 여러 디스크를 사용해 유연성을 제공</p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"> 각 RAID 방식의 비교 &#8211; Software </h2>



<figure class="wp-block-image size-full"><img decoding="async" width="774" height="493" src="https://lycos7560.com/wp-content/uploads/2024/12/image-67-1.jpg" alt="" class="wp-image-38956" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-67-1.jpg 774w, https://lycos7560.com/wp-content/uploads/2024/12/image-67-1-300x191.jpg 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-67-1-768x489.jpg 768w" sizes="(max-width: 774px) 100vw, 774px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Linear RAID</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="154" height="384" src="https://lycos7560.com/wp-content/uploads/2024/12/image-67.png" alt="" class="wp-image-38957" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-67.png 154w, https://lycos7560.com/wp-content/uploads/2024/12/image-67-120x300.png 120w" sizes="(max-width: 154px) 100vw, 154px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>여러 개의 디스크를 <strong>하나의 논리적인 단일 디스크</strong>로 병합하는 RAID 방식</p>



<p>데이터를 디스크에 <strong>순차적</strong>으로 저장하는 방식으로 동작</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Linear RAID의 주요 특징</h4>



<ol class="wp-block-list">
<li><strong>순차적인 데이터 저장</strong>
<ul class="wp-block-list">
<li>첫 번째 디스크가 가득 차면 다음 디스크에 데이터를 계속 저장합니다.</li>



<li>데이터를 병렬로 분산(스트라이핑)하지 않습니다.</li>
</ul>
</li>



<li><strong>중복성 없음</strong>
<ul class="wp-block-list">
<li>Linear RAID는 데이터 복제나 중복성을 제공하지 않기 때문에 디스크 하나라도 손상되면 전체 데이터가 손실될 가능성이 높습니다.</li>
</ul>
</li>



<li><strong>성능</strong>
<ul class="wp-block-list">
<li>읽기/쓰기 속도가 병렬 처리되지 않아 단일 디스크와 동일한 수준의 성능을 가집니다.</li>
</ul>
</li>



<li><strong>디스크 공간 효율</strong>
<ul class="wp-block-list">
<li>모든 디스크 용량이 결합되므로 전체 디스크 용량을 100% 활용할 수 있습니다.</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Linear RAID의 장점</h4>



<ol class="wp-block-list">
<li><strong>구성 간단</strong>
<ul class="wp-block-list">
<li>복잡한 설정이나 전용 하드웨어가 필요하지 않음</li>



<li>소프트웨어 RAID 도구(e.g., <code>mdadm</code>)를 사용하여 쉽게 구성 가능.</li>
</ul>
</li>



<li><strong>저렴한 비용</strong>
<ul class="wp-block-list">
<li>모든 디스크를 그대로 사용할 수 있어 비용 효율적</li>
</ul>
</li>



<li><strong>유연성</strong>
<ul class="wp-block-list">
<li>서로 다른 크기의 디스크를 결합(예: 1TB + 500GB 디스크 = 1.5TB)</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Linear RAID의 단점</h4>



<ol class="wp-block-list">
<li><strong>데이터 안정성 부족</strong>
<ul class="wp-block-list">
<li>하나의 디스크라도 손상되면 전체 볼륨이 손실</li>



<li>데이터 중복성이 없으므로 RAID 1이나 RAID 5처럼 복구 기능을 제공하지 않음</li>
</ul>
</li>



<li><strong>성능 향상 없음</strong>
<ul class="wp-block-list">
<li>데이터를 병렬로 읽거나 쓰지 않으므로 읽기/쓰기 성능이 향상되지 않음</li>
</ul>
</li>



<li><strong>확장성 문제</strong>
<ul class="wp-block-list">
<li>기존 Linear RAID 배열에 새 디스크를 추가하기 어려움. 추가하려면 배열을 다시 구성해야함</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 0</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="166" height="387" src="https://lycos7560.com/wp-content/uploads/2024/12/image-68.png" alt="" class="wp-image-38958" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-68.png 166w, https://lycos7560.com/wp-content/uploads/2024/12/image-68-129x300.png 129w" sizes="(max-width: 166px) 100vw, 166px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p><strong>스트라이핑(Striping)</strong> 기술을 사용하는 RAID의 한 유형으로, 데이터를 여러 디스크에 분산 저장하여 <strong>성능 향상</strong>에 중점을 둔 구성</p>



<p>중복성이나 데이터 복구 기능은 없지만, 빠른 읽기/쓰기 속도를 제공</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 0의 주요 특징</h4>



<ol class="wp-block-list">
<li><strong>스트라이핑(Striping)</strong>
<ul class="wp-block-list">
<li>데이터를 작은 단위(스트라이프)로 나누어 여러 디스크에 병렬로 저장</li>



<li>예: 4KB 데이터를 2개의 디스크에 2KB씩 나누어 저장</li>
</ul>
</li>



<li><strong>데이터 중복성 없음</strong>
<ul class="wp-block-list">
<li>백업 기능이 없기 때문에 디스크 하나만 손상되어도 전체 데이터가 손실</li>
</ul>
</li>



<li><strong>성능 향상</strong>
<ul class="wp-block-list">
<li>읽기/쓰기 작업을 병렬로 처리하므로 단일 디스크보다 속도가 크게 향상</li>



<li>디스크가 많을수록 성능이 비례적으로 증가</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>디스크의 용량을 100% 활용 가능</li>



<li>예: 1TB + 1TB 디스크 → RAID 0 용량 = 2TB</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 0의 장점</h4>



<ol class="wp-block-list">
<li><strong>최대 성능 제공</strong>
<ul class="wp-block-list">
<li>병렬 작업 덕분에 읽기 및 쓰기 성능이 매우 뛰어남</li>



<li>특히 대용량 데이터 전송이나 비디오 편집과 같은 고속 처리 작업에 적합</li>
</ul>
</li>



<li><strong>디스크 용량의 100% 사용</strong>
<ul class="wp-block-list">
<li>RAID 1처럼 일부 용량이 중복성에 사용되지 않으므로 모든 디스크 용량을 활용</li>
</ul>
</li>



<li><strong>구성이 간단</strong>
<ul class="wp-block-list">
<li>하드웨어 RAID 컨트롤러나 소프트웨어 RAID로 쉽게 설정 가능</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 0의 단점</h4>



<ol class="wp-block-list">
<li><strong>데이터 손실 위험</strong>
<ul class="wp-block-list">
<li>하나의 디스크라도 손상되면 전체 데이터가 손실</li>



<li>디스크 수가 많아질수록 고장 확률도 높아짐</li>
</ul>
</li>



<li><strong>데이터 복구 불가</strong>
<ul class="wp-block-list">
<li>RAID 1, 5, 6과 달리 복구 기능이 없어, 별도의 백업이 필수적</li>
</ul>
</li>
</ol>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 1</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="186" height="319" src="https://lycos7560.com/wp-content/uploads/2024/12/image-69.png" alt="" class="wp-image-38959" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-69.png 186w, https://lycos7560.com/wp-content/uploads/2024/12/image-69-175x300.png 175w" sizes="(max-width: 186px) 100vw, 186px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p><strong>미러링(Mirroring)</strong> 기술을 사용하는 RAID 레벨로, 동일한 데이터를 두 개 이상의 디스크에 복제하여 <strong>데이터 중복성</strong>과 <strong>안정성</strong>을 보장</p>



<p>하나의 디스크에 문제가 발생해도 나머지 디스크에서 데이터를 읽어올 수 있어 고가용성을 제공</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 1의 주요 특징</h4>



<ol class="wp-block-list">
<li><strong>미러링(Mirroring)</strong>
<ul class="wp-block-list">
<li>모든 데이터를 동일하게 두 개 이상의 디스크에 복사</li>



<li>디스크가 여러 개라도 용량은 하나의 디스크 용량으로 제한(디스크 하나는 복제본 역할)</li>
</ul>
</li>



<li><strong>높은 데이터 안정성</strong>
<ul class="wp-block-list">
<li>디스크 하나가 손상되더라도 데이터 손실 없이 복구 가능</li>



<li>RAID 0과 달리 높은 신뢰성을 제공</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>전체 디스크 용량의 50%만 사용 가능(나머지 50%는 복제본에 사용).</li>
</ul>
</li>



<li><strong>성능</strong>
<ul class="wp-block-list">
<li><strong>읽기 속도</strong>는 여러 디스크에서 데이터를 병렬로 읽을 수 있어 성능 향상이 가능</li>



<li><strong>쓰기 속도</strong>는 데이터를 모든 디스크에 복제해야 하므로 단일 디스크보다 약간 느릴 수 있음</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 1의 장점</h4>



<ol class="wp-block-list">
<li><strong>데이터 안정성</strong>
<ul class="wp-block-list">
<li>디스크 하나가 손상되더라도 복구 가능(단, 복구 시점 전까지는 추가 디스크 손상에 대비해야 함).</li>
</ul>
</li>



<li><strong>데이터 무결성 보장</strong>
<ul class="wp-block-list">
<li>중요한 데이터를 안전하게 보호 가능</li>
</ul>
</li>



<li><strong>읽기 성능 향상</strong>
<ul class="wp-block-list">
<li>여러 디스크에서 병렬로 데이터를 읽을 수 있어 읽기 작업이 빠름</li>
</ul>
</li>



<li><strong>구성이 간단</strong>
<ul class="wp-block-list">
<li>설정과 관리가 비교적 쉬운 편</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 1의 단점</h4>



<ol class="wp-block-list">
<li><strong>디스크 용량 효율 저하</strong>
<ul class="wp-block-list">
<li>2개의 디스크를 사용하더라도 실제로는 1개의 디스크 용량만 사용할 수 있음</li>
</ul>
</li>



<li><strong>비용 증가</strong>
<ul class="wp-block-list">
<li>동일 데이터를 저장하려면 2배의 디스크가 필요하므로 비용이 증가</li>
</ul>
</li>



<li><strong>쓰기 성능</strong>
<ul class="wp-block-list">
<li>모든 디스크에 데이터를 복제해야 하므로 쓰기 작업은 약간 느릴 수 있음</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 5</h3>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="578" height="312" src="https://lycos7560.com/wp-content/uploads/2024/12/image-70.png" alt="" class="wp-image-38960" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-70.png 578w, https://lycos7560.com/wp-content/uploads/2024/12/image-70-300x162.png 300w" sizes="(max-width: 578px) 100vw, 578px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="514" height="306" src="https://lycos7560.com/wp-content/uploads/2024/12/image-71.png" alt="" class="wp-image-38961" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-71.png 514w, https://lycos7560.com/wp-content/uploads/2024/12/image-71-300x179.png 300w" sizes="(max-width: 514px) 100vw, 514px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=0mRb3g8Gs18&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=34</a></figcaption></figure>
</div>
</div>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p>데이터를 스트라이핑(Striping) 방식으로 저장하면서, 각 디스크에 <strong>패리티(Parity)</strong> 정보를 분산 저장하는 RAID 레벨</p>



<p>성능과 데이터 안정성의 균형을 제공하며, <strong>최소 3개의 디스크</strong>가 필요</p>



<p>디스크 하나가 손상되더라도 패리티를 사용해 데이터를 복구할 수 있음</p>



<p>RAID 5가 RAID 2 ~ 4의 장점 및 특징을 가지고 있음</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 5의 주요 특징</h4>



<ol class="wp-block-list">
<li><strong>스트라이핑과 패리티</strong>
<ul class="wp-block-list">
<li>데이터를 스트라이핑(디스크 간 병렬로 나눠 저장)하여 성능 향상</li>



<li>디스크마다 <strong>패리티 정보</strong>를 분산 저장하여 데이터 복구 가능</li>



<li>예: 3개의 디스크 중 2개는 데이터 저장, 1개는 패리티 저장(순환 방식)</li>
</ul>
</li>



<li><strong>데이터 안정성</strong>
<ul class="wp-block-list">
<li>하나의 디스크가 손상되더라도 나머지 디스크와 패리티를 사용해 데이터 복구 가능</li>



<li>두 개 이상의 디스크가 손상되면 복구 불가</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>전체 디스크 중 하나의 디스크 용량은 패리티에 사용되므로, 총 용량 = (N &#8211; 1) x 단일 디스크 크기(N = 디스크 개수).</li>



<li>예: 4TB 디스크 4개 → RAID 5 용량 = 12TB (4TB는 패리티로 사용).</li>
</ul>
</li>



<li><strong>성능</strong>
<ul class="wp-block-list">
<li>읽기 작업: 스트라이핑 덕분에 빠름</li>



<li>쓰기 작업: 패리티 계산으로 인해 약간의 성능 저하 발생</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 5의 장점</h4>



<ol class="wp-block-list">
<li><strong>데이터 복구 가능</strong>
<ul class="wp-block-list">
<li>디스크 하나가 손상돼도 데이터 손실 없이 복구 가능</li>
</ul>
</li>



<li><strong>성능과 안정성의 균형</strong>
<ul class="wp-block-list">
<li>스트라이핑으로 읽기 성능이 좋고, 패리티로 안정성도 보장</li>
</ul>
</li>



<li><strong>공간 효율성</strong>
<ul class="wp-block-list">
<li>RAID 1보다 디스크 사용 효율이 높음</li>
</ul>
</li>



<li><strong>확장성</strong>
<ul class="wp-block-list">
<li>추가 디스크를 쉽게 추가할 수 있어 용량 확장 가능</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 5의 단점</h4>



<ol class="wp-block-list">
<li><strong>복구 시간 증가</strong>
<ul class="wp-block-list">
<li>디스크가 손상되었을 때 복구에 시간이 오래 걸릴 수 있음</li>



<li>복구 중 추가 디스크 손상 시 전체 데이터 손실</li>
</ul>
</li>



<li><strong>쓰기 성능 저하</strong>
<ul class="wp-block-list">
<li>패리티 계산 때문에 RAID 0보다 쓰기 속도가 느림</li>
</ul>
</li>



<li><strong>복잡한 구성</strong>
<ul class="wp-block-list">
<li>하드웨어 RAID 컨트롤러나 소프트웨어 RAID를 통해 구현해야 함</li>
</ul>
</li>
</ol>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">RAID 6</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="513" height="266" src="https://lycos7560.com/wp-content/uploads/2024/12/image-72.png" alt="" class="wp-image-38962" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-72.png 513w, https://lycos7560.com/wp-content/uploads/2024/12/image-72-300x156.png 300w" sizes="(max-width: 513px) 100vw, 513px" /><figcaption class="wp-element-caption"><a href="https://coolenjoy.net/bbs/review/476595" target="_blank" rel="noreferrer noopener">https://coolenjoy.net/bbs/review/476595</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p><strong>RAID 6</strong>는 데이터를 스트라이핑(Striping) 방식으로 저장하면서, <strong>두 개의 패리티(Parity)</strong> 정보를 사용하여 <strong>최대 2개의 디스크가 동시에 손상</strong>되어도 데이터를 복구할 수 있는 고안정성 RAID 레벨</p>



<p>RAID 5와 비슷하지만, 패리티 블록을 두 개로 늘려 더 높은 안정성을 제공하며 <strong>최소 4개의 디스크</strong>가 필요</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 6의 주요 특징</h4>



<ol class="wp-block-list">
<li><strong>스트라이핑과 이중 패리티</strong>
<ul class="wp-block-list">
<li>데이터를 여러 디스크에 스트라이핑 방식으로 분산 저장</li>



<li>각 디스크에 두 개의 패리티를 저장하여, 디스크 두 개가 동시에 고장 나더라도 데이터를 복구 가능</li>
</ul>
</li>



<li><strong>높은 데이터 안정성</strong>
<ul class="wp-block-list">
<li>RAID 5보다 더 높은 안정성을 제공하며, 데이터 손실 가능성이 낮음</li>
</ul>
</li>



<li><strong>디스크 용량 효율</strong>
<ul class="wp-block-list">
<li>전체 디스크 중 2개는 패리티 저장에 사용되므로, 총 용량 = (N &#8211; 2) x 단일 디스크 크기(N = 디스크 개수)</li>



<li>예: 4TB 디스크 6개 → RAID 6 용량 = 16TB (8TB는 패리티에 사용)</li>
</ul>
</li>



<li><strong>성능</strong>
<ul class="wp-block-list">
<li>읽기 성능: 스트라이핑 덕분에 RAID 5 수준으로 빠름</li>



<li>쓰기 성능: 두 개의 패리티 계산으로 인해 RAID 5보다 느림</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 6의 장점</h4>



<ol class="wp-block-list">
<li><strong>높은 안정성</strong>
<ul class="wp-block-list">
<li>동시에 두 개의 디스크가 고장 나더라도 데이터 복구 가능</li>



<li>RAID 5보다 안정성이 크게 향상됨</li>
</ul>
</li>



<li><strong>공간 효율성</strong>
<ul class="wp-block-list">
<li>2개의 패리티를 사용하지만, 여전히 전체 디스크 용량의 대부분을 데이터 저장에 사용 가능</li>
</ul>
</li>



<li><strong>성능과 안정성의 균형</strong>
<ul class="wp-block-list">
<li>읽기 작업은 스트라이핑 덕분에 빠르고, 데이터 안정성도 보장</li>
</ul>
</li>



<li><strong>확장성</strong>
<ul class="wp-block-list">
<li>디스크를 추가하여 용량을 쉽게 확장 가능</li>
</ul>
</li>
</ol>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">RAID 6의 단점</h4>



<ol class="wp-block-list">
<li><strong>복잡한 패리티 계산</strong>
<ul class="wp-block-list">
<li>두 개의 패리티를 계산해야 하므로 쓰기 작업에서 RAID 5보다 성능이 더 낮음</li>



<li>쓰기 성능이 중요한 환경에서는 RAID 10이 더 적합할 수 있음</li>
</ul>
</li>



<li><strong>디스크 용량 감소</strong>
<ul class="wp-block-list">
<li>RAID 5보다 두 개의 디스크 용량을 패리티에 사용하므로 저장 공간 효율이 약간 낮음</li>
</ul>
</li>



<li><strong>복구 시간 증가</strong>
<ul class="wp-block-list">
<li>대용량 디스크가 많아질수록 복구 시간이 오래 걸리며, 복구 중 성능 저하가 발생할 수 있음</li>
</ul>
</li>
</ol>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="LeTYSvBhZL"><a href="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/">Ubuntu &#8211; RAID 0, 1, 5 실습</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu &#8211; RAID 0, 1, 5 실습&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/embed/#?secret=104oJdmrrf#?secret=LeTYSvBhZL" data-secret="LeTYSvBhZL" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="nGbNj6Y8Lu"><a href="https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/">RAID 6, RAID 10(1+0)</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;RAID 6, RAID 10(1+0)&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/raid-6-raid-1010/39072/embed/#?secret=rrBtMrNFY4#?secret=nGbNj6Y8Lu" data-secret="nGbNj6Y8Lu" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>
<p>The post <a href="https://lycos7560.com/ubuntu/raid-redundant-array-of-independent-inexpensive-disks/38954/">RAID (Redundant Array of Independent/Inexpensive Disks)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/raid-redundant-array-of-independent-inexpensive-disks/38954/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; Hard disk management (Add Disk)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/#comments</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Thu, 05 Dec 2024 03:48:00 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[Auto Mount]]></category>
		<category><![CDATA[Block Device]]></category>
		<category><![CDATA[Boot Loader]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Data Integrity]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Device File]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[Filesystem Type]]></category>
		<category><![CDATA[Hard Drive]]></category>
		<category><![CDATA[Inode]]></category>
		<category><![CDATA[Journaling]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mkfs.ext4]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Partition]]></category>
		<category><![CDATA[Partition Alignment]]></category>
		<category><![CDATA[Partition Table]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[SCSI]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[Superblock]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[데이터 무결성]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[마운트]]></category>
		<category><![CDATA[부트 로더]]></category>
		<category><![CDATA[블록 장치]]></category>
		<category><![CDATA[슈퍼블록]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[인오드]]></category>
		<category><![CDATA[자동 마운트]]></category>
		<category><![CDATA[장치 파일]]></category>
		<category><![CDATA[저널링]]></category>
		<category><![CDATA[추가]]></category>
		<category><![CDATA[커맨드라인]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 시스템 유형]]></category>
		<category><![CDATA[파티션]]></category>
		<category><![CDATA[파티션 정렬]]></category>
		<category><![CDATA[파티션 테이블]]></category>
		<category><![CDATA[하드 드라이브]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38929</guid>

					<description><![CDATA[<p>현재는 물리적인 하드디스크가 장착되어 있는 상태 fdisk를 이용하여 파티셔닝을 해주어야 사용이 가능하다. n 명령어를 입력하여 새로운 파티션을 생성 파티션 타입을 선택하는 단계에서 p를 입력하여 기본 값인 primary 파티션을 선택 파티션 번호를 1로 설정 (기본적으로 MBR은 최대 4개의 주 파티션을 지원) 첫 번째 섹터를 기본 값인 2048로 설정(섹터 2048까지의 공간은 일반적으로 디스크의 메타데이터, 부트 로더, 파티션 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/">Ubuntu &#8211; Hard disk management (Add Disk)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">VMware® Workstation 17 Pro
Version 17.0.2</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="502" height="351" src="https://lycos7560.com/wp-content/uploads/2024/12/image-45.png" alt="" class="wp-image-38930" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-45.png 502w, https://lycos7560.com/wp-content/uploads/2024/12/image-45-300x210.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption class="wp-element-caption">Edit virtual machine settings</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="728" src="https://lycos7560.com/wp-content/uploads/2024/12/image-46.png" alt="" class="wp-image-38931" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-46.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-46-300x289.png 300w" sizes="(max-width: 757px) 100vw, 757px" /><figcaption class="wp-element-caption">Add</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="729" src="https://lycos7560.com/wp-content/uploads/2024/12/image-47.png" alt="" class="wp-image-38932" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-47.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-47-300x289.png 300w" sizes="(max-width: 757px) 100vw, 757px" /><figcaption class="wp-element-caption">HardDisk</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="731" src="https://lycos7560.com/wp-content/uploads/2024/12/image-48.png" alt="" class="wp-image-38933" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-48.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-48-300x288.png 300w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption class="wp-element-caption">SCSI 선택</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-49.png" alt="" class="wp-image-38934" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-49.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-49-300x289.png 300w" sizes="(max-width: 761px) 100vw, 761px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-50.png" alt="" class="wp-image-38935" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-50.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-50-300x289.png 300w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption class="wp-element-caption">테스트용 1GB, Store virtual disk as single file 로 설정 (하나의 파일로 관리)</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="439" height="424" src="https://lycos7560.com/wp-content/uploads/2024/12/image-51.png" alt="" class="wp-image-38936" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-51.png 439w, https://lycos7560.com/wp-content/uploads/2024/12/image-51-300x290.png 300w" sizes="(max-width: 439px) 100vw, 439px" /><figcaption class="wp-element-caption">파일의 이름을 설정</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="756" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-52.png" alt="" class="wp-image-38937" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-52.png 756w, https://lycos7560.com/wp-content/uploads/2024/12/image-52-300x290.png 300w" sizes="(max-width: 756px) 100vw, 756px" /><figcaption class="wp-element-caption">추가된 디스크 확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="751" height="725" src="https://lycos7560.com/wp-content/uploads/2024/12/image-53.png" alt="" class="wp-image-38938" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-53.png 751w, https://lycos7560.com/wp-content/uploads/2024/12/image-53-300x290.png 300w" sizes="(max-width: 751px) 100vw, 751px" /><figcaption class="wp-element-caption">SCSI 0:1 New Hard Disk에 확인됨 </figcaption></figure>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="526" height="349" src="https://lycos7560.com/wp-content/uploads/2024/12/image-54.png" alt="" class="wp-image-38939" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-54.png 526w, https://lycos7560.com/wp-content/uploads/2024/12/image-54-300x199.png 300w" sizes="(max-width: 526px) 100vw, 526px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="358" height="169" src="https://lycos7560.com/wp-content/uploads/2024/12/image-55.png" alt="" class="wp-image-38940" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-55.png 358w, https://lycos7560.com/wp-content/uploads/2024/12/image-55-300x142.png 300w" sizes="(max-width: 358px) 100vw, 358px" /></figure>
</div>
</div>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 확인
ls /dev/sd*</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="499" height="306" src="https://lycos7560.com/wp-content/uploads/2024/12/image-57.png" alt="" class="wp-image-38942" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-57.png 499w, https://lycos7560.com/wp-content/uploads/2024/12/image-57-300x184.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1103" height="280" src="https://lycos7560.com/wp-content/uploads/2024/12/image-56.png" alt="" class="wp-image-38941" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-56.png 1103w, https://lycos7560.com/wp-content/uploads/2024/12/image-56-300x76.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-56-768x195.png 768w" sizes="(max-width: 1103px) 100vw, 1103px" /></figure>



<p>현재는 물리적인 하드디스크가 장착되어 있는 상태 fdisk를 이용하여 파티셔닝을 해주어야 사용이 가능하다.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1209" height="561" src="https://lycos7560.com/wp-content/uploads/2024/12/image-58.png" alt="" class="wp-image-38943" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-58.png 1209w, https://lycos7560.com/wp-content/uploads/2024/12/image-58-300x139.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-58-768x356.png 768w" sizes="(max-width: 1209px) 100vw, 1209px" /></figure>



<p><code>n</code> 명령어를 입력하여 새로운 파티션을 생성</p>



<p>파티션 타입을 선택하는 단계에서 <code>p</code>를 입력하여 기본 값인 primary 파티션을 선택</p>



<p>파티션 번호를 1로 설정 (기본적으로 MBR은 최대 4개의 주 파티션을 지원)</p>



<p>첫 번째 섹터를 기본 값인 2048로 설정<br>(섹터 2048까지의 공간은 일반적으로 디스크의 메타데이터, 부트 로더, 파티션 테이블 등과 같은 시스템 관리 정보가 저장되는 영역)</p>



<p>마지막 섹터를 기본 값인 2097151로 설정하여 파티션 크기를 1023 MiB 만듬</p>



<figure class="wp-block-image size-full"><img decoding="async" width="734" height="305" src="https://lycos7560.com/wp-content/uploads/2024/12/image-59.png" alt="" class="wp-image-38944" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-59.png 734w, https://lycos7560.com/wp-content/uploads/2024/12/image-59-300x125.png 300w" sizes="(max-width: 734px) 100vw, 734px" /><figcaption class="wp-element-caption">p 명령어를 이용하여 정보확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="750" height="157" src="https://lycos7560.com/wp-content/uploads/2024/12/image-60.png" alt="" class="wp-image-38945" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-60.png 750w, https://lycos7560.com/wp-content/uploads/2024/12/image-60-300x63.png 300w" sizes="(max-width: 750px) 100vw, 750px" /><figcaption class="wp-element-caption">W 명령어로 설정 저장</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="846" height="389" src="https://lycos7560.com/wp-content/uploads/2024/12/image-61.png" alt="" class="wp-image-38946" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-61.png 846w, https://lycos7560.com/wp-content/uploads/2024/12/image-61-300x138.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-61-768x353.png 768w" sizes="(max-width: 846px) 100vw, 846px" /><figcaption class="wp-element-caption">ext4 파일 시스템 생성 (리눅스에서 해당 파티션을 관리하고 사용)</figcaption></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p>만약 해당 디스크를 mount하려고 하는 폴더에 파일이 있다면? </p>



<figure class="wp-block-image size-full"><img decoding="async" width="500" height="262" src="https://lycos7560.com/wp-content/uploads/2024/12/image-62.png" alt="" class="wp-image-38947" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-62.png 500w, https://lycos7560.com/wp-content/uploads/2024/12/image-62-300x157.png 300w" sizes="(max-width: 500px) 100vw, 500px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="503" height="261" src="https://lycos7560.com/wp-content/uploads/2024/12/image-63.png" alt="" class="wp-image-38948" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-63.png 503w, https://lycos7560.com/wp-content/uploads/2024/12/image-63-300x156.png 300w" sizes="(max-width: 503px) 100vw, 503px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<p>/mydata 폴더는 마운트된 곳을 가르키고 원래 파일을 볼 수 없음 (마운트 해제 원래 파일을 볼 수 있다.) </p>



<figure class="wp-block-image size-full"><img decoding="async" width="710" height="321" src="https://lycos7560.com/wp-content/uploads/2024/12/image-64.png" alt="" class="wp-image-38949" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-64.png 710w, https://lycos7560.com/wp-content/uploads/2024/12/image-64-300x136.png 300w" sizes="(max-width: 710px) 100vw, 710px" /><figcaption class="wp-element-caption">원래 디렉토리의 파일(<code>dummy.img</code>)은 일시적으로 접근할 수 없음</figcaption></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p>리부팅 때마다 마운트를 할 수 없으므로 </p>



<p><code>/etc/fstab</code> 에 등록하여 자동으로 마운트 </p>



<figure class="wp-block-image size-full"><img decoding="async" width="883" height="345" src="https://lycos7560.com/wp-content/uploads/2024/12/image-65.png" alt="" class="wp-image-38950" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-65.png 883w, https://lycos7560.com/wp-content/uploads/2024/12/image-65-300x117.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-65-768x300.png 768w" sizes="(max-width: 883px) 100vw, 883px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/dev/sdb1 /mydata ext4 defaults 0 0

# 뒤 ext4 defaults 0 0 는 거의 고</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p><code>/dev/sdb1</code>:</p>



<ul class="wp-block-list">
<li><strong>파일 시스템 장치</strong>: 디스크의 특정 파티션</li>
</ul>



<p><code>/mydata</code>:</p>



<ul class="wp-block-list">
<li><strong>마운트 지점</strong>: 파일 시스템이 마운트될 디렉토리</li>
</ul>



<p><code>ext4</code>:</p>



<ul class="wp-block-list">
<li><strong>파일 시스템 타입</strong>: 사용되는 파일 시스템의 종류, ext4 파일 시스템을 사용</li>
</ul>



<p><code>defaults</code>:</p>



<ul class="wp-block-list">
<li><strong>마운트 옵션</strong>: 기본 마운트 옵션을 사용<br>기본 옵션에는 <code>rw</code>, <code>suid</code>, <code>dev</code>, <code>exec</code>, <code>auto</code>, <code>nouser</code>, <code>async</code>가 포함</li>
</ul>



<p><code>0</code>:</p>



<ul class="wp-block-list">
<li><strong>덤프 옵션</strong>: 파일 시스템 덤프 유틸리티인 <code>dump</code> 명령어가 이 파일 시스템을 백업할지를 나타냅니다. 0은 백업하지 않음을 의미합니다.</li>
</ul>



<p><code>0</code>:</p>



<ul class="wp-block-list">
<li><strong>fsck 옵션</strong>: 시스템 부팅 시 파일 시스템 무결성을 검사할지를 나타냅니다. 0은 검사를 하지 않음을 의미합니다.</li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="826" height="347" src="https://lycos7560.com/wp-content/uploads/2024/12/image-66.png" alt="" class="wp-image-38951" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-66.png 826w, https://lycos7560.com/wp-content/uploads/2024/12/image-66-300x126.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-66-768x323.png 768w" sizes="(max-width: 826px) 100vw, 826px" /><figcaption class="wp-element-caption">재부팅 이후 mount 확인</figcaption></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="F0rGeM1esA"><a href="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/">Ubuntu &#8211; RAID 0, 1, 5 실습</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu &#8211; RAID 0, 1, 5 실습&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/embed/#?secret=vCWGI4ll8U#?secret=F0rGeM1esA" data-secret="F0rGeM1esA" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/">Ubuntu &#8211; Hard disk management (Add Disk)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – 파이프(Pipe)/필터(filter)/리다이렉션(redirection)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-%ed%8c%8c%ec%9d%b4%ed%94%84pipe-%ed%95%84%ed%84%b0filter-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ec%85%98redirection/38877/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-%ed%8c%8c%ec%9d%b4%ed%94%84pipe-%ed%95%84%ed%84%b0filter-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ec%85%98redirection/38877/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 10:23:17 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command chaining]]></category>
		<category><![CDATA[command filtering]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[data processing]]></category>
		<category><![CDATA[data sorting]]></category>
		<category><![CDATA[error log]]></category>
		<category><![CDATA[error redirection]]></category>
		<category><![CDATA[file input]]></category>
		<category><![CDATA[file saving]]></category>
		<category><![CDATA[file sorting]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[filter commands]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[input redirection]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux basic commands]]></category>
		<category><![CDATA[Linux shell]]></category>
		<category><![CDATA[Linux shell commands]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[log file]]></category>
		<category><![CDATA[log filtering]]></category>
		<category><![CDATA[output file]]></category>
		<category><![CDATA[output redirection]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[pipe usage]]></category>
		<category><![CDATA[pipeline]]></category>
		<category><![CDATA[pipeline usage]]></category>
		<category><![CDATA[Process Management]]></category>
		<category><![CDATA[real-time monitoring]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[redirection examples]]></category>
		<category><![CDATA[redirection usage]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell commands]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[standard error]]></category>
		<category><![CDATA[standard output]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[system automation]]></category>
		<category><![CDATA[System Monitoring]]></category>
		<category><![CDATA[system tuning]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[text filtering]]></category>
		<category><![CDATA[text processing]]></category>
		<category><![CDATA[text transformation]]></category>
		<category><![CDATA[wc]]></category>
		<category><![CDATA[데이터 정렬]]></category>
		<category><![CDATA[데이터 처리]]></category>
		<category><![CDATA[로그 분석]]></category>
		<category><![CDATA[로그 파일]]></category>
		<category><![CDATA[로그 필터링]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[리눅스 기본 명령어]]></category>
		<category><![CDATA[리눅스 셸]]></category>
		<category><![CDATA[리눅스 쉘]]></category>
		<category><![CDATA[리디렉션]]></category>
		<category><![CDATA[리디렉션 사용법]]></category>
		<category><![CDATA[리디렉션 연습]]></category>
		<category><![CDATA[리디렉션 예시]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[명령어 결합]]></category>
		<category><![CDATA[명령어 체인]]></category>
		<category><![CDATA[명령어 필터링]]></category>
		<category><![CDATA[쉘 명령어]]></category>
		<category><![CDATA[쉘 스크립팅]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 모니터링]]></category>
		<category><![CDATA[시스템 자동화]]></category>
		<category><![CDATA[시스템 튜닝]]></category>
		<category><![CDATA[실시간 모니터링]]></category>
		<category><![CDATA[오류 로그]]></category>
		<category><![CDATA[오류 리디렉션]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[입력 리디렉션]]></category>
		<category><![CDATA[출력 리디렉션]]></category>
		<category><![CDATA[출력 파일]]></category>
		<category><![CDATA[텍스트 변환]]></category>
		<category><![CDATA[텍스트 처리]]></category>
		<category><![CDATA[텍스트 필터링]]></category>
		<category><![CDATA[파이프]]></category>
		<category><![CDATA[파이프 사용법]]></category>
		<category><![CDATA[파이프라인]]></category>
		<category><![CDATA[파이프라인 사용법]]></category>
		<category><![CDATA[파일 입력]]></category>
		<category><![CDATA[파일 저장]]></category>
		<category><![CDATA[파일 정렬]]></category>
		<category><![CDATA[표준 오류]]></category>
		<category><![CDATA[표준 출력]]></category>
		<category><![CDATA[프로세스 관리]]></category>
		<category><![CDATA[필터]]></category>
		<category><![CDATA[필터 명령어]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38877</guid>

					<description><![CDATA[<p>파이프(Pipe) 파이프(&#124;)는 하나의 명령어 출력을 다른 명령어의 입력으로 전달하는 역할 파이프는 명령어의 출력을 다른 명령어로 전달하는데 매우 유용하며, 이로 인해 복잡한 작업을 단순화할 수 있음 사용법 필터(Filter) 필터는 파이프와 함께 사용되며, 데이터를 수정하거나 변환하는 명령어 보통 출력된 데이터를 필터링하거나 변경할 때 사용 grep, awk, sed, sort, cut, tail, wc 등의 명령어가 필터에 해당 사용법 리디렉션(Redirection) 리디렉션은 명령어의 출력을 파일로 저장하거나, [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-%ed%8c%8c%ec%9d%b4%ed%94%84pipe-%ed%95%84%ed%84%b0filter-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ec%85%98redirection/38877/">Ubuntu – 파이프(Pipe)/필터(filter)/리다이렉션(redirection)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-05896234      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#파이프pipe" class="uagb-toc-link__trigger">파이프(Pipe)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#사용법" class="uagb-toc-link__trigger">사용법</a></li></ul></li><li class="uagb-toc__list"><a href="#필터filter" class="uagb-toc-link__trigger">필터(Filter)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#사용법" class="uagb-toc-link__trigger">사용법</a></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#리디렉션redirection" class="uagb-toc-link__trigger">리디렉션(Redirection)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#출력-리디렉션" class="uagb-toc-link__trigger">출력 리디렉션</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#입력-리디렉션" class="uagb-toc-link__trigger">입력 리디렉션</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#표준-오류-리디렉션" class="uagb-toc-link__trigger">표준 오류 리디렉션</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#출력과-오류-모두-리디렉션" class="uagb-toc-link__trigger">출력과 오류 모두 리디렉션</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#파이프-필터-리디렉션을-결합-예시" class="uagb-toc-link__trigger">파이프, 필터, 리디렉션을 결합 예시</a></ul></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong>파이프(Pipe)</strong></h3>



<p>파이프(<code>|</code>)는 하나의 명령어 출력을 다른 명령어의 입력으로 전달하는 역할</p>



<p>파이프는 명령어의 출력을 다른 명령어로 전달하는데 매우 유용하며, 이로 인해 복잡한 작업을 단순화할 수 있음</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong>사용법</strong></h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# command1은 먼저 실행되어 출력을 생성하고, 이 출력이 command2로 전달
command1 | command2
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# ls 명령어로 디렉토리 목록을 출력하고, 그 결과를 less 명령어로 페이지 단위로 스크롤할 수 있게 만듬
ls -al | less
ls -al /etc | less</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# ps aux로 실행 중인 프로세스를 나열하고, 그 중에서 apache라는 단어가 포함된 항목만 필터링하여 출력
ps aux | grep apache
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong><strong>필터(Filter)</strong></strong></h3>



<p>필터는 파이프와 함께 사용되며, 데이터를 수정하거나 변환하는 명령어</p>



<p>보통 출력된 데이터를 필터링하거나 변경할 때 사용</p>



<p><code>grep</code>, <code>awk</code>, <code>sed</code>, <code>sort</code>, <code>cut, tail, wc</code> 등의 명령어가 필터에 해당</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">사용법</h4>



<ul class="wp-block-list">
<li><strong><code>grep</code></strong>: 패턴에 맞는 줄을 검색</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# file.txt에서 keyword를 포함하는 줄만 출력
cat file.txt | grep "keyword"

# ps -ef는 모든 프로세스 번호를 출력하므로 bash 라는 글자가 들어간 프로세스만 출력
ps -ef | grep bash</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>awk</code></strong>: 파일을 특정 구분자로 나누어 처리</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# file.txt의 각 줄에서 첫 번째 열만 출력
cat file.txt | awk '{print $1}'
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>sort</code></strong>: 데이터를 정렬</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 디렉토리 내 파일들을 알파벳 순으로 정렬하여 출력
ls | sort
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>cut</code></strong>: 텍스트를 구분자로 나누어 일부만 선택.</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# file.txt에서 공백을 기준으로 첫 번째 필드를 출력
cat file.txt | cut -d' ' -f1

</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>sed</code></strong>: 텍스트 스트림을 수정(편집).</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# file.txt에서 old라는 단어를 new로 바꿔 출력
cat file.txt | sed 's/old/new/g'

</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading"><strong><strong><strong>리디렉션(Redirection)</strong></strong></strong></h3>



<p>리디렉션은 명령어의 출력을 파일로 저장하거나, 파일을 명령어의 입력으로 전달하는 기능</p>



<p>리디렉션은 <strong>출력 리디렉션</strong>과 <strong>입력 리디렉션</strong>으로 나눌 수 있음</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong>출력 리디렉션</strong></h4>



<p>출력 리디렉션은 명령어의 출력을 파일로 보낼 때 사용 <code>></code> 또는 <code>>></code>를 사용</p>



<ul class="wp-block-list">
<li><strong><code>></code></strong> 출력을 새로운 파일에 덮어쓰기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# "Hello, World!"를 hello.txt라는 파일에 덮어씁니다.
echo "Hello, World!" > hello.txt
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>>></code></strong> 출력을 파일 끝에 추가</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# "New line"을 hello.txt 파일에 추가합니다.
echo "New line" >> hello.txt
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong><strong>입력 리디렉션</strong></strong></h4>



<p>입력 리디렉션은 파일을 명령어의 입력으로 전달하는 데 사용 <code>&lt;</code> 기호를 사용</p>



<ul class="wp-block-list">
<li><strong><code>&lt;</code></strong>: 파일을 명령어의 입력으로 사용</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# file.txt의 내용을 정렬하여 출력
sort &lt; file.txt

# list.txt 파일을 정렬하고 out.txt에 쓰기
sort &lt; list.txt > out.txt
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong><strong><strong>표준 오류 리디렉션</strong></strong></strong></h4>



<p>표준 오류를 파일로 리디렉션할 수 있습니다. <code>2></code> 또는 <code>2>></code>를 사용</p>



<ul class="wp-block-list">
<li><strong><code>2></code></strong>: 오류 출력을 파일로 리디렉션</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# 명령어의 오류 메시지를 error.log 파일에 저장
command 2> error.log
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>2>></code></strong>: 오류 출력을 파일 끝에 추가</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 명령어의 오류 메시지를 error.log 파일 끝에 저장
command 2>> error.log

</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong><strong><strong><strong>출력과 오류 모두 리디렉션</strong></strong></strong></strong></h4>



<p>출력과 오류를 모두 하나의 파일로 리디렉션</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># output.log 파일에 표준 출력과 표준 오류가 모두 기록
command > output.log 2>&amp;1
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong><strong><strong><strong><strong>파이프, 필터, 리디렉션을 결합 예시</strong></strong></strong></strong></strong></h4>



<p>여러 명령어를 조합하여 복잡한 작업을 할 수 있습니다.</p>



<p>예를 들어, 특정 로그 파일에서 오류 메시지만 추출하여 정렬하고, 이를 파일로 저장할 수 있습니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
# /var/log/syslog 파일에서 "error"라는 단어가 포함된 행을 찾고, 그 결과를 정렬하여 error_log.txt에 저장합니다.
cat /var/log/syslog | grep "error" | sort > error_log.txt

</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-%ed%8c%8c%ec%9d%b4%ed%94%84pipe-%ed%95%84%ed%84%b0filter-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ec%85%98redirection/38877/">Ubuntu – 파이프(Pipe)/필터(filter)/리다이렉션(redirection)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-%ed%8c%8c%ec%9d%b4%ed%94%84pipe-%ed%95%84%ed%84%b0filter-%eb%a6%ac%eb%8b%a4%ec%9d%b4%eb%a0%89%ec%85%98redirection/38877/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – find 명령어</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-find-%eb%aa%85%eb%a0%b9%ec%96%b4/38834/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-find-%eb%aa%85%eb%a0%b9%ec%96%b4/38834/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Sun, 01 Dec 2024 07:02:02 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[access time]]></category>
		<category><![CDATA[advanced search]]></category>
		<category><![CDATA[command combination]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[command options]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[directory management]]></category>
		<category><![CDATA[directory navigation]]></category>
		<category><![CDATA[directory search]]></category>
		<category><![CDATA[directory tree]]></category>
		<category><![CDATA[execute command]]></category>
		<category><![CDATA[extension search]]></category>
		<category><![CDATA[file attributes]]></category>
		<category><![CDATA[file backup]]></category>
		<category><![CDATA[file criteria]]></category>
		<category><![CDATA[file deletion]]></category>
		<category><![CDATA[file exploration]]></category>
		<category><![CDATA[file filters]]></category>
		<category><![CDATA[file finding]]></category>
		<category><![CDATA[file group]]></category>
		<category><![CDATA[file management]]></category>
		<category><![CDATA[file modification]]></category>
		<category><![CDATA[file owner]]></category>
		<category><![CDATA[file permission]]></category>
		<category><![CDATA[file search]]></category>
		<category><![CDATA[file size]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[find command]]></category>
		<category><![CDATA[find 명령어]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[linux utilities]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[modification time]]></category>
		<category><![CDATA[name search]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[search criteria]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[storage management]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[system commands]]></category>
		<category><![CDATA[system exploration]]></category>
		<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[system utilities]]></category>
		<category><![CDATA[temporary files]]></category>
		<category><![CDATA[terminal commands]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[디렉토리 검색]]></category>
		<category><![CDATA[리눅스 명령어]]></category>
		<category><![CDATA[실행 명령어]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 찾기]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38834</guid>

					<description><![CDATA[<p>find find 명령어는 파일 시스템에서 파일과 디렉토리를 검색하는 데 사용되는 강력한 도구 기본 사용법 주요 옵션과 예시 복합 조건 사용</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-find-%eb%aa%85%eb%a0%b9%ec%96%b4/38834/">Ubuntu – find 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>find</strong></h2>



<p><code>find </code>명령어는 파일 시스템에서 파일과 디렉토리를 검색하는 데 사용되는 강력한 도구</p>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">기본 사용법</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find [검색 디렉토리] [검색 조건] [실행할 동작]
</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">주요 옵션과 예시</h3>



<ul class="wp-block-list">
<li>특정 이름의 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -name "filename"
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 확장자의 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -name "*.txt"
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>대소문자를 구분하지 않고 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -iname "filename"
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 크기 이상의 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -size +100M
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 시간 이후에 수정된 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -mtime -7

# (지난 하루 동안 수정된 파일)
find /home/user -mtime -1 </pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 사용자가 소유한 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -user username
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 그룹이 소유한 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -group groupname
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>파일 삭제 [이 명령어는 신중하게 사용해야 합니다]</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -name "filename" -delete
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>찾은 파일에 대해 명령어 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -name "*.log" -exec rm {} \;

# 모든 .log 파일 삭제
find /var/log -name "*.log" -exec rm {} \;</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="447" height="183" src="https://lycos7560.com/wp-content/uploads/2024/12/image-4.png" alt="" class="wp-image-38836" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-4.png 447w, https://lycos7560.com/wp-content/uploads/2024/12/image-4-300x123.png 300w" sizes="(max-width: 447px) 100vw, 447px" /></figure>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">복합 조건 사용</h3>



<ul class="wp-block-list">
<li>특정 크기 이상의 특정 확장자를 가진 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -name "*.log" -size +100M
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 용량 범위 안의 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 100MB보다 크고 1GB보다 작은 파일
find /path/to/search -size +100M -size -1G
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 시간 이후에 수정되고 특정 사용자가 소유한 파일 찾기</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">find /path/to/search -mtime -7 -user username
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-find-%eb%aa%85%eb%a0%b9%ec%96%b4/38834/">Ubuntu – find 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-find-%eb%aa%85%eb%a0%b9%ec%96%b4/38834/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – File Compression (파일 압축)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-file-compression-%ed%8c%8c%ec%9d%bc-%ec%95%95%ec%b6%95/38816/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-file-compression-%ed%8c%8c%ec%9d%bc-%ec%95%95%ec%b6%95/38816/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Sun, 01 Dec 2024 06:04:49 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[-C]]></category>
		<category><![CDATA[-t]]></category>
		<category><![CDATA[-x]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[bzip2]]></category>
		<category><![CDATA[Command Line Tools]]></category>
		<category><![CDATA[Compression]]></category>
		<category><![CDATA[Compression Algorithms Ubuntu]]></category>
		<category><![CDATA[Compression Format 시스템 관리]]></category>
		<category><![CDATA[CPU Usage 디렉토리 압축]]></category>
		<category><![CDATA[CPU 사용량]]></category>
		<category><![CDATA[Data Backup]]></category>
		<category><![CDATA[Data Integrity 네트워크 전송]]></category>
		<category><![CDATA[Data Preservation]]></category>
		<category><![CDATA[Data Transfer 소프트웨어 도구]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Directory Compression]]></category>
		<category><![CDATA[Disk Management 파일 권한]]></category>
		<category><![CDATA[File Backup CLI 도구]]></category>
		<category><![CDATA[File Integrity]]></category>
		<category><![CDATA[File Management 데이터 백업]]></category>
		<category><![CDATA[File Permissions]]></category>
		<category><![CDATA[File System gzip]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network Transfer]]></category>
		<category><![CDATA[Open Source 보안]]></category>
		<category><![CDATA[Performance Optimization 파일 무결성]]></category>
		<category><![CDATA[Root Directory 시스템 리소스]]></category>
		<category><![CDATA[Script 데이터 보존]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software Tools]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[System Resources]]></category>
		<category><![CDATA[System Tools 아카이브]]></category>
		<category><![CDATA[System Utility]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[xz]]></category>
		<category><![CDATA[데이터 무결성]]></category>
		<category><![CDATA[데이터 전송]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[루트 디렉토리]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[성능 최적화]]></category>
		<category><![CDATA[스크립트]]></category>
		<category><![CDATA[시스템 도구]]></category>
		<category><![CDATA[시스템 유틸리티]]></category>
		<category><![CDATA[압축]]></category>
		<category><![CDATA[압축 알고리즘]]></category>
		<category><![CDATA[압축 형식]]></category>
		<category><![CDATA[오픈소스]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[파일]]></category>
		<category><![CDATA[파일 관리]]></category>
		<category><![CDATA[파일 백업]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38816</guid>

					<description><![CDATA[<p>gzip (.gz) 특징 압축률 명령어 주의 사항 xz (.xz) 특징 압축률 명령어 주의사항 bzip2 (.bz2) 특징 압축률 명령어 주의사항 zip/unzip (.zip) 특징 압축률 명령어 주의사항 tar (.tar, .tar.gz, .tgz, .tar.xz &#8230;) 특징 명령어 1. 기본 동작 (파일 아카이브 및 압축) 1.1&#160;파일 아카이브 생성 (압축 없이 파일 묶기) 명령어 예시: 1.2&#160;파일 압축 생성 (압축 포함) 명령어 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-file-compression-%ed%8c%8c%ec%9d%bc-%ec%95%95%ec%b6%95/38816/">Ubuntu – File Compression (파일 압축)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-f9f2c32b      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#gzip-gz" class="uagb-toc-link__trigger">gzip (.gz)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#압축률" class="uagb-toc-link__trigger">압축률</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주의-사항" class="uagb-toc-link__trigger">주의 사항</a></li></ul></li><li class="uagb-toc__list"><a href="#xz-xz" class="uagb-toc-link__trigger">xz (.xz)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#압축률" class="uagb-toc-link__trigger">압축률</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주의사항" class="uagb-toc-link__trigger">주의사항</a></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#bzip2-bz2" class="uagb-toc-link__trigger">bzip2 (.bz2)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#압축률" class="uagb-toc-link__trigger">압축률</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주의사항" class="uagb-toc-link__trigger">주의사항</a></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#zipunzip-zip" class="uagb-toc-link__trigger">zip/unzip (.zip)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#압축률" class="uagb-toc-link__trigger">압축률</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주의사항" class="uagb-toc-link__trigger">주의사항</a></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#tar-tar-targz-tgz-tarxz" class="uagb-toc-link__trigger">tar (.tar, .tar.gz, .tgz, .tar.xz &#8230;)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#정리" class="uagb-toc-link__trigger">정리</a></ul></ul></ul></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>gzip (.gz)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<ul class="wp-block-list">
<li>가장 일반적이고 가벼운 압축 형식 </li>



<li>리눅스/유닉스 시스템에서 널리 사용 </li>



<li>빠른 압축 및 해제 속도</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">압축률</h4>



<ul class="wp-block-list">
<li>빠르고 경량한 압축 형식</li>



<li>상대적으로 중간 수준의 압축률 </li>



<li>CPU 부하가 낮음</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">명령어</h4>



<ul class="wp-block-list">
<li>압축</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""> gzip filename</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 해제</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">gunzip filename.gz
gzip -d filename.gz</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 레벨 설정 (1 ~ 9)</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">gzip -1 filename   # 빠른 압축, 낮은 압축률
gzip -9 filename   # 최대 압축, 느린 속도</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>원본 파일 유지</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">gzip -k filename   # 압축 후 원본 파일 유지</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>사용 예시</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 단일 파일 압축
gzip document.txt

# 여러 파일 압축
gzip file1.txt file2.txt file3.txt

# 압축 해제
gunzip document.txt.gz

# 압축 내용 확인 (압축 해제 없이)
zcat document.txt.gz</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주의 사항</h4>



<ul class="wp-block-list">
<li>단일 파일 압축에 최적 </li>



<li>디렉토리 압축 불가 (tar 사용)</li>



<li>압축 해제 시 원본 파일 덮어씀</li>
</ul>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>xz (.xz)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<ul class="wp-block-list">
<li>최고 수준의 압축률 </li>



<li>장기 보관 및 대용량 파일에 최적 </li>



<li>매우 느린 압축/해제 속도</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">압축률</h4>



<ul class="wp-block-list">
<li>가장 높은 압축률 </li>



<li>파일 크기 가장 작게 압축 </li>



<li>CPU 사용량이 상대적으로 높음</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">명령어</h4>



<ul class="wp-block-list">
<li>압축</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">xz filename</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 해제</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">unxz filename.xz
xz -d filename.xz</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 레벨 설정 (1 ~ 9)</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">xz -0 filename   # 빠른 압축, 낮은 압축률
xz -9 filename   # 최대 압축, 매우 느린 속도</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>원본 파일 유지</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">xz -k filename   # 압축 후 원본 파일 유지</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>사용 예시</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 단일 파일 압축
xz document.txt

# 여러 파일 압축
xz file1.txt file2.txt file3.txt

# 압축 해제
unxz document.txt.xz</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주의사항</h4>



<ul class="wp-block-list">
<li>장기 보관 파일에 최적 </li>



<li>압축/해제 속도 매우 느림 </li>



<li>높은 CPU 및 메모리 사용</li>
</ul>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>bzip2 (.bz2)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<ul class="wp-block-list">
<li>gzip보다 높은 압축률</li>



<li>대용량 파일 압축에 적합</li>



<li>상대적으로 느린 압축/해제 속도</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">압축률</h4>



<ul class="wp-block-list">
<li>높은 압축률</li>



<li>CPU 사용량 높음</li>



<li>파일 크기 더 작게 압축</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">명령어</h4>



<ul class="wp-block-list">
<li>압축</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">bzip2 filename</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 해제</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">bunzip2 filename.bz2
bzip2 -d filename.bz2</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 레벨 설정 (1 ~ 9)</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">bzip2 -1 filename   # 빠른 압축, 낮은 압축률
bzip2 -9 filename   # 최대 압축, 느린 속도</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>원본 파일 유지</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">bzip2 -k filename   # 압축 후 원본 파일 유지</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>사용 예시</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 단일 파일 압축
bzip2 document.txt

# 여러 파일 압축
bzip2 file1.txt file2.txt file3.txt

# 압축 해제
bunzip2 document.txt.bz2</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주의사항</h4>



<ul class="wp-block-list">
<li>대용량 파일에 적합</li>



<li>압축 속도 느림</li>



<li>상대적으로 높은 CPU 리소스 소모</li>
</ul>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>zip/unzip (.zip)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<ul class="wp-block-list">
<li>크로스 플랫폼 호환 압축 형식 </li>



<li>Windows, Linux, macOS 모두 지원 </li>



<li>여러 파일 동시 압축 가능</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">압축률</h4>



<ul class="wp-block-list">
<li>중간 수준의 압축률 </li>



<li>빠른 압축/해제 속도 </li>



<li>디렉토리 압축 가능</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">명령어</h4>



<ul class="wp-block-list">
<li>압축</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">zip archivename.zip file1 file2</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 해제</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">unzip archivename.zip</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>압축 레벨 설정 (1 ~ 9)</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">bzip2 -1 filename   # 빠른 압축, 낮은 압축률
bzip2 -9 filename   # 최대 압축, 느린 속도</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>사용 예시</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 단일 파일 압축
zip document.zip document.txt

# 여러 파일 압축
zip multiple.zip file1.txt file2.txt

# 디렉토리 압축
zip -r project.zip project_folder

# 압축 해제
unzip multiple.zip

# 압축 파일 내용 확인
unzip -l multiple.zip</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주의사항</h4>



<ul class="wp-block-list">
<li>크로스 플랫폼 호환성 높음 </li>



<li>압축/해제 속도 빠름 </li>



<li>원본 파일 유지됨</li>
</ul>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><strong>tar (.tar, .tar.gz, .tgz, .tar.xz &#8230;)</strong></h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<ul class="wp-block-list">
<li>리눅스/유닉스 시스템에서 가장 널리 사용되는 아카이브 형식</li>



<li>여러 파일이나 디렉토리를 하나의 파일로 묶는 데 사용</li>



<li>압축 없이 파일을 묶을 수 있으며, 다른 압축 형식과 결합하여 압축도 가능</li>



<li>압축 기능을 제공하지 않지만,&nbsp;<code>.tar.gz</code>나&nbsp;<code>.tar.xz</code>와 같은 형식으로 압축을 추가할 수 있음</li>



<li>디렉토리 구조와 메타데이터를 유지하면서 파일을 묶음</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">명령어</h4>



<h5 class="wp-block-heading"><strong>1. 기본 동작 (파일 아카이브 및 압축)</strong></h5>



<h6 class="wp-block-heading">1.1&nbsp;<strong>파일 아카이브 생성 (압축 없이 파일 묶기)</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-c</code>,&nbsp;<code>-f</code>
<ul class="wp-block-list">
<li><code>-c</code>&nbsp;: 새로운 아카이브를 생성</li>



<li><code>-f</code>&nbsp;: 아카이브 파일 이름 지정</li>



<li><code>-C:</code>디렉토리 지정</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -cf archive.tar file1 file2

tar -cz archive.tar -C /path/to/directory file1 file2
</pre>



<ul class="wp-block-list">
<li><code>file1</code>,&nbsp;<code>file2</code>를&nbsp;<code>archive.tar</code>로 묶음.</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h6 class="wp-block-heading">1.2&nbsp;<strong>파일 압축 생성 (압축 포함)</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-c</code>,&nbsp;<code>-f</code>,&nbsp;<code>-z</code>&nbsp;(gzip 압축),&nbsp;<code>-J</code>&nbsp;(xz 압축) -j (bzip2 압축)
<ul class="wp-block-list">
<li><code>-z</code>&nbsp;: gzip 압축을 사용하여 아카이브 생성</li>



<li><code>-J</code>&nbsp;: xz 압축을 사용하여 아카이브 생성</li>



<li><code>-j:</code>bzip2 압축을 사용하여 아카이브 생성</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -czf archive.tar.gz file1 file2
tar -cJf archive.tar.xz file1 file2
tar -cjf archive.tar.bz2 file1 file2</pre>



<ul class="wp-block-list">
<li><code>file1</code>과&nbsp;<code>file2</code>를 각각 gzip 또는 xz, bzip2 압축을 사용하여 아카이브로 묶음.</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h6 class="wp-block-heading">1.3&nbsp;<strong>디렉토리 압축</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>: <code>-c</code>, <code>-f</code>, <code>-r</code> (디렉토리 포함)</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -czf archive.tar.gz directory/
</pre>



<ul class="wp-block-list">
<li><code>directory/</code>&nbsp;디렉토리 내 모든 파일과 하위 디렉토리를 포함하여 gzip으로 압축한 아카이브 생성.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>2. 파일 압축 해제 (아카이브 풀기)</strong></h5>



<h6 class="wp-block-heading">2.1&nbsp;<strong>파일 압축 해제 (기본 아카이브 풀기)</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-x</code>,&nbsp;<code>-f</code>
<ul class="wp-block-list">
<li><code>-x</code>&nbsp;: 아카이브에서 파일을 추출</li>



<li><code>-f</code>&nbsp;: 아카이브 파일 이름 지정</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xf archive.tar

tar -xf archive.tar -C /path/to/destination
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>에서 파일을 압축 해제하여 현재 디렉토리에 복원.</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">2.2&nbsp;<strong>압축 해제 (gzip 압축 해제)</strong></h5>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-x</code>,&nbsp;<code>-f</code>,&nbsp;<code>-z</code>
<ul class="wp-block-list">
<li><code>-z</code>&nbsp;: gzip 압축 해제</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xzf archive.tar.gz
</pre>



<ul class="wp-block-list">
<li><code>archive.tar.gz</code>에서 압축을 풀고 파일을 복원.</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">2.3&nbsp;<strong>압축 해제 (xz 압축 해제)</strong></h5>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-x</code>,&nbsp;<code>-f</code>,&nbsp;<code>-J</code>
<ul class="wp-block-list">
<li><code>-J</code>&nbsp;: xz 압축 해제</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xJf archive.tar.xz
</pre>



<ul class="wp-block-list">
<li><code>archive.tar.xz</code>에서 xz 압축을 해제하여 파일 복원.</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">2.4&nbsp;<strong>압축 해제 (bzip2 압축 해제)</strong></h5>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-x</code>,&nbsp;<code>-f</code>,&nbsp;<code>-j</code>
<ul class="wp-block-list">
<li><code>-j </code>: bzip2 압축 해제</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xjf archive.tar.bz2</pre>



<ul class="wp-block-list">
<li><code>archive.tar.bz2</code>에서 bzip2 압축을 해제하여 파일 복원.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>3. 아카이브 내용 확인 및 목록 보기</strong></h5>



<h6 class="wp-block-heading">3.1&nbsp;<strong>아카이브 내용 확인 (목록 보기)</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-t</code>,&nbsp;<code>-f</code>
<ul class="wp-block-list">
<li><code>-t</code>&nbsp;: 아카이브의 내용을 목록으로 표시</li>



<li><code>-f</code>&nbsp;: 아카이브 파일 이름 지정</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -tf archive.tar
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>&nbsp;아카이브의 내용을 목록으로 표시 (압축 해제하지 않고).</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">3.2&nbsp;<strong>압축 해제 없이 내용 확인 (gzip 압축 아카이브)</strong></h5>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-t</code>,&nbsp;<code>-f</code>,&nbsp;<code>-z</code></li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -tzf archive.tar.gz
</pre>



<ul class="wp-block-list">
<li><code>archive.tar.gz</code>&nbsp;아카이브의 내용을 확인, 압축 해제하지 않음.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>4. 아카이브에서 특정 파일 추출</strong></h5>



<h6 class="wp-block-heading">4.1&nbsp;<strong>특정 파일만 추출</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-x</code>,&nbsp;<code>-f</code>
<ul class="wp-block-list">
<li><code>-x</code>&nbsp;: 아카이브에서 파일을 추출</li>



<li><code>-f</code>&nbsp;: 아카이브 파일 이름 지정</li>



<li>특정 파일 이름을 지정하여 해당 파일만 추출</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -tzf archive.tar.gz
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>에서&nbsp;<code>file1.txt</code>만 추출.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>5. 원본 파일 유지 및 덮어쓰기 방지</strong></h5>



<h6 class="wp-block-heading">5.1&nbsp;<strong>원본 파일 유지 (압축 후 원본 파일 삭제 방지)</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-k</code>
<ul class="wp-block-list">
<li><code>-k</code>&nbsp;: 압축 해제 후 원본 파일을 덮어쓰지 않음</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xkf archive.tar
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>를 압축 해제하면서 원본 파일을 덮어쓰지 않음.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>6. 압축 옵션</strong></h5>



<h6 class="wp-block-heading">6.1&nbsp;<strong>압축 수준 설정</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-z</code>,&nbsp;<code>-J</code>
<ul class="wp-block-list">
<li><code>-z</code>&nbsp;: gzip 압축을 사용할 때 압축 수준 설정</li>



<li><code>-J</code>&nbsp;: xz 압축을 사용할 때 압축 수준 설정</li>



<li><code>-j:</code>bzip2 압축을 사용할 때 압축 수준 설정</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># gzip 압축 (빠른 압축)
tar -czf archive.tar.gz --fast file1 file2

# gzip 압축 (최대 압축)
tar -czf archive.tar.gz --best file1 file2


# xz 압축 (빠른 압축)
tar -cJf archive.tar.xz --fast file1 file2

# xz 압축 (최대 압축)
tar -cJf archive.tar.xz --best file1 file2


# bzip2 압축 (빠른 압축)
tar -cjf archive.tar.bz2 --fast file1 file2

# bzip2 압축 (최대 압축)
tar -cjf archive.tar.bz2 --best file1 file2


# 1-9 사이의 숫자로 gzip 압축 수준 지정
tar -cz9f archive.tar.gz file1 file2   # 최대 압축
tar -cz1f archive.tar.gz file1 file2   # 최소 압축


# xz 압축도 동일하게 적용
tar -cJ9f archive.tar.xz file1 file2   # 최대 압축
tar -cJ1f archive.tar.xz file1 file2   # 최소 압축


# bzip2 압축도 동일하게 적용
tar -cj9f archive.tar.bz2 file1 file2  # 최대 압축
tar -cj1f archive.tar.bz2 file1 file2  # 최소 압축


# gzip 압축 (최대 압축) 및 디렉토리 변경
tar -czf archive.tar.gz --best -C /path/to/directory file1 file2

# xz 압축 (최대 압축) 및 디렉토리 변경
tar -cJf archive.tar.xz --best -C /path/to/directory file1 file2

# bzip2 압축 (최대 압축) 및 디렉토리 변경
tar -cjf archive.tar.bz2 --best -C /path/to/directory file1 file2
</pre>



<ul class="wp-block-list">
<li><code>--fast</code>는 압축 속도를 빠르게 하여 압축률은 낮추고,&nbsp;<code>--best</code>는 최대 압축을 하여 압축률을 높입니다.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>7. 기타 유용한 옵션</strong></h5>



<h6 class="wp-block-heading">7.1&nbsp;<strong>아카이브를 다른 파일로 출력</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>-O</code>
<ul class="wp-block-list">
<li><code>-O</code>&nbsp;: 파일을 표준 출력으로 출력</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xO -f archive.tar file1.txt
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>에서&nbsp;<code>file1.txt</code>를 추출하여 표준 출력으로 출력 (파일로 저장하지 않음).</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h6 class="wp-block-heading">7.2&nbsp;<strong>파일 패턴으로 추출</strong></h6>



<ul class="wp-block-list">
<li><strong>옵션</strong>:&nbsp;<code>--wildcards</code>
<ul class="wp-block-list">
<li>특정 패턴에 맞는 파일만 추출</li>
</ul>
</li>
</ul>



<p><strong>명령어 예시</strong>:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">tar -xf archive.tar --wildcards '*.txt'
</pre>



<ul class="wp-block-list">
<li><code>archive.tar</code>에서&nbsp;<code>.txt</code>&nbsp;파일만 추출.</li>
</ul>



<div style="height:49px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading"><strong>정리</strong></h4>



<ul class="wp-block-list">
<li><strong><code>-c</code></strong>: 아카이브 생성</li>



<li><code><strong>-C</strong>:</code>디렉토리 지정</li>



<li><strong><code>-x</code></strong>: 아카이브에서 파일 추출</li>



<li><strong><code>-t</code></strong>: 아카이브 내용 확인</li>



<li><strong><code>-f</code></strong>: 아카이브 파일 이름 지정</li>



<li><strong><code>-z</code></strong>: gzip 압축/해제</li>



<li><strong><code>-J</code></strong>: xz 압축/해제</li>



<li><strong><code>-j</code>: </strong>bzip2 압축/해제</li>



<li><strong><code>-k</code></strong>: 원본 파일 유지</li>



<li><strong><code>-O</code></strong>: 표준 출력으로 파일 출력</li>



<li><strong><code>--wildcards</code></strong>: 파일 패턴으로 추출</li>
</ul>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-file-compression-%ed%8c%8c%ec%9d%bc-%ec%95%95%ec%b6%95/38816/">Ubuntu – File Compression (파일 압축)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-file-compression-%ed%8c%8c%ec%9d%bc-%ec%95%95%ec%b6%95/38816/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
