Re: Bad Blocks in IDE software Raid 1

2003-04-18 Thread Russell Coker
On Thu, 17 Apr 2003 18:48, I. Forbes wrote:
 Am I correct in assuming that every time a bad block is discovered
 and remapped on a software raid1 system:

 - there is some data loss

I believe that if drive-0 in the array returns a read error then the data is 
read from drive-1 and there is no data loss.  Of course if the drive returns 
bad data and claims it to be good data then you are stuffed.

 - one of the drives is failed out of the array

Yes.

 I assume there are repeated attempts at reading the bad block, before
 the above actions are triggerd.

Yes, this unfortunately causes things to block for a while...

 Hopefully these will trigger remapping
 at the firmware level before the above happens.

My experience is that IBM drives don't do this.  It could be done but would 
require more advanced drive firmware.

 Do you think there would be any benefit gained from burning in a
 new drive, perhaps by running fsck -c -c, in order to find marginal
 blocks and get them mapped out before the drive is put onto an array?

Maybe.

 What about doing this on a aray drive that has failed before
 attempting to remount it with raidhotadd.

Generally such a burn-in won't achieve any more benefit than just doing a 
new raidhotadd.  Although it has worked once for me and is something to keep 
in mind.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Squid 2

2003-04-18 Thread Andreas Krüger








Hello people.



I have just installed Squid 2 on my debian box and
started it.

However, it seems to not work, when I enter the
information in my browser for a proxy (gatekeeper.no-9.dk and 3125) then it
just says it has not any access to the proxy.



Could it be because I have not opened any ports in my
firewall? I just cannot see why it will not cache any homepages.



I would like, if some of you people could send me
your squid 2 conf. 



Thanks...





Andreas








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25-03-2003
 


Re: Squid 2

2003-04-18 Thread Thomas Lamy
Andreas Krüger wrote:
 Hello people.
 
 I have just installed Squid 2 on my debian box and started it.
 However, it seems to not work, when I enter the information in my
 browser for a proxy (gatekeeper.no-9.dk and 3125) then it just says
 it has not any access to the proxy.

 Could it be because I have not opened any ports in my firewall?
 I just cannot see why it will not cache any homepages.

 I would like, if some of you people could send me your squid 2 conf. 

You have to configure squid's access lists first.

Look into /etc/squid.conf, there's some comment near http_access deny any.


Thomas

PS: Don't use HTML on mailing lists...




Re: Squid 2

2003-04-18 Thread Kay-Michael Voit
-BEGIN PGP SIGNED MESSAGE-
Hash: MD5

AK Could it be because I have not opened any ports in my firewall?

If I understand you, this definitly seems to be the reason... When you
enter the information in your browser, you have to enter a port, too.
This port has to be open.
If you use the reject/drop-policy in iptables, set iptables -A INPUT -j LOG
as last rule. Everything which is dropped will be loggt then.

-BEGIN PGP SIGNATURE-
Version: 2.6

iQEVAwUAPp/V759LInC1Fu5pAQEd7Af/crIL3WnMJ4zt3ixNHwBSvTiNyQkzzXFK
WKS/QdUh97LWVD5d3dEN2Cpr3rHQJ2UaTYbuobRVf1zFktJN+AHOJQZjKGzAC/Sa
bQzjeV+OcF8aPvpFGlJasx2f5vjuFraGznZoOdAKbDxOy1YytxbBJ9JaY3KsDjZH
R297w6ohJp1s6r0aiDtrt/0bmgKYUuTFut3bwOranljKaHfcb9sUdyr8D7gvPJ1u
7pBK3ALewiNVToGaPBhOSh1+AKUykLRe61czIBV8tv84XiNa8ohoyNiZFXixm3cC
Xq08WWs0BjKT0DJiA2+gjVdbwJmS9nv9jsZO8INMzDAAbqRcRZnd2A==
=sWsK
-END PGP SIGNATURE-




Apache byte logging questions

2003-04-18 Thread dl

Hey folks!

I've got an interesting apache logging question that someone might be able to 
answer. I know this isn't an apache specific list, but someone might know. 

I maintain a server that hosts game files for another company. The company 
wants 
to know how many successful downloads of the game was completed - not just 
transfers that started but didn't complete.

I'm thinking the best way to pull out this info is to find each host in the 
logs, and combine the bytes transferred to see if it equals the size of the 
file.

