Show Table of Contents
23.4. 킥스타트 설정 예
23.4.1. 고급 파티션의 예
다음에서는
clearpart, zerombr, part, raid, volgroup, logvol 킥스타트 옵션의 실제 작동에 대한 종합적인 예를 보여주고 있습니다:
예 23.6. 고급 파티션의 예
clearpart --drives=hda,hdczerombr# Raid 1 IDE configpart raid.11 --size 1000 --asprimary --ondrive=hdapart raid.12 --size 1000 --asprimary --ondrive=hdapart raid.13 --size 2000 --asprimary --ondrive=hdapart raid.14 --size 8000 --ondrive=hdapart raid.15 --size 16384 --grow --ondrive=hdapart raid.21 --size 1000 --asprimary --ondrive=hdcpart raid.22 --size 1000 --asprimary --ondrive=hdcpart raid.23 --size 2000 --asprimary --ondrive=hdcpart raid.24 --size 8000 --ondrive=hdcpart raid.25 --size 16384 --grow --ondrive=hdc# You can add --spares=xraid / --fstype xfs --device root --level=RAID1 raid.11 raid.21raid /safe --fstype xfs --device safe --level=RAID1 raid.12 raid.22raid swap --fstype swap --device swap --level=RAID1 raid.13 raid.23raid /usr --fstype xfs --device usr --level=RAID1 raid.14 raid.24raid pv.01 --fstype xfs --device pv.01 --level=RAID1 raid.15 raid.25# LVM configuration so that we can resize /var and /usr/local latervolgroup sysvg pv.01logvol /var --vgname=sysvg --size=8000 --name=varlogvol /var/freespace --vgname=sysvg --size=8000 --name=freespacetouselogvol /usr/local --vgname=sysvg --size=1 --grow --name=usrlocal
이러한 고급 예시는 RAID를 통해 LVM을 실행하며, 다양한 디렉토리의 크기 조절 기능 또한 구현합니다.
먼저
clearpart 명령을 사용하여 hda 및 hdc 드라이브를 삭제합니다. zerombr 명령은 사용되지 않은 파티션 테이블을 초기화합니다.
다음 두 개의 드라이브에 파티션이 설정되어 RAID 설정을 준비합니다. 각 드라이브는 다섯 개의 파티션으로 분할되어 있고 각 드라이브는 동일한 레이아웃으로 파티션 설정됩니다.
다음 부분에서는 이러한 물리적 파티션 쌍을 사용하여 RAID1 레벨 (미러링)으로 소프트웨어 RAID 장치를 생성합니다. 첫 번째 4 개의 RAID 장치는
/ (root), /safe, swap, /usr에 사용됩니다. 다섯번째 가장 큰 파티션 쌍은 pv.01으로 이름이 지정되어 다음 부분에서 LVM의 물리 볼륨으로 사용됩니다.
마지막으로 마지막 명령 세트는 먼저
pv.01 물리 볼륨에 sysvg이라는 볼륨 그룹을 생성합니다. 그 뒤 세 개의 논리 볼륨 (/var, /var/freespace, /usr/local)이 생성되어 sysvg 볼륨 그룹에 추가됩니다. /var, /var/freespace 볼륨의 크기는 8 GB이고 /usr/local 볼륨은 --grow 옵션을 사용하여 사용 가능한 모든 남아있는 공간을 채웁니다.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.