Prerequisites for Installing JSA 7.5.0 Update Package 4 qcow2
Before you begin, see section Administrator Notes to understand the system requirements for installing JSA 7.5.0 Update Package 4 using an qcow2 image.
We recommend that you increase the amount of storage allocated to a particular partition on the disk image.
Perform the following steps to expand the disk image or store partition:
Shut down the VM before you perform this operation to avoid corrupting the disk that contains the qcow2 image.
-
Expand the qcow2 disk image by using the following command.
sudo qemu-img resize --preallocation=falloc vjsa-tacon.qcow2 +512G Image resized
-
Check if there is sufficient disk space for the uncompressed image by using the
following command.
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
-
Boot the disk image by using the following command.
virsh start vjsa-tacon
-
Log in as the root user to JSA by using the JSA console or SSH.
virsh console vjsa-tacon
-
Run the
parted
command on the disk /dev/vda to increase the size of the disk partition. Ensure that you type fix when prompted.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 the device so that the new partition is reflected in the partition table by
using the following command.
reboot
-
Run the
parted
command to display the free space and note the beginning and ending blocks.(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
- Reboot the device to ensure that the new partition fixes are reflected in the partition table.
-
Create a new partition at the end of the existing partition by using the following
commands.
(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
-
Set the partition as a Logical Volume Manager (LVM) partition by using the following
commands.
(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
Table 1 shows the updated partition table after creating an LVM partition.
Table 1: Partition Table Information Number
Start
End
Size
File System
Name Flags
34s
2047s
2014s
Free Space
1
2048s
4095s
2048s
bios_grub
2
4096s
2101247s
2097152s
xfs
3
2101248s
69210111s
67108864s
xfs
4
69210112s
882888703s
813678592s
lvm
-
Quit the
parted
command and add the new LVM partition as a physical volume to LVM by using the following command.sudo pvs
Table 2 shows the LVM partition added as a physical volume.
Table 2: Adding LVM Partition as a Physical Volume PV
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.
-
Extend the physical volume group by using the following command.
[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
The physical volume group is now extended.
-
Use the following command to extend the logical volume of the disk.
df -h
Table 3: File System Information File system
Size
Used
Available
Use %
Mounted on
/dev/mapper/rootrhel-root
13 Gb
3.0 Gb
9.5 Gb
24%
/
devtmpfs
32 Gb
0
32 Gb
0%
/dev
tmpfs
32 Gb
20 Kb 32 Gb
1%
/dev/shm
tmpfs
32 Gb
34 Mb
32 Gb
1%
/run
tmpfs
32 Gb
0
32 Gb
0%
/sys/fs/cgroup
/dev/mapper/rootrhel-tmp
3.0 Gb
135 Mb
2.9 Gb
5%
/tmp
/dev/vda3
32 Gb
4.8 Gb
28 Gb
15%
/recovery
/dev/mapper/storerhel-store
311 Gb
21 Gb
290 Gb
7%
/store
/dev/mapper/rootrhel-opt
13 Gb
4.3 Gb
8.3 Gb
34%
/opt
/dev/mapper/rootrhel-home
1014 Mb
33 Mb
982 Mb
4%
/home
tm/dev/mapper/rootrhel-storetmp
15 Gb
44 Mb
15 Gb
1%
/storetmp
/dev/mapper/storerhel-transient
78 Gb
34 Mb
78 Gb
1%
/transient
The logical volume is now extended.
-
Extend the file system by using the following command.
xfs_growfs /store
The file system is now extended.
You have now extended the physical volume group, logical volume of the disk, and the file system as required. You can now install JSA 7.5.0 Update Package 4 using a qcow2 image. See Installing JSA 7.5.0 Update Package 4 qcow2 on the KVM for information on installing JSA 7.5.0 Update Package 4 using a qcow2 image.