LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-05-2018, 01:42 PM   #1
Jacob-1
LQ Newbie
 
Registered: Dec 2017
Posts: 7

Rep: Reputation: Disabled
LVM root partition runs out of disk space.


Hi ,

we have LVM root partition runs out of disk space as you can see .
[root@test]$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_or-lv_root
ext4 45G 35G 8.1G 82% /

my question I don't want to extend a root LVM partition , how to get access of the content to move all to the backup.
we are using Centos 6.9

Last edited by Jacob-1; 03-05-2018 at 01:54 PM.
 
Old 03-05-2018, 03:35 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
As it's mounted you already have access to the content.
Given your previous threads, you should be able to work out where the space is being consumed.

If you have them backed up, determine which files can be safely deleted and will return the most space, and delete them. If they are not backed up, do so immediately - plenty of options, some (most ?) of which have the option to delete after successful transfer. The deletion option needs to be used with care obviously.
 
Old 03-05-2018, 03:35 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The description of what you want is pretty terse.

Copying everything on the root partition is often done with rsync or clonezilla. In rsync you would use -x to copy only the root partition and not other partitions mounted below that. If it is the root partition you copy and intend to boot it from the new location you have to run grub-install.

I am surprised that you don't want to extend the LVM because that is the reason of LVM's existence, that you can expand logical volumes.

jlinkels
 
Old 03-05-2018, 03:56 PM   #4
Jacob-1
LQ Newbie
 
Registered: Dec 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi syg00,jlinkels,

I think 45G for root is still a lot of space. If we have 82% of utilization, I would like to understand what is using that space. Root (/) is for the operational system only, not for user data. No Linux installation needs more than 5 GB of space;

you think there is way to know wish file have to much space and there location.


Thanks
 
Old 03-05-2018, 04:16 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You mention "du" in another thread - use the appropriate options and reverse sort it. As you were advised. Then you'll know who are the major consumers - maybe logs, maybe users in /home.
You are apparently deliberately not providing enough info, so we can only give general answers.
 
Old 03-16-2018, 05:39 PM   #6
SeaPhor
LQ Newbie
 
Registered: Feb 2017
Distribution: SLES, RHEL, OpenSUSE, CentOS
Posts: 13

Rep: Reputation: Disabled
All the posts here point to what syg00 said- you need to provide more info-
Here is 'my' particular preference for an LVM setup- if you don't have segregated partitions like this then that is your real problem IMHO

Code:
Filesystem                 Mounted on
/dev/mapper/system-root    /
/dev/mapper/system-tmp     /tmp
/dev/mapper/system-var     /var
/dev/mapper/system-opt     /opt
/dev/mapper/system-varlog  /var/log
/dev/mapper/system-home    /home
/dev/mapper/system-srv     /srv

Last edited by SeaPhor; 03-16-2018 at 05:40 PM. Reason: wrapper
 
  


Reply

Tags
lvm



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
[SOLVED] LVM on 1 Disk - can I move space from /home to /root? DJOtaku Linux - General 9 04-18-2017 07:57 PM
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
How to convert non LVM root partition to LVM? pinga123 Linux - Newbie 5 04-18-2012 11:08 PM
Stuck in increasing the size of root partition by taking space from XEN LVM aligator007 Linux - Virtualization and Cloud 0 11-20-2010 01:40 AM
install deb 3.1 root runs out of space master Linux - General 2 09-05-2005 04:55 PM

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

All times are GMT -5. The time now is 07:48 PM.

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