Partisi cache di Proxy eror

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
chitoz

Partisi cache di Proxy eror

Post 03 Mar 2013, 17:04

Gan,..Bingung neh dengn Pertisi cache di Proxy squid Ubuntu
Ane bikin 5 partisi cache di proxy
/cache1 12Gb ext4
/cache2 12Gb ext4
/cache3 12Gb ext4
/cache4 12Gb ext4
/cache5 12Gb ext4

kenapa pas ane ketik
root@koskosan:/home/server# chown -R proxy.proxy /cache1
chown: cannot access `/cache1': No such file or directory
root@koskosan:/home/server#

Ini kenapa yaaa...???
sebelumnya ane googling format file buat cache di proxy ada yg pake (ext4,ReiserFS),..mohon bimbingannya..
Thanks sebelumnya..:)


User avatar
q_p
Contact:

Post 03 Mar 2013, 19:53

Kalau baca dari pesan error-nya

Code: Select all

root@koskosan:/home/server# chown -R proxy.proxy /cache1
chown: cannot access `/cache1': No such file or directory
perintah tsb tdk bisa dijalankan karena tdk ada dir /cache1.
Coba dulu dengan mencari informasi tentang keberadaan /cache1 dari langkah2 berikut :
1. Jalankan perintah di bawah ini dan hasilnya ada kopas di sini

Code: Select all

blkid
2. Buka file di bawah ini

Code: Select all

nano /etc/fstab
dan isinya anda kopas di sini.


User avatar
chitoz

Post 03 Mar 2013, 20:51

Pragola_Pati wrote:Kalau baca dari pesan error-nya

Code: Select all

