LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   The file system /dev/mapper/mail-root, mounted on /, has no space left (http://www.linuxquestions.org/questions/linux-server-73/the-file-system-dev-mapper-mail-root-mounted-on-has-no-space-left-896689/)

farooklk 08-11-2011 02:41 AM

The file system /dev/mapper/mail-root, mounted on /, has no space left
 
Hi there,
Im getting a error message: The file system /dev/mapper/mail-root, mounted on /, has no space left and i checked df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mail-root
6.5G 6.1G 34M 100% /
none 496M 208K 496M 1% /dev
none 501M 0 501M 0% /dev/shm
none 501M 128K 501M 1% /var/run
none 501M 0 501M 0% /var/lock
none 501M 0 501M 0% /lib/init/rw
/dev/sda1 228M 17M 200M 8% /boot

how can i solve this issue?

EricTRA 08-11-2011 02:47 AM

Hello and Welcome to LinuxQuestions,

You can solve this issue by cleaning up your file system, that is, by deleting unnecessary files, old log files and so on. Another option, since it looks like your partition is LVM you could increase the size of the partition with the appropriate commands if you still have space available. Have a look at this site for an easy to understand howto on LVM.

Have fun with Linux.

Kind regards,

Eric

farooklk 08-11-2011 02:54 AM

Eric..can u tell me what are the log safe to delete?

Quote:

Originally Posted by EricTRA (Post 4439366)
Hello and Welcome to LinuxQuestions,

You can solve this issue by cleaning up your file system, that is, by deleting unnecessary files, old log files and so on. Another option, since it looks like your partition is LVM you could increase the size of the partition with the appropriate commands if you still have space available. Have a look at this site for an easy to understand howto on LVM.

Have fun with Linux.

Kind regards,

Eric


EricTRA 08-11-2011 02:59 AM

Hi,

Have a look in /var/log. There will be files in there like this example:
Code:

syslog
syslog.1
syslog.2.gz
Xorg.0.log
Xorg.0.log.old

and more. The ones ending with a number or number.gz or log.old are logs from previous to rotation and are safe to delete if you don't want to review them to resolve previous errors.

Remember that removing those old logs will only resolve your problem temporarily. You should look into increasing the size of your partition to avoid having to do cleanup actions on a very regular basis.

Also, it's always good practice to mention what distro and version you are using in order to get more dedicated answers.

Kind regards,

Eric

farooklk 08-11-2011 03:05 AM

version is Ubuntu 10.04.1 LTS \n \l and is safe to increase the space?
Quote:

Originally Posted by EricTRA (Post 4439377)
Hi,

Have a look in /var/log. There will be files in there like this example:
Code:

syslog
syslog.1
syslog.2.gz
Xorg.0.log
Xorg.0.log.old

and more. The ones ending with a number or number.gz or log.old are logs from previous to rotation and are safe to delete if you don't want to review them to resolve previous errors.

Remember that removing those old logs will only resolve your problem temporarily. You should look into increasing the size of your partition to avoid having to do cleanup actions on a very regular basis.

Also, it's always good practice to mention what distro and version you are using in order to get more dedicated answers.

Kind regards,

Eric


EricTRA 08-11-2011 03:19 AM

Hello,

Post the output of
Code:

sudo vgdisplay
That will tell if you have free PEs you can add to the partition. If you have, then you can look at the Howto I pointed you to for the commands needed. Of course, if you have doubts about running the commands, you can always post them here to have someone confirm if they're correct. And in case of errors you can also post those here.

Kind regards,

Eric

farooklk 08-11-2011 03:21 AM

eric, I have more space on dev/mapper/mail-home, how can i use this space to mail-root?

Thanks in advance

/dev/mapper/mail-root
6.5G 5.9G 239M 97% /
none 496M 208K 496M 1% /dev
none 501M 0 501M 0% /dev/shm
none 501M 128K 501M 1% /var/run
none 501M 0 501M 0% /var/lock
none 501M 0 501M 0% /lib/init/rw
/dev/sda1 228M 17M 200M 8% /boot
/dev/mapper/mail-home
64G 433M 61G 1% /home


Quote:

Originally Posted by farooklk (Post 4439382)
version is Ubuntu 10.04.1 LTS \n \l and is safe to increase the space?


farooklk 08-11-2011 03:25 AM

--- Volume group ---
VG Name mail
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.26 GiB
PE Size 4.00 MiB
Total PE 19011
Alloc PE / Size 19011 / 74.26 GiB
Free PE / Size 0 / 0
VG UUID UpM12d-WqPl-0Q6v-U9Td-BZY2-5BgX-rPj6qK



Quote:

Originally Posted by EricTRA (Post 4439390)
Hello,

Post the output of
Code:

sudo vgdisplay
That will tell if you have free PEs you can add to the partition. If you have, then you can look at the Howto I pointed you to for the commands needed. Of course, if you have doubts about running the commands, you can always post them here to have someone confirm if they're correct. And in case of errors you can also post those here.

Kind regards,

Eric


farooklk 08-11-2011 04:18 AM

Hi eric,
any luck ?

Quote:

Originally Posted by farooklk (Post 4439396)
--- Volume group ---
VG Name mail
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.26 GiB
PE Size 4.00 MiB
Total PE 19011
Alloc PE / Size 19011 / 74.26 GiB
Free PE / Size 0 / 0
VG UUID UpM12d-WqPl-0Q6v-U9Td-BZY2-5BgX-rPj6qK


16pide 08-11-2011 09:22 AM

What you can do before you reconfigure your filesystem to use more space, is find the files or directories eating up space.
Linux's / partition can use as little as 2GB most of the time.
Code:

du -xak /|sort -n|tail -50

farooklk 08-11-2011 12:16 PM

Hi 16pide,
i got these details

90064 /lib/modules/2.6.32-24-generic-pae
90068 /lib/modules
127380 /var/lib/amavis/amavis-20110810T133733-27401/parts/p001
127384 /var/lib/amavis/amavis-20110810T133733-27401/parts
128876 /var/vmail/tb.lk/mario/cur
129900 /var/vmail/tb.lk/mario
131100 /var/lib/postgresql/8.4/main/pg_xlog
133660 /lib
134300 /var/log
184880 /var/vmail/do.lk
207080 /var/lib/postgresql/8.4/main/base/16384/16661
237004 /var/lib/amavis/amavis-20110810T170013-16963/email.txt
237004 /var/lib/amavis/amavis-20110811T114125-28683/email.txt
237004 /var/lib/amavis/amavis-20110811T125712-04218/email.txt
237008 /var/lib/amavis/amavis-20110810T133733-27401/email.txt
237012 /var/lib/amavis/amavis-20110810T170013-16963
237012 /var/lib/amavis/amavis-20110811T114125-28683
237012 /var/lib/amavis/amavis-20110811T125712-04218
237016 /var/lib/amavis/amavis-20110810T135523-29172/email.txt
237020 /var/lib/amavis/amavis-20110811T103826-13833/email.txt
237020 /var/lib/amavis/amavis-20110811T141012-09299/email.txt
237024 /var/lib/amavis/amavis-20110810T135523-29172
237024 /var/lib/amavis/amavis-20110810T162441-13148/email.txt
237028 /var/lib/amavis/amavis-20110811T103826-13833
237028 /var/lib/amavis/amavis-20110811T141012-09299
237032 /var/lib/amavis/amavis-20110810T162441-13148
241904 /var/spool/postfix/deferred/C/C262A26EB2
241908 /var/spool/postfix/deferred/C
242148 /var/spool/postfix/deferred
242940 /var/spool/postfix
243020 /var/spool
265604 /usr/lib
269836 /usr/share
311740 /var/vmail/tb.lk
364396 /var/lib/amavis/amavis-20110810T133733-27401
424356 /var/cache/apt/archives
452948 /var/cache/apt
458196 /var/cache
505136 /var/vmail
679900 /usr
736640 /var/lib/postgresql/8.4/main/base/16384/16655
1076580 /var/lib/postgresql/8.4/main/base/16384
1135376 /var/lib/postgresql/8.4/main/base
1273284 /var/lib/postgresql/8.4/main
1273288 /var/lib/postgresql/8.4
1273292 /var/lib/postgresql
2058112 /var/lib/amavis
3524524 /var/lib
4868292 /var
5706661 /

Quote:

Originally Posted by 16pide (Post 4439656)
What you can do before you reconfigure your filesystem to use more space, is find the files or directories eating up space.
Linux's / partition can use as little as 2GB most of the time.
Code:

du -xak /|sort -n|tail -50



All times are GMT -5. The time now is 05:46 PM.