Extend GPT iSCSI volume in Rocky 8

In this example I will be extending an XFS based iSCSI volume called Veeam_Repo_01 from 40TB to 55TB

Firstly in the back end storage increase the volume

On Rocky – Recan the initiator.

iscsiadm -m session --rescan

lsblk

Output:

sdc 8:32 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdd 8:48 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sde 8:64 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdf 8:80 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdg 8:96 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdh 8:112 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdi 8:128 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP
sdj 8:144 0 55T 0 disk
└─Veeam_Repo_01 253:3 0 40T 0 mpath
└─Veeam_Repo_01p1 253:4 0 36.4T 0 part /BACKUP

You’ll notice the paths are all showing as 55TB

Note: I had to reboot at this point for the free size to be shown in Parted

parted /dev/mapper/Veeam_Repo_01


GNU Parted 3.2
Using /dev/mapper/Veeam_Repo_01
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print free
Warning: Not all of the space available to /dev/mapper/Veeam_Repo_01 appears to be used, you can fix the GPT to use all of the space (an extra 32212254720
blocks) or continue with the current setting?
Fix/Ignore? Fix
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/Veeam_Repo_01: 60.5TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
17.4kB 1049kB 1031kB Free Space
1 1049kB 40.0TB 40.0TB xfs primary
40.0TB 60.5TB 20.5TB Free Space

Now we can resize partition 1

(parted) resizepart 1


Warning: Partition /dev/mapper/Veeam_Repo_01p1 is being used. Are you sure you want to continue?
Yes/No? Yes
End? [40.0TB]? 60.5TB

(parted) quit

Grow XFS Filesystem

xfs_growfs /dev/mapper/Veeam_Repo_01p1

Confirm new size

findmnt -lo source,target,fstype,used,size -t xfs | grep Veeam


Output

/dev/mapper/Veeam_Repo_01p1 /BACKUP xfs 392.7G 55T