# Wrong volume group size

**URL:** <https://forums.suse.com/t/wrong-volume-group-size/35481>\
**Category:** SLES Install-Boot\
**Created:** [February 16, 2021, 4:05pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481 "2021-02-16T16:05:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 16, 2021, 4:05pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/1 "2021-02-16T16:05:06Z")

</div>

Hello,  
I use autoyast to perform installation of my SLES12SP5 and I met an issue : during the pre-script phasis, I use a script to make partitioning. In this, I ask to have 2 volume group : 1 for /var/log, /tmp and /home with a size of 1024/768/256MiB so, 2GiB. Second volume group is for /root with the rest of disk.  
For a 7GiB disk, I have this result :  
fdisk -l  
Disk /dev/sda: 7 GiB, 7516192768 bytes, 14680064 sectors  
Disk model: Virtual disk  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes  
Disklabel type: dos  
Disk identifier: 0x00083158

Device Boot Start End Sectors Size Id Type  
/dev/sda1 \* 2048 1060863 1058816 517M 83 Linux  
/dev/sda2 1060864 2119679 1058816 517M 82 Linux swap / Solaris  
/dev/sda3 2119680 8402943 6283264 3G 8e Linux LVM  
/dev/sda4 8402944 14680063 6277120 3G 8e Linux LVM

Disk /dev/mapper/vg\_root-lv\_root: 3 GiB, 3200253952 bytes, 6250496 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg\_common-lv\_home: 256 MiB, 268435456 bytes, 524288 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg\_common-lv\_logs: 1 GiB, 1073741824 bytes, 2097152 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg\_common-lv\_tmp: 768 MiB, 805306368 bytes, 1572864 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

For lsblk:  
lsblk  
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT  
fd0 2:0 1 4K 0 disk  
sda 8:0 0 7G 0 disk  
??sda1 8:1 0 517M 0 part /boot  
??sda2 8:2 0 517M 0 part [SWAP]  
??sda3 8:3 0 3G 0 part  
? ??vg\_root-lv\_root 254:0 0 3G 0 lvm /  
??sda4 8:4 0 3G 0 part  
??vg\_common-lv\_home 254:1 0 256M 0 lvm /home  
??vg\_common-lv\_logs 254:2 0 1G 0 lvm /var/log  
??vg\_common-lv\_tmp 254:3 0 768M 0 lvm /tmp

So, my first volume group is set to 3GiB instead of 2… why ? What am I missing ?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 16, 2021, 4:55pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/2 "2021-02-16T16:55:18Z")

</div>

@Frederic Hi, so what does the script do, size, sectors, blocks etc? Perhaps a calculation error (GiB vs GB?)?

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 16, 2021, 5:43pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/3 "2021-02-16T17:43:52Z")

</div>

Here is the result of my script (the partitioning part) : [https://drive.google.com/file/d/18pzaYC1eXG5d1-rGuGCQVKx8RBDYCMGA/view?usp=sharing](https://drive.google.com/file/d/18pzaYC1eXG5d1-rGuGCQVKx8RBDYCMGA/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 16, 2021, 7:58pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/4 "2021-02-16T19:58:13Z")

</div>

@Frederic Hi can you upload to [https://susepaste.org/](https://susepaste.org/)? Or just post if not too long in the thread with markup quotes eg three of these “`”.

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 17, 2021, 7:57am UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/5 "2021-02-17T07:57:44Z")

</div>

@malcolmlewis Hi ! it’s done : [https://susepaste.org/19817093](https://susepaste.org/19817093 "https://susepaste.org/19817093")

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 17, 2021, 2:17pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/6 "2021-02-17T14:17:19Z")

</div>

@Frederic Hi, strange indeed… I’m no autoyast user, but should size not have a suffix?

`<size>1024M+256M+768M</size>` or `<size>2G</size>` instead of `<size>1024+256+768</size>`

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 17, 2021, 4:31pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/7 "2021-02-17T16:31:56Z")

</div>

I tried with a `<size>2G</size>` but nothing changes

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 17, 2021, 4:58pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/8 "2021-02-17T16:58:02Z")

</div>

@Frederic Hi, well the only thing I can think of is moving the vg\_root section to the last part of the file since it should process the rest of the disk (eg max)…

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 17, 2021, 6:42pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/9 "2021-02-17T18:42:24Z")

</div>

I tried to move the vg\_root section after the vg\_common, also change the `<size>1024+256+768</size>` by `<size>2048M</size>`, always the same result ☹

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 17, 2021, 7:44pm UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/10 "2021-02-17T19:44:32Z")

</div>

@Frederic Hi, are you in a position to open a Support Request? If so, that may be the best route, something is not right in autoyast land… ☹

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 18, 2021, 7:18am UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/11 "2021-02-18T07:18:55Z")

</div>

Yes, I can do it.  
Thanks for the help @malcolmlewis

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [February 18, 2021, 9:09am UTC](https://forums.suse.com/t/wrong-volume-group-size/35481/12 "2021-02-18T09:09:44Z")

</div>

maybe I was too tired yesterday evening but… with same VM, same autoyast xml file, I re-install the VM for saving some installation logs and it works this time !  
I have my 2GiB vg\_common and 4GiB vg\_root…
