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