How To Create An iSCSI Target Without Having To Restart The Daemon On SLES 10
This document (3463107) is provided subject to the disclaimer at the end of this document.
ietadm --op new --tid=10 --params Name=iqn.2006-03.com.foo:disk
2. This creates the lun:
ietadm --op new --tid=10 --lun=0 --params Path=/tmp/file2
Note: A. The Target ID (tid) of 10 is an example. It can be any unused target id number. A tid=0 picks the next unused tid number.
B. The iqn is an example.
C. The Path of /tmp/file2 is an example.
D. See ietadm -h for more options.
This creates the target dynamically. If the target is restarted this is lost. It order to make it persistent, you also have to add the target/lun to the
configuration file /etc/ietd.conf.
The yast module create the entries in /etc/ietd.conf and then does a restart. This is why it is not dynamic. There is a request to have YaST make this change dynamically as described above, but until then this is the only other option.
Another way to create a target dynamically is with the evmsqui tool. This creates the target dynamically and adds them to /etc/ietd.conf. But you can only create targets out of storage disk devices that are managed by evms.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:3463107
- Creation Date: 17-Aug-2006
- Modified Date:16-Mar-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com