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

[SOLVED] repo: xfs_growfs: /dev/rhel_rhel8/root is not a mounted XFS filesystem #26

Open
marmila opened this issue Sep 15, 2022 · 0 comments

Comments

@marmila
Copy link

marmila commented Sep 15, 2022

Hi there!
I have noticed an issue while doing my first vagrant up with this environment; the deployment of the repo VM fails with the following error.

repo: Running: inline script
repo: Physical volume "/dev/sdb" successfully created.
repo: Volume group "rhel_rhel8" successfully extended
repo: Size of logical volume rhel_rhel8/root changed from <28.93 GiB (7405 extents) to 30.92 GiB (7916 extents).
repo: Logical volume rhel_rhel8/root successfully resized.
repo: xfs_growfs: /dev/rhel_rhel8/root is not a mounted XFS filesystem

UPDATE: to fix this I have modified the xfs_growfs command in the vagrantfile as follows:

repo.vm.provision :shell, :inline => "pvs | grep '/dev/sdb' && echo 'The disk was already expanded!' || (pvcreate /dev/sdb; vgextend rhel_rhel8 /dev/sdb; lvextend -l +100%FREE /dev/rhel_rhel8/root; xfs_growfs /)"

Hope that can be useful for someone :)

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

No branches or pull requests

1 participant