Discussion:
[PVE-User] Increase RAW Disk SIZE from UI
Rakesh Jain
2018-07-27 16:24:29 UTC
Permalink
Hello team,

We are using Virtual Environment 5.2-1 in our environment.

I have Resized raw disk image from 30 GB to 112 GB. We don’t have LVM configured.

What I did is ->
Shutdown the VM Virtual Machine 100 (labs-provision) on node pve01 from GUI
Increase the DISK size, Memory Size and Increased CPU cores from GUI
Restarted the VM from GUI

Now when I see the disk it shows the increased size but how can I make this change reflecting to /dev/sda3 ??

***@labs-provision:~$ sudo fdisk -l
[sudo] password for rakesh.jain:
GPT PMBR size mismatch (67108863 != 234881023) will be corrected by w(rite).
Disk /dev/sda: 112 GiB, 120259084288 bytes, 234881024 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
Disklabel type: gpt
Disk identifier: 5101DB8D-88D6-487F-9660-CBA9D05EE18F

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 268287 264192 129M Linux filesystem
/dev/sda3 268288 67106815 66838528 31.9G Linux filesystem

***@labs-provision:~$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs tmpfs 396M 41M 356M 11% /run
/dev/sda3 ext4 32G 18G 12G 61% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 ext2 125M 35M 84M 30% /boot
tmpfs tmpfs 396M 0 396M 0% /run/user/26528
tmpfs tmpfs 396M 0 396M 0% /run/user/37379

Please let me know. Any help is appreciated.

-Rakesh Jain

This email and any attachments thereto may contain private, confidential, and/or privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.
Yannis Milios
2018-07-27 16:38:48 UTC
Permalink
Well, that’s basic linux sysadmin, nothing related to pve ...

You can find dozens of articles by googling. If you feel lazy to search,
here’s some examples ...

https://access.redhat.com/articles/1190213


https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/ext4grow
Post by Rakesh Jain
Hello team,
We are using Virtual Environment 5.2-1 in our environment.
I have Resized raw disk image from 30 GB to 112 GB. We don’t have LVM configured.
What I did is ->
Shutdown the VM Virtual Machine 100 (labs-provision) on node pve01 from GUI
Increase the DISK size, Memory Size and Increased CPU cores from GUI
Restarted the VM from GUI
Now when I see the disk it shows the increased size but how can I make
this change reflecting to /dev/sda3 ??
GPT PMBR size mismatch (67108863 != 234881023) will be corrected by w(rite).
Disk /dev/sda: 112 GiB, 120259084288 bytes, 234881024 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
Disklabel type: gpt
Disk identifier: 5101DB8D-88D6-487F-9660-CBA9D05EE18F
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 268287 264192 129M Linux filesystem
/dev/sda3 268288 67106815 66838528 31.9G Linux filesystem
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs tmpfs 396M 41M 356M 11% /run
/dev/sda3 ext4 32G 18G 12G 61% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 ext2 125M 35M 84M 30% /boot
tmpfs tmpfs 396M 0 396M 0% /run/user/26528
tmpfs tmpfs 396M 0 396M 0% /run/user/37379
Please let me know. Any help is appreciated.
-Rakesh Jain
This email and any attachments thereto may contain private, confidential,
and/or privileged material for the sole use of the intended recipient. Any
review, copying, or distribution of this email (or any attachments thereto)
by others is strictly prohibited. If you are not the intended recipient,
please contact the sender immediately and permanently delete the original
and any copies of this email and any attachments thereto.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
--
Sent from Gmail Mobile
Rakesh Jain
2018-07-27 16:46:40 UTC
Permalink
Thanks for reply. I know but the PVE documentation mentions a different command ->

qm command

You can resize your disks online or offline with command line:
qm resize <vmid> <disk> <size>

exemple: to add 5G to your virtio0 disk on vmid100:
qm resize 100 virtio0 +5G

So, got confused.

-Rakesh Jain

On 27/07/18, 10:09 PM, "pve-user on behalf of Yannis Milios" <pve-user-***@pve.proxmox.com on behalf of ***@gmail.com> wrote:

Well, that’s basic linux sysadmin, nothing related to pve ...

You can find dozens of articles by googling. If you feel lazy to search,
here’s some examples ...

https://access.redhat.com/articles/1190213


https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/ext4grow
Post by Rakesh Jain
Hello team,
We are using Virtual Environment 5.2-1 in our environment.
I have Resized raw disk image from 30 GB to 112 GB. We don’t have LVM configured.
What I did is ->
Shutdown the VM Virtual Machine 100 (labs-provision) on node pve01 from GUI
Increase the DISK size, Memory Size and Increased CPU cores from GUI
Restarted the VM from GUI
Now when I see the disk it shows the increased size but how can I make
this change reflecting to /dev/sda3 ??
GPT PMBR size mismatch (67108863 != 234881023) will be corrected by w(rite).
Disk /dev/sda: 112 GiB, 120259084288 bytes, 234881024 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
Disklabel type: gpt
Disk identifier: 5101DB8D-88D6-487F-9660-CBA9D05EE18F
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 268287 264192 129M Linux filesystem
/dev/sda3 268288 67106815 66838528 31.9G Linux filesystem
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs tmpfs 396M 41M 356M 11% /run
/dev/sda3 ext4 32G 18G 12G 61% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 ext2 125M 35M 84M 30% /boot
tmpfs tmpfs 396M 0 396M 0% /run/user/26528
tmpfs tmpfs 396M 0 396M 0% /run/user/37379
Please let me know. Any help is appreciated.
-Rakesh Jain
This email and any attachments thereto may contain private, confidential,
and/or privileged material for the sole use of the intended recipient. Any
review, copying, or distribution of this email (or any attachments thereto)
by others is strictly prohibited. If you are not the intended recipient,
please contact the sender immediately and permanently delete the original
and any copies of this email and any attachments thereto.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
--
Sent from Gmail Mobile
_______________________________________________
pve-user mailing list
pve-***@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user


This email and any attachments thereto may contain private, confidential, and/or privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.
Loading...