Comprehensive data protection for all workloads
Post Reply
VK-DMX
Novice
Posts: 7
Liked: 1 time
Joined: Jul 28, 2022 8:17 pm
Full Name: Victor Armando Reyes Herrera
Contact:

[VHRISO] manually expanding LVM and XFS file system

Post by VK-DMX » 1 person likes this post

MOD: split from post532222.html#p532222

Hello everyone

I have done installation tests with the Veeam iso, it is really very good, but I have a question, I hope someone can support me with their comments.

When installing it asks for at least 2 disks: 1 for OS and the second for the Data.
everything goes correctly
The file system used is xfs with lVM, so it is possible to add an additional disk and add it to the group volume.

I have done the correct steps to extend the VG_data and extend the logical volume of veeamrepository01, and then extend the xfs partition to the new size. Everything goes correctly and is reflected in the repository and the Veeam console.
All this executed from the live cd option, which allows to execute the commands with sudo.

But, when restarting the server. This no longer starts because it can not mount the volume, marking the following error.
[TIME ] Timed out waiting for device /dev/mapper/datavol-veeamrepository01. [DEPEND] Dependency failed for /mnt/veeam-repository01.
[DEPEND] Dependency failed for Local File Systems.

At the moment the only way is to repair the installation with the iso, it reinstalls the OS, and the data disks are kept intact and with the changes of the file system growth.

Obviously I have to re-scan and configure the new ssh keys in the Veeam console. But it works.

The question is if anyone has been able to grow the LVS with an additional disk and not have to reinstall the OS again.

Greetings.
HannesK
Product Manager
Posts: 15127
Liked: 3232 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: [VHRISO] manually expanding LVM and XFS file system

Post by HannesK » 1 person likes this post

Hello,
thanks for the feedback that you like the ISO in general but I split your question from the main thread because it's becoming hard for anyone to find answers in the release thread with so many different ideas and requests discussed.

In general, your plan should work although I did not test it through. If you could tell every command you ran, then I might be able to spot the issue. In general, it's the same like extending any other logical volume. Maybe SElinux kicks in somewhere. What I did for testing purposes is to mount the disks with the scripts in the live environment, then "setenforce 0" and then chroot into /mnt.

To answer your question: I did not try it out myself and SE-linux is just a guess and I added you +1 to the existing feature request to "add storage"

Best regards
Hannes
hhls
Service Provider
Posts: 3
Liked: never
Joined: Jul 08, 2019 1:07 pm
Contact:

Re: [VHRISO] manually expanding LVM and XFS file system

Post by hhls »

Hi everyone!

I have done the same thing without issues.
Commands (all with sudo, hope I didn't miss anything):
parted /dev/sdb
resizepart 1 100% //should run inside parted
pvresize /dev/sdb1
pvdisplay
lvextend -l +100%FREE /dev/datavol-veeamrepository01
sh mount_datavol.sh //it is not neccessary
xfs_growfs /dev/mapper/datavol-veeamrepository01
reboot

Environment:
- The installation was not added to VBR server before the expansion, so there were no data on the XFS volume.
- VHR installed on ESX 7.0 as a VM.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 228 guests