Use raw disk for Apache Trafficserver in Centos 7
I want to use raw disk for my Trafficserver 5.1.0. I've created a partition at /dev/sda5 and in order to allow trafficserver to use the disk, please follow these steps.
1) Edit/create a file in /etc/udev/rules.d . I named it 50-ats.rules
eg. vi /etc/udev/rules.d/50-ats.rules
2) Add these text.
SUBSYSTEM=="block", KERNEL=="sda5", GROUP:="trafficserver", OWNER:="nobody"
note :
- sda5 is the disk/partition I want to use with trafficserver.
- OWNER:="nobody" is the default owner when you compile trafficserver.
3) Reboot your server then verify the disk cache is working by checking in the /usr/local/var/log/trafficserver/diags.log file and look for "cache enabled" meaning your disk cache is working. Or you can run tstop or traffic_top and you can see the "Disk Total" is the size of your disk cache.
Good luck trying.
1) Edit/create a file in /etc/udev/rules.d . I named it 50-ats.rules
eg. vi /etc/udev/rules.d/50-ats.rules
2) Add these text.
SUBSYSTEM=="block", KERNEL=="sda5", GROUP:="trafficserver", OWNER:="nobody"
note :
- sda5 is the disk/partition I want to use with trafficserver.
- OWNER:="nobody" is the default owner when you compile trafficserver.
3) Reboot your server then verify the disk cache is working by checking in the /usr/local/var/log/trafficserver/diags.log file and look for "cache enabled" meaning your disk cache is working. Or you can run tstop or traffic_top and you can see the "Disk Total" is the size of your disk cache.
Good luck trying.
Comments