From 8066dc1e64482c350fa2acaafdd2e73647ba13d9 Mon Sep 17 00:00:00 2001 From: ebner Date: Mon, 8 Apr 2024 15:03:30 +0200 Subject: [PATCH] Update resize_vm_disk.md - add info how to see new disk size without reboot --- admin-guide/configuration/resize_vm_disk.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin-guide/configuration/resize_vm_disk.md b/admin-guide/configuration/resize_vm_disk.md index 42151938..3fd416d3 100644 --- a/admin-guide/configuration/resize_vm_disk.md +++ b/admin-guide/configuration/resize_vm_disk.md @@ -27,6 +27,12 @@ sda 8:0 0 42G 0 disk └─vg_root-lv_home 253:5 0 2G 0 lvm /home ``` +The command will probably not show the correct disk size. For this the VM either needs to be rebooted or you can trigger a re-read of the disksize without a reboot with this command (replace `sda` with the correct diskname you resized): +``` +echo 1 > /sys/block/sda/device/rescan +``` + + Extend partition: ```bash [root@awi-ci-01 ~]# parted /dev/sda