Search squid archive

Problem when adding another hard disk.. squid cannot create any files or dir on another hard disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I add anohter disk for cache
here is what i have done

1. mkfs.ext3 /dev/sda1
2. add the following line to /etc/fstab
   /dev/sda1               /mnt/cache2             ext3    defaults        1 2
3. add the following to /etc/squid/squid.conf
   cache_dir ufs /mnt/cache2  270000 16 256
4. squid -z
   #dir /mnt/cache2
    Lost+found
    No files are created
5. service squid start
init_cache_dir /mnt/cache2... Starting squid: /etc/init.d/squid: line
53:  2766 Aborted                 $SQUID $SQUID_OPTS
>>/var/log/squid/squid.out 2>&1
                                                           [FAILED]
6. To trace what happened.... i tail /var/log/squid/squid.out
    Here is squid.out error message

FATAL: Failed to make swap directory /mnt/cache2: (13) Permission denied
Squid Cache (Version 2.6.STABLE6): Terminated abnormally.
CPU Usage: 0.002 seconds = 0.000 user + 0.002 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: cache_dir /mnt/cache2: (13) Permission denied
Squid Cache (Version 2.6.STABLE6): Terminated abnormally.
CPU Usage: 0.006 seconds = 0.001 user + 0.005 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0

I think squid cannot create any files in /mnt/cache2
It is mount problem

My problem is i dont know how to mount /mnt/cache2 as squid user
If i can mount /mnt/cache2 as squid, the problem should be OK
My cache_effective_user is squid and cache_effective_group also squid



Mr. Crack007

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux