Score:1

RHEL 8 extend iSCSI LUN without reboot

bo flag

In short: I´m building computer systems with mounted iSCSI storage. Is it possible to extend the iSCSI storage in live operating without rebooting the systems?

Details:

  • One LUN is planned with 5 TB of data.
  • For the beginning we want to start with 600 Gigabyte for the LUN.
  • The LUN is used for database systems.
  • We don't want to create a LUN with 5 TB. We want to keep them small, what gives us flexibility in moving storage.
  • We are using device-multipathing with two nodes.
  • I have created a lvm (with XFS) that gives the flexibility of merging the LUN´s and should allow for expansion in live operation.

About the last point I´m not sure and wanted to ask for other experiences in RHEL8 with GPDB and iSCSI.

Romeo Ninov avatar
in flag
It is not clear who provide this LUN, RHEL? or some SAN storage? Draw the schema.
STrike avatar
bo flag
The LUN will be provided by NetApp SAN. One problem is that the metro cluster is already on his edge. It will be extended in the future :)
Score:1
br flag

Is it possible to extend the iSCSI storage in live operating without rebooting the systems?

Yes, very easily - simply extend the LUN at the Target end and run a scsi refresh. That should allow your client machine to see the extended LUN - if you've used LVM you can simply vgextend/lvextend and grow the filesystem.

That said what's wrong with simply using thin provisioning at the Target end and creating the LUN as 5TB one day-one - that way you won't ever need to extend it but also only store the data that's actually written?

STrike avatar
bo flag
Thank you for the quick reply. I would use thin provisioning. One problem is that the Target (NetApp) is already relatively full. I want to create small LUN´s to provide flexibility in moving the LUN´s and concatenate them with LVM. Will my plan influence the IOps?
br flag
Probably not no
Romeo Ninov avatar
in flag
Before `vgextend/lvextend` you need to run `lvextend` to update LVM about the new size or this "disk"
Score:0
in flag

You can provision on NetApp this LUN via thin provisioning to full size and it will extend as RHEL request more space in this LUN. So not need to play this game with extending.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.