"file" hostname--vg-root so big
Hi,
I have a lubuntu 16.04 server with apache, php, mariadb and moodle 3.2 installed. The name (hostname) of the server is "servweb". It has a 500 Gb SSD hard drive and 24 GB RAM. I have backup copies and I realized that the last backup copy was 450 GB. Checking the files I see that there is a "file" of 430 GB size. The path of this "file" is /dev/mapper/servweb--vg-root but I don't know exactly what it is, if it is a file, a directory or a "reserved space". I think that if I don't do something about it the system will be blocked, because it will run out of physical space if this "file" continues increasing. Why is it so big? How can I reduce it, if it is possible? What exactly is this "file"? Thanks in advance. |
/dev/mapper/servweb--vg-root should be a device file, not a regular file, and occupy no space at all. Is the 450GB file only in the backup or also on the live system? In the former case, could it be that the device's contents rather than the device file was copied to the backup?
In case the 450GB are occupied on the live system, the ls -l and file commands will be the first step towards understanding its nature. |
Run these commands, post (all) the output.
Code:
lsblk -f |
administrador@servidorweb:/dev/mapper$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 ext2 a367fe48-f667-46be-b9cd-7b8ee630105a /boot ├─sda2 └─sda5 LVM2_member hkeuXr-m1oX-7A0B-KjGg-2GtF-EJHd-4zsyZw ├─servidorweb--vg-root ext4 53381ac9-1503-4e9e-9f1c-3e5c49136817 / └─servidorweb--vg-swap_1 swap 4cb66bc3-5420-456f-a5ca-7f756e406acd [SWAP] sdb ext4 CopSeg cbe41dc8-3c9b-4868-b13d-f726f56be1bf sr0 administrador@servidorweb:/dev/mapper$ df -hT S. fitxers Tipus Mida En ús Lliure %Ús Muntat a udev devtmpfs 7,8G 0 7,8G 0% /dev tmpfs tmpfs 1,6G 154M 1,5G 10% /run /dev/mapper/servidorweb--vg-root ext4 443G 406G 15G 97% / tmpfs tmpfs 7,8G 39M 7,8G 1% /dev/shm tmpfs tmpfs 5,0M 8,0K 5,0M 1% /run/lock tmpfs tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup /dev/sda1 ext2 472M 109M 339M 25% /boot tmpfs tmpfs 1,6G 12K 1,6G 1% /run/user/1000 |
1 Attachment(s)
Copy-paste results:
administrador@servidorweb:/dev/mapper$ lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 ext2 a367fe48-f667-46be-b9cd-7b8ee630105a /boot ├─sda2 └─sda5 LVM2_member hkeuXr-m1oX-7A0B-KjGg-2GtF-EJHd-4zsyZw ├─servidorweb--vg-root ext4 53381ac9-1503-4e9e-9f1c-3e5c49136817 / └─servidorweb--vg-swap_1 swap 4cb66bc3-5420-456f-a5ca-7f756e406acd [SWAP] sdb ext4 CopSeg cbe41dc8-3c9b-4868-b13d-f726f56be1bf sr0 administrador@servidorweb:/dev/mapper$ df -hT S. fitxers Tipus Mida En ús Lliure %Ús Muntat a udev devtmpfs 7,8G 0 7,8G 0% /dev tmpfs tmpfs 1,6G 154M 1,5G 10% /run /dev/mapper/servidorweb--vg-root ext4 443G 406G 15G 97% / tmpfs tmpfs 7,8G 39M 7,8G 1% /dev/shm tmpfs tmpfs 5,0M 8,0K 5,0M 1% /run/lock tmpfs tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup /dev/sda1 ext2 472M 109M 339M 25% /boot tmpfs tmpfs 1,6G 12K 1,6G 1% /run/user/1000 To view easely I attach a capture image of result. |
Quote:
|
1 Attachment(s)
Quote:
administrador@servidorweb:/dev/mapper$ lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 ext2 a367fe48-f667-46be-b9cd-7b8ee630105a /boot ├─sda2 └─sda5 LVM2_member hkeuXr-m1oX-7A0B-KjGg-2GtF-EJHd-4zsyZw ├─servidorweb--vg-root ext4 53381ac9-1503-4e9e-9f1c-3e5c49136817 / └─servidorweb--vg-swap_1 swap 4cb66bc3-5420-456f-a5ca-7f756e406acd [SWAP] sdb ext4 CopSeg cbe41dc8-3c9b-4868-b13d-f726f56be1bf sr0 administrador@servidorweb:/dev/mapper$ df -hT S. fitxers Tipus Mida En ús Lliure %Ús Muntat a udev devtmpfs 7,8G 0 7,8G 0% /dev tmpfs tmpfs 1,6G 154M 1,5G 10% /run /dev/mapper/servidorweb--vg-root ext4 443G 406G 15G 97% / tmpfs tmpfs 7,8G 39M 7,8G 1% /dev/shm tmpfs tmpfs 5,0M 8,0K 5,0M 1% /run/lock tmpfs tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup /dev/sda1 ext2 472M 109M 339M 25% /boot tmpfs tmpfs 1,6G 12K 1,6G 1% /run/user/1000 To easely view this results I attach a capture image. |
Quote:
In any case, most of your root filesystem is filled up. Have a closer look at /dev/mapper/servweb--vg-root. It would seem that the servidor volume group used to be called servweb, but somehow the device file was turned into a regular file. You can check that with ls -l and file. I also recommend you have a look at your LVM configuration. As root, run these commands: Code:
pvs |
Quote:
Code:
root@servidorweb:/dev/mapper# ls -l /dev/mapper/servidorweb--vg-root |
Quote:
Quote:
|
Quote:
Must have a servidorweb volume group? Must I delete this file (/dev/mapper/servidorweb--vg-root)? If yes, does it will continue working fine? Do you know, or have any idea, how this file is there? How can this affect to the performance of the server? (I have no idea about this problem. So I need help and ask a lot of questions. I'm very grateful for helping me). By the way, the directory /dev/mapper contents this: Code:
root@servidorweb:/dev/mapper# ls -l |
What the OP posted seems normal and I suspect that servweb was in error and should be servidorweb in post #1. Don't delete anything in /dev.
As posted in #2 /dev lives in memory only and any big files would be located elsewhere in the directory tree. |
Quote:
|
The second disk is sdb which does not appear to be mounted from the posted information. No it is not reflected in vg-root. vg-root is your / filesystem, is part of the LVM and lives within the sda5 partition.
Your root filesystem i.e. / is 97% full. Although there is some reserved space which is not included. If sdb failed to mount then any backups would be written to / instead of sdb. Have you checked /media for files? |
Solved
Quote:
Code:
root@servidorweb:/dev/mapper# df -h I'll have to review why sdb was not mounted when reboot system. Thanks a lot for your help, michaelk, berndbausch and syg00. |
All times are GMT -5. The time now is 01:35 AM. |