Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.