LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-05-2019, 05:29 AM   #1
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Rep: Reputation: Disabled
Question "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.
 
Old 04-05-2019, 06:15 AM   #2
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,324

Rep: Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602
/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.
 
Old 04-05-2019, 06:19 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,096

Rep: Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325
Run these commands, post (all) the output.
Code:
lsblk -f
df -hT
 
Old 04-05-2019, 06:42 AM   #4
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-05-2019, 06:50 AM   #5
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	CapturaComandes.JPG
Views:	5
Size:	66.1 KB
ID:	30245  
 
Old 04-05-2019, 06:52 AM   #6
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
/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.
I think is also on the live system. I posted results of commands suggested by Syg00.
 
Old 04-05-2019, 06:55 AM   #7
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Run these commands, post (all) the output.
Code:
lsblk -f
df -hT

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.
Attached Thumbnails
Click image for larger version

Name:	CapturaComandes.JPG
Views:	5
Size:	66.1 KB
ID:	30246  
 
Old 04-05-2019, 07:02 AM   #8
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,324

Rep: Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602
Quote:
Originally Posted by llsastre View Post
To easely view this results I attach a capture image.
It would be much easier to put code tags around the output.
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
vgs
lvs
and post their output (don't forget the code tags; if you don't know what I mean, look down about one centimeter).
 
Old 04-05-2019, 07:25 AM   #9
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
It would be much easier to put code tags around the output.
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
vgs
lvs
and post their output (don't forget the code tags; if you don't know what I mean, look down about one centimeter).

Code:
root@servidorweb:/dev/mapper# ls -l /dev/mapper/servidorweb--vg-root
lrwxrwxrwx 1 root root 7 mar 27 09:39 /dev/mapper/servidorweb--vg-root -> ../dm-0
root@servidorweb:/dev/mapper# pvs
  PV         VG             Fmt  Attr PSize   PFree
  /dev/sda5  servidorweb-vg lvm2 a--  465,28g    0 
root@servidorweb:/dev/mapper# vgs
  VG             #PV #LV #SN Attr   VSize   VFree
  servidorweb-vg   1   2   0 wz--n- 465,28g    0 
root@servidorweb:/dev/mapper# lvs
  LV     VG             Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root   servidorweb-vg -wi-ao---- 449,39g                                                    
  swap_1 servidorweb-vg -wi-ao----  15,89g

Last edited by llsastre; 04-05-2019 at 07:28 AM.
 
Old 04-05-2019, 09:10 AM   #10
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,324

Rep: Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602
Quote:
Originally Posted by llsastre View Post
Code:
root@servidorweb:/dev/mapper# ls -l /dev/mapper/servidorweb--vg-root
lrwxrwxrwx 1 root root 7 mar 27 09:39 /dev/mapper/servidorweb--vg-root -> ../dm-0
Check /dev/mapper/servweb--vg-root.
Quote:
Code:
root@servidorweb:/dev/mapper# pvs
  PV         VG             Fmt  Attr PSize   PFree
  /dev/sda5  servidorweb-vg lvm2 a--  465,28g    0 
root@servidorweb:/dev/mapper# vgs
  VG             #PV #LV #SN Attr   VSize   VFree
  servidorweb-vg   1   2   0 wz--n- 465,28g    0 
root@servidorweb:/dev/mapper# lvs
  LV     VG             Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root   servidorweb-vg -wi-ao---- 449,39g                                                    
  swap_1 servidorweb-vg -wi-ao----  15,89g
Since you have no servweb volume group, it should be safe to delete /dev/mapper/servweb--vg-root.
 
Old 04-05-2019, 09:27 AM   #11
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Check /dev/mapper/servweb--vg-root.

Since you have no servweb volume group, it should be safe to delete /dev/mapper/servweb--vg-root.
I've made a mistake with hostname at the beginning of this post, as you have seen. The hostname is servidorweb (sorry).
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
total 0
crw------- 1 root root 10, 236 mar 27 09:39 control
lrwxrwxrwx 1 root root       7 mar 27 09:39 servidorweb--vg-root -> ../dm-0
lrwxrwxrwx 1 root root       7 mar 27 09:39 servidorweb--vg-swap_1 -> ../dm-1

Last edited by llsastre; 04-05-2019 at 09:46 AM. Reason: adding infomation
 
Old 04-05-2019, 09:45 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,406

Rep: Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551
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.

Last edited by michaelk; 04-05-2019 at 09:48 AM.
 
Old 04-05-2019, 10:06 AM   #13
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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.
This server (servidorweb) has a second hard disk, 2 Tb HDD, for cron local backups (then this backups copy to FTP server by a cron task). This HDD is in /media directory. Now it is about 390 Gb backups. Is it reflected on /dev/mapper/servidorweb--vg-root file perhaps?

Last edited by llsastre; 04-05-2019 at 10:10 AM.
 
Old 04-05-2019, 10:16 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,406

Rep: Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551
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?
 
Old 04-05-2019, 11:40 AM   #15
llsastre
LQ Newbie
 
Registered: Apr 2019
Location: Spain
Distribution: ubuntu server 16.04
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thumbs up Solved

Quote:
Originally Posted by michaelk View Post
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?
Yes, was it! How silly I am. In /media directory there are two directories: /administrador and /root. Backups copy to /administrador, which is in local SSD, not to /root because sdb was not mounted (I didn't realise it). I've mounted sdb which is in /media/root and I've moved all files from /media/administador to /media/root and I've reviewed script to backup to /media/root and now...
Code:
root@servidorweb:/dev/mapper# df -h
S. fitxers                        Mida En ús Lliure  %Ús Muntat a
udev                              7,8G     0   7,8G   0% /dev
tmpfs                             1,6G  154M   1,5G  10% /run
/dev/mapper/servidorweb--vg-root  443G   59G   362G  14% /
tmpfs                             7,8G   40M   7,8G   1% /dev/shm
tmpfs                             5,0M  8,0K   5,0M   1% /run/lock
tmpfs                             7,8G     0   7,8G   0% /sys/fs/cgroup
/dev/sda1                         472M  109M   339M  25% /boot
tmpfs                             1,6G   12K   1,6G   1% /run/user/1000
/dev/sdb                          1,8T  348G   1,4T  20% /media/root/CopSeg
/dev/mapper/servidorweb--vg-root is now 59 Gb, not 406 Gb.

I'll have to review why sdb was not mounted when reboot system.

Thanks a lot for your help, michaelk, berndbausch and syg00.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOSTNAME = hostname -> HOSTNAME: command not found ? thomas2004ch Linux - Software 2 08-26-2013 08:25 PM
Big O, Big Omega, and Big Theta oulevon Programming 7 05-26-2010 07:18 AM
How BIG are "Big files" in "XFS is the best with big files"? ingerudo Linux - General 1 09-11-2009 08:36 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
LXer: Why Big Compute and Big Storage will meet Big Pipe at the Last Mile LXer Syndicated Linux News 0 12-23-2007 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration