Re: Expanding Disk Space

From: Mike Shoyher <msh@dont-contact.us>
Date: Tue, 16 Sep 1997 14:59:14 +0400

At 23:04 15.09.97 +0200, you wrote:
>Hi,
>
>can someone point me or send me an script /documentation for expanding
>hard disk space WITHOUT losing my cache? I know this has been discussed
>but I could not find it.
>

Example: Let you have 8 Mb cache in 16 cache dirs (00 .. 0F) on one disk
and want to add another 8 Gb disk

1. Mount second disk
2. Stop squid
3. Move 8 dirs to second disk
4. Make symlinks to emulate 8 moved dirs on their old location
5. Increase cache size in squid.conf
6. Start squid

here is ls of my cache disk storage:

drwxr-xr-x 66 nobody nogroup 1024 Feb 12 1997 00
drwxr-xr-x 66 nobody nogroup 1024 Feb 12 1997 01
drwxr-xr-x 66 nobody nogroup 1024 Feb 12 1997 02
drwxr-xr-x 66 nobody nogroup 1024 Feb 12 1997 03
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 04 -> /.5/http-proxy/04
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 05 -> /.5/http-proxy/05
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 06 -> /.5/http-proxy/06
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 07 -> /.5/http-proxy/07
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 08 -> /.4/http-proxy/08
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 09 -> /.4/http-proxy/09
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0A -> /.4/http-proxy/0A
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0B -> /.4/http-proxy/0B
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0C -> /.6/http-proxy/0C
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0D -> /.6/http-proxy/0D
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0E -> /.6/http-proxy/0E
lrwxr-xr-x 1 nobody nogroup 17 Sep 12 18:46 0F -> /.6/http-proxy/0F

As you see storage is splitted on 4 disks

-

Mike Shoyher [MSH1-RIPE] msh@corbina.net

Corbina Telecom
ph. +7 095 755 5648
fax +7 095 371 9205
Received on Tue Sep 16 1997 - 04:10:37 MDT

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