# Cannot resize CentOS7 LVM on node

**URL:** <https://forums.suse.com/t/cannot-resize-centos7-lvm-on-node/19357>\
**Category:** General\
**Created:** [January 22, 2021, 7:29pm UTC](https://forums.suse.com/t/cannot-resize-centos7-lvm-on-node/19357 "2021-01-22T19:29:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Dobson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bryan_dobson/32/5618_2.png) [@Bryan\_Dobson](https://forums.suse.com/u/Bryan_Dobson)\
**Post date:** [January 22, 2021, 7:29pm UTC](https://forums.suse.com/t/cannot-resize-centos7-lvm-on-node/19357/1 "2021-01-22T19:29:35Z")

</div>

Hello, I have CentOS7 setup as a template that is used for nodes in a Rancher cluster (version 2.4.5) and have found that while the overall disk, /dev/sda, is resized the LVM partitions are not. Checking the cloud-init logs on the nodes show that it claims to have done this, but the partitions are not.

Example log:

 ![Screen Shot 2021-01-22 at 10.59.19 AM](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/9/9d56e3e0e6560bbe0a42f83bb403972b2a014bdd.png)

However, the root LVM partition is still the original 35GB of the template.

---

<div class="post-metadata">

**Author:** ![Bryan\_Dobson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bryan_dobson/32/5618_2.png) [@Bryan\_Dobson](https://forums.suse.com/u/Bryan_Dobson)\
**Post date:** [January 26, 2021, 10:25pm UTC](https://forums.suse.com/t/cannot-resize-centos7-lvm-on-node/19357/2 "2021-01-26T22:25:32Z")

</div>

I have solved this issue. I rebuilt the template and completely removed swap, disabled LVM and changed to ext4. After that the CentOS7 node template builds to the correct disk size.
