[Ubuntu-ma] Augmenter la taille de mon TMP

Naima Bouznag bouznag.naima at gmail.com
Mar 5 Avr 21:09:55 UTC 2011


wa3alikoum salam,
merci Warver pour votre message.
je peux pas lancer le CD, car c'est un serveur dédié chez OVH, j'ai
seulement l'acces ssh.
j'ai aimé votre derniere proposition, il me semble plus safe

2011/4/5 WaVeR <debian at hispeed.ch>

> Salam,
>
> La commande que Islam t'as donné fallait la lancer sur ton /tmp
>
> du --max-depth=1 -x -m /tmp | sort
>
>
> 1)
> Selon ce que je viens de remarqué, t'es deux partitions sont du raid.
> le /dev/md2 aka /home n'utilise pas beaucoup d'espace (seulement 2%),
> donc tu peux redimensionner cette partition afin de donner plus d'espace
> à /dev/md1. Ceci n'est possible que en utilisant un live-CD vu que tu
> veux toucher à une partition système. Cette manœuvre je ne vais pas la
> documenter car elle est risquée.
>
> 2)
> Si t'as assez de RAM, tu peux faire un mount du /tmp dans la ram, c'est
> ce que j'utilise personnellement.
>
> 22:52 waver at Jupiter /tmp% sudo df -h /tmp
> Sys. de fich.            Taille  Uti. Disp. Uti% Monté sur
> none                  6.0G   58M  6.0G   1% /tmp
> 22:52 waver at Jupiter /tmp% mount | grep /tmp
> none on /tmp type tmpfs (rw,size=6G,nr_inodes=200k,mode=01777)
>
> 3)
> Si tu peux accéder au serveur tu peux envisager de mettre ton /tmp sur
> une clé USB ;) pourquoi pas ^^.
>
> 4)
> déplacer le /tmp dans le /home vu que t'as beaucoup d'espace:
>
> mkdir -p /home/.tmp
> chmod 1777 /home/.tmp
> chown root:root /home/.tmp
> cd /usr
> mv /usr/tmpDSK /usr/tmpDSK_old && ln -sf /home/.tmp /usr/tmpDSK
>
> Je pense que t'as même pas besoin de changer ton fstab. Mais par
> sécurité il serait bien d'avoir une copie de ce dernier via pastebin
>
>
> Bonne chance.
>
>
> Le mardi 05 avril 2011 à 16:18 +0000, Naima Bouznag a écrit :
> > /sportqui   =  /home/sportqui
> > my website is there
> >
> > 2011/4/5 ISLAM Abou El Ata <kindyroot at gmail.com>
> >         what is /sportqui ? and why do you have it there?
> >
> >
> >         On Tue, Apr 5, 2011 at 4:13 PM, Naima Bouznag
> >         <bouznag.naima at gmail.com> wrote:
> >
> >
> >                 Ok, this is the result :
> >                  [root at ns220993 home]# du --max-depth=1 -x -m
> >                 300     ./cpeasyapache
> >                 22309   ./sportqui
> >                 1       ./lost+found
> >                 576     ./.cpan
> >                 1       ./naima-scripts
> >                 1       ./MySQL-install
> >                 207     ./installd
> >                 2       ./.cpcpan
> >                 23394   .
> >                 ###################################################
> >
> >
> >                 [root at ns220993 home]# df
> >                 Filesystem           1K-blocks      Used Available Use
> >                 % Mounted on
> >                 /dev/md1              20318408   8204352  11090060
> >                  43% /
> >                 /dev/md2             1432750416  24157432 1336386600
> >                 2% /home
> >                 /dev/shm               8270904         0   8270904
> >                 0% /dev/shm
> >                 /usr/tmpDSK             495844     63826    406418
> >                  14% /tmp
> >
> >
> >
> >
> >                 Thanks
> >
> >                 2011/4/5 ISLAM Abou El Ata <kindyroot at gmail.com>
> >
> >
> >                         you can do:
> >                         to know where your disc space is!
> >
> >                         do also a "df"
> >
> >                         you can post the result of these two commands
> >                         here
> >
> >
> >                         On Tue, Apr 5, 2011 at 4:05 PM, Naima Bouznag
> >                         <bouznag.naima at gmail.com> wrote:
> >
> >
> >                                 thanks yahya and islam for your
> >                                 replies,
> >                                 @Islam: well it isn't funny but i did
> >                                 my best :)
> >                                 this is a dedicated srv which i didn't
> >                                 install
> >
> >
> >                                 running df command, this is the result
> >                                 for tmp
> >                                 /usr/tmpDSK             495844
> >                                  165790    304454  36% /tmp
> >
> >
> >                                 can you plz describe me the process
> >                                 which i should follow?
> >
> >
> >                                 Thanks again;
> >
> >
> >
> >
> >                                 2011/4/5 ISLAM Abou El Ata
> >                                 <kindyroot at gmail.com>
> >
> >
> >                                         Hahahaaaa you MADE MY DAY with
> >                                         your cron job idea to clean
> >                                         tmp every 5 minutes :D very
> >                                         funny!
> >
> >                                         Most likely your /temp is not
> >                                         on a separate partition
> >                                         (unless you had chosen to do
> >                                         so at install time), .. I
> >                                         think you only a have a too
> >                                         small root partition (/) or
> >                                         you filled it too much ..
> >                                         Anyway if you want to put
> >                                         your /tmp elseway (where you
> >                                         have more space) you still can
> >                                         unmount it (umount /tmp),
> >                                         mount another filesystem there
> >                                         (mount /dev/sdxx /tmp) and
> >                                         make it permanent byupdating
> >                                         your /etc/fstab file.
> >
> >
> >
> >                                         On Tue, Apr 5, 2011 at 3:40
> >                                         PM, Naima Bouznag
> >                                         <bouznag.naima at gmail.com>
> >                                         wrote:
> >
> >
> >                                                 yeah it isn't big
> >                                                 enought so i should
> >                                                 increase it to 1Go,
> >                                                 everytime, i receive
> >                                                 an email with alert
> >                                                 (/tmp is 80% full), so
> >                                                 i've prepared a cron
> >                                                 with a perl script to
> >                                                 clean it each 5min,
> >                                                 but it isn't a good
> >                                                 idea because i'm
> >                                                 deleting my sessions
> >                                                 every 5min causing
> >                                                 troubles to my
> >                                                 applications.
> >
> >
> >                                                 i've just found a
> >                                                 shell script i'm
> >                                                 trying to test it, but
> >                                                 plz if someone else
> >                                                 has an idea it will be
> >                                                 welcome;
> >
> >
> >                                                 thanks;
> >
> >
> >
> >                                                 2011/4/5 Nordin
> >                                                 <bouchtaoui at gmail.com>
> >                                                          Look for
> >                                                         something
> >                                                         about resizing
> >                                                         partition.
> >                                                         If temp is not
> >                                                         big enough,
> >                                                         make a
> >                                                         seperate
> >                                                         partition of a
> >                                                         certain size
> >                                                         and modify
> >                                                         fstable. Don't
> >                                                         know the
> >                                                         details, but
> >                                                         google for
> >                                                         partition,
> >                                                         fstable,
> >                                                         resize and
> >                                                         harddrive.
> >
> >                                                         Success.
> >
> >
> >
> >                                                         On 5-4-2011
> >                                                         17:21, Naima
> >                                                         Bouznag wrote:
> >                                                                 Bonjour
> tout le monde,
> >                                                                 j'ai
> >                                                                 un
> >                                                                 serveur
> Centos5 et je veux augmenter la taille du /tmp;
> >                                                                 je
> >                                                                 demande
> si quelqu'un peut me guider et me dire ce qu'il faut faire.
> >
> >                                                                 merci
> >                                                                 par
> >                                                                 avance;
> >
> >
> >
> >                                                         --
> >
> >                                                         Ubuntu-ma
> >                                                         mailing list
> >
> Ubuntu-ma at lists.ubuntu.com
> >                                                         Modify
> >                                                         settings or
> >                                                         unsubscribe
> >                                                         at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >                                                 --
> >                                                 Naima Bouznag;
> >                                                 Freelancer : Engineer
> >                                                 in Web Development
> >
> >
> >
> >                                                 --
> >
> >                                                 Ubuntu-ma mailing list
> >
> Ubuntu-ma at lists.ubuntu.com
> >                                                 Modify settings or
> >                                                 unsubscribe at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >
> >
> >                                         --
> >
> >                                         Ubuntu-ma mailing list
> >                                         Ubuntu-ma at lists.ubuntu.com
> >                                         Modify settings or unsubscribe
> >                                         at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >
> >                                 --
> >                                 Naima Bouznag;
> >                                 Freelancer : Engineer in Web
> >                                 Development
> >
> >
> >
> >                                 --
> >
> >                                 Ubuntu-ma mailing list
> >                                 Ubuntu-ma at lists.ubuntu.com
> >                                 Modify settings or unsubscribe at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >
> >
> >                         --
> >
> >                         Ubuntu-ma mailing list
> >                         Ubuntu-ma at lists.ubuntu.com
> >                         Modify settings or unsubscribe at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >
> >                 --
> >                 Naima Bouznag;
> >                 Freelancer : Engineer in Web Development
> >
> >
> >
> >                 --
> >
> >                 Ubuntu-ma mailing list
> >                 Ubuntu-ma at lists.ubuntu.com
> >                 Modify settings or unsubscribe at:
> >                 https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> >
> >         --
> >         Ubuntu-ma mailing list
> >         Ubuntu-ma at lists.ubuntu.com
> >         Modify settings or unsubscribe at:
> >         https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
> >
> >
> >
> >
> > --
> > Naima Bouznag;
> > Freelancer : Engineer in Web Development
> >
>
>
>
> --
> Ubuntu-ma mailing list
> Ubuntu-ma at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
>



-- 
Naima Bouznag;
Freelancer : Engineer in Web Development
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <https://lists.ubuntu.com/archives/ubuntu-ma/attachments/20110405/6cd97b2b/attachment-0001.html>


Plus d'informations sur la liste de diffusion Ubuntu-ma