java, c# , linux, program devloper: Linux 카테고리 글 목록
http://blog1.phps.kr/
blog.visualp.com
2021-05-29T01:03:48+09:00
Textcube 1.10.7 : Tempo primo
리눅스 (linux) SCP 원격지 파일전송
java, tomcat, c#
http://blog1.phps.kr/746
2018-06-07T13:46:12+09:00
2018-06-07T13:46:06+09:00
<strong>scp 명령어를 이용한 파일 복사 및 전송<br /></strong>
<p> </p>
<p> ssh에서 제공되는 scp 명령어를 통해 로컬서버↔원격서버 로의 파일을 간단하게 전송할 수 있다.</p>
<p> </p>
<p> 1. 사용방법<br /> 1) 원격 서버 → 로컬 서버로 파일 전송<br /> # scp [옵션] [계정명]@[원격지IP주소]:[원본 경로 및 파일] [전송받을 위치]</p>
<p><br /> 예제1) IP 111.222.333.444 서버의 abc라는 계정으로 /home/abc/index.html 파일을 로컬서버 /home/me/ 디렉토리에 전송 받기</p>
<p> # scp <a href="mailto:abc@111.222.333.444:/home/abc/index.html">abc@111.222.333.444:/home/abc/index.html</a> /home/me/</p>
<p> </p>
<p> 2) 로컬 서버 → 원격 서버로 파일 전송<br /> # scp [옵션] [원본 경로 및 파일] [계정명]@[원격지IP주소]:[전송할 경로]</p>
<p><br /> 예제2) 로컬서버 /home/me/wow.html 파일을 IP 111.222.333.444 서버의 /home/abc/ 디렉토리에 전송 하기<br /> # scp /home/me/wow.html <a href="mailto:abc@111.222.333.444:/home/abc/">abc@111.222.333.444:/home/abc/</a></p>
<p> </p>
<p> 3) ssh포트를 기본 22번으로 사용하고 있지 않는 서버로의 전송</p>
<p><br /> 예제3) 2222번인 SSH포트를 사용한다면 아래와 같이 –P 옵션과 포트번호를 넣어준다.<br /> # scp –P 2222 <a href="mailto:abc@111.222.333.444:/home/abc/index.html">abc@111.222.333.444:/home/abc/index.html</a> /home/me/<br /> # scp –P 2222 /home/me/wow.html <a href="mailto:abc@111.222.333.444:/home/abc/">abc@111.222.333.444:/home/abc/</a></p>
<p> </p>
<p> [주의사항]<br /> 옵션중에 –P와 –p가 있으니 대/소문자 확인을 하여야 한다.<br /> -P : 포트번호를 지정함<br /> -p : 원본파일 수정/사용시간 및 권한을 유지함<br /> -r : 하위 디렉토리 및 파일 모두 복사함<br /><br />[원문]<br />http://faq.hostway.co.kr/?mid=Linux_ETC&page=9&document_srl=1426</p><p><strong><a href="http://blog1.phps.kr/746?commentInput=true#entry746WriteComment">댓글 쓰기</a></strong></p>
maxscale, Too many open files
java, tomcat, c#
http://blog1.phps.kr/742
2018-04-09T13:45:27+09:00
2018-04-09T13:45:24+09:00
<div class="line number1 index0 alt2"><code class="bash functions">cat</code> <code class="bash plain">/proc/</code><code class="bash plain">$(pgrep maxscale)</code><code class="bash plain">/limits<br />실행 하면 maxscale의 <br />open file 쪽에 1024로 설정 되어 있습니다. <br />이부분을 늘려 주기 위해서는<br />vi /usr/lib/systemd/system/maxscale.service<br />LimitNOFILE=65536<br />위와 같이 설정 합니다.<br /><br /></code></div><p><strong><a href="http://blog1.phps.kr/742?commentInput=true#entry742WriteComment">댓글 쓰기</a></strong></p>
centos7 hostname 변경 , 호스트 내임 변경하기 , change hostname in centos
java, tomcat, c#
http://blog1.phps.kr/741
2018-04-05T14:48:33+09:00
2018-04-05T14:48:28+09:00
<p>호스트 내임 변경<br />hostnamectl set-hostname blog.visualp.com<br /><br />호스트 내임 확인 <br />hostname<br /><br />현재 세션(쉘)에서는 바뀌지 않지만, <br />재접속 하면 변경된것을 확인 할 수 있습니다.<br /><br /><br /><br /></p><p><strong><a href="http://blog1.phps.kr/741?commentInput=true#entry741WriteComment">댓글 쓰기</a></strong></p>
redis , can not start redis-server command , Redis can't set maximum open files
java, tomcat, c#
http://blog1.phps.kr/738
2018-03-30T21:25:33+09:00
2018-03-30T21:25:31+09:00
Redis can’t set maximum open files to 10064 because of OS error: Operation not permitted.,<br /><span style="font-family: Courier New;">Redis can't set maximum open files to 10064 because of OS error: Operation not permitted.<br /></span>Increased maximum number of open files to 10032 (it was originally set to 1024).<br /><br />[cenos7]<br />
<div class="line number1 index0 alt2"><code class="bash functions">ulimit</code> <code class="bash plain">-n 32768<br /></code><br />change maximum number of open files 1024 to 32768<br /><br />[참조]<br />http://myblog.opendocs.co.kr/archives/tag/redis-cant-set-maximum-open-files-to-10064-because-of-os-error-operation-not-permitted</div>
<div class="line number1 index0 alt2"></div><p><strong><a href="http://blog1.phps.kr/738?commentInput=true#entry738WriteComment">댓글 쓰기</a></strong></p>
rsync 기본 사용법
java, tomcat, c#
http://blog1.phps.kr/733
2018-01-24T11:04:11+09:00
2018-01-24T11:04:08+09:00
<p>기본적인 사용법</p>
<p># rsync [옵션] [계정]@[sourcePC:/디렉토리] [target 디렉토리]</p>
<p><span style="line-height: 1.5; font-size: 9pt;">-a : archice mode ( 심볼릭 링크, 속성, 퍼미션, 소유권 등 보곤)</span></p>
<p>-v : verbose mode (자세한 정보 출력)</p>
<p>-z : compress (전송시 압축)</p>
<p>-r : 하위 디렉토리 포함</p>
<p>-u : --update update only (don't overwrite newer files)</p>
<p>-e ssh : ssh를 이용한 rsync 동기화</p>
<p>--stats : 결과보고</p>
<p>--delete : 원본 서버에 없는 파일은 백업 서버에서 삭제</p>
<p>--progress : rsync 진행 상항 보기</p>
<p>--exclude : 제외할 파일 지정</p>
<p>--bwlimit : 대역폭(복사속도) 제어</p>
<p>--max-size : 특정 크기 이상 파일 제외(rsync 2.6.4 버전부터 추가된옵션)</p>
<p>--min-size : 특정 크기 이하 파일 제외<span style="line-height: 1.5; font-size: 9pt;">(rsync 2.6.7 버전부터 추가된옵션</span><span style="line-height: 1.5; font-size: 9pt;">)</span></p>
<p> </p>
<p>응용</p>
<p>1) 단순동기화(원본파일 복사)</p>
<p>ex) rsync -avz root@soucepc:/data/backup /data/backup</p>
<p>2) 동기화(삭제파일도 동일적용)</p>
<p>ex) rsync -avz --delete root@soucepc:/data/backup /data/backup</p>
<p>3) 대역폭 조절</p>
<p>ex) rsync -avz --bwlimit=1024 root@soucepc:/data/backup /data/backup</p>
<p>4) -e ssh</p>
<p><span style="line-height: 1.5; font-size: 9pt;">ex) rsync -avz </span><span style="line-height: 1.5; font-size: 9pt;">-e "ssh -i /home/test/rsync-key"</span><span style="line-height: 1.5; font-size: 9pt;"> root@soucepc:/data/backup /data/backup</span></p>
<p>5) 특정파일</p>
<p><span style="line-height: 1.5; font-size: 9pt;">ex) rsync -avz </span><span style="line-height: 1.5; font-size: 9pt;">--exclude=.txt </span><span style="line-height: 1.5; font-size: 9pt;">--exclude=.sh</span><span style="line-height: 1.5; font-size: 9pt;"> root@soucepc:/data/backup /data/backup/</span></p>
<p>6) 특정폴더</p>
<p><span style="line-height: 1.5; font-size: 9pt;">ex) rsync -avz </span><span style="line-height: 1.5; font-size: 9pt;">--exclude=aaa(폴더1) </span><span style="line-height: 1.5; font-size: 9pt;">--exclude=bbb(폴더2)</span><span style="line-height: 1.5; font-size: 9pt;"> root@soucepc:/data/backup /data/backup/</span></p>
<p><span style="line-height: 1.5; font-size: 9pt;">7) 날짜(3일이내 파일만 복사)</span></p>
<p>ex) find . -type f -mtime -3 | rsync -avz --files-from=- /soucepc /data/backup</p>
<br /><br />[원문]http://algo79.tistory.com/entry/rsync-%EC%82%AC%EC%9A%A9%EB%B2%95%EB%8C%80%EC%97%AD%ED%8F%AD%EB%82%A0%EC%A7%9C%ED%8F%B4%EB%8D%94%ED%8C%8C%EC%9D%BC%ED%81%AC%EA%B8%B0%EB%93%B1<p><strong><a href="http://blog1.phps.kr/733?commentInput=true#entry733WriteComment">댓글 쓰기</a></strong></p>
tomcat manager 비밀번호 설정
java, tomcat, c#
http://blog1.phps.kr/732
2018-01-12T09:43:28+09:00
2018-01-12T09:43:25+09:00
<span>Apache Tomcat 설치후 관리자 모드 실행 되지 않을때 문제 해결방법<br /></span><span>버전 : Tomcat 8</span><!-- } SE3-TEXT -->
<div class="se_component se_paragraph default">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_ff_nanumgothic se_fs_T3 se_align-left">
<div class="se_editView">
<div class="se_textView">
<p class="se_textarea"><!-- SE3-TEXT { --><span style="color: #000000;">파일 : tomcat-users.xml<br /></span><span><span style="color: #000000;">경로 : 톰캣설치디렉토리/conf</span><br /></span><!-- } SE3-TEXT --></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="SEDOC-1480035831854-1801499165_code_0" class="se_component se_code code_stripe">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_fs_T3 ">
<div class="se_editView">
<div class="se_textView">
<div class="__se_code_view se_textarea language-javascript"><span class="token se_code_operator"><</span><span class="token se_code_operator">!</span><span class="token se_code_operator">--</span> 아래 내용 추가<span class="token se_code_operator">--</span><span class="token se_code_operator">></span> <span class="token se_code_operator"><</span>role rolename<span class="token se_code_operator">=</span><span class="token se_code_string">"manager-gui"</span><span class="token se_code_operator">/</span><span class="token se_code_operator">></span> <span class="token se_code_operator"><</span>user username<span class="token se_code_operator">=</span><span class="token se_code_string">"tomcat"</span> password<span class="token se_code_operator">=</span><span class="token se_code_string">"비밀번호 작성"</span> roles<span class="token se_code_operator">=</span><span class="token se_code_string">"tomcat,manager-gui"</span><span class="token se_code_operator">/</span><span class="token se_code_operator">></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="se_component se_paragraph default">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_ff_nanumgothic se_fs_T3 se_align-left">
<div class="se_editView">
<div class="se_textView">
<p class="se_textarea"><!-- SE3-TEXT { --><span><br /></span><span><br /></span><span style="color: #000000;">파일 : server.xml<br /></span><span style="color: #000000;">경로 : 톰캣설치디렉토리/conf</span><span style="color: #000000;"><br /></span><!-- } SE3-TEXT --></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="SEDOC-1480035831854-1801499165_code_1" class="se_component se_code code_stripe">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_fs_T3 ">
<div class="se_editView">
<div class="se_textView">
<div class="__se_code_view se_textarea language-javascript"><span class="token se_code_operator"><</span>Service name<span class="token se_code_operator">=</span><span class="token se_code_string">"Catalina"</span><span class="token se_code_operator">></span> <span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span><span class="token se_code_punctuation">.</span> <span class="token se_code_operator"><</span><span class="token se_code_operator">!</span><span class="token se_code_operator">--</span> 아래 내용 추가<span class="token se_code_operator">--</span><span class="token se_code_operator">></span> <span class="token se_code_operator"><</span>Connector port<span class="token se_code_operator">=</span><span class="token se_code_string">"9009"</span> protocol<span class="token se_code_operator">=</span><span class="token se_code_string">"AJP/1.3"</span> redirectPort<span class="token se_code_operator">=</span><span class="token se_code_string">"9443"</span> address<span class="token se_code_operator">=</span><span class="token se_code_string">"192.168.0.52"</span> useIPVHosts<span class="token se_code_operator">=</span><span class="token se_code_string">"true"</span> <span class="token se_code_operator">/</span><span class="token se_code_operator">></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="se_component se_paragraph default">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_ff_nanumgothic se_fs_T3 se_align-left">
<div class="se_editView">
<div class="se_textView">
<p class="se_textarea"><!-- SE3-TEXT { --><span>파일 : context.xml<br /></span><span>경로 : 톰캣설치디렉토리/webapps/manager/META-INF<br /></span><span><br /></span><span>allow에 접속하려는 클라이언트PC의 IP주소를 추가<br /></span><!-- } SE3-TEXT --></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="SEDOC-1480035831854-1801499165_code_2" class="se_component se_code code_stripe">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_fs_T3 ">
<div class="se_editView">
<div class="se_textView">
<div class="__se_code_view se_textarea language-javascript"><span class="token se_code_operator"><</span>Context antiResourceLocking<span class="token se_code_operator">=</span><span class="token se_code_string">"false"</span> privileged<span class="token se_code_operator">=</span><span class="token se_code_string">"true"</span> <span class="token se_code_operator">></span> <span class="token se_code_operator"><</span>Valve className<span class="token se_code_operator">=</span><span class="token se_code_string">"org.apache.catalina.valves.RemoteAddrValve"</span> allow<span class="token se_code_operator">=</span><span class="token se_code_string">"192\.168\.0\.52|127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"</span> <span class="token se_code_operator">/</span><span class="token se_code_operator">></span> <span class="token se_code_operator"><</span><span class="token se_code_operator">/</span>Context<span class="token se_code_operator">></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="se_component se_paragraph default">
<div class="se_sectionArea">
<div class="se_editArea">
<div class="se_viewArea se_ff_nanumgothic se_fs_T3 se_align-left">
<div class="se_editView">
<div class="se_textView">
<p class="se_textarea"><!-- SE3-TEXT { --><span><br /></span><span>위 3가지 수정후 서버 재시작</span></p>
<div class="autosourcing-stub-extra" style="-ms-zoom: 1; opacity: 1;">
<p style="margin: 11px 0px 7px; padding: 0px; font-family: Dotum; font-size: 12px; font-style: normal; font-weight: normal;"> </p>
</div>
<p class="se_textarea">[원문]<br /><a href="http://blog.naver.com/PostView.nhn?blogId=ses1030&logNo=220823127740">http://blog.naver.com/PostView.nhn?blogId=ses1030&logNo=220823127740</a></p>
</div>
</div>
</div>
</div>
</div>
</div><p><strong><a href="http://blog1.phps.kr/732?commentInput=true#entry732WriteComment">댓글 쓰기</a></strong></p>
centos7 하드 마운트, CENTOS7 HDD MOUNT
java, tomcat, c#
http://blog1.phps.kr/724
2017-10-11T16:52:05+09:00
2017-10-11T16:52:02+09:00
<br /> centos7 하드 마운트<br />
<p>[원문]http://zero-gravity.tistory.com/297</p>
<p> <span style="color: #ff0000;">추가하고 싶은 하드디스크의 용량이 2TB를 초과한다면 6번 과정으로 바로 갈 것.</span></p>
<p><span style="color: #ff0000;"> </span></p>
<p><span style="color: #ff0000;"> </span></p>
<p> </p>
<p><strong> 1. fdisk -l</strong></p>
<p> </p>
<p> 드라이브 목록을 확인한다.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;"># fdisk -l</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> Device Boot</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Start </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">End</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Blocks </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Id</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">System</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda1 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">*</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">2048 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1026047</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">512000 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda2 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1026048</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1469032447 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">734003200 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda3</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1469032448</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1510975487</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">20971520 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda4</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1510975488</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1953523711 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">221274112</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">5</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Extended</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda5</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1510977536</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1531949055</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">10485760 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda6</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1531951104</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1552922623</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">10485760 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda7</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1552924672</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1560788991 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">3932160 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">82</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux swap / Solaris</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda8</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1560791040</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1952958463 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">196083712 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">83</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Linux</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-variant-ligatures: no-common-ligatures;"><span style="color: #ff0000; font-size: 10pt;">Disk /dev/sdb: 4000.8 GB</span><span style="font-size: 10pt;">, 4000787030016 bytes, 7814037168 sectors</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Units = sectors of 1 * 512 = 512 bytes</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Sector size (logical/physical): 512 bytes / 4096 bytes</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">I/O size (minimum/optimal): 4096 bytes / 4096 bytes</span></p>
</div>
<p> </p>
<p> </p>
<p> 할당되지 않은 4TB 크기의 /dev/sdb 드라이브가 보인다. 이걸 파티션 할당해줘야 한다.</p>
<p> (리눅스는 보통 첫번째 드라이브가 /dev/sda1,2,3...두번째 드라이브가 /dev/sdb1,2,3... 이렇게 설정된다.)</p>
<p> </p>
<p> </p>
<p><strong> 2. fdisk /dev/<span style="color: #ff0000;">[디스크명</span><span style="color: #ff0000;">]</span></strong></p>
<p> </p>
<p> 새로운 하드디스크를 추가한다.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"># <span style="color: #ffffff;">fdisk <span style="color: #ff0000;">/dev/sdb</span></span></span></p>
<p><span style="color: #28fe14; font-family: 'Andale Mono'; font-size: 12px; background-color: rgba(0, 0, 0, 0.901961);"> </span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Welcome to fdisk (util-linux 2.23.2).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Changes will remain in memory only, until you decide to write them.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Be careful before using the write command.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Device does not contain a recognized partition table</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Building a new DOS disklabel with disk identifier 0x6ad31b53.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">DOS partition table format can not be used on drives for volumes</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">partition table format (GPT).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">The device presents a logical sector size that is smaller than</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">the physical sector size. Aligning to a physical sector (or optimal</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">I/O) size boundary is recommended, or performance may be impacted.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): m</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command action</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">a </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle a bootable flag</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">b </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">edit bsd disklabel</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">c </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle the dos compatibility flag</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">d </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">delete a partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">g </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty GPT partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create an IRIX (SGI) partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">l </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">list known partition types</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">m </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print this menu</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #1fda11; font-size: 10pt;">n </span><span style="color: #1fda11; font-size: 10pt;"> </span><span style="color: #1fda11; font-size: 10pt;">add a new partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">o </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty DOS partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">p </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print the partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">q </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">quit without saving changes</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">s </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty Sun disklabel</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">t </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change a partition's system id</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">u </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change display/entry units</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">v </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">verify the partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">w </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">write table to disk and exit</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">x </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">extra functionality (experts only)</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): <span style="color: #ff0000;">n</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Partition type:</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">p </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">primary (0 primary, 0 extended, 4 free)</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">e </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">extended</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Select (default p):<span style="color: #ff0000;">p</span> </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Partition number (1-4, default 1): <span style="color: #ff0000;">1</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">First sector (2048-4294967295, default 2048): <span style="color: #ff0000;">2048</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Last sector, +sectors or +size{K,M,G} (2048-4294967294, default 4294967294): </span><span style="color: #ffffff; font-size: 10pt;"> <span style="color: #1fda11;">#Enter를 치면 default로 잡힌다.</span> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Using default value 4294967294</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Partition 1 of type Linux and of size 2 TiB is set </span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"><span style="color: #1fda11;">#하드디스크의 용량은 4TB이지만, 파티션에 할당할 수 있는 최대 크기는 2TB</span><span style="color: #1fda11;">다.</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"><span style="color: #1fda11;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): <span style="color: #ff0000;">w</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">The partition table has been altered!</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Calling ioctl() to re-read partition table.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Syncing disks.</span></p>
</div>
<p> </p>
<p> </p>
<p><strong> 3. mkfs -t <span style="color: #ff0000;">[파일시스템</span><span style="color: #ff0000;">]</span> /dev/<span style="color: #ff0000;">[디스크명</span><span style="color: #ff0000;">]</span></strong></p>
<p> 파일시스템 만들기.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;"># </span><span style="color: #ff0000; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff;">mkfs -t ext4</span> /dev/sdb1</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">mke2fs 1.42.9 (28-Dec-2013)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Filesystem label=</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">OS type: Linux</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Block size=4096 (log=2)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Fragment size=4096 (log=2)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Stride=0 blocks, Stripe width=0 blocks</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">134217728 inodes, 536870655 blocks</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">26843532 blocks (5.00%) reserved for the super user</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">First data block=0</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Maximum filesystem blocks=2684354560</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">16384 block groups</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">32768 blocks per group, 32768 fragments per group</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">8192 inodes per group</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Superblock backups stored on blocks:</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">102400000, 214990848, 512000000</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Allocating group tables: done </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Writing inode tables: done </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Creating journal (32768 blocks): done</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Writing superblocks and filesystem accounting information: done </span></p>
</div>
<p> </p>
<p> </p>
<p><strong> 4. mount -t <span style="color: #ff0000;">[파일시스템]</span> /dev/<span style="color: #ff0000;">[디스크명</span><span style="color: #ff0000;">]</span><span style="color: #ff0000;"> </span></strong></p>
<p> 마운트하기.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;"># </span><span style="color: #ff0000; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff;">mount -t ext4</span> /dev/sdb1 /second</span></p>
<p><span style="color: #28fe14; font-family: 'Andale Mono'; font-size: 12px; background-color: rgba(0, 0, 0, 0.901961);"> </span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-variant-ligatures: no-common-ligatures;"><span style="font-size: 10pt;"># </span><span style="color: #ffffff; font-size: 10pt;">df -h</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Filesystem</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Size</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Used Avail Use% Mounted on</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda3</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">20G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">93M </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">19G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1% /</span></span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sdb1 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">2.0T </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">81M</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1.9T </span><span style="color: #ffffff; font-size: 10pt;"> 1% /second <span style="color: #1fda11;"> # 새로 마운트한 드라이브가 보일 것이다.</span></span></span></p>
</div>
<p> </p>
<p> </p>
<p> 이렇게 하면 4TB의 하드디스크 중에 2TB를 할당해서 사용할 수 있다.</p>
<p> </p>
<p> 그러나 2TB씩 쪼개서 사용하기 싫고 4TB를 통으로 사용하고 싶다면, 다르게 설정해줘야 한다. </p>
<p> </p>
<p> </p>
<p> <strong> 5. 되돌리기</strong></p>
<p> </p>
<p> 우선, 추가해줬던 파티션을 삭제하고 마운트도 다시 해제하자.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"># <span style="color: #ff0000;"><span style="color: #ffffff;">fdisk</span> /dev/sdb</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">DOS partition table format can not be used on drives for volumes</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">partition table format (GPT).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">The device presents a logical sector size that is smaller than</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">the physical sector size. Aligning to a physical sector (or optimal</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">I/O) size boundary is recommended, or performance may be impacted.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Welcome to fdisk (util-linux 2.23.2).</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Changes will remain in memory only, until you decide to write them.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Be careful before using the write command.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): <span style="color: #ff0000;">m</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command action</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">a </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle a bootable flag</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">b </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">edit bsd disklabel</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">c </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle the dos compatibility flag</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #1fda11; font-size: 10pt;">d </span><span style="color: #1fda11; font-size: 10pt;"> </span><span style="color: #1fda11; font-size: 10pt;">delete a partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">g </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty GPT partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create an IRIX (SGI) partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">l </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">list known partition types</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">m </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print this menu</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">n </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">add a new partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">o </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty DOS partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">p </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print the partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">q </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">quit without saving changes</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">s </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new empty Sun disklabel</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">t </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change a partition's system id</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">u </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change display/entry units</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">v </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">verify the partition table</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">w </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">write table to disk and exit</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">x </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">extra functionality (experts only)</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): <span style="color: #ff0000;">d</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Selected partition 1</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Partition 1 is deleted</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Command (m for help): <span style="color: #ff0000;">w</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">The partition table has been altered!</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Calling ioctl() to re-read partition table.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">WARNING: Re-reading the partition table failed with error 16: 장치나 자원이 동작 중.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">The kernel still uses the old table. The new table will be used at</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">the next reboot or after you run partprobe(8) or kpartx(8)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Syncing disks.</span></p>
</div>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff;"><span style="font-size: 10pt;">#</span><span style="font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">u</span><span style="color: #ff0000; font-size: 10pt;"><span style="color: #ffffff;">mount </span>/second</span></span></p>
</div>
<p> </p>
<p> df- h로 확인해보면 디스크를 추가하지 전의 원래 상태로 돌아옴을 확인할 수 있다. </p>
<p> </p>
<p> </p>
<p> </p>
<p><strong> 6. 2TB를 초과하는 디스크 할당하기.</strong></p>
<p> </p>
<p> 2TB를 초과하는 파티션을 할당하기 위해선 parted 명령어를 사용해야 한다.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;"># </span><span style="color: #ff0000; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);">parted /dev/sdb</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">GNU Parted 3.1</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Using /dev/sdb</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Welcome to GNU Parted! Type 'help' to view a list of commands.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">(parted) <span style="color: #ff0000;">help</span></span><span style="color: #ffffff; font-size: 10pt;"><span style="color: #ff0000;"> </span> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">align-check TYPE N</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">check partition N for TYPE(min|opt) alignment</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">help [COMMAND] </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print general help, or help on COMMAND</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">mklabel,mktable LABEL-TYPE </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">create a new disklabel (partition table)</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">mkpart PART-TYPE [FS-TYPE] START END </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">make a partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">name NUMBER NAME </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">name partition NUMBER as NAME</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">print [devices|free|list,all|NUMBER] </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">display the partition table, available devices, free space, all found partitions, or a</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">particular partition</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">quit </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">exit program</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">rescue START END </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">rescue a lost partition near START and END</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">rm NUMBER</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">delete partition NUMBER</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">select DEVICE</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">choose the device to edit</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">disk_set FLAG STATE</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change the FLAG on selected device</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">disk_toggle [FLAG] </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle the state of FLAG on selected device</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">set NUMBER FLAG STATE</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">change the FLAG on partition NUMBER</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle [NUMBER [FLAG]] </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">toggle the state of FLAG on partition NUMBER</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">unit UNIT</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">set the default unit to UNIT</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">version</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">display the version number and copyright information of GNU Parted</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">(parted) <span style="color: #ff0000;">mklabel gpt </span></span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Yes/No? <span style="color: #ff0000;">yes</span></span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">(parted) <span style="color: #ff0000;">unit TB <span style="color: #1fda11;"># 단위를 설정한다. GB or TB</span></span></span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt;">(parted) <span style="color: #ff0000;">mkpart primary 0.00TB 4.00TB <span style="color: #1fda11;"># 용량 설정 start end</span></span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">(parted) <span style="color: #ff0000;">print</span> </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Model: ATA HGST HDN726040AL (scsi)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Disk /dev/sdb: 4.00TB</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Sector size (logical/physical): 512B/4096B</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Partition Table: gpt</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Disk Flags:</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Number</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Start </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">End </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Size</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">File system</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Name </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Flags</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">0.00TB</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">4.00TB</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">4.00TB</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">ext4 </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">primary <span style="color: #1fda11;"># 정상적으로 추가됐다.</span></span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">(parted) <span style="color: #ff0000;">quit </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Information: You may need to update /etc/fstab.</span><span style="color: #ffffff; font-size: 10pt;"><span style="color: #ffffff; font-size: 10pt;"> </span> </span> </span></p>
</div>
<p> </p>
<p> 파일시스템을 만든다.</p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;">#<span style="color: #ffffff;"> </span></span><span style="color: #ff0000; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff;">mkfs -t ext4</span> /dev/sdb1</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">mke2fs 1.42.9 (28-Dec-2013)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Filesystem label=</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">OS type: Linux</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Block size=4096 (log=2)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Fragment size=4096 (log=2)</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Stride=0 blocks, Stripe width=0 blocks</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">244195328 inodes, 976754176 blocks</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">48837708 blocks (5.00%) reserved for the super user</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">First data block=0</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Maximum filesystem blocks=3124756480</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">29809 block groups</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">32768 blocks per group, 32768 fragments per group</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">8192 inodes per group</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Superblock backups stored on blocks:</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">102400000, 214990848, 512000000, 550731776, 644972544</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; min-height: 14px; background-color: rgba(0, 0, 0, 0.901961);"> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Allocating group tables: done </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Writing inode tables: done </span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Creating journal (32768 blocks): done</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">Writing superblocks and filesystem accounting information: done </span></p>
</div>
<p> </p>
<p> 마운트한다.</p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-size: 10pt;">#<span style="color: #ffffff;"> </span></span><span style="color: #ff0000; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff;">mount -t ext4</span> /dev/sdb1 /second</span></p>
<p><span style="color: #28fe14; font-family: 'Andale Mono'; font-size: 12px; background-color: rgba(0, 0, 0, 0.901961);"> </span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-variant-ligatures: no-common-ligatures;"><span style="font-size: 10pt;">#<span style="color: #ffffff;"> </span></span><span style="color: #ffffff; font-size: 10pt;">df -h</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">Filesystem</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Size</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">Used Avail Use% Mounted on</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda3</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">20G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">93M </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">19G </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1% /</span></span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sdb1 3.6T </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">89M</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">3.4T 1% </span><span style="color: #ffffff; font-size: 10pt;"><span style="color: #ffffff; font-size: 10pt;">/second </span><span style="color: #1fda11;"> # 마운트 완료</span></span></span></p>
</div>
<p> </p>
<p> </p>
<p> 이 과정을 모두 마쳤다면, /second 폴더에 넣는 파일들은 모두 새로 추가한 디스크에 저장될 것이다.</p>
<p> </p>
<p> 그러나 재부팅 시 마운트가 자동으로 해제되기 때문에, 부팅할 때 자동으로 마운트를 해주는 설정을 해줘야 한다.</p>
<p> </p>
<p> </p>
<p><strong> 7. fstab 파일 등록</strong></p>
<p> </p>
<p> 재부팅 시 자동마운트가 되도록 설정한다.</p>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"># <span style="color: #ff0000;"><span style="color: #ffffff;">blkid</span> <span style="color: #1fda11;"># 먼저 자동마운트 등록할 디스크의 </span><span style="color: #1fda11;">UUID를</span><span style="color: #1fda11;"> 알아내야 한다.</span></span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">/dev/sda1: UUID="22a87868-322e-4661-af01-93b2062044ce" TYPE="xfs"</span><span style="color: #ffffff; font-size: 10pt;"> </span></span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="line-height: normal; font-family: 'Andale Mono'; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: small;">.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">/dev/sdb1: UUID="<span style="color: #1fda11;">e001a7f9-1</span><span style="color: #1fda11;">1</span><span style="color: #1fda11;">54-1</span><span style="color: #1fda11;">29e-a916-da</span><span style="color: #1fda11;">d0b</span><span style="color: #1fda11;">541</span><span style="color: #1fda11;">16f2</span>" TYPE="ext4" PARTLABEL="primary" PARTUUID="52412c84-700e-2313-9e2f-c12b1ca1676a"</span></p>
</div>
<p> </p>
<div class="txc-textbox" style="padding: 10px; border: 1px solid #000000; border-image: none; background-color: #000000;">
<p><span style="color: #ffffff; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);"># vi /etc/fstab</span></p>
<p> </p>
<p><span style="color: #28fe14; font-family: 'Andale Mono'; font-size: 12px; background-color: rgba(0, 0, 0, 0.901961);"> </span></p>
<p><span style="color: #ffffff; font-family: 'Andale Mono'; font-size: 10pt; background-color: rgba(0, 0, 0, 0.901961);">#</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"># /etc/fstab</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"># Created by anaconda on Sat Sep 26 08:52:44 2015</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">#</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"># Accessible filesystems, by reference, are maintained under '/dev/disk'</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;"># See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt; font-variant-ligatures: no-common-ligatures;">#</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">UUID=1c407d96-e43b-4b52-af5f-b191560e8267 / </span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">ext4</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">defaults</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">1 1</span></span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt;">.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt;">.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt;">.</span></p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="color: #ffffff; font-size: 10pt;">.</span></p>
<p> </p>
<p style="color: #28fe14; line-height: normal; font-family: 'Andale Mono'; font-size: 12px; margin-right: 0px; margin-left: 0px; background-color: rgba(0, 0, 0, 0.901961);"><span style="font-variant-ligatures: no-common-ligatures;"><span style="color: #ffffff; font-size: 10pt;">UUID=</span><span style="color: #ffffff; font-size: 10pt;">e001a7f9-1</span><span style="color: #ffffff; font-size: 10pt;">1</span><span style="color: #ffffff; font-size: 10pt;">54-1</span><span style="color: #ffffff; font-size: 10pt;">29e-a916-da</span><span style="color: #ffffff; font-size: 10pt;">d0b</span><span style="color: #ffffff; font-size: 10pt;">541</span><span style="color: #ffffff; font-size: 10pt;">16f2</span><span style="color: #ffffff; font-size: 10pt;"> /second</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">ext4</span><span style="color: #ffffff; font-size: 10pt;"> </span><span style="color: #ffffff; font-size: 10pt;">defaults</span><span style="color: #ffffff; font-size: 10pt;"> 1 2</span><span style="font-size: 10pt;"> # 여기에 추가한다.</span></span></p>
<p> </p>
</div>
<p> </p>
<p> </p>
<p> 이렇게 하면 재부팅을 하더라도 자동마운트 된다.</p>
<p> </p>
<p> 굳이 재부팅을 할 필요없이 자동으로 마운트가 되는지 확인하고 싶다면, 마운트를 해제하고 mount -a 을 해보면 된다.</p><p><strong><a href="http://blog1.phps.kr/724?commentInput=true#entry724WriteComment">댓글 쓰기</a></strong></p>
apache 아파치 동시접속자 , 동접자 수 확인
java, tomcat, c#
http://blog1.phps.kr/720
2017-08-18T10:01:51+09:00
2017-08-18T10:01:47+09:00
<strong><span style="font-family: Gulim;">- LISTEN 되는 모든 포트<br />netstat -l 또는 netstat -nap | grep LISTEN<br /></span><span style="font-family: Gulim;"><br />- 모든 서비스 동시 접속자 수<br />netstat -nap | grep ESTABLISHED | wc -l<br /></span><span style="font-family: Gulim;"><br />- 웹 동시 접속자 수<br />netstat -nap | grep :80 | grep ESTABLISHED | wc -l<br /></span><span style="font-family: Gulim;"><span style="font-family: Gulim;"><br />- 웹서버 커넥션수 체크</span><br />netstat -n|grep -F :80|egrep '(ESTAB|SYN)'|awk '{print $5}'|sed 's/:[0-9]*//'|sort -u|wc -l</span></strong><span style="color: #000000; line-height: 19px; font-family: Gulim; background-color: #ffffff;"> <br /></span><strong style="color: #000000; line-height: 19px; font-family: Tahoma, Geneva, sans-serif; background-color: #ffffff;"><span style="font-family: Gulim;"><br /></span></strong><p><strong><a href="http://blog1.phps.kr/720?commentInput=true#entry720WriteComment">댓글 쓰기</a></strong></p>
tomcat clustering and Server distribution (톰켓 클러스터링 과 서버 분산)
java, tomcat, c#
http://blog1.phps.kr/710
2016-10-13T09:15:15+09:00
2016-04-08T15:11:46+09:00
1. 톰켓 클러스터링 설정(config tomcat clustering)<br />[참고]<br /><a href="http://khaidoan.wikidot.com/tomcat-cluster-session-replication-without-multicasting">http://khaidoan.wikidot.com/tomcat-cluster-session-replication-without-multicasting</a><br />참고 하여 설정 함<br /><br /><span style="line-height: 16.8px;">ip 기반으로 서버 분산 처리 하는 경우<br /></span>한 서버에 여러 개의 톰켓을 세팅 하는 방법은 검색하면 쉽게 해결 할 수 있음<br />본 글에서는 서로다른 ip주소 톰켓 을 세션 클러스터링 하기 위해서 ~<br /><br /><br />
<div style="line-height: 16.8px;"> <Manager className="org.apache.catalina.ha.session.DeltaManager"</div>
<div style="line-height: 16.8px;"> expireSessionsOnShutdown="false"</div>
<div style="line-height: 16.8px;"> notifyListenersOnReplication="true" /><br />바로 이부분이 아이피 기반 설정을 하기 위해서 필요함 Manager<br />톰켓 메니저의 자세한 설명은 tomcat.apache.org에 방문하면 확인 할 수 있음.<br /><br /><strong style="color: #ff0000; line-height: 16.8px;">domain <--부분은 서로 일치 해야하며 , </strong></div>
port <-- 서로다른 서버 임으로 4100포트로 통일<br /><br />HOST 엘리먼트의 CONTEXT엘리먼트 PATH는 일치 해야함<br />session은 context기반으로 생성 됨으로 <br /><br /><br style="line-height: 16.8px;" /><span style="line-height: 16.8px;">붉은 색으로 표시 된 부분이 설정의 핵심임 UNIQUE아이디는 서로 달라야 함<br /><br /></span><strong style="color: #ff0000; line-height: 16.8px;">LocalMember </strong>은 자신의 서버 정보를 입력하면 되고<br /><br /><strong style="color: #ff0000; line-height: 16.8px;">Member 은 원격지 서버의 정보를 입력 하면됨<br /><br /><br />마지막으로 <br /><br />배포하는 어플리케이션의 web.xml에는 <br /></strong><distributable />엘리먼트를 추가한다.<br /><br /><br />이렇게 하면 우선 서버 설정은 끝 <br />NGINX에서 로드벨런싱 세팅<br /><br />
<div>server {</div>
<div> </div>
<div> listen 80;</div>
<div> server_name ssogate.fourfree.com;</div>
<div> client_max_body_size 100M;</div>
<div> </div>
<div> <span style="color: #ff0000;"> location / {</span></div>
<div> proxy_redirect off;</div>
<div> proxy_set_header Host $host;</div>
<div> proxy_set_header X-Real-IP $remote_addr;</div>
<div> proxy_set_header X-Forwarded-For $remote_addr;</div>
<div> proxy_pass http://tomcat;</div>
<div> }</div>
<div> </div>
<div> <span style="color: #ff0000;"> location ~^/ssogate2/* {</span></div>
<div> proxy_redirect off;</div>
<div> proxy_set_header Host $host;</div>
<div> proxy_set_header X-Real-IP $remote_addr;</div>
<div> proxy_set_header X-Forwarded-For $remote_addr;</div>
<div> proxy_pass http://tomcat2;</div>
<div> }</div>
<div>}</div>
<div><br />ssogate.fourfree.com 서버의 nginx 설정 입니다.<br /><span style="line-height: 16.8px;">ssogate.fourfree.com <-</span><span style="line-height: 16.8px;">http://tomcat;</span></div>
<span style="line-height: 16.8px;">ssogate.fourfree.com/</span><span style="color: #ff0000; line-height: 16.8px;">ssogate2/ <-- </span><span style="line-height: 16.8px;">http://tomcat2;</span><br />으로 접근 하도록 설정 함 니다.<br /><br />비록 서브 도메인이나 / 서로다른 도메인을 가지고 session을 공유 한것은 아니지만<br />사이트 내에서 덩치가 큰 서비스를 분리해 주기 위해서 tomcat 클러스터링을 이용했습니다.<br /><br />소규모 사이트에서는 괜찮은 방법 같아 보입니다. sso 솔루션을 구매 하거나 josso를 이용해서 구축 해야 하지만 .<br />간단하게 session을 공유 할 수 있습니다. <br />이방식으로 사이트 개발 후 서버에 배포 하려고 합니다 .~<br /><br /><br /><br /><br />server.xml1 설정<br />---------------------------------------------<br />
<div> <Host name="ssogate.fourfree.com" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"></div>
<div> <!--</div>
<div> <Valve className="org.apache.catalina.authenticator.SingleSignOn" /></div>
<div> --></div>
<div> <Alias>ssogate.fourfree.com</Alias></div>
<div> <Context path="/" docBase="/home/homepage/public_html" reloadable="true" workDir="/home/homepage/public_html/WEB-INF/classes" distributable="true" className="org.apache.catalina.ha.context.ReplicatedContext" sessionCookieDomain=".fourfree.com" ></div>
<div> </div>
<div> <Manager className="org.apache.catalina.ha.session.DeltaManager"</div>
<div> expireSessionsOnShutdown="false"</div>
<div> notifyListenersOnReplication="true" /></div>
<div> </div>
<div> </div>
<div> </Context></div>
<div> </div>
<div> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"</div>
<div> channelSendOptions="8"></div>
<div> </div>
<div> <Manager className="org.apache.catalina.ha.session.DeltaManager"</div>
<div> expireSessionsOnShutdown="false"</div>
<div> notifyListenersOnReplication="true" /></div>
<div> </div>
<div> <Channel className="org.apache.catalina.tribes.group.GroupChannel"></div>
<div> <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"</div>
<div> address="1.220.141.43"</div>
<div> port="4100"</div>
<div> autoBind="100"</div>
<div> selectorTimeout="5000"</div>
<div> maxThreads="6" /></div>
<div> </div>
<div> <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"></div>
<div> <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" /></div>
<div> </Sender></div>
<div> </div>
<div> <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector" /></div>
<div> </div>
<div> <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor" /></div>
<div> </div>
<div> <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor" /></div>
<div> </div>
<div> <Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"></div>
<div> </div>
<div> <span style="color: #ff0000;"><strong> <LocalMember className="org.apache.catalina.tribes.membership.StaticMember"</strong></span></div>
<div><span style="color: #ff0000;"><strong> port="4100"</strong></span></div>
<div><span style="color: #ff0000;"><strong> securePort="-1"</strong></span></div>
<div><span style="color: #ff0000;"><strong> host="ssogate.fourfree.com"</strong></span></div>
<div><span style="color: #ff0000;"><strong> domain="tomcat-cluster"</strong></span></div>
<div><span style="color: #ff0000;"><strong> uniqueId="{15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0}"/></strong></span></div>
<div> </div>
<div><span style="color: #ff0000;"><strong> <Member className="org.apache.catalina.tribes.membership.StaticMember"</strong></span></div>
<div><span style="color: #ff0000;"><strong> host="ssogate2.fourfree.com"</strong></span></div>
<div><span style="color: #ff0000;"><strong> port="4100"</strong></span></div>
<div><span style="color: #ff0000;"><strong> securePort="-1"</strong></span></div>
<div><span style="color: #ff0000;"><strong> domain="tomcat-cluster"</strong></span></div>
<div><span style="color: #ff0000;"><strong> uniqueId="{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}" /></strong></span></div>
<div><br /><br /></div>
<div> </Interceptor></div>
<div> </Channel></div>
<div> </div>
<div> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"</div>
<div> filter="" /></div>
<div> </div>
<div> <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve" /></div>
<div> </div>
<div> <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener" /></div>
<div> </Cluster></div>
<div></Host><br /><br /><br /><br />=============================================================================================================================<br /><span style="line-height: 16.8px;">server.xml2 설정</span>
<div><Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"></div>
<div> </div>
<div> <!-- SingleSignOn valve, share authentication between web applications</div>
<div> Documentation at: /docs/config/valve.html --></div>
<div> <!--</div>
<div> <Valve className="org.apache.catalina.authenticator.SingleSignOn" /></div>
<div> --></div>
<div> </div>
<div> <!-- Access log processes all example.</div>
<div> Documentation at: /docs/config/valve.html</div>
<div> Note: The pattern used is equivalent to using pattern="common" --></div>
<div> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log" suffix=".txt"/></div>
<div> </div>
<div> <!--</div>
<div> <Context docBase="C:\Users\visualp\Desktop\java\sts\workspace-sts-3.6.2.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" path="" reloadable="false"/></div>
<div> --></div>
<div> <Alias>ssogate.fourfree.com</Alias></div>
<div> <Alias>ssogate2.fourfree.com</Alias></div>
<div> <Context docBase="C:\Users\visualp\Desktop\java\sts\workspace-sts-3.6.2.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\homepage" path="/" reloadable="true" source="org.eclipse.jst.jee.server:homepage" distributable="true"</div>
<div>className="org.apache.catalina.ha.context.ReplicatedContext"</div>
<div>sessionCookieDomain=".fourfree.com"</div>
<div> ></div>
<div> </div>
<div><Manager </div>
<div>className="org.apache.catalina.ha.session.DeltaManager" </div>
<div>expireSessionsOnShutdown="false" </div>
<div>notifyListenersOnReplication="true"</div>
<div>/></div>
<div> </div>
<div> </Context></div>
<div> </div>
<div> </div>
<div><Cluster </div>
<div>channelSendOptions="6" </div>
<div>channelStartOptions="3" </div>
<div>className="org.apache.catalina.ha.tcp.SimpleTcpCluster" defaultMode="true"></div>
<div> </div>
<div> </div>
<div> </div>
<div><Manager </div>
<div>className="org.apache.catalina.ha.session.DeltaManager" </div>
<div>expireSessionsOnShutdown="false" </div>
<div>notifyListenersOnReplication="true"</div>
<div>/></div>
<div> </div>
<div><Channel className="org.apache.catalina.tribes.group.GroupChannel"></div>
<div><Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"></div>
<div><Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" /></div>
<div></Sender></div>
<div><Receiver </div>
<div>address="61.32.203.30" </div>
<div>autoBind="0" </div>
<div>domain="tomcat-cluster"</div>
<div>className="org.apache.catalina.tribes.transport.nio.NioReceiver" </div>
<div>maxThreads="6" </div>
<div>port="4100" </div>
<div>selectorTimeout="5000"</div>
<div>/></div>
<div><!-- <Interceptor className="com.dm.tomcat.interceptor.DisableMulticastInterceptor" /> --></div>
<div><Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor" staticOnly="true"/></div>
<div><Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector" /></div>
<div><Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"></div>
<div> </div>
<div><LocalMember className="org.apache.catalina.tribes.membership.StaticMember"</div>
<div>port="4100"</div>
<div>securePort="-1"</div>
<div>host="ssogate2.fourfree.com"</div>
<div>domain="tomcat-cluster"</div>
<div>uniqueId="{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/></div>
<div> </div>
<div> </div>
<div><Member className="org.apache.catalina.tribes.membership.StaticMember" </div>
<div>port="4100" </div>
<div>securePort="-1"</div>
<div>host="ssogate.fourfree.com" </div>
<div>domain="tomcat-cluster"</div>
<div>uniqueId="{15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0}" /></div>
<div>/></div>
<div> </div>
<div></Interceptor></div>
<div><Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor" /></div>
<div></Channel></div>
<div><Valve className="org.apache.catalina.ha.tcp.ReplicationValve" </div>
<div>filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;" </div>
<div>/></div>
<div><ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener" /></div>
<div></Cluster></div>
<div><span style="line-height: 1.4em;"></Host><br /><br /><br /><br /><br /></span></div>
</div><p><strong><a href="http://blog1.phps.kr/710?commentInput=true#entry710WriteComment">댓글 쓰기</a></strong></p>
nignx , ip_hash 옵션 , Upstream
java, tomcat, c#
http://blog1.phps.kr/709
2016-03-30T09:20:50+09:00
2016-03-30T09:20:47+09:00
<h3><br />형식</h3>
<p>upstream 이름 {<br /> [ip_hash;]<br /> server host 주소:포트 [옵션];<br /> .....<br /> }</p>
<h3>옵션</h3>
<p>옵션으로 올 수 있는 값은 아래와 같다.</p>
<ul>
<li>ip_hash : 같은 방문자로부터 도착한 요청은 항상 같은 업스트림 서버가 처리 할 수 있게 한다.</li>
<li>weight=n : 업스트림 서버의 비중을 나타낸다. 이 값을 2로 설정하면 그렇지 않은 서버에 비해 두배 더 자주 선택된다.</li>
<li>max_fails=n : n으로 지정한 횟수만큼 실패가 일어나면 서버가 죽은 것으로 간주한다.</li>
<li>fail_timeout=n : max_fails가 지정된 상태에서 이 값이 설정만큼 서버가 응답하지 않으면 죽은 것으로 간주한다.</li>
<li>down : 해당 서버를 사용하지 않게 지정한다. ip_hash; 지시어가 설정된 상태에서만 유효하다.</li>
<li>backup : 모든 서버가 동작하지 않을 때 backup으로 표시된 서버가 사용되고 그 전까지는 사용되지 않는다.</li>
</ul>
<h3>예제</h3>
<p>예를들면 아래와 같다.</p>
<p>upstream backend {<br /> ip_hash;<br /> server 192.168.125.142:9000 weight=3;<br /> server 192.168.125.143:9000;<br /> server 192.168.125.144:9000 max_fails=5 fail_timeout=30s;<br /> server unix:/var/run/php5-fpm.sock backup;<br /> }</p>
<p>위의 설정을 풀어보면 아래와 같다.</p>
<p>같은 IP는 같은 업스트림 서버에 접속한다. <br />(ip_hash) 192.168.125.142 서버는 다른 서버 대비 3배 더 자주 사용된다. <br />192.168.125.144 서버는 30초 동안 응답하지 않는 상태가 5번 지속되면 죽은 것으로 간주하고 더 이상 요청을 보내지 않는다. <br />같은 호스트에 설치되서 소켓을 통해서 통신하는 FastCGI 에플리케이션은 백업용도이기 때문에 평소에는 사용하지 않다가 나머지 서버들이 불능상태가 되었을 때 자동으로 활성화된다.</p><p><strong><a href="http://blog1.phps.kr/709?commentInput=true#entry709WriteComment">댓글 쓰기</a></strong></p>