Erinevus lehekülje "LIO iSCSI target" redaktsioonide vahel

Allikas: Kuutõrvaja
16. rida: 16. rida:
 
IBLOCK emulates SCSI devices on top of block devices such as LVM logical volume.
 
IBLOCK emulates SCSI devices on top of block devices such as LVM logical volume.
  
Paigaldamine Ubuntu/Debian keskkonnas.
+
===Paigaldamine Ubuntu/Debian keskkonnas.===
  
 
  $ sudo apt-get install --no-install-recommends targetcli python-urwid
 
  $ sudo apt-get install --no-install-recommends targetcli python-urwid
 
  $ sudo reboot
 
  $ sudo reboot
  
Kasutamine
+
===Paigaldamine Gentoos===
 +
 
 +
# emerge sys-block/targetcli
 +
 
 +
===Kasutamine===
  
 
  $ targetcli
 
  $ targetcli

Redaktsioon: 13. juuni 2012, kell 12:54

Wikipedia andmeil tundub LIO olevat upstream kernelis sees juba miskist 2010. aastast ja projekti enda lehel on väidetud, et alates 2.6.38-st on LIO Linuxi standardne iSCSI target (STGT asemel).

  • http://www.youtube.com/watch?v=zSyybHxuT68 demovideo, mis LIO-t kasutades HA-iSCSI klastri kokku paneb (kasutades selleks küll spets distrot - RTS OS): RTS veebi ja Wikipedia järgi tundub, et videos nähtud lahenduses kasutati DRBD ja Pacemakerit HA tekitamiseks.

Compared to iET, LIO is implemented as a pure kernel driver. Operations for LIO is done via configFS special filesystem.

  • targetcli - provides targetcli command-line utility. This is the standard way to manipulate LIO.
  • python-rtslib provides rtslib, a full-fledged python API library over configFS.

Fabric - LIO supports several other fabrics than iSCSI. Look for /var/target/fabric/ directory for available fabric specifications.

Backstores - LIO supports several storage types as backing storage for LUNs. Specifically, PSCSI passes SCSI commands through to a (real) SCSI device. IBLOCK emulates SCSI devices on top of block devices such as LVM logical volume.

Paigaldamine Ubuntu/Debian keskkonnas.

$ sudo apt-get install --no-install-recommends targetcli python-urwid
$ sudo reboot

Paigaldamine Gentoos

# emerge sys-block/targetcli

Kasutamine

$ targetcli
Welcome to the targetcli shell:
/> ls
o- / ..................................................................... [...]
  o- backstores .......................................................... [...]
  | o- fileio ............................................... [0 Storage Object]
  | o- iblock ............................................... [0 Storage Object]
  | o- pscsi ................................................ [0 Storage Object]
  | o- rd_dr ................................................ [0 Storage Object]
  | o- rd_mcp ............................................... [0 Storage Object]
  o- ib_srpt ........................................................ [0 Target]
  o- iscsi .......................................................... [0 Target]
  o- loopback ....................................................... [0 Target]
  o- qla2xxx ........................................................ [0 Target]
/>