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
-
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– AdminBee2021-07-15 14:24:49 +00:00Commented Jul 15, 2021 at 14:24
1 Answer
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.
-
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– titan5752021-07-15 13:42:01 +00:00Commented Jul 15, 2021 at 13:42
-
Thank you for the suggestion.
yum clean alldeletedCleaning repos: rhel-7-server-rpmsand now the root file system is 40% empty.titan575– titan5752021-07-15 13:49:42 +00:00Commented Jul 15, 2021 at 13:49 -
Is there a permanent way to add more disk space to the root file system or resizing the existing one?titan575– titan5752021-07-15 13:51:20 +00:00Commented Jul 15, 2021 at 13:51
-
Good to hear
yum clean allhelped. 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– Vojtech Trefny2021-07-15 14:22:59 +00:00Commented Jul 15, 2021 at 14:22



