LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to clear files to make more disk place (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-clear-files-to-make-more-disk-place-761589/)

thomas2004ch 10-13-2009 08:06 AM

How to clear files to make more disk place
 
Hi all,

I want to install sone software on my Linux but as I unzip the zip file I got somewhat like "no place anymore". I check the disk with "df -k" and got:
Code:

[vers@s003ap02 ~]$ df -k
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_root-lv_root
                      3096336  2639580    299472  90% /
/dev/sda1              101086    15503    80364  17% /boot
none                  3962872        0  3962872  0% /dev/shm
/dev/mapper/vg_root-lv_home
                        507748    477077      4457 100% /home
/dev/mapper/vg_root-lv_opt
                      2580272  2251472    197728  100% /opt
/dev/mapper/vg_root-lv_tmp
                        507748    58837    422697  13% /tmp
/dev/mapper/vg_root-lv_var
                      2064208  1218884    740468  63% /var
[vers@s003ap02 ~]$

We can see here the whole disk is already 90% full. And /home and /opt is even 100% full. I have to clean or backup some files under /home and /opt to get more disk place so I can install the software. But I am not sure which files should I clean or backup.

Has someone experience?

pixellany 10-13-2009 08:24 AM

First, why do you have all of those SMALL partitions?
only 500MB for /home
only 3GB for /
etc.

Please post the output of "fdisk -l" so we can see the bigger picture

I think your best solution is going to be a re-install on larger partitions.

Ahmed 10-13-2009 08:46 AM

If you don't have more diskspace to your disposal, then I suggest you don't split up your partitions. That way, the free space will be available to all those directories. You have roughly 11 GB (out of which 3GB is shared memory, for whatever reason..). If you reinstall over one big partition of that size you should be quite better off.

-A

thomas2004ch 10-13-2009 08:53 AM

Quote:

Originally Posted by pixellany (Post 3717599)
First, why do you have all of those SMALL partitions?
only 500MB for /home
only 3GB for /
etc.

Please post the output of "fdisk -l" so we can see the bigger picture

I think your best solution is going to be a re-install on larger partitions.

I wonder also why the patition so small. But in the fact it is so because our Linux is installed on VMware. The disk shown here is virtual. See here.


Code:

[root@s003ap02 ~]# fdisk -l

Disk /dev/sda: 11.8 GB, 11811160064 bytes
255 heads, 63 sectors/track, 1435 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          13      104391  83  Linux
/dev/sda2              14        1435    11422215  8e  Linux LVM

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        130    1044193+  82  Linux swap
[root@s003ap02 ~]#

I've asked our admin to extend the disk. It would be very simple since it's virtual.

Thanks.

pixellany 10-13-2009 09:03 AM

You haven't accounted for all the partitions / mountpoints listed in your first post...

Regardless, getting more space is the right answer, plus maybe not so many separate partitions.

lutusp 10-13-2009 11:33 AM

Quote:

Originally Posted by thomas2004ch (Post 3717578)
Hi all,

I want to install sone software on my Linux but as I unzip the zip file I got somewhat like "no place anymore". I check the disk with "df -k" and got:
Code:

[vers@s003ap02 ~]$ df -k
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_root-lv_root
                      3096336  2639580    299472  90% /
/dev/sda1              101086    15503    80364  17% /boot
none                  3962872        0  3962872  0% /dev/shm
/dev/mapper/vg_root-lv_home
                        507748    477077      4457 100% /home
/dev/mapper/vg_root-lv_opt
                      2580272  2251472    197728  100% /opt
/dev/mapper/vg_root-lv_tmp
                        507748    58837    422697  13% /tmp
/dev/mapper/vg_root-lv_var
                      2064208  1218884    740468  63% /var
[vers@s003ap02 ~]$

We can see here the whole disk is already 90% full. And /home and /opt is even 100% full. I have to clean or backup some files under /home and /opt to get more disk place so I can install the software. But I am not sure which files should I clean or backup.

Has someone experience?

Among many kinds of posts in this group, I see two particular varieties again and again:
  • In one variety, someone argues that having many partitions is a good idea, everyone does it, and so forth.
  • In the other variety, someone complains that their system has stopped working because one or more partitions has filled up while there is still plenty of room left on other partitions.

In this example, the op has plenty of space on some partitions, but none at all on others, consequently his system cannot function. This is exactly the point I make in this discussion. Please, before creating a system with a lot of small partitions, read it again.

To the OP: Back up your data, reinstall Linux with three partitions, restore your data. Here are the three partitions:
  1. System root (/), about 20 GB. This partition should include all the system directories you are having problems with now.
  2. Swap, twice the size of RAM.
  3. All the remaining space on the drive. This partition can be labeled /home, or if you prefer, just give it a generic label like /data.

Never create a system with a bunch of small partitions -- unless you like reinstalling Linux over and over again as your learning curve progresses.

Quote:

Originally Posted by thomas2004ch (Post 3717578)
I've asked our admin to extend the disk.

The system administrator who designed the above scheme should be summarily demoted to newbie. Or maybe he doesn't even deserve that exalted rank.


All times are GMT -5. The time now is 09:00 PM.