Re: raid recomendation

2012-12-06 Thread Pedro Eugênio Rocha
On Thu, Dec 6, 2012 at 2:18 PM, Roberto Scattini  wrote:

> hi, i have a new dell r720 server with 5 600gb disks.
> his function will be a postgresql server (the size of the databases is
> really small with 600gb we should be fine for a long time).
>
> which raid configuration would you recommend?
> i was thinking in raid 5 with all five disks but i am not a expert.
>

Hi Roberto,

A RAID 5 volume including the 5 drives should work fine for you. A question
you should consider when you are taking this decision is: how fast can you
replace a failed drive? You must know that in the meanwhile you'd be
vulnerable, since an additional failure could lead to data loss. If you
can't exchange the drive fast enough, maybe you should use an spare drive
or thinking about RAID 6 (I've never used it though).


>
> i prefer redundandcy against size (i mean, i can sacrifice space). and i
> dont want performance degradation for doing raid with an incorrect number
> of disks.
>

Another think you could consider is creating a separate volume for the OS.
Particularly, I'd go for a 2 disks RAID 1 for the OS and a 3 disks RAID 5
for the database, since capacity isn't a problem. This configuration
ensures that the database I/O traffic does not competes with the OS (when
swapping and stuff). But that also depends on your hardware configuration.


Best,


>
> thanks in advance!
>
> --
> Roberto Scattini
>
>
-- 
Pedro Eugênio Rocha


Re: Question about deb versioning

2012-11-23 Thread Pedro Eugênio Rocha
On Thu, Nov 22, 2012 at 7:04 PM, Sven Joachim  wrote:
>
> > It's most probably a packaging mistake in our custom
> > package, but I just can't figure why.
>
> Try "aptitude -s install acesso" (you don't have to be root for that),
> and look what solutions, if any, aptitude proposes.  There is a prompt
> ("Accept this solution? [Y/n/q/?]") at the end, if you press "n",
> aptitude tries to find another solution.
>
>
Thanks for the suggestion. The problem wasn't related to deb versioning,
but to some broken dependencies along the tree and apt didn't give a clue.
Perhaps I should start using aptitude more frequently...

Thanks Sven


> Cheers,
>Sven
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/87a9u9pcwb@turtle.gmx.de
>
>


-- 
Pedro Eugênio Rocha


Re: Question about deb versioning

2012-11-22 Thread Pedro Eugênio Rocha
On Thu, Nov 22, 2012 at 6:25 PM, Sven Joachim  wrote:

>
> Please copy and paste the exact error messages (with LC_MESSAGES=C).
>

Here's the apt's output:

# LC_MESSAGES=C apt-get install acesso
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 acesso : Depends: libapache2-mod-passenger (>= 2.2.3) but it is not going
to be installed
E: Broken packages

# LC_MESSAGES=C apt-cache show acesso | grep Depends
Depends: memcached, libapache2-mod-passenger (>=2.2.3)


It's most probably a packaging mistake in our custom
package, but I just can't figure why.


Thanks


> Cheers,
>Sven
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/87haohpepw@turtle.gmx.de
>
>


-- 
Pedro Eugênio Rocha


Question about deb versioning

2012-11-22 Thread Pedro Eugênio Rocha
Hi guys,

I'm trying to install a custom deb package that depends
on libapache2-mod-passenger (>= 2.2.3) on a fresh debian squeeze, but apt
is reporting errors. I found that the current version of the package on
squeeze is 2.2.11debian-2, what should be enough to meet the dependency, I
suppose.

Is deb versioning system assuming that 2.2.11debian-2 is less than 2.2.3?
Would the best way to solve this problem be changing the dependency to (>=
2.2.3debian) ?

Any hints would be appreciated.


Thanks,

-- 
Pedro Eugênio Rocha


Re: Instalação em servidor

2012-11-05 Thread Pedro Eugênio Rocha
Bom dia,

2012/11/5 Qualidade 

> Prezados Senhores , bom dia.
>
> Trabalho em uma empresa que tem 7 computadores e estamos para instalar um
> servidor linux, minha dúvida é se a distribuição do Dbian para servidores é
> paga, e se for qual seria o valor da licença.
>

O debian é uma distribuição livre; sendo assim, você pode utilizá-la
gratuitamente.


> Desde já agradeço por sua atenção e fico no aguardo do seu retorno.


Uma observação importante é que esta lista é english-only. Caso tenha
outras dúvidas, aconselho-o a encaminhá-las para "debian-user-portuguese",
que é lista de oficial em português, ou enviá-las em inglês.

Abraços



>
>
>
>
> --
> Natã Lima de Oliveira
> Micro Óptica Comercial Ltda.
> (11)5971-8811 / 5928-3784
> www.microoptica.com.br
>
>
> --
> To UNSUBSCRIBE, email to 
> debian-user-REQUEST@lists.**debian.orgwith
>  a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/**5097B592.80400@microoptica.**com.br<http://lists.debian.org/5097b592.80...@microoptica.com.br>
>
>


-- 
Pedro Eugênio Rocha


Re: swap-partition

2012-11-03 Thread Pedro Eugênio Rocha
Hi guys,

On Fri, Nov 2, 2012 at 11:18 AM, Karl E. Jorgensen
wrote:

> On Fri, Nov 02, 2012 at 01:07:28PM +, Klaus Jantzen wrote:
> > Hello,
> >
> > on my machine I have two HDDs with Windows, Debian and another Linux
> system.
> > Because of the two Linux systems I have two swap partitions.
> >
> > As I want to remove the other Linux I want to get rid of one of the swap
> > partitions.
> > How can I find out which swap partition is used by Debian and by the
> > other Linux, respectively?
> >
> > With 'df' I only see the file systems mounted e.g. / (root) and /home of
> > Debian but not the swap partition.
>
> Actually, even with two different linux installations under dual-boot,
> you only need one swap partition: They can usually share :-) (unless
> you do suspend-to-disk).
>
> >From within a running Linux system, you can see the active swap
> partitions/files using:
>
> # swapon -s
>
> or
>
> $ cat /proc/swaps
>

It's also a good practice to properly set the partition types. Then, you
can find the swap partition using "fdisk -l" and searching for the type
"Linux swap", or 82. Assuming you're using regular partitions.



>
> Hope this helps


> --
> Karl E. Jorgensen
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/20121102131857.GD22806@hawking
>
>
Best,

-- 
Pedro Eugênio Rocha


Re: obsolete df (file system disk space usage) values and NFS

2012-10-25 Thread Pedro Eugênio Rocha
Maybe the file was opened by another user? Did you check lsof?

Best,

On Thu, Oct 25, 2012 at 10:11 AM, Vincent Lefevre  wrote:
> Hi,
>
> Yesterday, I removed a 700 MB directory over NFS with rm -rf, and
> I invoke "df" several times before and after the removal, but the
> "Used" value only decreased by 3 MB, including more than one hour
> after the operation.
>
> Before:
>
> Filesystem   1K-blocks  Used Available Use% Mounted on
>   26214400   8291328  17923072  32% /home/vlefevre
>
> After:
>
> Filesystem   1K-blocks  Used Available Use% Mounted on
>   26214400   8288256  17926144  32% /home/vlefevre
>
> Today the value is now correct:
>
> Filesystem   1K-blocks  Used Available Use% Mounted on
>   26214400   7589888  18624512  29% /home/vlefevre
>
> Why did it take so long?
>
> --
> Vincent Lefèvre  - Web: <http://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/20121025121145.ga21...@ypig.lip.ens-lyon.fr
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM3FfDyUrCSqtKOZKVfCNhMu3POVtF6qrtMBWnFoWvjR2=t...@mail.gmail.com



Re: Configure Virtual IP interfaces

2012-09-20 Thread Pedro Eugênio Rocha
Pietro,

Can you send us the output of "ifconfig" and "route -n"? Maybe this way
it would be easier for us understanding what you're trying to do.

Best,

On Tue, Sep 18, 2012 at 12:40 PM, Pietro Paolini
 wrote:
> Hi all,
>
>
>
> I am not really sure this is the correct newsletter  for  my question, if
> not please apologize me and suggest me a right newsletter, thanks.
>
>
>
> My goal is to simulate more than one IP interface using just a physical
> interface, for do that I tried using this alias
>
>
>
> Ifconfing ethX:1 
>
>
>
> But when I try to send a packet over that interface I see the IP source the
> same as the original, and real,  Ethernet interface. Then I tried to use TAP
> interface but I was unable to “link” them with my physical one, I notice
> them can communicate each others but can not ping (ping –I tap0   IF>) the original one.
>
> It is still valid if I create a bridge with all them.
>
>
>
> I would like avoid to install many Virtual Box as I need but what I want is
> exactly what it do: build a new virtual interface and bridge it with a real
> one in order to have more IP interface attached at one physical.
>
>
>
> Any suggestion ?
>
>
>
> Thanks in advance,
>
> Pietro.
>
>
>
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM3FfDy9Mq6E_WLAGPsAMJ16m_6NtgL9vpbMAYßUkJjRÕg...@mail.gmail.com



Re: Weird postfix problem when upgrading to Squeeze

2012-09-04 Thread Pedro Eugênio Rocha
Hi Stan,

I guess that explains the odd behavior. Probably the former version did not
enforce that restriction.

Thanks for the explanation


Best,

On Tue, Sep 4, 2012 at 2:42 PM, Stan Hoeppner  wrote:
> On 9/4/2012 10:58 AM, Pedro Eugênio Rocha wrote:
>
>> The weirdest thing is that it was working before the upgrade. Anyway, just
>> changing the format solves the problem, but finding where the problem was
>> gave me some headache and some email lost.  :-}
>
> http://www.postfix.org/postconf.5.html
>
> Each logical line is in the form "parameter = value". Whitespace around
> the "=" is ignored, as is whitespace at the end of a logical line.
>
> Empty lines and whitespace-only lines are ignored, as are lines whose
> first non-whitespace character is a `#'.
>
> A logical line starts with non-whitespace text. A line that starts with
> whitespace continues a logical line.
>
>
> Reading that carefully reveals your problem, which I already explained.
>  Whitespace at the end of a line terminates the line, making it a
> logical line.  Therefore, you cannot continue that logical line.
> Therefore, the leading space on the following 3 lines causes Postfix to
> ignore them, because logical lines begin with non-whitespace characters.
>
> Thus, never use trailing whitespace in a Postfix configuration file.
> Recent versions of Postfix are much pickier about enforcing
> main/master.cf syntax.  Postfix 2.9 even informs you of deprecated and
> unused parameter definitions in your config files.
>
> --
> Stan
>
>
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam3ffdw7_kelhins4jo9bfct1heh7vvd7+fwutztpud7y+e...@mail.gmail.com



Re: Weird postfix problem when upgrading to Squeeze

2012-09-04 Thread Pedro Eugênio Rocha
On Tue, Sep 4, 2012 at 11:32 AM, Camaleón  wrote:
> On Mon, 03 Sep 2012 17:20:34 -0300, Pedro Eugênio Rocha wrote:
>
>> The weirdest thing happened today with postfix when upgrading our mail
>> relay from Lenny to Squeeze. My main.cf has a mynetworks directive
>> specifying which servers can relay without authenticating. It looked
>> like this:
>>
>> mynetworks = 127.0.0.0/8
>>   x.x.x.x
>>   x.x.x.x
>>   x.x.x.x
>
> And that was working fine for all the IP addresses? :-?

Yes. It had worked for a couple of years... o.O

>
>> When I upgraded, things stopped working. After enabling smtpd debug, I
>> found that the new postfix was matching only the first line of the
>> directive. The previous postfix version was working flawlessly. When I
>> changed this line to:
>>
>> mynetworks = 127.0.0.0/8 x.x.x.x x.x.x.x x.x.x.x x.x.x.x
>
> This is the format I always use.
>
>> things went back normal. The odd fact is that in the postfix manual it
>> is stated
>> that:
>>
>> [0] - "Mynetworks - Specify a list of network addresses or
>> network/netmask patterns, separated by commas and/or whitespace.
>> Continue long lines by starting the next line with whitespace."
>>
>> Did somebody have this problem? Is this behavior expected? Am I missing
>> something here?
>
> Mmmm... there has to be something wrong (then or now) given the other
> format worked for you but after reading the decription from Postfix
> manual I understand the allowed options (regarding long lines) are either:
>
> # long lines
> mynetworks = ip/block ip ip/block ip ip/block ip ip/block ip
>  ip/block ip
> ^
>  (whitespace goes up there)
>
> # long lines
> mynetworks = ip/block, ip, ip/block, ip, ip/block, ip, ip/block, ip,
>  ip/block,ip
> ^
>  (white space goes up there)
>
> And Postfix is very nitpitcky with the correctness of the file formats :-)

The weirdest thing is that it was working before the upgrade. Anyway, just
changing the format solves the problem, but finding where the problem was
gave me some headache and some email lost.  :-}


Best,

>
> Greetings,
>
> --
> Camaleón
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/k253db$kaf$2...@ger.gmane.org
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM3FfDwwxemn=-kufj_+hfbe7ktra4j+btpd4rtpvc7r5wz...@mail.gmail.com



Weird postfix problem when upgrading to Squeeze

2012-09-03 Thread Pedro Eugênio Rocha
Hi guys,

The weirdest thing happened today with postfix when upgrading our mail
relay from Lenny to Squeeze. My main.cf has a mynetworks directive
specifying which servers can relay without authenticating. It looked like this:

mynetworks = 127.0.0.0/8
  x.x.x.x
  x.x.x.x
  x.x.x.x

When I upgraded, things stopped working. After enabling smtpd debug,
I found that the new postfix was matching only the first line of the directive.
The previous postfix version was working flawlessly. When I changed this
line to:

mynetworks = 127.0.0.0/8 x.x.x.x x.x.x.x x.x.x.x x.x.x.x

things went back normal. The odd fact is that in the postfix manual it
is stated
that:

[0] - "Mynetworks - Specify a list of network addresses or network/netmask
patterns, separated by commas and/or whitespace. Continue long lines by
starting the next line with whitespace."

Did somebody have this problem? Is this behavior expected? Am I missing
something here?


Thanks!

[0] - http://www.postfix.org/postconf.5.html#mynetworks

-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM3FfDxS18nDkP_1ryOOJhdBSTON=6iic=myby_ymgu-vqg...@mail.gmail.com



Re: ssh

2012-08-24 Thread Pedro Eugênio Rocha
On Fri, Aug 24, 2012 at 2:26 PM, Eike Lantzsch  wrote:
> On Friday 24 August 2012 11:56:33 lina wrote:
>> Hi,
>>
>> I noticed in the server via w
>>
>> it showed me
>>
>>
>> x pts/12   172.21.51.15517Jul12 38days  0.02s  0.02s -bash
>> y pts/14   :3.0 16:057:46m  0.01s  0.01s -bash
>> wwpts/15   172.21.49.37 Tue142days  0.19s  0.19s -bash
>> y pts/17   :2.0 Thu16   31:06m  0.01s  0.01s -bash
> Is this the complete output?
>>
>>
>> I am quite confused for y, s/he is not administrator, neither s/he
>> can access the server directly without ssh, how can s/he shows as  :2.0
>> and :3:0
>>
>> Thanks with best regards,
>
> Has y a X-session open and maybe two terminal windows in the same or is
> s/he using the program "screen"?

Is it a multiseat environment?

>
> Kind regards,
> Eike
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/201208241326.30184.zp6...@gmx.net
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam3ffdwjjfwkjy4g-k6zle3p0tp1gumpx4pbgbeuwyo0+dn...@mail.gmail.com



Re: best filesystem for logical volume ?

2012-08-17 Thread Pedro Eugênio Rocha
We have been using LVM with ext4 for a variety of workloads (webservers,
fileservers and mailservers) for quite some time, without performance problems.
As others have said, the performance depends most on the workload you will
use than in the "best filesystem".


Best,

On Fri, Aug 17, 2012 at 8:23 AM, J. B  wrote:
>
> Hello list,
>
> any recommendation about the best file system for logical volume ?
>
> TIA
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/20120817165340.2d9c8...@shiva.selfip.org
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM3FfDw-CEU5EsNVE14CoZPiQJkNR-DKwc_W0YCJ3wBU309h=q...@mail.gmail.com



Re: DNS Lookups

2012-08-03 Thread Pedro Eugênio Rocha
Roman,

I've never tried this myself, but I think that other option would be
to use iptables' OUTPUT chain with "-o your virtual interface". You
can also restrict this rule to filter only DNS ports and so on.

Another option is to use static routes, like Mihamina suggested.

Cheers,

On Fri, Aug 3, 2012 at 2:05 AM, Roman Gelfand  wrote:
> I have configured 2 vlan interfaces on debian lenny box.  The 2
> interface ip's are 192.168.6.5 and 192..168.8.5.  I would like making
> dns queries from this ip 192.168.6.5.  What can be done to ensure that
> a dns query is made using specific response ip?
>
> Thanks in advance
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/CAJbW+r=lrk76zlzynpa96mjg-3ohubxxar0mw6wkwlqssa-...@mail.gmail.com
>



-- 
Pedro Eugênio Rocha


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam3ffdyrpt-6byqvu457adi19npn7+a42tpvjfbemxptlyu...@mail.gmail.com