Author Topic: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!  (Read 10225 times)

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
[SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« on: April 14, 2011, 12:38:11 pm »
Hello all,

all i did was to change the default page that squid gives when trying to access a restricted site, in fact i tried it and it was working just fine. After 2-3 minutes everybody on our lan realized that cannot access internet.

I checked the zentyal machine and i could not access the zentyal web interface,neither from a pc on the lan or the zentyal machine itself. Firefox on https://localhost gives error on page.The machine itself can access the internet, but it seems that neither of the zentyal services are running.

I tried to reboot it with no luck. As it was starting i saw a message that says something like:

udev[348] pen /dev/null failed, no such file or directory

Is there any way to start zentyal services through the command line? Should i do something else???

When zentyal crashed i gave the message below:

"Technical error  write_file 'GLOB(x7fc1cfc1fec0)' - syswrite :No space left on device at usr/share/perl5/EBox/sudo.pm line 165"

I cheked the above file and in line
 it has this command:

"write_file($fhCmdFile, $commands);"



Also when i rebooted and enter my username &pass it gives a message:

"Xsession:warning: unable to write to /tmp; xsession may exit with an error

Please help!!!!!!!
« Last Edit: April 19, 2011, 02:04:13 pm by Sam Graf »

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: EMERGENCY HELP NEEDED!!!!!!!
« Reply #1 on: April 14, 2011, 02:13:54 pm »
Hello,

Looks like you have more than one issue with your server...

To restart Zentyal from command line:
Code: [Select]
/etc/init.d/ebox restart
As a side note;
LAN will not get access to the WWW if the HTTP proxy is down

You should also take a look at your hard drive usage to see if there is any partition that is full.

Good luck

Marcus

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: EMERGENCY HELP NEEDED!!!!!!!
« Reply #2 on: April 15, 2011, 11:26:56 am »
Thnks for the answer!

I tried to restart the services but the messages i run into are a bit complicated...

Nevertheless zentyal GUI opened after a while!(Self-healing???)and i was able to see some thimgs that may cause the problem (it reappeared after a while...)

One of the partitions might be full as u said...

The truth is that when gui opened and i looked at disk usage i saw that one of the partitions(cannot remember it's size, but it might be easy to understand from the below comments) had 80% system, 15% http proxy and only 5% free...

The other 2 partitions where very high in capacity and almost completely free! My disk is 500Gb and during installation i did no configuration on partitions, i excepted the default...

I used a tool called Gparted in order to check the disks...
The results are:



The line 4 is an extension of the third line,meaning that there were an arrow to the third line u could press an hide/show the line 4...

So...Is my all system on the first partition???And thats why i get this no space in disk errors?
What is the vlm system file?It gives me an option to format it (the sda5)in several file systems...Should i do it and then mounted somehow to sda1?

What are your opinions??
« Last Edit: April 15, 2011, 11:28:49 am by xtrgeo »

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: EMERGENCY HELP NEEDED!!!!!!!
« Reply #3 on: April 15, 2011, 08:00:49 pm »
In case somebody can help me on this i want to provide some more informations i've collected on the issue..

I've deleted the folder "locale" from usr/lib64 in order to gain some space and zentyal go back to bussiness..

and it did! So the problem is space...To be honest i am not so familiar with disk management and partitions stuff in linux, thats why i might be not so accurate on the explanations i give, but i'll try..

What i wrote on the above topic still stands, but the new informations is that with the deleting of this folder a saved some space and the zentyal worked. This way i was able to gain what is on disk usage on zentyal gui.

So there are 3 tabs labeled

a) <b>/dev/mapper/zentyal-root</b>   which spec areQ
Mounted on /
Type ext4
options    rw,errors=remount-ro

and the space of this:

Free Space            355.51 Mb   5.42%
System                 5218,66Mb   79.49%
Http proxy cache      991Mb       15.09%


b) <b>/dev/mapper/zentyal-home</b>

c)<b>/dev/sda1</b>

When i tried to get the rest informations of these i get the error again and this:

Error in tempfile() using /var/lib/ebox/tmp/XXXXXXXXXX.cmd: Could not create temp file /var/lib/ebox/tmp/zrFYdYjmpq.cmd: No space left on device

