RE: Upgrading from squid v1.1.* to squid v1.2-beta18 ...

From: Armistead, Jason <ARMISTEJ@dont-contact.us>
Date: Wed, 15 Apr 1998 00:48:00 -0400

From: Henrik Nordstrom[SMTP:hno@hem.passagen.se]
Sent: Monday, 6 April 1998 9:46
Subject: Re: Upgrading from squid v1.1.* to squid v1.2-beta18 ...

Henny Bekker wrote:

> Is it necessary to clear the cache, or is it possible to reuse
> the objectsin the cache by removing the squid log (index) file??

There is no upgrade path to save your cache when upgrading from 1.1.X to
1.2. Both the store log and cache file format has changed.
----------

There is one slightly possible path which I've thought of, but it requires
twice the amount of disk.

1. Install the 1.2.x (new) version of Squid separately from the 1.1.x (old)
version (different TCP ports and/or machines)

2 Configure the new squid with a separate cache directory area (this is why
2 * disk space required)

3. Configure the new squid to use the old squid as a sibling (I think this
is right - read on astute users). Also allow the OLD squid to accept ICP
requests from the NEW squid (in case this isn't done already)

4. Take a copy of the OLD squid store.log and put it somewhere safe.

5. Write some Perl to parse the SAVED store.log and then *reverse* fetch the
objects that are in it (e.g. using WGET) from the NEW squid (that way it
will check the OLD one first, and if the object exists, get it from there -
therefore no upstream network bandwidth lost) When it gets to the "end" of
the in-cache objects, or when a good deal of the NEW cache is full (disk
space %, or # of objects stored), just quit the process. Alternatively, the
cachemgr.cgi output reveals the stored objects too. This might be better
than store.log to process (I really don't know)

This is just a thought, please correct me if anyone has other ideas or can
see a major failing in my way of thinking. Maybe a quick source code hack
to prevent the OLD squid (now the sibling) from both fetching new objects,
and from expiring existing ones, would keep the cache consistent throughout
this operation. It depends on what your users are doing while all this is
going on....

Cheers and good luck

Jason

begin 600 winmail.dat
M>)\^(@H$`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<`
M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````S@<$``\`
M```P`````P`;`0$@@`,`#@```,X'!``/````(@`(``,`%0$!"8`!`"$````Q
M0SDP,3@R1D)"0T5$,3$Q.4(P.#`P,#!&.#`S-3@P,0#S!@$$@`$`.0```%)%
M.B!5<&=R861I;F<@9G)O;2!S<75I9"!V,2XQ+BH@=&\@<W%U:60@=C$N,BUB
M971A,3@@+BXN`'81`0V`!``"`````@`"``$#D`8`I`D``"$```!``#D``("$
MJBEHO0$#`#8```````,`)@``````'@!P``$````U````57!G<F%D:6YG(&9R
M;VT@<W%U:60@=C$N,2XJ('1O('-Q=6ED('8Q+C(M8F5T83$X("XN+@`````"
M`7$``0```!L````!O6#LSHM8=9&4S,`1T9J.`*`DHZ?'`<Y>99,`'@`Q0`$`
M```5````05535$Q!3BU!55-44$\M3UI--#0``````P`:0``````>`#!``0``
M`!4```!!55-43$%.+4%54U103RU/6DTT-``````#`!E```````L`!0``````
M"P`U```````+``8,``````L`%PP`````"P`"#``````"`0D0`0````L&```'
M!@``<@D``$Q:1G7(*OQ>AP`*`0T#0W1E>'0!]_\"I`/D!>L"@P!0`O,&M`*#
M)C(#Q0(`8V@*P'-EV'0P(`<3`H!]"H`(SS\)V0*`"H0+-Q+"`=`@1LT#83H#
M,`&1($@)\`401FL'L`6P9'-T`V%;`%--5%`Z:&YO8$!H96TN"K`$$&'J9PGP
M+A.@70JC"H`&8`L",!@530(@9&%Y+#0@-A/@<`40`R`Q.8`Y."`Y.C0V&R:8
M=6)J!9`;QE)E&!`D57`)P&%D"X!G(`$#4B!S<75I9"`(=C$N(,`J('1OD2!(
M,BUB$[!A,1UP'BXB<!LE&R48@6YY()!"96MK!)`@=P-@10[P.B*L/B!)!"!I
MW05`;@60!Y`:D'(CP"$AZ&-L90K!=!H@)M``T)\:(!R@!;$$`"72<&\$$-YI
M`F`G8"$A%4!U$Z`E)STG0F\>8P"0`Z`G1R!B]R/`%4`$8'8?PB="(%04T,T?
MX"@+@`$`>"D?\`,0Z&4_/R*L5!H@%4`H$OD9\"!U'W,G8`JP)T`A$[1A=B=@
M>0AA*S5W&B#O`Z`OQ!_'(,)8(1$;)2'!_BXCT"1P,'$L<B$@+S$M`O\`<""0
M*T0MPA_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@A;54C(@#_@X$"0"0A:*$#H&`X9()]U+]3
M\DS!02`CP%R!7%%K&?#_0B`XKDTT?.-+`#QU'*`+4/\G`%(A!:%,,D>0+T$_
M4`!P_S$0.B$VTC11)"$@@(FA)^)?)X"$80G@2O$`P&H%L6;W"W!3LRK1;2/`
M;$)?(U11^Q_!5N%-'("#D4L`(&%M,?]7,`AP/F$%H#`1$W!M,H4R_V<!/Q%7
MS$'P5Y53A6J5!N#_,&%G@Q_"2A)W!S5R(`,/`/YP/>`?PF^S'\(Z$7`!<P#_
M>B`@D"000W`J^06@`($9,/^1U`-@/*&`852$7N`$D'[!^P(@5N%)7&%#<'6Q
M.?(QL?\VH3$35H-HXUR`'\([P2CAOT$4331X,)>$(G$BG4,:(+^=@S6!>#,*
M0&TP(JQ*&G`+`B`;)7VD$`!``$@``("$JBEHO0$"`?D_`0```&``````````
MW*=`R,!"$!JTN0@`*R_A@@$`````````+T\]551#+T]5/4]44T=004](42]#
M3CU-4R!-04E,(%)%0TE0245.5%,@,2]#3CU!55-43$%.+4%54U103RU/6DTT
M-``>`/@_`0```!$```!!<FUI<W1E860L($IA<V]N`````!X`.$`!````%0``
M`$%54U1,04XM05535%!/+4]:330T``````(!^S\!````8`````````#<IT#(
MP$(0&K2Y"``K+^&"`0`````````O3SU55$,O3U4]3U131U!!3TA1+T-./4U3
M($U!24P@4D5#25!)14Y44R`Q+T-./4%54U1,04XM05535%!/+4]:330T`!X`
M^C\!````$0```$%R;6ES=&5A9"P@2F%S;VX`````'@`Y0`$````5````0553
M5$Q!3BU!55-44$\M3UI--#0`````0``',)"%^;HG:+T!0``(,-`C&+LG:+T!
M'@`]``$````%````4D4Z(``````>`!T.`0```#4```!5<&=R861I;F<@9G)O
M;2!S<75I9"!V,2XQ+BH@=&\@<W%U:60@=C$N,BUB971A,3@@+BXN``````L`
M*0``````"P`C```````#``80]ZKRB0,`!Q!3!@```P`0$``````#`!$0````
M`!X`"!`!````90```$923TTZ2$5.4DE+3D]21%-44D]-4TU44#I(3D]`2$5-
M4$%34T%'14Y315-%3E0Z34].1$%9+#9!4%))3#$Y.3@Y.C0V4U5"2D5#5#I2
=13I54$=2041)3D=&4D]-4U%52416,3$`````(<<=
`
end
Received on Tue Apr 14 1998 - 21:52:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:42 MST