Editing
Proxmox
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Technische oplossingen == === Resize disk LVM === Dit zijn de stappen: * Vergroot de disk via de GUI, bijvoorbeeld van 12Gb naar 24Gb * parted /dev/vda * (parted) print <pre> (parted) print Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sda: 25.8GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 boot 2 257MB 12.9GB 12.6GB extended 5 257MB 12.9GB 12.6GB logical lvm </pre> * (parted) resizepart 2 100% * (parted) print <pre> Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sda: 25.8GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 boot 2 257MB 25.8GB 25.5GB extended 5 257MB 12.9GB 12.6GB logical lvm </pre> * (parted) resizepart 5 100% * (parted) print <pre> Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sda: 25.8GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 boot 2 257MB 25.8GB 25.5GB extended 5 257MB 25.8GB 25.5GB logical lvm </pre> * (parted) quit * Bepaal het physical volume <pre> root@host:~# pvs PV VG Fmt Attr PSize PFree /dev/sda5 vg-root-install lvm2 a-- <11.76g 0 </pre> * Resize het logical volume <pre> root@pdnswhpdcsw1:~# pvresize /dev/sda5 Physical volume "/dev/sda5" changed 1 physical volume(s) resized or updated / 0 physical volume(s) not resized </pre> * Bekijk het vogical volume <pre> root@pdnswhpdcsw1:~# lvdisplay --- Logical volume --- LV Path /dev/vg-root-install/root LV Name root VG Name vg-root-install LV UUID Ew6hJI-33MH-30nU-ZCAv-bLu2-CZNO-NKiYLm LV Write Access read/write LV Creation host, time pdnswhpdcsw1, 2020-08-28 22:03:43 +0000 LV Status available # open 1 LV Size 11.55 GiB Current LE 2957 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 </pre> * Resize het logical volume met de resizefs optie <pre> root@pdnswhpdcsw1:~# lvresize --extents +100%FREE --resizefs /dev/vg-root-install/root Size of logical volume vg-root-install/root changed from 11.55 GiB (2957 extents) to 23.55 GiB (6029 extents). Logical volume vg-root-install/root successfully resized. resize2fs 1.44.5 (15-Dec-2018) Filesystem at /dev/mapper/vg--root--install-root is mounted on /; on-line resizing required old_desc_blocks = 2, new_desc_blocks = 3 The filesystem on /dev/mapper/vg--root--install-root is now 6173696 (4k) blocks long. </pre> * Doe hierna de controle met df -h van het volume. <pre> root@pdnswhpdcsw1:~# df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg--root--install-root 24G 12G 12G 51% / </pre> Bron: https://pve.proxmox.com/wiki/Resize_disks <hr/> Terug naar: [[Main Page]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information