Lack of space on the partition root for linux with plesk

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

en:Lack of space on the partition root for linux with plesk he:חוסר מקום על שורש מחיצת לינוקס עם plesk ru:Недостаток места в корне раздела linux с plesk ja:Plesk で linux 用パーティションのルート領域の不足 ar:عدم وجود مساحة على جذر قسم لينكس مع plesk zh:为与 plesk linux 分区根上的空间不足 ro:Lipsa de spaţiu pe partiţia root pentru linux cu plesk pl:Brak miejsca w katalogu głównym partycji dla Linuksa z plesk de:Platzmangel auf der Root Partition für Linux mit plesk nl:Gebrek aan ruimte in de hoofdmap van de partitie voor linux met plesk it:Mancanza di spazio nella radice della partizione per linux con plesk pt:Falta de espaço sobre a raiz da partição para linux com plesk es:Falta de espacio en la raíz de la partición para linux con plesk fr:Manque d'espace sur la partition root d'un linux avec plesk


Introduction

You miss place for Plesk and want to use the partition space /data
For example, in the case of an installation of :

/dev/hda3 de 10 GO mounted o /
/dev/hda4 de 40 GO mounted o /data

Place

Attention, it is strongly recommended to make a backup of your server before this intervention.


In our handling we will ride the /data, the /dev/hda4, in the /var. | used by plesk. It is therefore necessary to stop all services using files from /var (Apache, mysql, plesk,... | )

Stop the services that may impact the folder /var

 for i in {zabbix-agent,cron,bind9,dbus,atd,portmap,acpid,rsyslog,nfs-common,apache2}; do /etc/init.d/"$i" stop; done

 /etc/init.d/psa stopall

Copying the conten /var /data

 rsync -av /var/* /data

le -AV keeps the file attributes.


Modification of the

Changing the fstab Let's raise the /data in the /var. We indicated in the description of the problem that /data corresponded to /dev/hda4 The lin :

/dev/hda4 /data ext3 defaults 0 0

thus become

/dev/hda4 /var ext3 defaults 0 0

You can use this command to change the fstab :

 vi /etc/fstab

Server restart

We use the command "reboot"


Freeing up the space

If your site is functional at this stage, you can finally release the space previously occupied by following these steps :

 for i in {zabbix-agent,cron,bind9,dbus,atd,portmap,acpid,rsyslog,nfs-common,apache2}; do /etc/init.d/"$i" stop; done

 <!--T:11-->
/etc/init.d/psa stopall

 <!--T:12-->
umount /var
/!\ at this point verify that /var is well removed before you run the following command. If a process crashes down, you will find it with the command /!\
 lsof | grep "/var"

free space :

 rm -rf /var/*

 <!--T:14-->
reboot




This article seemed you to be u ?

0



You are not allowed to post comments.