/dev/mapper/centos00-root FULL

General support questions
Locked
m3kvii
Posts: 5
Joined: 2020/10/23 18:56:17

/dev/mapper/centos00-root FULL

Post by m3kvii » 2020/10/23 22:16:26

Below is the output configured on a server acting as a gateway for veeam backups. The root directory is filling up with veeam error (a seperate issue I'm addressing with them). But i noticed the partition size is only 8 gigs even though the vm is 40 gigs. I am new to centos and not sure how to go about resizing it, I can back it up and take a crack at reallocating the partition to root directory. If I break it i can always revert to the back up. If someone can provide some insight into what I should read or research to re partition the drives, I would really appreciate it. Thank you in advance.


[root@removed /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1G 0 part
├─sda2 8:2 0 29G 0 part
│ ├─centos-swap 253:1 0 3G 0 lvm
│ └─centos-root 253:3 0 26G 0 lvm
├─sda3 8:3 0 1G 0 part /boot
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 9G 0 part
├─centos00-root 253:0 0 8G 0 lvm /
└─centos00-swap 253:2 0 1G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
[root@removed /]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos00-root xfs 8370176 7232032 1138144 87% /
devtmpfs devtmpfs 6051948 0 6051948 0% /dev
tmpfs tmpfs 6068984 0 6068984 0% /dev/shm
tmpfs tmpfs 6068984 9852 6059132 1% /run
tmpfs tmpfs 6068984 0 6068984 0% /sys/fs/cgroup
/dev/sda3 xfs 1038336 182652 855684 18% /boot
10.0.185.10:/vol_ nfs 47244640256 43593333760 3651306496 93% /REMOVED
10.0.185.10:/VM__NFS_volume nfs 19864223744 13217302528 6646921216 67% /REMOVED
tmpfs tmpfs 1213800 12 1213788 1% /run/user/42
tmpfs tmpfs 1213800 0 1213800 0% /run/user/0
[root@removed /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos00-root 8.0G 6.9G 1.1G 87% /
devtmpfs 5.8G 0 5.8G 0% /dev
tmpfs 5.8G 0 5.8G 0% /dev/shm
tmpfs 5.8G 9.7M 5.8G 1% /run
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup
/dev/sda3 1014M 179M 836M 18% /boot
10.0.185.10:/vol 44T 41T 3.5T 93% /REMOVED
10.0.185.10:/VM__NFS_volume 19T 13T 6.2T 67% /REMOVED
tmpfs 1.2G 12K 1.2G 1% /run/user/42
tmpfs 1.2G 0 1.2G 0% /run/user/0
[root@removed /]# ^C
[root@removed /]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos00-root xfs 8370176 7238508 1131668 87% /
devtmpfs devtmpfs 6051948 0 6051948 0% /dev
tmpfs tmpfs 6068984 0 6068984 0% /dev/shm
tmpfs tmpfs 6068984 10168 6058816 1% /run
tmpfs tmpfs 6068984 0 6068984 0% /sys/fs/cgroup
/dev/sda3 xfs 1038336 182652 855684 18% /boot
10.0.185.10:/vol nfs 47244640256 43593333760 3651306496 93% /mnt/nfs/vol_MIA_
10.0.185.10:/VM_volume nfs 19864223744 13211961344 6652262400 67% /mnt/nfs/vol_
tmpfs tmpfs 1213800 8 1213792 1% /run/user/42
tmpfs tmpfs 1213800 40 1213760 1% /run/user/0
Attachments
partition size
partition size
size.png (31.57 KiB) Viewed 249 times

jmacdougca
Posts: 75
Joined: 2017/12/09 00:49:14
Location: Port Coquitlam, BC
Contact:

Re: /dev/mapper/centos00-root FULL

Post by jmacdougca » 2020/10/28 23:26:57

I just had this issue as well. Typically you would use lvresize to resize lvms but you have xfs in which you can't resize.
What I did on my server was moved my web files to /home and that freed up some space. But like I am still 88% full.
So in the future if you are using lvm don't use xfs so you can resize if needed.
Start less finish more

User avatar
TrevorH
Forum Moderator
Posts: 29961
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: /dev/mapper/centos00-root FULL

Post by TrevorH » 2020/10/28 23:55:36

You can resize xfs but you can only increase its size, not shrink.

I've just noticed that this same topic is already being discussed in another thread with far more replies so I am locking this one. Please do not raise multiple topics about the same problem. The other thread is viewtopic.php?f=47&t=76179
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Locked

Return to “CentOS 7 - General Support”