In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I encountered an error message when installing Cloud Foundry in the ubuntu installed by VirtualBox. There is not enough disk space:
After cleaning up with these three commands, the results are still not ideal:
(1) sudo apt-get autoclean (installation package of uninstalled software)
(2) sudo apt-get clean (installation package for uninstalled software)
(3) clean up isolated software packages that are no longer needed by the system. Sudo apt-get autoremove
So I decided to resize the virtual machine disk of ubuntu to 30G.
The current disk space is viewed through the command line VBoxManage.exe list hdds.
Use the command VBoxManage.exe modifyhd-- resize to change the size. After I changed it to 30g,
You've seen the size take effect in VirtualBox.
The ubuntu command sudo fdisk-l can see that the new disk size is already in effect.
However, the size of the file system viewed by df-H remains unchanged.
Use the command sudo fdisk / dev/sda, then select n to create a new partition of type p and number 3. Note here that the start of the new partition is next to the end of the existing Linux LVM partition, as shown in the following figure. As for the end position, I simply specify to add 15G, so the end position is calculated dynamically.
The following information shows that the partition has been created successfully.
Change the type of the newly created partition to 8e:Linux LVM
The next step is to create a new Physical volume physical volume: sudo pvcreate / dev/sda3
Sudo pvscan shows that the physical volume has not been assigned to the volume group ubuntu-vg
Use the command sudo vgextend ubuntu-vg / dev/sda3 to allocate:
The assignment is complete.
Then modify the size of the volume group: sudo lvextend-l + 100%FREE / dev/mapper/ubuntu--vg-root
The last step:
Sudo resize2fs / dev/mapper/ubuntu--vg-root
Now the size of the / directory has been successfully expanded:
For more original Jerry technical articles, please follow the official account "Wang Zixi" or scan the following QR code:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.