项目作者: MOZGIII

项目描述 :
open-iscsi/targted packaged for debian & shipped via ubuntu ppa
高级语言: Python
项目地址: git://github.com/MOZGIII/targetd-debian.git
创建时间: 2018-01-06T01:22:52Z
项目社区:https://github.com/MOZGIII/targetd-debian

开源协议:GNU General Public License v3.0

下载


targetd logo

Remote configuration of a LIO-based storage appliance

targetd turns Linux into a remotely-configurable storage appliance. It
supports an HTTP/jsonrpc-2.0 interface to let a remote administrator
allocate volumes from an LVM volume group, and export those volumes
over iSCSI. It also has the ability to create remote file systems and export
those file systems via NFS/CIFS (work in progress).

targetd’s sister project is libStorageManagement,
which allows admins to configure storage arrays (including targetd) in an array-neutral manner.

targetd development

targetd is licensed under the GPLv3. Contributions are welcome.

NOTE: targetd is STORAGE-RELATED software, and may be used to
remove volumes and file systems without warning from the resources it is
configured to use. Please take care in its use.

Getting Started

targetd has these Python library dependencies:

All of these are available in Fedora Rawhide.

Configuring targetd

A configuration file may be placed at /etc/target/targetd.yaml, and
is in YAML format. Here’s
an example:

  1. user: "foo" # strings quoted, or not
  2. password: bar
  3. ssl: false
  4. target_name: iqn.2003-01.org.example.mach1:1234
  5. block_pools: [vg-targetd/thin_pool, vg-targetd-too/thin_pool]
  6. fs_pools: [/mnt/btrfs]

targetd defaults to using the “vg-targetd/thin_pool” volume group and thin
pool logical volume, and username ‘admin’. The admin password does not have a
default — each installation must set it.

Then, in the root of the source directory, do the following as root:

  1. # export PYTHONPATH=`pwd`
  2. # ./scripts/targetd`

client.py is a basic testing script, to get started making API calls.