Re: [squid-users] Use cache dir in different server
Em 01-01-2010 23:27, Landy Landy escreveu: Hello. Happy new year to all. I am replacing a server I currently have with squid 3.0.20 to another box with a bigger hard drive. Right now I have about 40GB of cache that would like to move to the new server. My question is: can I just copy /var/log/squid/cache ( cache_dir aufs /var/log/squid/cache 4 64 255 ) to a different hard drive? and if the new hard drive's config is: cache_dir aufs /var/log/squid/cache 10 64 255. This one 100GB for cache. Would I have problems putting the 40GB cache on to the 100GB? Thanks in advanced for your help. About to put your /var/log/squid/cache in to another drive, you can. Just make sure that you will conserve all permissions (use tar to store the files, and extract then on the other drive). About change cache_dir entry from 40GB to 100GB, I did something like this, and my cache wasn't loose. I THINK that you can do this. (Sorry by my poor english)
Re: [squid-users] 2 cache_dir on the same squid server ?
Em 27-12-2009 14:17, Hung Nguyen escreveu: hello folks, Can I specify 2 cache_dir directives for one squid server? I meant two cache_dir on 2 different disk to avoid disk failure ? Thanks! Yes, you can. You can specify how many cache_dir's you want, each in the same partition, or in different partition or even in a different drive. But, it will not avoid problems if you have a disk failure. If the squid process try to write in a cache_dir, and this is not available (imagine that your drive is down, due to a failure), it will crash... But why are you worried about a failure? Are your disks failling?
Re: [squid-users] 2 cache_dir on the same squid server ?
Em 27-12-2009 15:02, Hung Nguyen escreveu: Jefferson Diego wrote: Em 27-12-2009 14:17, Hung Nguyen escreveu: hello folks, Can I specify 2 cache_dir directives for one squid server? I meant two cache_dir on 2 different disk to avoid disk failure ? Thanks! Yes, you can. You can specify how many cache_dir's you want, each in the same partition, or in different partition or even in a different drive. But, it will not avoid problems if you have a disk failure. If the squid process try to write in a cache_dir, and this is not available (imagine that your drive is down, due to a failure), it will crash... But why are you worried about a failure? Are your disks failling? Thank for reply, No, I just plan for a bad day. Do you have any advice for me in this situation: 2 cache_dir on different disk is better or just one cache_dir on a disk with just one partition in it? Ok... about the event of a bad day with your disks, I think that the right thing is to write a kind of daemon script to analyse the availabity of partitions, and if some of them are down, rewrite squid.conf without it and restart squid quickly. And about your situation, 2 or more cache_dir on different disk are better, 'cause the squid process can parallelize I/O requests, improving the transfer performance. (And sorry if I said some incompreensible thing, 'cause I'm brazilian and I still have a poor english)
Re: [squid-users] site blank
Em 20-12-2009 18:24, roberto palmarin escreveu: Dear all ,I got problem to access http://www.antefatto.it through proxy (site can be accessed without proxy). The Browser remain blank. the server is: CentOS release 5.4 (Final) the version of squid is squid-2.6.STABLE21-3.el5 i found only this message in the acces.log 10.3.4.11 TCP_MISS/200 358 GET=0Ahttp://antefatto.ilcannocchiale.it/glamware/blogs/blog.aspx? - DIRECT/151.1.189.219 How can I fix it? Thanks a lot for your kind help. /roby Try something like: squidclient -m PURGE http://www.antefatto.it/
Re: [squid-users] Trying to cache Google Earth content with URL rewrite
Em 17-12-2009 12:47, Jeremy LeBeau escreveu: I am trying to use the Store URL Rewrite feature to allow a squid server to cache Google Earth content for a low bandwidth installation. When I make the changes in the docs (http://wiki.squid-cache.org/Features/StoreUrlRewrite), squid crashes after starting. From the log, it appears that the helper as written is causing problems. Any suggestions as to what is wrong? Here is the info that I get in the log after startup: 2009/12/17 08:42:01| Starting Squid Cache version 2.7.STABLE6 for amd64-debian-linux-gnu... 2009/12/17 08:42:01| Process ID 1691 2009/12/17 08:42:01| With 1024 file descriptors available 2009/12/17 08:42:01| Using epoll for the IO loop 2009/12/17 08:42:01| DNS Socket created at 0.0.0.0, port 56901, FD 6 2009/12/17 08:42:01| Adding domain IonaGroup.local from /etc/resolv.conf 2009/12/17 08:42:01| Adding domain IonaGroup.local from /etc/resolv.conf 2009/12/17 08:42:01| Adding nameserver 192.168.3.1 from /etc/resolv.conf 2009/12/17 08:42:01| helperOpenServers: Starting 5 'store_url_rewrite' processes /usr/local/squidhelper/store_url_rewrite: 1: $: not found /usr/local/squidhelper/store_url_rewrite: 1: =: not found /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ) unexpected 2009/12/17 08:42:01| User-Agent logging is disabled. 2009/12/17 08:42:01| Referer logging is disabled. /usr/local/squidhelper/store_url_rewrite: 1: $: not found /usr/local/squidhelper/store_url_rewrite: 1: =: not found /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ) unexpected /usr/local/squidhelper/store_url_rewrite: 1: $: not found 2009/12/17 08:42:01| logfileOpen: opening log /var/log/squid/access.log /usr/local/squidhelper/store_url_rewrite: 1: =: not found /usr/local/squidhelper/store_url_rewrite: 1: /usr/local/squidhelper/store_url_rewrite: 3: $: not foundSyntax error: ) unexpected /usr/local/squidhelper/store_url_rewrite: 1: =: not found /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ) unexpected /usr/local/squidhelper/store_url_rewrite: 1: $: not found /usr/local/squidhelper/store_url_rewrite: 1: =: not found /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ) unexpected 2009/12/17 08:42:01| Unlinkd pipe opened on FD 16 2009/12/17 08:42:01| Swap maxSize 102400 + 8192 KB, estimated 8507 objects 2009/12/17 08:42:01| Target number of buckets: 425 2009/12/17 08:42:01| Using 8192 Store buckets 2009/12/17 08:42:01| Max Mem size: 8192 KB 2009/12/17 08:42:01| Max Swap size: 102400 KB 2009/12/17 08:42:01| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2009/12/17 08:42:01| logfileOpen: opening log /var/log/squid/store.log 2009/12/17 08:42:01| Rebuilding storage in /var/spool/squid (DIRTY) 2009/12/17 08:42:01| Using Least Load store dir selection 2009/12/17 08:42:01| Set Current Directory to /var/spool/squid 2009/12/17 08:42:01| Loaded Icons. 2009/12/17 08:42:01| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 18. 2009/12/17 08:42:01| Accepting ICP messages at 0.0.0.0, port 3130, FD 19. 2009/12/17 08:42:01| HTCP Disabled. 2009/12/17 08:42:01| WCCP Disabled. 2009/12/17 08:42:01| Ready to serve requests. 2009/12/17 08:42:01| WARNING: store_rewriter #1 (FD 7) exited 2009/12/17 08:42:01| WARNING: store_rewriter #2 (FD 8) exited 2009/12/17 08:42:01| WARNING: store_rewriter #3 (FD 9) exited 2009/12/17 08:42:01| Too few store_rewriter processes are running FATAL: The store_rewriter helpers are crashing too rapidly, need help! Squid Cache (Version 2.7.STABLE6): Terminated abnormally. CPU Usage: 0.020 seconds = 0.000 user + 0.020 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): total space in arena:2380 KB Ordinary blocks: 2321 KB 5 blks Small blocks: 0 KB 1 blks Holding blocks: 396 KB 1 blks Free Small blocks: 0 KB Free Ordinary blocks: 58 KB Total in use:2717 KB 98% Total free:59 KB 2% Edit your /usr/local/squidhelper/store_url_rewrite, and add '#! /usr/bin/perl' (without quotes) as it's first line. (Sorry by my english. I'm brazilian)
Re: [squid-users] questions on squid cache
Em 18-11-2009 12:16, Melanie Pfefer escreveu: hi I have in squid.conf cache_dir ufs /var/squid/var/cache 100 16 256 I would like to know: 1. if the squid cache is stored on disk or RAM 2. if I can reach a point where cache is full 3. How can I remove cache older than 1 week (same logic as log rotation) thanks in advance 1. Both. This line is about the cache stored on disk, but the squid also has a cache on memory, that you can set in a line like cache_mem 128 MB 2. I did not understand... what? 3. Your old cache is removed by the refresh pattern. Look this: refresh_pattern -i \.jpg$ 10080 90% 10080 It means that every file ending with jpg will stay on the cache 1 week (10080 minutes). (Sorry by me english... I'm brazilian...)
Re: [squid-users] squid 3.0
Em 21-09-2009 14:04, vikas rawat escreveu: Hi, I am using squid2.6.STABLE6-3.el5 on RHEL5.0, want to update with squid-3.0.STABLE9. could you guide me how to do that. 1. Shoudl i remove squid2.6 first and then install squid3.0. ? 2. Or should install squid3.0 w/o remove squid2.6. ? 3. Can i have both? 4. Is there any other best alternate. squid2.6 is working fince but facing problem to connecting FTP sites on IE7 and authentication with Active Directory. Thanks, Vikas 1. Not really. You can install squid3.0 in another directory (not in /usr/bin) and keep squid2.6... 2. You decide... 3. Yes, you can.
Re: [squid-users] squid 2.7 ignore-no-store
Em 04-09-2009 03:53, Chudy Fernandez escreveu: ignore-no-store has been removed in 2.7? Yes. This option has removed
Re: [squid-users] squid (without transparent mode) + Gateway + Authentication on same machine, is it possible ?
Em 04-09-2009 07:16, Sachin Malave escreveu: I have configured Squid as transparent proxy server same machine is working as gateway also. I found that authentication is not possible in transparent mode. Is there a way to configure squid at same gateway without transparent mode but should support authentication. Thank you sachinm (I will advise that I'm brazilian, so sorry my poor english) Man, this is impossible! In transparent mode, the browser don't know that there is a proxy. How can you call functions to authenticate in a thing that you don't know that exists? (understand that is impossible?) You need to choose: Transparent OR authentication. Or, you have another option: Use forced proxy (redirect you 80 port to 3128). Your computer is the gateway so, if you use forced mode, everyone that try to access the internet will see a proxy error, (and so, is forced to enter in options and put the proxy address).