Resize disk size on Almalinux 8 #1446
-
Hi, I started an Almalinux 8 with Lima set at 10GB. Then I changed the size to 30GB, and restarted. But the size remains the same after I ran
Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Did you also extend the partition, before growing the file system ? EDIT: It seems to have been more about the disk image, than fdisk qemu-img resize ~/.lima/almalinux-8/diffdisk 30G limactl edit --set='.disk = "30GiB"' almalinux-8 |
Beta Was this translation helpful? Give feedback.
-
I requested a live upgrade to VPS from contabo AlmaLinux 8 (64 bit) lsblk Expand the Existing Partition what i must do [root@vmi943521 ~]# lsblk |
Beta Was this translation helpful? Give feedback.
-
@afbjorklund help me,I just did step 4 and the virtual machine won't start (base) ~/ limactl -v
limactl version 0.22.0
(base) ~/ limactl ls
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
default Stopped 127.0.0.1:0 qemu aarch64 4 4GiB 100GiB ~/.lima/default
docker-rootful-local Stopped 127.0.0.1:0 vz aarch64 8 16GiB 60GiB ~/.lima/docker-rootful-local
docker-rootful-rosetta Stopped 127.0.0.1:0 vz aarch64 8 16GiB 60GiB ~/.lima/docker-rootful-rosetta
ubuntu-gateway-inlet Stopped 127.0.0.1:0 vz aarch64 1 1GiB 10GiB ~/.lima/ubuntu-gateway-inlet
(base) ~/ ll /opt/homebrew/bin/qemu-img
lrwxr-xr-x 1 edwin admin 33B Jul 20 19:17 /opt/homebrew/bin/qemu-img -> ../Cellar/qemu/9.0.2/bin/qemu-img Step 1(base) ~/ qemu-img info .lima/docker-rootful-local/diffdisk
image: .lima/docker-rootful-local/diffdisk
file format: raw
virtual size: 60 GiB (64424509440 bytes)
disk size: 2.4 GiB
Child node '/file':
filename: .lima/docker-rootful-local/diffdisk
protocol type: file
file length: 60 GiB (64424509440 bytes)
disk size: 2.4 GiB Step 2(base) ~/ qemu-img resize --shrink .lima/docker-rootful-local/diffdisk 20G
WARNING: Image format was not specified for '.lima/docker-rootful-local/diffdisk' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Image resized. Step 3(base) ~/ qemu-img info .lima/docker-rootful-local/diffdisk
image: .lima/docker-rootful-local/diffdisk
file format: raw
virtual size: 20 GiB (21474836480 bytes)
disk size: 2.4 GiB
Child node '/file':
filename: .lima/docker-rootful-local/diffdisk
protocol type: file
file length: 20 GiB (21474836480 bytes)
disk size: 2.4 GiB Step 4(base) ~/ limactl stop docker-rootful-local
INFO[0000] Sending SIGINT to hostagent process 42092
INFO[0000] Waiting for the host agent and the driver processes to shut down
INFO[0000] [hostagent] Received SIGINT, shutting down the host agent
INFO[0000] [hostagent] Shutting down the host agent
INFO[0000] [hostagent] Stopping forwarding "/var/run/docker.sock" (guest) to "/Users/edwin/.lima/docker-rootful-local/sock/docker.sock" (host)
INFO[0000] [hostagent] Shutting down VZ
ERRO[0000] [hostagent] dhcp: unhandled message type: RELEASE
INFO[0000] [hostagent] [VZ] - vm state change: stopped
ERRO[0000] [hostagent] accept tcp 127.0.0.1:62988: use of closed network connection
INFO[0000] Stopping socket_vmnet daemon for "shared" network
INFO[0001] Stopping socket_vmnet daemon for "bridged" network
(base) ~/ limactl start docker-rootful-local
INFO[0000] Using the existing instance "docker-rootful-local"
INFO[0000] Starting socket_vmnet daemon for "shared" network
INFO[0000] Starting the instance "docker-rootful-local" with VM driver "vz"
INFO[0000] [hostagent] hostagent socket created at /Users/edwin/.lima/docker-rootful-local/ha.sock
INFO[0000] [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/edwin/.lima/docker-rootful-local/serial*.log")
INFO[0000] [hostagent] new connection from to
INFO[0000] SSH Local Port: 63522
INFO[0000] [hostagent] [VZ] - vm state change: running
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0010] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0013] [hostagent] 2024/08/15 18:36:06 tcpproxy: for incoming conn 127.0.0.1:63536, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: no route to host
INFO[0023] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0026] [hostagent] 2024/08/15 18:36:19 tcpproxy: for incoming conn 127.0.0.1:63551, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: no route to host
INFO[0036] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0039] [hostagent] 2024/08/15 18:36:32 tcpproxy: for incoming conn 127.0.0.1:63566, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: no route to host
INFO[0049] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0052] [hostagent] 2024/08/15 18:36:45 tcpproxy: for incoming conn 127.0.0.1:63592, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: no route to host
INFO[0062] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0065] [hostagent] 2024/08/15 18:36:58 tcpproxy: for incoming conn 127.0.0.1:63606, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: no route to host |
Beta Was this translation helpful? Give feedback.
Did you also extend the partition, before growing the file system ?
EDIT: It seems to have been more about the disk image, than fdisk
qemu-img resize ~/.lima/almalinux-8/diffdisk 30G
limactl edit --set='.disk = "30GiB"' almalinux-8