So the disk was full again, meaning that some file-es are growing up fast,consuming the disk space...(maybe logs ro i don't know what else...

From what i can remember /dev/mapper/zentyal-home was really huge in space (about 450Gb)and almost entirely free!

And /dev/sda1 was small, about 250 Mb...

So if someone can tell how zentyal works where it is installed, where it keeps important file etc maybe we can figure out what is happening..

It is really annoying having 450Gb of disk free and getting no free space message...

Sam Graf

  • Guest
Re: "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #4 on: April 17, 2011, 02:41:09 am »
I apologize if you've already provided this information somewhere, but when installing Zentyal, did you use the "delete all disk" automatic installation?

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #5 on: April 19, 2011, 01:58:03 pm »
Thnks for the answer!

Yes,indeed i followed the default option that u mention about this...

Anyway after a lot of searching i found the solution myself, so i am writing it here, in case someone has the same problem...

All we have to do is to move space from one partition to another...the all issue is reported here.After u follow the directions there on running the live cd perform the below commands:

resize2fs -f /dev/mapper/zentyal-home 250G
lvreduce -L 200G /dev/mapper/zentyal-home
lvextend -L +200G /dev/mapper/zentyal-root
resize2fs -f /dev/mapper/zentyal-root 245G

of course u have to use your own sizes and name of partitions...

If someone from the admins wants to move the topic or mark it as solved ,please do it. If anybody has similar issues please pm me so i can help!

Sam Graf

  • Guest
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #6 on: April 19, 2011, 02:14:51 pm »
Regrettably, several people have encountered this problem when using the automated installation procedure. Ideally, under the current Zentyal installer, people will avoid Ubuntu's default partition scheme and use the expert mode during installation. I think I read that the developers are considering altering the Zentyal installer so that it doesn't use the default Ubuntu partition scheme.

Thanks for your contribution to solutions available to people finding themselves in trouble!

Rortin

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #7 on: April 25, 2011, 02:13:10 pm »
I tried to did it but the result is:

on-line resizing required

And i cannot do it.

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #8 on: April 26, 2011, 07:45:05 pm »
Did u run the commands from the livecd distribution that i mention?

resize2fs -f /dev/mapper/zentyal-home 250G
lvreduce -L 200G /dev/mapper/zentyal-home
lvextend -L +200G /dev/mapper/zentyal-root
resize2fs -f /dev/mapper/zentyal-root 245G

Also u have to change the above in red color to match your configuration..

Rortin

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #9 on: April 27, 2011, 08:26:34 am »
But exactly, what livecd did you use??

Thanks a lot.

xtrgeo

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #10 on: April 27, 2011, 10:00:02 am »
This one!  http://www.sysresccd.org/Main_Page

Try it and u will see that it is very easy

aryana.haribawa

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +5/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #11 on: July 07, 2011, 06:28:23 am »
Hi, have you solved this problem? If Not, I have written a doc on how to resize Zentyal Root LVM Partition safely. This problem is very common.

Andre

Rortin

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #12 on: September 12, 2011, 05:01:06 pm »
yes i solved it.

Thanks

marvinray.reyes

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Noob
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #13 on: September 22, 2011, 05:39:34 pm »
Did u run the commands from the livecd distribution that i mention?

resize2fs -f /dev/mapper/zentyal-home 250G
lvreduce -L 200G /dev/mapper/zentyal-home
lvextend -L +200G /dev/mapper/zentyal-root
resize2fs -f /dev/mapper/zentyal-root 245G

Also u have to change the above in red color to match your configuration..

Sir, Is this safe?

Rortin

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] "No space left" - EMERGENCY HELP NEEDED!!!!!!!
« Reply #14 on: September 23, 2011, 09:41:27 am »
hi, i did it:
***** first the unit to be smaller *****

e2fsck -f /dev/mapper/xxxxxxxxxxxxxx-home
resize2fs /dev /mapper/xxxxxxxxxxxxxx-home  30G    // Because it will has 30GB
lvresize -L30G /dev /mapper/xxxxxxxxxxxxxx-home
lvdisplay /dev /mapper/xxxxxxxxxxxxxx-home


***** second the unit to be bigger*****


e2fsck -f /dev/mapper/xxxxxxxxxxxxxx-root
lvresize -L38G /dev /mapper/xxxxxxxxxxxxxx-root
resize2fs /dev /mapper/xxxxxxxxxxxxxx-root 38G    // Because it will has 38GB
lvdisplay /dev /mapper/xxxxxxxxxxxxxx-root


***** ok *******************
reboot

and finally i check it witch

df -kh


And it´s work ok.