Open marmila opened 1 year ago
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 :)
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 :)