Difference between revisions of "ISCSI Initiator"
(remove language suffix from Category:Storage (English), see Talk:Table of Contents#English Category Names: Capitalization and Conflict with i18n)
(remove language suffix from Category:Networking (English), see Talk:Table of Contents#English Category Names: Capitalization and Conflict with i18n)
|Line 1:||Line 1:|
Revision as of 17:38, 23 April 2012
Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary heading Template:Article summary wiki Template:Article summary end
With Wikipedia:iSCSI you can access storage over an IP-based network.
The exported storage entity is the target and the importing entity is the initiator.
Setup With Open-iSCSI
EvenAUR is not in the official repositories, so you need to build it from AUR.
Using the Daemon
You only have to include the IP of the target as
/etc/conf.d/open-iscsi at the client.
At the server (target) you might need to include the client iqn from
/etc/iscsi/initiatorname.iscsi in the acl configuration.
# /etc/rc.d/open-iscsi startYou can see the current sessions with
# /etc/rc.d/open-iscsi status
You might want to include
open-iscsi in your rc.conf#Daemons.
Using the Tools
iscsid has to be running.
# iscsiadm -m discovery -t sendtargets -p <portalip>
Delete obsolete targets
# iscsiadm -m discovery -p <portalip> -o delete
Login to available targets
# iscsiadm -m node -L all
or login to specific target
# iscsiadm -m node --targetname=<targetname> --login
# iscsiadm -m node -U all
For running session
# iscsiadm -m session -P 3
For the known nodes
# iscsiadm -m node
Online resize of volumes
If the iscsi blockdevice contains a partitiontable, you will not be able to do an online resize. In this case you have to unmount the filesystem and alter the size of the affected partition.
- Rescan active nodes in current session
# iscsiadm -m node -R
- If you use multipath, you also have to rescan multipath volume information.
# multipathd -k"resize map sdx"
- Finally resize the filesystem.
# resize2fs /dev/sdx
You can also check where the attached iSCSI devices are located in the /dev tree with
ls -lh /dev/disk/by-path/* .
- iSCSI Boot Booting Arch Linux with / on an iSCSI target.