I can't figure out the solution. I tried to do pvcreate /dev/sda3
but it's showing me an error: Device /dev/sda3 not found.
I was following this: Oracle VM Vitualbox - Extend centos root file system
Asked
Active
Viewed 8,068 times
0

titan575
- 3
-
1Welcome to the site. Please don't post screenshots of console output. They are often difficult to read, the content will not show up in search engine results, and contributors trying to help will have to type-copy content when trying to analyze/reproduce your problem. Instead, paste it into the question using code formatting. – AdminBee Jul 15 '21 at 14:24
1 Answers
0
It's simple, your root filesystem is full -- you can try removing some files to free some space up (cleaning various caches, e.g. running yum clean all
can also help, related: Tracking down where disk space has gone on Linux?) or add a new disk to your system (or resize your existing one) and then use one of the howtos for extending your LVM setup. pvcreate /dev/sda3
returns error because you don't have sda3
partition in your system. The howto you linked is for situation where you have some free space on your disk not used by existing partitions, that's not your case, you have 20 GiB drive and sda1
and sda2
use all of it.

Vojtech Trefny
- 18,146
-
Thank you for the suggestion. I thought to delete some files from the root system but I am afraid I might delete some important files. Can you please suggest which files could be unnecessary in this situation? I am using virtual box on my laptop. Should I do howto on adding new disk to virtualbox? – titan575 Jul 15 '21 at 13:42
-
Thank you for the suggestion.
yum clean all
deletedCleaning repos: rhel-7-server-rpms
and now the root file system is 40% empty. – titan575 Jul 15 '21 at 13:49 -
Is there a permanent way to add more disk space to the root file system or resizing the existing one? – titan575 Jul 15 '21 at 13:51
-
Good to hear
yum clean all
helped. To add more space permanently you need either second disk or resize the existing one (disks in VMs can be resized), you can check this question for details. – Vojtech Trefny Jul 15 '21 at 14:22