Re: [CentOS] Repartitioning issues - advice needed, and info.

2013-04-02 Thread Paul Norton
On 2 April 2013 01:59, John R Pierce  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=54

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_Group_and_Logical_Volume

All the best Paul

* "I know one thing: That I know nothing"* - Socrates
*"We're all explorers here"* - T S Eliot
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Minimal ISO: GRUB UEFI has incorrect config

2013-04-02 Thread Karanbir Singh
Hi Adam,


On 03/27/2013 01:09 PM, Adam Bishop wrote:
> The grub commands used by the ISO for installation/rescue are:
> 
>   kernel /images/pxeboot/vmlinuz ...
>   initrd /images/pxeboot/initrd.img
> 
> These paths do not exist on disk.
> 
> If I manually correct these to:
> 
>   kernel /images/vmlinuz ...
>   initrd /images/initrd.img
> 

Can you file this as a bugreport on bugs.centos.org please ? I suspect
the issue might be that on the distro the images in pxeboot/ and in just
images/ are linked to each other ( and to /syslinux/ ) and we might have
skipped / missed something in the tests


-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
GnuPG Key : http://www.karan.org/publickey.asc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] The annoying task_setrlimit

2013-04-02 Thread m . roth
I found the FAQ about it. Unfortunately, it is going to worry some few of
my users. The FAQ does *not* mention any way to shut it up.

Clues?

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] The annoying task_setrlimit

2013-04-02 Thread Akemi Yagi
On Tue, Apr 2, 2013 at 6:45 AM,   wrote:
> I found the FAQ about it. Unfortunately, it is going to worry some few of
> my users. The FAQ does *not* mention any way to shut it up.

Because there is no known way to shut it up. As stated in [1], "You
need to open a bug or raise a support call [with upstream]". There is
nothing CentOS can do about it.

That said, it is not impossible to silence the message. You can remove
the part of the kernel code that displays it and build your custom
kernel.

Akemi

[1] https://www.redhat.com/archives/rhelv5-list/2013-January/msg00011.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] The annoying task_setrlimit

2013-04-02 Thread m . roth
Akemi Yagi wrote:
> On Tue, Apr 2, 2013 at 6:45 AM,   wrote:
>> I found the FAQ about it. Unfortunately, it is going to worry some few
>> of my users. The FAQ does *not* mention any way to shut it up.
>
> Because there is no known way to shut it up. As stated in [1], "You
> need to open a bug or raise a support call [with upstream]". There is
> nothing CentOS can do about it.
>
> That said, it is not impossible to silence the message. You can remove
> the part of the kernel code that displays it and build your custom
> kernel.

Thanks, Akemi. It's still annoying that they'd leave what I'd call a debug
statement in a production delivery.

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help with thread Centos 6.4 won't reboot on install

2013-04-02 Thread Robert Benjamin

On 04/01/2013 06:20 PM, Robert Benjamin wrote:
> On 4/1/2013 2:07 PM, m.r...@5-cent.us wrote:
>> Robert Benjamin wrote:
>>> On 3/31/2013 12:06 PM, Les Mikesell wrote:
 On Sun, Mar 31, 2013 at 4:00 AM, Robert Benjamin 
 wrote:
> WELL, I don't know what to say. I just put the HD in the PC
> turned
> it on and was waiting for the blue screen so I could login as root and
> type 'init 3'. BUT, guess what happened. A tiny clock appeared at the
> top left followed by a log in screen and here I am. Happened very
> quickly. A few seconds. Now, do I dare log out and try to get back or
> just wait for a reply from you. Yesterday I never did init 3 either.
> Maybe it is the Easter Bunny. I don't know. I'm a bit apprehensive
> about
> shutting off and trying again. What's your opinion?
 That's the way it is supposed to work, and since no one recognized the
 previous symptoms my best guess is that it was some sort of hardware
 issue.  Maybe swapping the drive left a bad connection to the disk or
 network.

 --
  Les Mikesell
 lesmikes...@gmail.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

