Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-9004) Resize XFS file system by mount point, not by volume #232

Merged
merged 1 commit into from
May 28, 2019
Merged

(MODULES-9004) Resize XFS file system by mount point, not by volume #232

merged 1 commit into from
May 28, 2019

Conversation

foofoo-2
Copy link
Contributor

Hi everyone,

This PR should solve https://tickets.puppetlabs.com/browse/MODULES-9004 by using the mount point to resize an XFS file system instead of the volume. Without this change, file system resizing does not work with newer xfs versions (e.g. 4.19.0 under RHEL8).

As it is my first contribution, feel free to tell me if I missed something.

Thanks in advance!

@lionce
Copy link
Contributor

lionce commented May 28, 2019

Hello @foofoo-2 , in order to merge this change, we need to make sure that these changes are fixing the issue. Would you please test this on your server and let us know the status? Thanks in advance!

@foofoo-2
Copy link
Contributor Author

Hi @lionce,

I did a quick test on my server and it looks good with the proposed change. Please find here an example while increasing the size of a logical from 9G to 10G:

# Server information
[root@rhel8-test ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.0 (Ootpa)
[root@rhel8-test ~]# uname -a
Linux rhel8-test.mydomain 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

# Before Puppet run
[root@rhel8-test ~]# lvs /dev/vrhvg/homelv
  LV     VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  homelv vrhvg -wi-ao---- 9.00g
[root@rhel8-test ~]# df -h /home
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/vrhvg-homelv  9.0G   94M  9.0G   2% /home

# Puppet run
[root@rhel8-test ~]# puppet agent -t
...
Notice: /Stage[main]/Disks/Disks::Osvg::Lv_size[homelv]/Disks::Osvg::Lv[homelv]/Logical_volume[homelv]/size: size changed '9G' to '10G'
Notice: Applied catalog in 7.15 seconds

# After Puppet run
[root@rhel8-test ~]# lvs /dev/vrhvg/homelv
  LV     VG    Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  homelv vrhvg -wi-ao---- 10.00g
[root@rhel8-test ~]# df -h /home
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/vrhvg-homelv   10G  102M  9.9G   1% /home

If you need additional information, feel free to ask.

Thanks!

@lionce
Copy link
Contributor

lionce commented May 28, 2019

@foofoo-2 Many thanks for your prompt response :) 👍 It looks good!
Thanks again for this fix!

@lionce lionce merged commit 80fa00f into puppetlabs:master May 28, 2019
@foofoo-2
Copy link
Contributor Author

Thanks for the quick merge @lionce!

Could you please tell me if I have to do something else to have this fix integrated in an official release of the module and published to the Forge?

@lionce
Copy link
Contributor

lionce commented May 28, 2019

Hey @foofoo-2 , I'll let you know when the new version is released and published to the Forge with your changes! Thanks

@lionce
Copy link
Contributor

lionce commented Jun 3, 2019

Hello @foofoo-2 ,
the new version 1.3.0 is released on forge. Your changes are included! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants