Hi all, I followed The Perfect Server - Ubuntu 12.04 LTS tutorial and installed it on a remote server running Ubuntu Desktop with free "x2go". Everything seem to work until one of my FTP transfered started to fail. Using FileZilla I was getting" Code: Command: MKD /New directory Response: 550 Can't create directory: No space left on device and Code: Command: DELE -uvari parka - Dojdi didi.mp3 Response: 550 Could not delete -uvari parka - Dojdi didi.mp3: No space left on device Looks like somehow I configured it wrong and now its not using correct partition? Code: root@ser4003281:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 20G 19G 0 100% / /dev/root 20G 19G 0 100% / devtmpfs 3.9G 4.0K 3.9G 1% /dev none 788M 2.8M 786M 1% /run none 5.0M 4.0K 5.0M 1% /run/lock none 3.9G 8.0K 3.9G 1% /run/shm /dev/root 20G 19G 0 100% /var/www/clients/client1/web2/log /dev/root 20G 19G 0 100% /var/www/clients/client1/web3/log /dev/root 20G 19G 0 100% /var/www/clients/client1/web4/log /dev/md3 898G 8.2G 844G 1% /home root@ser4003281:~# TIA
Hi, your root / is 100% full. You need to free some space in / you have 844G free in /home, but that is a different partition. For example: Your webfiles should stay under /var/www and this is on the partitions which are full: rootfs 20G 19G 0 100% / /dev/root 20G 19G 0 100% /
Thanks for the prompt reply! When I was installing Ubuntu using my hosts web interface I did not change anything and everything was left at default. When installing ISPconfig again I followed the directions. At which point did I made a mistake? How do I get out of this mess?
When you format the partition - make sure that you create /var with that space, not the /home partition. OR create a LVM.
Just got word from the host that they can't help with software issues becuase they only are only reponsible for hardware and network. I've installed gParted and I can't think of way how to resize that partition. Can someone please explain what steps I need to take since I have ISPconfig and don't want to corrupt that. I'm willing to pay for the help needed in order to do it right. While back I found my self locked out and had to re-install. I'm trying to avoid that this time. Below is my current /etc/fstab Code: # <file system> <mount point> <type> <options> <dump> <pass> /dev/md1 / ext4 errors=remount-ro,relatime,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1 /dev/md3 /home ext4 defaults,relatime 1 2 /dev/sda2 swap swap defaults 0 0 /dev/sdb2 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devtmpfs /dev devtmpfs rw 0 0 /var/log/ispconfig/httpd/mydomain1.com /var/www/clients/client1/web2/log none bind,nobootwait 0 0 /var/log/ispconfig/httpd/mydomain2.com /var/www/clients/client1/web3/log none bind,nobootwait 0 0 /var/log/ispconfig/httpd/mydomain3.com /var/www/clients/client1/web4/log none bind,nobootwait 0 0
First make a backup of /var and /etc content because are the most important from file system, in case of a screw-up. Then with gParted just decrease the amount of capacity of /home partition, and increase the / partition.
Can I just copy/paste in Ubuntu or do I need to use command line with special switches in order to copy hidden files? I've played with resizing in GParted but obviously without hitting apply at the end and when I shrink /home (currently shows as 888GB free) to half (400GB) and when I try to increase size of / I can't it won't let me go past 20GB I took this video that shows it. Thank you for your patience!
I'm afraid to say that is more complicated that I initially though, and is much complicated to explain. My recommendation is to reinstall the OS. At the partition step make sure that you choose LVM. IF there is someone else who has a better idea, please give a feedback.
There is one other option to relocate the web and mail space by using bind mounts: 1) Stop apache, postfic and dovecot. 2) Then execute these commands: mv /var/vmail /home/ mv /var/www /home/ mkdir /var/vmail chown vmail:vmail /var/vmail mkdir /var/www then edit the file /etc/fstab and add these lines: Code: /home/vmail /var/vmail none bind,nobootwait 0 0 /home/www /var/www none bind,nobootwait 0 0 then run: mount -a and start apache, postfix and dovecot again.
When using hosts install template I do not have option for LVM Here's how it looks http://i.imgur.com/mGi4td2.jpg
till, Thanks for coming to rescue! After searching around I saw few posts where others are saying that its not recommended to have all of disk space reserved for os/root and that /home should be kept for personal files. It also makes issues when you want to backup. This is how its setup currently (sample of hosts default install) http://i.imgur.com/mGi4td2.jpg and this is how I was thinking to partition it http://i.imgur.com/hiYupzu.jpg I would like to install some of tutorials from here but I can run into same issue because I won't have free space. Can you please weigh in on this? Below is the output of errors that I got. First one about permission denied it does not matter much because is already moved but it can't delete it? About other ones I'm not sure, are they important? Also, I did not change anything in /etc/fstab I just added. Code: root@ser4003281:~# mv /var/vmail /home/ root@ser4003281:~# mv /var/www /home/ mv: cannot remove `/var/www/clients/client1/web4/web': Permission denied mv: cannot remove `/var/www/clients/client1/web4/log': Permission denied mv: cannot remove `/var/www/clients/client1/web4/cgi-bin': Permission denied mv: cannot remove `/var/www/clients/client1/web4/webdav': Permission denied mv: cannot remove `/var/www/clients/client1/web4/private': Permission denied mv: cannot remove `/var/www/clients/client1/web4/ssl': Permission denied mv: cannot remove `/var/www/clients/client1/web4/tmp': Permission denied mv: cannot remove `/var/www/clients/client1/web2/web': Permission denied mv: cannot remove `/var/www/clients/client1/web2/log': Permission denied mv: cannot remove `/var/www/clients/client1/web2/cgi-bin': Permission denied mv: cannot remove `/var/www/clients/client1/web2/webdav': Permission denied mv: cannot remove `/var/www/clients/client1/web2/private': Permission denied mv: cannot remove `/var/www/clients/client1/web2/ssl': Permission denied mv: cannot remove `/var/www/clients/client1/web2/tmp': Permission denied mv: cannot remove `/var/www/clients/client1/web3/web': Permission denied mv: cannot remove `/var/www/clients/client1/web3/log': Permission denied mv: cannot remove `/var/www/clients/client1/web3/cgi-bin': Permission denied mv: cannot remove `/var/www/clients/client1/web3/webdav': Permission denied mv: cannot remove `/var/www/clients/client1/web3/private': Permission denied mv: cannot remove `/var/www/clients/client1/web3/ssl': Permission denied mv: cannot remove `/var/www/clients/client1/web3/tmp': Permission denied root@ser4003281:~# mkdir /var/vmail root@ser4003281:~# chown vmail:vmail /var/vmail root@ser4003281:~# mkdir /var/www mkdir: cannot create directory `/var/www': File exists root@ser4003281:~# mount -a mount: sysfs already mounted or /sys busy mount: according to mtab, none is already mounted on /sys root@ser4003281:~#
2nd bump . I'm not sure how but now /var/www shows 838GB free but /var/www/clients/ shows 13GB free? how can I move /var/www/clients/ logs to 838GB? Code: root@ks4003281:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 20G 5.5G 13G 30% / /dev/root 20G 5.5G 13G 30% / devtmpfs 3.9G 4.0K 3.9G 1% /dev none 788M 2.7M 786M 1% /run none 5.0M 8.0K 5.0M 1% /run/lock none 3.9G 8.0K 3.9G 1% /run/shm /dev/md3 898G 14G 838G 2% /home /dev/md3 898G 14G 838G 2% /var/vmail /dev/md3 898G 14G 838G 2% /var/www /dev/root 20G 5.5G 13G 30% /var/www/clients/client1/web2/log /dev/root 20G 5.5G 13G 30% /var/www/clients/client1/web3/log /dev/root 20G 5.5G 13G 30% /var/www/clients/client1/web4/log root@ks4003281:~# ispconfig_update.sh
Ok, just to make sure this is what I need to do: 1) Stop apache, postfic and dovecot. 2) mv /var/log/ispconfig/httpd /home/ then edit the file /etc/fstab and add this line: Code: /home/var/log/ispconfig/httpd /var/log/ispconfig/httpd none bind,nobootwait 0 0 then run: mount -a and start apache, postfix and dovecot again.
hi , did till's solution fix the problem and is there anything else that I should do to fix the same problem?