Erinevus lehekülje "LIO iSCSI target" redaktsioonide vahel
Allikas: Kuutõrvaja
4. rida: | 4. rida: | ||
* 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. | * 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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Fabric | ||
LIO supports several other fabrics than iSCSI. | LIO supports several other fabrics than iSCSI. | ||
Look for /var/target/fabric/ directory for available fabric specifications. | Look for /var/target/fabric/ directory for available fabric specifications. | ||
− | Backstores | + | *Backstores |
LIO supports several storage types as backing storage for LUNs. | LIO supports several storage types as backing storage for LUNs. | ||
Specifically, PSCSI passes SCSI commands through to a (real) SCSI device. | 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. | 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 | |
− | |||
− | |||
− | + | 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] | ||
+ | /> | ||
− | http://www.linux-iscsi.org/wiki/RTSadmin | + | *http://www.linux-iscsi.org/wiki/RTSadmin RTSadmin manual. |
Redaktsioon: 13. juuni 2012, kell 12:51
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
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] />
- http://www.linux-iscsi.org/wiki/RTSadmin RTSadmin manual.