JSA 7.5.0 업데이트 패키지 4 qcow2 설치의 사전 필수 조건
시작하기 전에 섹션 관리자 노트 를 참조하여 qcow2 이미지를 사용하여 JSA 7.5.0 업데이트 패키지 4를 설치하기 위한 시스템 요구 사항을 이해합니다.
디스크 이미지의 특정 파티션에 할당된 스토리지의 양을 늘리는 것이 좋습니다.
디스크 이미지를 확장하거나 파티션을 저장하려면 다음 단계를 수행하십시오.
qcow2 이미지를 포함하는 디스크 손상 방지를 위해 이 작업을 수행하기 전에 VM을 종료합니다.
- 다음 명령을 사용하여 qcow2 디스크 이미지를 확장합니다.
sudo qemu-img resize --preallocation=falloc vjsa-tacon.qcow2 +512G Image resized
- 다음 명령을 사용하여 비압축 이미지에 충분한 디스크 공간이 있는지 확인합니다.
sudo qemu-img check -r all /vm/vjsa-tacon.qcow2 No errors were found on the image 8388608/8388608 = 100.00% allocated, 0.00% fragmented, 0.00% compressed clusters Image end offset: 549856870400
- 다음 명령을 사용하여 디스크 이미지를 부팅합니다.
virsh start vjsa-tacon
- JSA 콘솔 또는 SSH를 사용하여 JSA에 루트 사용자로 로그인합니다.
virsh console vjsa-tacon
parted
디스크 /dev/vda에서 명령을 실행하여 디스크 파티션의 크기를 높입니다. 프롬프트 메시지가 표시되면 입력 fix 해야 합니다.parted /dev/vda Using /dev/vda Welcome to GNU Parted! Type 'help' to view a list of commands (parted) print Error: The backup GPT table is not at the end of the disk, as it should be This might mean that another operating system believes the disk is smaller Fix, by moving the backup to the end (and removing the old backup)? Fix/Ignore/Cancel? Fix Warning: Not all of the space available to /dev/vda appears to be used, you can fix the GPT to use all of the space (an extra 1073741824 blocks) or continue with the current setting?
- 다음 명령을 사용하여 새 파티션이 파티션 테이블에 반영되도록 디바이스를 재부팅합니다.
reboot
parted
명령을 실행하여 자유 공간을 표시하고 시작 및 끝 블록을 기록합니다.(parted) unit s print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 2147483648s Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: pmbr_boot
- 디바이스를 재부팅하여 새 파티션 수정 사항이 파티션 테이블에 반영되도록 합니다.
- 다음 명령을 사용하여 기존 파티션 끝에 새 파티션을 생성합니다.
(parted) mkpart Partition name? []? File system type? [ext2]? Start? 1073737728 End? 2147483614 (parted) unit s print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 2147483648s Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: pmbr_boot
- 다음 명령을 사용하여 파티션을 논리적 볼륨 관리자(LVM) 파티션으로 설정합니다.
(parted) set 7 lvm on (parted) unit s print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 2147483648s Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: pmbr_boot
표 1 은 LVM 파티션을 생성한 후 업데이트된 파티션 테이블을 보여줍니다.
표 1: 파티션 테이블 정보 수
시작
끝
크기
파일 시스템
이름 플래그
34개
2047년대
2014년대
자유 공간
1
2048년대
4095s
2048년대
bios_grub
2
4096s
2101247s
2097152s
Xfs
3
2101248s
69210111s
67108864s
Xfs
4
69210112s
882888703
813678592
Lvm
parted
명령을 종료하고 다음 명령을 사용하여 새로운 LVM 파티션을 물리적 볼륨으로 LVM에 추가합니다.sudo pvs
표 2 는 물리적 볼륨으로 추가된 LVM 파티션을 보여줍니다.
표 2: 물리적 볼륨으로 LVM 파티션 추가 태양광 발전
Vg
Fmt
Attr
PSIZE
PFree
/dev/vda4
Storerhel
lvm2
a--
&387.99g
0
/dev/vda5
rootrhel
lvm2
a--
67.00g
0
pvcreate /dev/vda7 File descriptor 63 (pipe:[3410678]) leaked on pvcreate invocation. Parent PID 8346: -bash Physical volume "/dev/vda7" successfully created.
- 다음 명령을 사용하여 물리적 볼륨 그룹을 확장합니다.
[root@vjsa-tacon ~]# vgextend storerhel /dev/vda7 File descriptor 63 (pipe:[3831444]) leaked on vgextend invocation. Parent PID 8346: -bash Volume group "storerhel" successfully extended [root@vjsa-tacon ~]# vgs File descriptor 63 (pipe:[4057371]) leaked on vgs invocation. Parent PID 8346: -bash
이제 물리적 볼륨 그룹이 확장되었습니다.
- 다음 명령을 사용하여 디스크의 논리적 볼륨을 확장합니다.
df -h
표 3: 파일 시스템 정보 파일 시스템
크기
사용
사용 가능
사용률
마운트 온
/dev/mapper/rootrhel-root
13Gb
3.0Gb
9.5Gb
24%
/
Devtmpfs
32gb
0
32gb
0%
/Dev
tmpfs
32gb
20Kb 32gb
1%
/dev/shm
tmpfs
32gb
34Mb
32gb
1%
/실행
tmpfs
32gb
0
32gb
0%
/sys/fs/cgroup
/dev/mapper/rootrhel-tmp
3.0Gb
135Mb
2.9Gb
5%
/Tmp
/dev/vda3
32gb
4.8Gb
28Gb
15%
/복구
/dev/mapper/storerhel-store
311Gb
21Gb
290Gb
7%
/저장소
/dev/mapper/rootrhel-opt
13Gb
4.3Gb
8.3Gb
34%
/선택
/dev/mapper/rootrhel-home
1014Mb
33Mb
982Mb
4%
/홈
tm/dev/mapper/rootrhel-storetmp
15Gb
44Mb
15Gb
1%
/storetmp
/dev/mapper/storerhel-임시
78Gb
34Mb
78Gb
1%
/일시적인
이제 논리적 볼륨이 확장됩니다.
- 다음 명령을 사용하여 파일 시스템을 확장합니다.
xfs_growfs /store
이제 파일 시스템이 확장되었습니다.
이제 필요한 경우 물리적 볼륨 그룹, 디스크의 논리적 볼륨 및 파일 시스템을 확장했습니다. 이제 qcow2 이미지를 사용하여 JSA 7.5.0 Update Package 4를 설치할 수 있습니다. qcow2 이미지를 사용하여 JSA 7.5.0 업데이트 패키지 4 설치에 대한 정보는 KVM에 JSA 7.5.0 업데이트 패키지 4를 설치하는 것을 참조하십시오.