[Request to DELETE - Duplicate] NetWitness 12.4.0.0 Upgrade: Leapp Upgrade Failed
Issue
During the OS-Migration step, leapp upgrade phase fails with the below error in /var/log/leapp/leapp-upgrade.log:
Error Summary
Disk Requirements:
At least XXX MB more space needed on the / filesystem.
Disk Requirements:
At least XXX MB more space needed on the / filesystem.
Cause
If any XFS partitions have ftype set as 0, the overlay block sizes created by leapp would use extra space than the default size, causing the above error.This is controlled using the LEAPP_OVL_SIZE variable and has a default value of 2048 MB. [Refer - Leapp 0.16.0 documentation]
To get the ftype value of a particular filesystem, run the below command:
xfs_info /path/to/virtual/group | grep ftype
ex: xfs_info /dev/mapper/netwitness_vg00-root | grep ftype
ex: xfs_info /dev/mapper/netwitness_vg00-root | grep ftype
Output:
naming =version 2 bsize=4096 ascii-ci=0,
ftype=0
Workaround
Resolution
Manually set the LEAPP_OVL_SIZE to 4096 MBSteps:
1) Run the below command to incrase the LEAPP_OVL_SIZE to 4096 in the /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/overlaygen.py file:
sed -i 's/2048/4096/g' /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/overlaygen.py
2) To confirm the changes, run the below command:
egrep -i 4096 /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/overlaygen.py
Output:
env_size = os.getenv('LEAPP_OVL_SIZE', default='4096')
disk_size = 4096
disk_size = 4096
3) Restart the upgrade
Notes
In case the issue persisted after the change, it means the / filesystem really doesn't have enough storage for the upgrade prechecks to complete. We can perform the below to move it to /var/netwitness and create a symbolic link for it in /var/lib:
cd /var/lib
mv leapp/ /var/netwitness/
ln -s /var/netwitness/leapp
mv leapp/ /var/netwitness/
ln -s /var/netwitness/leapp
Product Details
NetWitness Product Set: NetWitness Logs & NetworkNetWitness Product/Service Type: NetWitness Platform
NetWitness Version/Condition: 12.2+
Summary
During the OS-Migration step, leapp upgrade phase fails with the below error in /var/log/leapp/leapp-upgrade.log: Error Summary Disk Requirements: At least XXX MB more space needed on the / filesystem.
Approval Reviewer Queue
Technical approval queue