ipanfs

command
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

README

ipanfs - Cache Panasas user/group quotas

ipanfs is a simple program to cache user/group quotas from Panasas and allow users to query them using the iquota client. This program is meant to be run via cron and will connect to panfs via ssh and run the userquota usage command and cache the results in redis.

Install

First create an environment file /etc/iquota/ipanfs.env:

# Path to where you have panasas mounted
IPANFS_PREFIX=/panasas
# IP and Port of panasas server
IPANFS_ADDRESS=10.1.1.1:22
# SSH Username 
IPANFS_USER=guest
# SSH Password 
IPANFS_PASSWORD=xxx
# Path to ssh key 
IPANFS_KEY=/path/to/ssh/key
# Time in seconds to expire records in redis
IPANFS_EXPIRE=500

Then setup to run in cron:

0 5 * * * . /etc/iquota/ipanfs.env; /usr/local/bin/ipanfs

Documentation

Overview

cache panfs user and group quotas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL