Ich scheitere momentan an der Vergrößerung meiner PBS Disk.
Hab die Größe im PBS Interface um 10GB erhöht und den Platz hat es jetzt an /dev/sda1 gepackt.
Leider bekomme ich die /dev/sda3 nicht angepasst!
Hilfe wäre nett!
Code:
root@pbs:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 392M 860K 391M 1% /run
/dev/mapper/pbs-root 8.3G 4.5G 3.4G 58% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
192.168.71.165:/mnt/pool1/Backup/pve_backups_epyc 17T 1.6T 15T 10% /mnt/pve_backups_epyc
tmpfs
Hab die Größe im PBS Interface um 10GB erhöht und den Platz hat es jetzt an /dev/sda1 gepackt.
Leider bekomme ich die /dev/sda3 nicht angepasst!
Code:
root@pbs:~# fdisk -l
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 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: 1EC2F332-F76F-4461-90D8-62661F78CC74
Device Start End Sectors Size Type
/dev/sda1 20971520 41943006 20971487 10G Linux filesystem
/dev/sda2 2048 1050623 1048576 512M EFI System
/dev/sda3 1050624 20971486 19920863 9.5G Linux LVM
Partition table entries are not in disk order.
Disk /dev/mapper/pbs-swap: 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/pbs-root: 8.5 GiB, 9122611200 bytes, 17817600 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
Code:
root@pbs:~# lvresize --extents +100%FREE --resizefs /dev/mapper/pbs-root
Size of logical volume pbs/root unchanged from <8.50 GiB (2175 extents).
Logical volume pbs/root successfully resized.
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 2227200 (4k) blocks long. Nothing to do!
Code:
root@pbs:~# dmesg | grep sda
[ 0.793181] sd 0:0:0:0: [sda] 41943040 512-byte logical blocks: (21.5 GB/20.0 GiB)
[ 0.793210] sd 0:0:0:0: [sda] Write Protect is off
[ 0.793213] sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08
[ 0.793262] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.794931] sda: sda1 sda2 sda3
[ 0.795190] sd 0:0:0:0: [sda] Attached SCSI disk
Code:
root@pbs:~# pvresize /dev/sda3
Physical volume "/dev/sda3" changed
1 physical volume(s) resized or updated / 0 physical volume(s) not resized
Code:
root@pbs:~# lvdisplay
--- Logical volume ---
LV Path /dev/pbs/swap
LV Name swap
VG Name pbs
LV UUID Xrkjrf-0tX3-z6Ib-acSW-HgLX-dQ2m-x9btRU
LV Write Access read/write
LV Creation host, time proxmox, 2024-09-29 09:58:05 +0200
LV Status available
# open 2
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/pbs/root
LV Name root
VG Name pbs
LV UUID 45nhYo-1XKI-n3hz-YfGD-lInf-ScNC-YWPrXE
LV Write Access read/write
LV Creation host, time proxmox, 2024-09-29 09:58:05 +0200
LV Status available
# open 1
LV Size <8.50 GiB
Current LE 2175
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
#root@pbs:~# lvresize --extents +100%FREE --resizefs /dev/pbs/root
Size of logical volume pbs/root unchanged from <8.50 GiB (2175 extents).
Logical volume pbs/root successfully resized.
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 2227200 (4k) blocks long. Nothing to do!
Hilfe wäre nett!
