Resize disk guest vm di proxmox

#resize di proxmox web based nya

klik resize disk masukin niai yang akan du tambahkan

#yang di lakukan di sisi OS nya

Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectors
Disk model: QEMU HARDDISK   
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: ED094A67-56DA-4598-AAC3-40D00563396A

Device     Start       End   Sectors  Size Type
/dev/sda1   2048      4095      2048    1M BIOS boot
/dev/sda2   4096 209713151 209709056  100G Linux filesystem
root@serverenang:~# parted /dev/sda
GNU Parted 3.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 2 100%                                                
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 419430400 blocks) or
continue with the current setting? 
Fix/Ignore? fix                                                           
Partition number? 2                                                       
Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
Yes/No? yes                                                               
End?  [107GB]? 300GB                                                      
(parted) quit                                                             
Information: You may need to update /etc/fstab.

root@serverenang:~# df -h                                                 
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           778M  988K  777M   1% /run
/dev/sda2        98G  7.5G   86G   9% /
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/loop2       72M   72M     0 100% /snap/lxd/16099
/dev/loop1       55M   55M     0 100% /snap/core18/1880
/dev/loop4       30M   30M     0 100% /snap/snapd/8542
/dev/loop3       33M   33M     0 100% /snap/snapd/11107
/dev/loop5       70M   70M     0 100% /snap/lxd/19188
/dev/loop0       56M   56M     0 100% /snap/core18/1988
tmpfs           778M     0  778M   0% /run/user/0
root@serverenang:~# fdisk -l /dev/sda
Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectors
Disk model: QEMU HARDDISK   
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: ED094A67-56DA-4598-AAC3-40D00563396A

Device     Start       End   Sectors   Size Type
/dev/sda1   2048      4095      2048     1M BIOS boot
/dev/sda2   4096 585937500 585933405 279.4G Linux filesystem
root@serverenang:~# resize2fs /dev/sda2 
resize2fs 1.45.5 (07-Jan-2020)
Filesystem at /dev/sda2 is mounted on /; on-line resizing required
old_desc_blocks = 13, new_desc_blocks = 35
The filesystem on /dev/sda2 is now 73241675 (4k) blocks long.

root@serverenang:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           778M  988K  777M   1% /run
/dev/sda2       275G  7.5G  255G   3% /
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/loop2       72M   72M     0 100% /snap/lxd/16099
/dev/loop1       55M   55M     0 100% /snap/core18/1880
/dev/loop4       30M   30M     0 100% /snap/snapd/8542
/dev/loop3       33M   33M     0 100% /snap/snapd/11107
/dev/loop5       70M   70M     0 100% /snap/lxd/19188
/dev/loop0       56M   56M     0 100% /snap/core18/1988
tmpfs           778M     0  778M   0% /run/user/0
root@serverenang:~# 

No Comments, Be The First!

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.