Swap size setting not honored on 4k sector disks

Description

Setting the swap size in UI under System -> Advanced -> "Swap size in GB" works for disks with 512 sector size, but when using disks with 4k sector size it generates swap aprtitions that are 8x the size set.

When the default of 2GB is used there isn't a way to replace a disk of same size via GUI. Instead it fails with " Error: [EZFS_BADDEV] device is too small " because 16GB (8x the 2GB setting) is allocated to swap.

setting of 2GB generates 16GB swap partition. (see attached screenshots for workflow showing this issue with 2 drive of same size but diff sector size)

setting of 10GB generates 80GB swap partition.

Suggest reading "Sectorsize" from the disk before doing the math to calculate the number of sectors for the swap partition, or generate the partition based on size.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk August 13, 2020 at 12:51 PM

Bug Clerk August 12, 2020 at 2:05 PM

Bug Clerk August 12, 2020 at 12:07 PM

Complete

Details

Assignee

Reporter

Impact

Medium

Components

Affects versions

Priority

More fields

Katalon Platform

Created August 1, 2020 at 2:18 AM
Updated July 1, 2022 at 4:56 PM
Resolved August 13, 2020 at 12:51 PM