What is the filesystem of /home? If you used the default, it's XFS. You can't shrink XFS, so you'll have to create another logical volume, move the files to it, remount home under the new LV (easiest to reboot), and remove the old LV. You will also need some extra space on your LV or expand it physically somehow.
Something like this:
modify fstab (vi /etc/fstab) so that /home now mounts /dev/centos/home2
reboot
Double check that the new home has what you want. If all looks good;
verify how much free space you have left with
Then to expand root: As a side note, I don't know anything about Elastix, but it's often a good idea to isolate operating, storage, cache and logs in Linux, to avoid storage filling up your OS volumes and causing some services to fail. Just something to consider while you're making this change.
0
I am getting Low Disk Space on
/boot/ in CentOS 7. I got this error since I recently did yum update .
The
df command shows 100% usage on boot folder.
Following are the snapshots.
pun
4,91388 gold badges1818 silver badges5555 bronze badges
spandan pradhanspandan pradhan
migrated from stackoverflow.comJul 14 '16 at 12:41
This question came from our site for professional and enthusiast programmers.
2 Answers
As answered by @strandraeber above your
/boot/ is full due to old kernels
One way to fix this would be deleting old kernels.
You can do that by installing yum-utils and running command as shown
package-cleanup --oldkernels --count=1
This will delete all old kernels except for latest one. You can play with the numbers too.
Another option for you is to resize boot partition.
Edit: Adding another point which I learned from this post that is to relocate your
/boot/ partition as well.
Community♦
pun
Centos 7 Extend Root Partition Without Lvmpun
4,91388 gold badges1818 silver badges5555 bronze badges
There are probably old and unused kernel images residing in /boot. According to this post https://unix.stackexchange.com/a/83420/176600 you can remove them with
yum autoremove .
Community♦
strandraeuberstrandraeuber
Not the answer you're looking for? Browse other questions tagged linuxbootcentoscentos-7 or ask your own question.
Posted by2 years ago
Archived
Hi /r/sysadmin
I currently have a CentOS 7 machine behaving very strangely after an update. It seems that the /dev/mapper/centos-root partition is eating drive space like crazy.
The partition was originally set to 50G, and I noticed it was full when backups stopped performing correctly after I updated the machine. I logged in and noticed I could not even tab complete commands. As it was the end of a Friday when I noticed this, I used lvm to increase the partition size to 100G and decided to leave it for next week.
I came in Monday to see that it had eaten through its new additional space and was 100% full once again. I cannot find where all this space is going. du -sh /* only shows approximately 5 gigs worth of space being used. My other two CentOS 7 machines which I updated at the same time do not have this issue.
The only thing this machine does is serve as a backup server. I use samba to share the two ntfs drives connected to the server which my other CentOS 7 servers connect to, and back up the VM's to. Those then get transferred to an external drive also attached to the server.
Anyone have any ideas about what could be eating up drive space so quickly?
SOLVED - I THINK: So using ncdu I was able to ascertain that /mnt was taking up around 100G, likely due to a bad mount and backups files being written to /mnt instead of their intended destination. All of my shares and backups are working again, and I will keep an eye out for any other issues. Thanks to everyone who commented!!
22 comments
I've a problem with increasing a partition from 20GB to 120GB, VMDK file.Here is what I've done:
However, when I reboot and log in, I still see that the '/' partition is still ~ 20GB (I'm using Centos 7). I've another partition disk (ext4: /dev/sdb: 150GB). Here is the fdisk list:
How can Centos 7 see the actual size of partition '/' (/dev/sda). I think /dev/mapper is /dev/sda.
Thanks
Result of df:
SPRBRN
71411 gold badge1212 silver badges3232 bronze badges
Pham Huu BangPham Huu Bang
1 Answer
I believe your system is using LVM. And it seems GParted is not able to expand the logical volume. But you can do it manually. Just boot your system as normal, then from a terminal window do:
(If you are running as
root in the terminal then you don't need sudo .) This command expands the logical volume by 20G (you could specify something different or use a percentage e.g. -L100% - though it's good to leave some spare e.g. for snapshots), and the -r option expands the filesystem inside the logical volume.
gogoudgogoud
Not the answer you're looking for? Browse other questions tagged centospartitionvmwarefdiskgparted or ask your own question.
Handbreak encoding chapter titles instead of subtitles. I had a couple Zenoss VMware appliances that run Linux that needed to have more space allocated to them. I knew just adding another hard drive wouldn't solve the issue so I set about finding the least intrusive way to do this and not break the whole VM appliance. If you've ever used Zenoss, you know the last thing you want to do is re-configure all of your settings again!
There is some information out there on this, but I found most of it to be hard to understand and didn't really explain what the steps were. If you're someone who isn't used to working with Linux, I imagine it would be almost impossible to change these settings confidently. So, here are the steps I followed to extend my Linux partitions. This only applies to ext3 disks that use the logical volume manager. If you're running a RedHat, CentOS or other similar Linux distro, this process will work for you.
Figure AFigure BFigure C
It seems like there are a lot of steps to this process, but it's actually pretty quick and easy if you can afford to restart your server. So far I haven't had any issues with dynamically extending the partitions and I'm getting a lot less Zenoss notifications about lack of free space.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |