Advertisement
otubo

Untitled

Dec 1st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Test steps:
  2. 1. Create a VM with 8.2 LVM on-demand image in XXX(VM drive is larger(64G) than the image)
  3. 2. Check the root drive (/) is not resized
  4. 3. Uninstall old version cloud-utils-growpart-0.29-3.el8 and cloud-init-18.5-12,
  5. Install cloud-utils-growpart-0.31-1.el8 and cloud-init-19.4-7.el8
  6. 4. Clean the VM cloud-init related files/configs, reboot the VM
  7. 5. Login the VM, check the root drive (/) is not resized
  8.  
  9. # lsblk
  10. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  11. sda 8:0 0 7G 0 disk
  12. └─sda1 8:1 0 7G 0 part /mnt
  13. sdb 8:16 0 64G 0 disk
  14. ├─sdb1 8:17 0 500M 0 part /boot
  15. ├─sdb2 8:18 0 63G 0 part
  16. │ ├─rootvg-tmplv 253:0 0 2G 0 lvm /tmp
  17. │ ├─rootvg-usrlv 253:1 0 10G 0 lvm /usr
  18. │ ├─rootvg-homelv 253:2 0 1G 0 lvm /home
  19. │ ├─rootvg-varlv 253:3 0 8G 0 lvm /var
  20. │ └─rootvg-rootlv 253:4 0 2G 0 lvm /
  21.  
  22. 6. Check the /var/log/cloud-init.log, it reports failed log:
  23. - cc_growpart.py[DEBUG]: '/' SKIPPED: device_part_info(/dev/mapper/rootvg-rootlv) failed: /dev/mapper/rootvg-rootlv not a partition
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement