DevOps Cloud (ADM)
Cybersecurity
IT Operations Management
ZENworks Appliance by default configured with swapfile as swap, to improve performance of the device a swap partition is helpful, which may be required in Embedded database ZCM zones
Note: Only parted is able to edit the GPT partition table. If a GPT partition table is used
This article is going to cover the following three approaches to accomplish the resize of a virtual disk in a VMware based environment:
We can create the swap partition by shrinking the second HDD mounted as Vastorage, follow the steps below:
hostname: ~ # parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resize
Partition number? 2
End? [21.5GB]? 92.0GB
(parted) quit
Information: You may need to update /etc/fstab.
Note: changes cannot be reverted so take a backup of data and make sure recovery works.
(parted) mkpart primary
File system type? [ext2]? linux-swap
Start? 92.0GB
End? 100.0 %
5.Now we have created swap partition created by resizing existing partition.
In this option we add third HDD to the appliance and create a swap partition
# parted /dev/sdc
GNU Parted 3.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
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?
Yes/No? Yes
(parted) mkpart primary
File system type? [ext2]? linux-swap
Start? 0
End? 100%
now exit the parted prompt by giving command “q”
#mkswap /dev/sdc1
Setting up swapspace version 1, size = 8 GiB (8588881920 bytes)
no label, UUID=e3af33ec-f587-48ba-af67-adcef4146c74