>>>Looking for the book you recommended by Fraesch: Essential Systems
>>> Administration. Tried a local Barnes and Noble store and the author's
>>> name is different. They have it as Frisk, same title. Third Edition.
>>> Hope it's the same book. Can you double check please. I assume this is
>>> at a level I can deal with. Thanks.
>>>
>> They can't spell. On the cover is a non-ascii char, that when I was a kid
>> in school, was the way some books spell Caesar, with the "a" and the "e"
>> sharing a line.
>>
>> 
>>
>> As I may have said, everyone I know in computers has a number of books
>> from this publisher - he specializes in not only finding people who
>> really, really know their subject, but CAN ALSO COMMUNICATE WHAT THEY KNOW
>> (as opposed to, say, the BAL textbook I had in college, many years ago,
>> that if I could have gotten the rights to, I'd put all the pharmaceutical
>> co's market for sleeping pills out of business)
>>
>>   mark
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>   Thanks. I'll browse the bookstore for books from O'Reilly Publisher
> and see what appeals to me. Texts can be boring as I well know as an
> Assoc Prof, retired, and many are sooo boing it is a shame. Anyhow,
> will look and I'm sure I'll find somethig suitable.
>
> Bob
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
 Have inconsistency in getting it to let me login. Yesterday no 
luck. At '$ runlevel'  got  53 so it must have been at runlevel 3. 
startx no help, back to blue screen. Today, just started it first time 
and it booted right to GUI login screen. All is OK that has been set up 
like email, FF, printer etc. Checked Pref/System/Network Connection and 
the box is greyed out. Pref/SysytemNetwork Proxy only 'Direct Internet 
connection' is ticked. Everything else is greyed out. Ran updates also. 
This happened a few days back and was fine as long as I stay logged in. 
Re-boot or shutdown was not good. Couldn't log in again. Then 
surprisingly today it is back.  WTF ? Other HDs are OK and work reliably.

Bob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help with thread Centos 6.4 won't reboot on install

2013-04-02 Thread Les Mikesell
On Tue, Apr 2, 2013 at 10:44 AM, Robert Benjamin  wrote:
>
>  Have inconsistency in getting it to let me login. Yesterday no
> luck. At '$ runlevel'  got  53 so it must have been at runlevel 3.
> startx no help, back to blue screen. Today, just started it first time
> and it booted right to GUI login screen. All is OK that has been set up
> like email, FF, printer etc. Checked Pref/System/Network Connection and
> the box is greyed out. Pref/SysytemNetwork Proxy only 'Direct Internet
> connection' is ticked. Everything else is greyed out. Ran updates also.
> This happened a few days back and was fine as long as I stay logged in.
> Re-boot or shutdown was not good. Couldn't log in again. Then
> surprisingly today it is back.  WTF ? Other HDs are OK and work reliably.

It's hard to make sense of random behavior.  I'd still guess it is
some hardware-related issue.  You might get a hint from
/var/log/messages if you look at  what happened (or didn't) when it is
hung compared to older startups that worked, but there will be a lot
to wade through.

--
  Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Kickstart just create /boot, recommended swap and / with whatever is left.

2013-04-02 Thread Drew Weaver
Howdy,

The default partitioning scheme appears to be:

swap
/boot
/ small amount of space
/home remainder of space.

Is there any way via kickstart to have it just create swap with the recommended 
size, /boot, and then just / with the remainder without manually specifying the 
names of the lvs/vgs etc?

I figured there would be an autopart -atomic option but that doesn't seem to 
exist.

Any advice?

Thanks,
-Drew

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Kickstart just create /boot, recommended swap and / with whatever is left.

2013-04-02 Thread m . roth
Drew Weaver wrote:
> Howdy,
>
> The default partitioning scheme appears to be:
>
> swap
> /boot
> / small amount of space
> /home remainder of space.
>
> Is there any way via kickstart to have it just create swap with the
> recommended size, /boot, and then just / with the remainder without
> manually specifying the names of the lvs/vgs etc?
>
> I figured there would be an autopart -atomic option but that doesn't seem
> to exist.
>
Where'd you get the kickstart?

You can certainly set it up any way you want, though a large /home seems
reasonable if you've only got one drive, unless you want /boot, swap, and
/.

Btw, the old received wisdom was that swap should be 2-2.5 times RAM; for
some years now, though, it's been just 2G, and leave it at that.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Repartitioning issues - advice needed, and info.

2013-04-02 Thread Bruce Whealton

--
> 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=54

>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


Re: [CentOS] Repartitioning issues - advice needed, and info.

2013-04-02 Thread John R Pierce
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.



-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Kickstart just create /boot, recommended swap and / with whatever is left.

2013-04-02 Thread Drew Weaver

Drew Weaver wrote:
> Howdy,
>
> The default partitioning scheme appears to be:
>
> swap
> /boot
> / small amount of space
> /home remainder of space.
>
> Is there any way via kickstart to have it just create swap with the 
> recommended size, /boot, and then just / with the remainder without 
> manually specifying the names of the lvs/vgs etc?
>
> I figured there would be an autopart -atomic option but that doesn't 
> seem to exist.
>
---

>Where'd you get the kickstart?
>You can certainly set it up any way you want, though a large /home seems 
>reasonable if you've only got one drive, unless you want /boot, swap, and /.
>Btw, the old received wisdom was that swap should be 2-2.5 times RAM; for some 
>years now, though, it's been just 2G, and leave it at that.

I just used the 'autopart' command in the kickstart and it automatically put 
most of the storage in /home.

I believe in CentOS 5 the autopart command just did swap /boot and /

I realize I can manually partition all 60 of these servers but I'm trying to 
avoid that also like I said I would prefer not to set the lv/vg names in the 
kickstart..

Would've been cool if you could just do autopart -atomic like you can with 
Ubuntu.

Thanks,
-Drew
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Repartitioning issues - advice needed, and info.

2013-04-02 Thread Bruce Whealton

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


-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Repartitioning issues - advice needed, and info.

2013-04-02 Thread John R Pierce
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







-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] C5-C6 Migration problem: HTML-Formatted email in Squirrelmail disappears

2013-04-02 Thread Max Pyziur

Greetings,

In Squirrelmail, you can install a plugin html_mail, that allows you to 
compose html-formatted email.

This plugin functions with Firefox and Internet Explorer; it doesn't 
function in Google Chrome.

In CentOS 5 with PHP5.1, I could copy and paste  html-formatted text 
with complicated html (tables, css, etc) from a text editor into the the 
html-formatting pane of squirrelmail, and the message would be delivered 
as html-formatted to the recipients.

In CentOS 6, with PHP5.3, using Squirrelmail with the html_mail plugin, 
copying html-formatted text from a text editor into the html-window in 
Squirrelmail, the delivered email only shows the header information.

Using pine, I see that there is an attachment, viewing the attachment, I 
see the original html code that was composed in a text editor.

Viewing this same received email in a web-based client (Gmail or 
Squirrelmail), all of html-formatting disappears.

Any suggestions on how to troubleshoot and resolve this?

Much thanks.

Max Pyziur
p...@brama.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Vsftpd configuration problem

2013-04-02 Thread SilverTip257
On Mon, Apr 1, 2013 at 8:04 PM, Max Pyziur  wrote:

>
> > [root@srv-rhsoft:~]$ cat /etc/sysconfig/iptables-config
> > # Load additional iptables modules (nat helpers)
> > #   Default: -none-
> > # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'),
> which
> > # are loaded after the firewall rules are applied. Options for the
> helpers are
> > # stored in /etc/modprobe.conf.
> > IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"
>
> So, are you saying this last line is key?
>
> Because on the CentOS 5 setup I see:
> IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp"
>
> While on the CentOS 6 setup I see:
> IPTABLES_MODULES=""
>
> What is the correct/recommended setting?
>

You need ip_conntrack_ftp added to your IPTABLES_MODULES in
/etc/sysconfig/iptables-config.
Add that module name, restart iptables, double check your firewall rules
(allow TCP port 21), and try to FTP into your box.


You could have switched your FTP client to active FTP rather than passive
(generally the default).
The link to slacksite link below explains active and passive FTP.


>
> >>> http://slacksite.com/other/ftp.html
> >
> >
>
>
> Max Pyziur
> p...@brama.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [SOLVED] it was an iptables-config setting, was Re: Vsftpd configuration problem

2013-04-02 Thread SilverTip257
On Mon, Apr 1, 2013 at 8:30 PM, Max Pyziur  wrote:

> On Tue, 2 Apr 2013, Reindl Harald wrote:
>
> >
> >
> > Am 02.04.2013 02:04, schrieb Max Pyziur:
> >>> [root@srv-rhsoft:~]$ cat /etc/sysconfig/iptables-config
> >>> # Load additional iptables modules (nat helpers)
> >>> #   Default: -none-
> >>> # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'),
> which
> >>> # are loaded after the firewall rules are applied. Options for the
> helpers are
> >>> # stored in /etc/modprobe.conf.
> >>> IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"
> >>
> >> So, are you saying this last line is key?
> >
> > it is on my fedora machines acting as FTP behind a NAT
> >
> >> Because on the CentOS 5 setup I see:
> >> IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp"
> >>
> >> While on the CentOS 6 setup I see:
> >> IPTABLES_MODULES=""
> >>
> >> What is the correct/recommended setting?
> >
> > there is no "correct/recommended setting"
> >
> > if you are behind a NAT you need a different config as if you are
> > have a public IP on your machine, that is why configs exists
>
> Not behind a NAT ...
>
> > with passive FTP the server anserwers with port AND ip-address
> > for the data-connection (which is a idiotic design but it is how
> > it is) and if the client follows this response it fails
> >
> > so the way to go is translate the response in whatever
> > stateful filter in fornt of the FTP server
> >
> > this is called ALG (application layer gateway) and part
> > of any relieable stateful packet filter
>
> Adding the following line to /etc/sysconfig/iptables-config "got me home:"
> IPTABLES_MODULES="ip_conntrack_ftp"
>

Great.

Kindly do not change the subject of your messages.
It screws up thread grouping in many mail clients and confuses people.
 Plus if we keep things together someone having the same problem in the
future might be able to find the solution without asking the same question
again.  Thanks. :)


>
> Along with the above dialogue, the following page helped (me):
>
> http://www.linuxquestions.org/questions/linux-networking-3/iptables-configuration-for-passive-ftp-connection-633774/
>
> Thanks.
>
> Max Pyziur
> p...@brama.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos