cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA Express, resize partition

amneis
Participant

Hello. I was trying to upgrade from SAP HANA Express Edition SPS03 Rev 35 to SPS04. It failed because there was not enough space. So I installed SPS04 from scratch in VMPlayer 15 with SUSE. I resized the VM Disk settings to 125GB since the recommended HDD setting for SPS04 is 120GB.

When I checked the partitions, the maximum size for where SPS04 resides - /dev/sda2 - is only 65GB. It's USE status is at 53.3% already even when I have not yet started to code. How can I expand the size of the partition, /dev/sda2 to 120GB or more?

Appreciate your help. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

dvankempen
Product and Topic Expert
Product and Topic Expert

Hi Ana,

This is documented here: https://www.suse.com/support/kb/doc/?id=7018329

Normally, you would use [yast disk] to resize but you cannot resize a file system that is mounted and you cannot unmount because it is the root partition, so you need to work from the DVD.

  1. Download the SLES 12 SP2 DVD (the release matching the one on the VM)
  2. Configure the VM to start the DVD connected to the ISO
  3. Start the VM and use [ESC] to boot from DVD
  4. Select More...
  5. Select Rescue System
  6. Enter commands (as root)
  • parted -l # lists the partition; displays size of disk /dev/sda and partitions: 2 = root (xfs)
  • parted /dev/sda
  • resize
  • 2
  • 134GB # corresponding to the size of the disk; see output parted command
  • quit
  • mount /dev/sda2 /mnt
  • xfs_growfs /mnt
  • shutdown -r now

former_member247294
Contributor

Thanks for the detailed procedure Denys !

I just applied it for SAP Hana Express SPS04 on VMWare ESXi 6.7u2 (only web interface for admin) with a minor observation :

The boot from DVD worked only when Boot mode was changed to EFI (by default it was BIOS on my imported machine)

With BIOS boot mode it always booted from hdd even if the dvd was connected.

david_lai
Participant

Thanks!

I also had to change my boot mode to EFI

Laszlo_Thoma
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Denys,

I am using the preconfigured VMware image of the SAP HANA Express Edition.
SAP HANA, express edition 2.0 SPS05 server-plus-apps version
SUSE Linux Enterprise Server for SAP Applications 12 SP2
Downloaded the hxexsa.ova file from the official SAP site.

Is it possible to resize the partition of the preconfigured VMware image with your solution?

Thanks for your answer.

Laszlo

dvankempen
Product and Topic Expert
Product and Topic Expert

Hi Laszlo,

As far as I know, the steps remain the same. Should there be any changes, please leave a message for future readers. Thanks

Laszlo_Thoma
Product and Topic Expert
Product and Topic Expert

Hi Denys,

I can confirm that your solution is working on the preconfigured VMware image as well.
I was able to resize the partition /dev/sda2 successfully.

Thanks for your help.

Laszlo

dvankempen
Product and Topic Expert
Product and Topic Expert

Thanks for the confirmation.

Answers (1)

Answers (1)

amneis
Participant

Hi Denys,

I appreciate your quick reply. I followed your instructions and was able to resize /dev/sda2.

Thanks a lot!

-- Annie

dvankempen
Product and Topic Expert
Product and Topic Expert
0 Kudos

You are welcome.