On Tue, 2 Apr 2013, Reindl Harald wrote:
Am 02.04.2013 01:12, schrieb Max Pyziur:
Beginning today, I started to receive the following when ftp'ing to my CentOS 6 machine: ncftp /home/pyz2 > dir connect failed: No route to host. connect failed: No route to host. connect failed: No route to host. Falling back to PORT instead of PASV mode.
I can make a connection, but I can't get a directory listing or transfer data/files
My firewall setting has port 21 open
I can remotely telnet to hostname 21
and you understood that ftp needs also a data-channel and not only the control-connection?
When ftping to the machine, the following is reported from an lsof -i: ~> lsof -i | grep ftp vsftpd 18051 root 3u IPv4 47313973 0t0 TCP *:ftp (LISTEN) vsftpd 18448 nobody 0u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED) vsftpd 18448 nobody 1u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED) vsftpd 18448 nobody 2u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED) vsftpd 18465 pyz2 0u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED) vsftpd 18465 pyz2 1u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED) vsftpd 18465 pyz2 2u IPv4 47318710 0t0 TCP brama.com:ftp->pool-72-89-118-134.nycmny.east.verizon.net:50298 (ESTABLISHED)
fyi,
MP pyz@brama.com
Hello all, I have a couple problems with two Centos installs. One is my Dedicated hosting plan. I have been trying very hard to build some strong skills in system administration because the task apparently is more complex than I imagined... or it appeared that way to a web developer, who reported he was not a system admin and so even though he could do quite a bit on the server - more than I could at the time - he felt my task of needing to fix a partitioning problem on my systems needed to be referred to a system administrator ( a role I'm trying to take on). On my dedicated server, I have had a couple partitions that are quite often full and one of them tends to fill up very quickly now. The other partition, I believe the /var partition seems ok now that I have moved most of my accounts elsewhere. I believe the databases were there and so by moving accounts elsewhere, much space was freed up. Not it is the /etc partition that is full every other day. It is a 10GB partition and most of the data is in the mail spool directories. I don't have many accounts, so I'm not sure how to fix the issue. I get thousands of spam messages and yet, I just realized, they don't seem to be going to the email addresses I have on that particular dedicated server - or the domains hosted there. All manner of problems develop when this happens. So, this is on a 500GB disk with a good bit of free space, such as in the home partitions. My domains are setup like this: /home/username/public_html. So, If I setup the domain mydomain.com, I'd use a username of mydom. Anyway, this partition has available space on it. How can I (maybe?) shrink one partition, moving files as necessary, and then increase the storage size for the 10GB partitions, /etc and /var? Can this be done without breaking things? Second issue... My business/development server... Centos 6.4. I cannot boot into it now because the /tmp partition is full. Most of the fixes I found online involve what you do once you boot into it. Initially I was getting an error about Power Management and googling this turned up info. Saying that a disk partition is full. Indeed, checking the boot log, that was the case. It could not create files in the /tmp partition/directory - no more space. So, I was trying to get to a place where I could delete some tmp files as a first step. Since I cannot boot up, and didn't know what to do from grub to address the issue, I tried booting to live CD. The files are locked, of course, and/or protected, or I don't have permission to delete anything. Is there any way to from adjust the size of the different partitions, shrink some space in one partition and expand it/reclaim it elsewhere, e.g. the /etc partition? Again, I cannot boot to the desktop. I got as far as the grub boot loader and didn't find anything that would let me adjust partitions.
Thanks in advance for any help, Bruce
On 4/1/2013 5:54 PM, Bruce Whealton wrote:
Not it is the /etc partition that is full every other day. It is a 10GB partition and most of the data is in the mail spool directories.
the /etc directory A) shouldn't be a separate partition, it should be on / and B) should just contain system configuration files, in no way should there be anything like mail spools in there. the standard place for mail spools is /var/spool/mail
the rest of your message was just a little too run on and too many different things jammed together for me to want to make sense of.
On 2 April 2013 01:59, John R Pierce pierce@hogranch.com wrote:
On 4/1/2013 5:54 PM, Bruce Whealton wrote:
Not it is the /etc partition that is full every other day. It is a 10GB partition and most
of
the data is in the mail spool directories.
the /etc directory A) shouldn't be a separate partition, it should be on / and B) should just contain system configuration files, in no way should there be anything like mail spools in there. the standard place for mail spools is /var/spool/mail
the rest of your message was just a little too run on and too many different things jammed together for me to want to make sense of.
--
john r pierce 37N 122W somewhere on the middle of the left coast
Hello Bruce
This is a great start -> https://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=...
What Database do you have on you server? Where did you create the data dir?
Do you have wordpress running? under httpd (apache)?
Do you have a mail server running?
Please run the script(getinfo.sh) and paste to pastebin.
I'd use fdisk or parted to create a partition. Then set the id/type to 82 linux swap. Then mkswap on the new drive. Copy the contents of the old swap using the dd command to the new drive. Then swapon and swapoff and update /etc/fstab. Then free to check new swaps up.
man lvm
Read more about lvm here. http://www.techotopia.com/index.php/Adding_a_New_Disk_to_a_CentOS_6_Volume_G...
All the best Paul
* "I know one thing: That I know nothing"* - Socrates *"We're all explorers here"* - T S Eliot
--
john r pierce 37N 122W somewhere on the middle of the left coast
Hello Bruce
This is a great start -> https://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=...
What Database do you have on you server? Where did you create the data
dir? On the home/business system, I have mysql. By data directory, do you mean, apache web directory? I did setup owncloud and installed that inside my first virtual host. So, the apache data directory is at: /var/www/ I mapped the domain futurewavewebhosting.com to the location first specified in httpd.conf, which is /var/www/html/public_html/ So, owncloud is in /var/www/html/public_html/owncloud Just to be able to figure out how to setup virtual hosts, I setup them at /var/www/vhosts/mydomain.com/
Do you have wordpress running? under httpd (apache)?
I have drupal, and owncloud, and some other small scripts I developed.
Do you have a mail server running?
I started setting that up but couldn't get it to send to an external domain. It may be my ISP blocks that port.
Please run the script(getinfo.sh) and paste to pastebin.
I'll try. I can get in with the liveDVD. When I do that the other directories are locked and so the script needs to be run when I am not using liveDVD. The problem seems to be when it tries to create a tmp file for vnc. The idea was to get to my desktop from my other computer using tightvnc on my windows system. Maybe the tmp file directory is full for root only. I can get to the login prompt. I'll try one of the other usernames. Otherwise, I need a way to see if I can get into the system without loading the GNOME desktop, just the terminal. Then I need a way to tell it "Put the temp files for vnc into this much bigger partition.
I'd use fdisk or parted to create a partition. Then set the id/type to 82
linux swap. Then mkswap on the new drive. Copy the contents of the old swap using the dd command to the new drive. Then swapon and swapoff and update /etc/fstab. Then free to check new swaps up. So, I should be able to create a boot disk that will let me use fdisk or parted, which I might already have.
man lvm
Read more about lvm here. http://www.techotopia.com/index.php/Adding_a_New_Disk_to_a_CentOS_6_Volume_G roup_and_Logical_Volume
All the best Paul
For the dedicated host that I have, is there a way to shrink one partition to free up space for another, to expand another partition? Thanks, Bruce
On 4/2/2013 12:33 PM, Bruce Whealton wrote:
I mapped the domain futurewavewebhosting.com to the location first specified in httpd.conf, which is/var/www/html/public_html/ So, owncloud is in /var/www/html/public_html/owncloud Just to be able to figure out how to setup virtual hosts, I setup them at /var/www/vhosts/mydomain.com/
so what is using all the space in /etc ?!? as I said before, /etc should NOT be a separate file system, it should be part of the / and its usually 50-100MB, rarely any bigger, as it just contains configuration files and startup scripts.
On 4/2/2013 12:33 PM, Bruce Whealton wrote:
I mapped the domain futurewavewebhosting.com to the location first specified in httpd.conf, which is/var/www/html/public_html/ So, owncloud is in /var/www/html/public_html/owncloud Just to be able to figure out how to setup virtual hosts, I setup them at /var/www/vhosts/mydomain.com/
so what is using all the space in /etc ?!? as I said before, /etc should NOT be a separate file system, it should be part of the / and its usually 50-100MB, rarely any bigger, as it just contains configuration files and startup scripts.
I apologize for the confusion. I was discussing both a remote dedicated hosting plan and a home/business server. The above remarks relate to the local system. On that system it is the /tmp partition that is full. [Note: remote dedicated server is not letting me ssh, or sftp to it, browse to the domains, or use regular ftp to reach the domains. Apparently, the web hosting provider is not having this problem. They say they can ftp, ssh, etc. Therefore, I asked them to check to see if my IP is being blocked as that seems the only explanation as to why they can connect. Can someone check the domain: http://futurewavehosting.com/drupal/ On my local machine, I tried to install Centos to a different drive and it reports Kernel panic - not synching: Attempted to kill init!... I tried it with the liveISO disk, I will try installing from an installation disk - I had burned disk1 ISO and disk2 ISO to two different DVDs. It never asked for disk2 though. Bruce
On 4/2/2013 2:45 PM, Bruce Whealton wrote:
Can someone check the domain:http://futurewavehosting.com/drupal/
works from here.
you need to separate your problems and deal with them individually, conflagrating everything into one big stream of consciousness doesn't do anyone any good, it just confuses things.
so, its /tmp thats full, not /etc ? /tmp can be cleared of anything older than the last reboot. if stuff is accumulating there, you should determine why.
if you're having connectivity problems, try the IP instead of the hostname, like I'm seeing 69.36.6.75
Hello Bruce
All you need is a terminal/shell
ssh validusername@ipaddress
then type
vgdisplay
which is under
man lvm
Another route: From centos dvd select rescue and follow instructions
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/ht...
Check file privileges on drupal. I've head some funny stories from some severs running wordpress (to do with lack of privileges around upload folder not wordpress)
what do your logs say in /var/log/ what does
dmesg
All the best Paul
On 2 April 2013 20:33, Bruce Whealton bruce@futurewaveonline.com wrote:
--
john r pierce 37N 122W somewhere on the middle of the left coast
Hello Bruce
This is a great start -> https://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=...
What Database do you have on you server? Where did you create the data
dir? On the home/business system, I have mysql. By data directory, do you mean, apache web directory? I did setup owncloud and installed that inside my first virtual host. So, the apache data directory is at: /var/www/ I mapped the domain futurewavewebhosting.com to the location first specified in httpd.conf, which is /var/www/html/public_html/ So, owncloud is in /var/www/html/public_html/owncloud Just to be able to figure out how to setup virtual hosts, I setup them at /var/www/vhosts/mydomain.com/
Do you have wordpress running? under httpd (apache)?
I have drupal, and owncloud, and some other small scripts I developed.
Do you have a mail server running?
I started setting that up but couldn't get it to send to an external domain. It may be my ISP blocks that port.
Please run the script(getinfo.sh) and paste to pastebin.
I'll try. I can get in with the liveDVD. When I do that the other directories are locked and so the script needs to be run when I am not using liveDVD. The problem seems to be when it tries to create a tmp file for vnc. The idea was to get to my desktop from my other computer using tightvnc on my windows system. Maybe the tmp file directory is full for root only. I can get to the login prompt. I'll try one of the other usernames. Otherwise, I need a way to see if I can get into the system without loading the GNOME desktop, just the terminal. Then I need a way to tell it "Put the temp files for vnc into this much bigger partition.
I'd use fdisk or parted to create a partition. Then set the id/type to 82
linux swap. Then mkswap on the new drive. Copy the contents of the old swap using the dd command to the new drive. Then swapon and swapoff and update /etc/fstab. Then free to check new swaps up. So, I should be able to create a boot disk that will let me use fdisk or parted, which I might already have.
man lvm
Read more about lvm here.
http://www.techotopia.com/index.php/Adding_a_New_Disk_to_a_CentOS_6_Volume_G roup_and_Logical_Volume
All the best Paul
For the dedicated host that I have, is there a way to shrink one partition to free up space for another, to expand another partition? Thanks, Bruce
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos