BolPoint.wordpress.com

December 11, 2011

Menambah hardisk baru di squid untuk cache_dir

Filed under: Linux — bolpoint @ 5:58 am

1. pasang hardiks di mesin komputer

2. #apt-get install gparted

berfungsi untuk menginstall partition editor di mesin linux

3. buat partiton beru di linux pilih format reiserfs besar partisi 6 Gb karena alokasi untuk cache_dir 4 Gb

4. tambahkan dir di cache squid

#mkdir /var/spool/squid-1

#chown -R proxy.proxy /var/spool/squid-1

5. tambahkan baris di /etc/fstab

/dev/sdb1 /var/spool/squid-1 reiserfs defaults 0 0

#berfungsi untuk mounting otomatis

6. tambahkan baris baru di squid.conf

cache_dir aufs /var/spool/squid-1 4096 9 256

7. #/etc/init.d/squid stop

#/usr/sbin/squid -z

#/etc/init.d/squid start

NB: untuk melihat UUID dan jenis partisi di Linux gunakan perintah #blkid

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: