mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-29 09:16:22 -05:00
OutOfmemory changed
This commit is contained in:
parent
025fb066c3
commit
44fef06236
@ -4,11 +4,9 @@ title: OutOfmemory
|
||||
permalink: /wiki/OutOfmemory/
|
||||
---
|
||||
|
||||
This is about disk memory, not RAM.
|
||||
VMs specially templates use disk space. Also default private storage max size is 2 GB, but it is very easy to increase it as required. In case you use all disk space you get the Out of disk space error that may crash your system because also Dom0 does not have enough disk space to work.
|
||||
|
||||
VMs specially templates use disk space. Also default private storage max size is 2 GB, but it is very easy to increase it as required. In case you use all disk memory you get the Out of memory error that may crash your system because also Dom0 does not have enough disk space to work.
|
||||
|
||||
So it is a good practice to regularly check disk memory usage with command
|
||||
So it is a good practice to regularly check disk space usage with command
|
||||
|
||||
``` {.wiki}
|
||||
df
|
||||
@ -16,4 +14,34 @@ df
|
||||
|
||||
in dom0 terminal.
|
||||
|
||||
A system in out of memory condition should be able to boot, but may be unable to load a desktop manager. In this case it is possible to login to dom0 terminal with Alt + Ctrl + F2. To recover disk space
|
||||
A system in out of space condition should be able to boot, but may be unable to load a desktop manager. In this case it is possible to login to dom0 terminal with Alt + Ctrl + F2. To recover disk space it may be possible to delete files in a userVM connecting to the userVM terminal:
|
||||
|
||||
``` {.wiki}
|
||||
qvm-start <VMname>
|
||||
sudo xl console <VMname>
|
||||
```
|
||||
|
||||
If this does not work, check the size of /var/lib/qubes/qubes.xml. If it is zero, you'll need to use one of the file backup (stored in /var/lib/qubes/backup), hopefully you have the current data there. Find the most recent one and place in /var/lib/qubes/qubes.xml instead of empty file.
|
||||
|
||||
In any case you'll need some disk space to start the VM. Check "df" output if you have some. If not, some hints how to free some disk space:
|
||||
|
||||
1. Clean yum cache:
|
||||
|
||||
``` {.wiki}
|
||||
sudo yum clean all
|
||||
```
|
||||
|
||||
1. Delete .img files of a less important VM (that will be lost), that can be found in
|
||||
|
||||
/var/lib/qubes/appvms/. Then, when the system is working again, cleanup the rest with:
|
||||
|
||||
``` {.wiki}
|
||||
qvm-remove <VMname>
|
||||
```
|
||||
|
||||
1. Decrease filesystem safety margin (5% by default):
|
||||
|
||||
sudo tune2fs -m 4 /dev/mapper/vg\_dom0-lv\_root
|
||||
|
||||
1. Remove some unneeded files in dom0 home (if you have one, most likely no).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user