root@koskosan:/home/server# chown -R proxy.proxy /cache1
chown: cannot access `/cache1': No such file or directory
perintah tsb tdk bisa dijalankan karena tdk ada dir /cache1.
Coba dulu dengan mencari informasi tentang keberadaan /cache1 dari langkah2 berikut :
1. Jalankan perintah di bawah ini dan hasilnya ada kopas di sini

Code: Select all

blkid
2. Buka file di bawah ini

Code: Select all

nano /etc/fstab
dan isinya anda kopas di sini.
root@koskosan:/home/server# blkid
/dev/sda1: UUID="3fd68831-8c40-4392-8abc-0ff1416a1bb9" TYPE="ext4"
/dev/sda5: UUID="1f8b26e1-a176-4372-b61b-ed92fab95d50" TYPE="ext4"
/dev/sda6: UUID="75bfa7ca-e526-4ec7-810f-d99f934ce2bc" TYPE="ext4"
/dev/sda8: UUID="fca770cf-e9f2-4bdf-b75b-5172f2ca03f3" TYPE="ext4"
/dev/sda9: UUID="d7e9a9bf-fcf8-4765-b6c1-101d82281e52" TYPE="ext4"
/dev/sda10: UUID="550018fe-4732-4c5b-a17a-e5935d3e7b7a" TYPE="ext4"
/dev/sda11: UUID="571d3ef4-c117-4281-a5c8-9e2e695298da" TYPE="ext4"
/dev/sda12: UUID="d96dd631-3589-4ee8-9f87-1b80228d5157" TYPE="ext4"
/dev/sda13: UUID="C043-B97C" TYPE="vfat"
/dev/sda14: UUID="651fb98a-ab0d-4dd9-b212-8b02e316dcfc" TYPE="ext4"
root@koskosan:/home/server# nano /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda14 during installation
UUID=651fb98a-ab0d-4dd9-b212-8b02e316dcfc / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=3fd68831-8c40-4392-8abc-0ff1416a1bb9 /boot ext4 defaults 0 2

Apa salah pas partisi pd waktu intalasi..?
Thanks responnya...:)


User avatar
q_p
Contact:

Post 03 Mar 2013, 21:18

chitoz wrote:Apa salah pas partisi pd waktu intalasi..?
Iya kayaknya, anda lupa menentukan mount-point pada masing2 dir /cache#
Terbukti yang ter-mounting hanya sda1 dan sda14, seperti dalam file fstab anda

Code: Select all

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda14 during installation
UUID=651fb98a-ab0d-4dd9-b212-8b02e316dcfc / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=3fd68831-8c40-4392-8abc-0ff1416a1bb9 /boot ext4 defaults 0 2
Masalahnya diantara sda## yang di bawah ini =

Code: Select all

/dev/sda5: UUID="1f8b26e1-a176-4372-b61b-ed92fab95d50" TYPE="ext4" 
/dev/sda6: UUID="75bfa7ca-e526-4ec7-810f-d99f934ce2bc" TYPE="ext4" 
/dev/sda8: UUID="fca770cf-e9f2-4bdf-b75b-5172f2ca03f3" TYPE="ext4" 
/dev/sda9: UUID="d7e9a9bf-fcf8-4765-b6c1-101d82281e52" TYPE="ext4" 
/dev/sda10: UUID="550018fe-4732-4c5b-a17a-e5935d3e7b7a" TYPE="ext4" 
/dev/sda11: UUID="571d3ef4-c117-4281-a5c8-9e2e695298da" TYPE="ext4" 
/dev/sda12: UUID="d96dd631-3589-4ee8-9f87-1b80228d5157" TYPE="ext4" 
/dev/sda13: UUID="C043-B97C" TYPE="vfat"
yang mana saja yang anda siapkan untuk dir /cache# ?
BTW, untuk apa dir cache sebanyak itu kalau semuanya di dalam satu HDD. Peraturan nomor satu dalam Squid "1 HDD hanya untuk 1 dir cache".


User avatar
chitoz

Post 03 Mar 2013, 21:27

berarti harus di install lg dan partisi ulang..?

sda8 - sda12 yg untuk dir /cache

klo di tanya untuk apa ngga bisa jawab juga gan,.karena ane cuman baca2 toturial di forum2 aja..kira2 mana yg paling pas buat cache nya..
Thanks infonya gan


User avatar
q_p
Contact:

Post 03 Mar 2013, 21:31

#tambahan dikit mas
Coba anda jalankan perintah di bawah ini dan hasilnya di kopas di sini mas

Code: Select all

fdisk -l


User avatar
chitoz

Post 03 Mar 2013, 21:34

root@koskosan:/home/server# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d435b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 122 975872 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 122 9730 77172737 5 Extended
/dev/sda5 609 1216 4881408 83 Linux
/dev/sda6 1216 1824 4881408 83 Linux
/dev/sda7 1824 2067 1951744 82 Linux swap / Solaris
/dev/sda8 2067 3526 11717632 83 Linux
/dev/sda9 3526 4985 11717632 83 Linux
/dev/sda10 4985 6444 11717632 83 Linux
/dev/sda11 6444 7903 11717632 83 Linux
/dev/sda12 7903 9362 11717632 83 Linux
/dev/sda13 9362 9730 2955264 b W95 FAT32
/dev/sda14 122 609 3906560 83 Linux

Partition table entries are not in disk order


User avatar
q_p
Contact:

Post 03 Mar 2013, 22:07

chitoz wrote:klo di tanya untuk apa ngga bisa jawab juga gan,.karena ane cuman baca2 toturial di forum2 aja..kira2 mana yg paling pas buat cache nya..
Langsung ke sumber-nya mas = http://www.squid-cache.org/Intro/

Dengan membaca hasil dari fdisk -l dan atas dasar volume block, kemungkinan besar yang anda siapkan untuk dir /cache## adalah

[spoiler]

Code: Select all

/dev/sda8 2067 3526 11717632 83 Linux
/dev/sda9 3526 4985 11717632 83 Linux
/dev/sda10 4985 6444 11717632 83 Linux
/dev/sda11 6444 7903 11717632 83 Linux
/dev/sda12 7903 9362 11717632 83 Linux
Jika betul demikian lakukan tahap2 berikut =
1. Buat mount-point masing2 dir /cache##

Code: Select all

mkdir /home/cache1
mkdir /home/cache2
mkdir /home/cache3
mkdir /home/cache4
mkdir /home/cache5
2. Edit file fstab menjadi seperti

Code: Select all

#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda14 during installation
UUID=651fb98a-ab0d-4dd9-b212-8b02e316dcfc / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=3fd68831-8c40-4392-8abc-0ff1416a1bb9 /boot ext4 defaults 0 2
##tambahkan di sini
#/dev/sda8
UUID=fca770cf-e9f2-4bdf-b75b-5172f2ca03f3	/home/cache1	ext4	default		0	2 
#/dev/sda9
UUID=d7e9a9bf-fcf8-4765-b6c1-101d82281e52	/home/cache2	ext4	default		0	2
#/dev/sda10
UUID=550018fe-4732-4c5b-a17a-e5935d3e7b7a	/home/cache3	ext4	default		0	2
#/dev/sda11
UUID=571d3ef4-c117-4281-a5c8-9e2e695298da	/home/cache4	ext4	default		0	2
#/dev/sda12
UUID=d96dd631-3589-4ee8-9f87-1b80228d5157	/home/cache5	ext4	default		0	2
3. Terakhir update fstab (mount all) dengan perintah

Code: Select all

mount -a
[/spoiler]
cmiiw :)


User avatar
chitoz

Post 03 Mar 2013, 22:21

Thanks gan,..coba dulu..:)


User avatar
chitoz

Post 03 Mar 2013, 22:41

[quote]Jika betul demikian lakukan tahap2 berikut =
1. Buat mount-point masing2 dir /cache##

Code: Select all

mkdir /home/cache1
mkdir /home/cache2
mkdir /home/cache3
mkdir /home/cache4
mkdir /home/cache5[/quote] 
root@koskosan:/home/server# squid -z
2013/03/03 22:26:21| Creating Swap Directories
FATAL: Failed to make swap directory /cache1: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache2: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache3: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache4: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache5: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
root@koskosan:/home/server#


User avatar
q_p
Contact:

Post 03 Mar 2013, 22:42

Sama2 mas :)
Setelah yang di atas selesai, lanjutkan dengan merubah ownership-nya seperti pada postingan anda yang paling atas dengan sedikit perubahan path

Code: Select all

chown -R proxy.proxy /home/cache1
dst...
dst...


User avatar
chitoz

Post 03 Mar 2013, 22:47

udah ane
chown -R proxy.proxy /home/cache1
dst...
dst...

selanjutnya
root@koskosan:/home/server# squid -z

eror kaya di atas


User avatar
q_p
Contact:

Post 03 Mar 2013, 22:53

pesan eror-nya apa ? coba anda pastekan di sini :)


User avatar
chitoz

Post 03 Mar 2013, 22:54

root@koskosan:/home/server# squid -z
2013/03/03 22:26:21| Creating Swap Directories
FATAL: Failed to make swap directory /cache1: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache2: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache3: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache4: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache5: (13) Permission denied
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 2544 KB
Page faults with physical i/o: 0
root@koskosan:/home/server#


User avatar
q_p
Contact:

Post 03 Mar 2013, 22:56

chitoz wrote:FATAL: Failed to make swap directory /cache1: (13) Permission denied
dalam squid.conf, path dir /cache yang harus anda rubah/sesuaiakan dengan ya baru (/home/cache1 ... dst... dst)


User avatar
chitoz

Post 03 Mar 2013, 22:59

oh iya,..hehhe,..:)
Thanks gan


Post Reply

Who is online

Users browsing this forum: No registered users and 73 guests