Is there any easier way to do this? Has anyone ever dealt with such a situation 
before and can provide some advice?

Thanks in advance! 

-- DL




Re: Apache byte logging questions

2003-04-18 Thread Jon Wood
You could probably grep for partial content headers, and not include
them. Off the top of my head I can't think of the code though (201?).

Jon

On Fri, 2003-04-18 at 22:08, dl wrote:
 Hey folks!
 
 I've got an interesting apache logging question that someone might be able to 
 answer. I know this isn't an apache specific list, but someone might know. 
 
 I maintain a server that hosts game files for another company. The company 
 wants 
 to know how many successful downloads of the game was completed - not just 
 transfers that started but didn't complete.
 
 I'm thinking the best way to pull out this info is to find each host in the 
 logs, and combine the bytes transferred to see if it equals the size of the 
 file.
 
 Is there any easier way to do this? Has anyone ever dealt with such a 
 situation 
 before and can provide some advice?
 
 Thanks in advance! 
 
 -- DL
 




Re: Apache byte logging questions

2003-04-18 Thread dl

Looks like it's code 206. Thanks, this is a good place to start!


On 18 Apr 2003, Jon Wood wrote:

 You could probably grep for partial content headers, and not include
 them. Off the top of my head I can't think of the code though (201?).
 
 Jon
 
 On Fri, 2003-04-18 at 22:08, dl wrote:
  Hey folks!
  
  I've got an interesting apache logging question that someone might be able 
  to 
  answer. I know this isn't an apache specific list, but someone might know. 
  
  I maintain a server that hosts game files for another company. The company 
  wants 
  to know how many successful downloads of the game was completed - not just 
  transfers that started but didn't complete.
  
  I'm thinking the best way to pull out this info is to find each host in the 
  logs, and combine the bytes transferred to see if it equals the size of the 
  file.
  
  Is there any easier way to do this? Has anyone ever dealt with such a 
  situation 
  before and can provide some advice?
  
  Thanks in advance! 
  
  -- DL
  
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 




Re: Apache byte logging questions

2003-04-18 Thread Donovan Baarda
On Sat, 2003-04-19 at 07:08, dl wrote:
[...]
 I maintain a server that hosts game files for another company. The company 
 wants 
 to know how many successful downloads of the game was completed - not just 
 transfers that started but didn't complete.
 
 I'm thinking the best way to pull out this info is to find each host in the 
 logs, and combine the bytes transferred to see if it equals the size of the 
 file.
 
 Is there any easier way to do this? Has anyone ever dealt with such a 
 situation 
 before and can provide some advice?

Be aware that some evil download utilities do multiple simultaneous
partial download requests; ie request bytes 0-16K, bytes 16k-32k,
32k-48k etc all at once. They do this to steal more bandwidth in an
attempt to achieve a faster download. There may be multiple requests for
any partial downloads that did not complete.

This means many of those partial downloads may in fact be parts of a
successful download. When you factor in proxies obscuring the origin of
the request, not caching partial requests, or sometimes doing whole file
requests for a clients partial request, it becomes very hard to figure
out. Good luck.

-- 

Donovan Baardahttp://minkirri.apana.org.au/~abo/





Re: Privacy in virtual hosting environment

2003-04-18 Thread Paul Hampson
On Thu, Apr 17, 2003 at 03:42:03PM +0100, Darren Clark wrote:
 To lock down php scripts running in a virtual host you can use the
 open_basedir directive in the apache conf. This will ensure that no
 scripts running in the directory can read files outside of the specified
 directory. e.g
 
 php_value open_basedir  /home/vhost/vhostsite

Assuming you also lock down system() and other such commands...
This was discussed on this list recently (where I was taught a thing or
two. :-)

http://lists.debian.org/debian-isp/2003/debian-isp-200303/msg00237.html

-- 
---
Paul TBBle Hampson, MCSE
6th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.
 -- Kristian Wilson, Nintendo, Inc, 1989

This email is licensed to the recipient for non-commercial
use, duplication and distribution.
---


pgpxEdwVvEx3z.pgp
Description: PGP signature


someone knows what are the alternetive to make an Authenticate Gateway??

2003-04-18 Thread sebastian serrano
someone knows what are the alternetive to make an Authenticate Gateway??
or if it posible make PPPoE in ETHERNET  (not in ADSL) whit a linux server??


sorry my english, itn's my natural language.