>>> Mike <[email protected]> schrieb am 13.07.2010 um 16:08 in Nachricht
<920d464c-9a0c-462c-9d33-37a967be8...@r27g2000yqb.googlegroups.com>:
> Hi Mike,
> 
> Thank you for the quick reply. I have 2 questions if you don't mind
> clarifying for me:
> 
> 1) Is the "logout" option what disconnects the previous iSCSI target
> or do I have to something else? I need to remove all references etc.
> to the previous iSCSI target.

Well, not answering your question, but did you remember to change your 
initiator-ID (/etc/iscsi/initiatorname.iscsi) after cloning as well?
Maybe it's best to cleanup a master template before cloning. For your question 
something like "iscsiadm --op=delete" should do what you want.

> 
> 2) I tried the discovery command like so:
> 
> iscsiadm -m discovery -t st -p 192.168.254.65
> 
> But I'm not able to discover the iSCSI target. I keep getting the
> following error:
> 
> iscsiadm: cannot make connection to 192.168.254.65:3260 (111)
> iscsiadm: connection to discovery address 192.168.254.65 failed
> 
> I have 2 nic cards setup on this box. One setup for internet access
> which is working. The second nic is to the iSCSI. When I run the
> command "lshw -c network" it shows that both nics are active and they
> have the correct ip address assigned to them. Is there something else
> that I need to cleanup or change somewhere to fix this because I
> copied this VM from another working one?
> 
> Any help is appreciated.
> 
> Thank you,
> 
> Mike
> 
> 
> On Jul 12, 1:17 pm, Mike Christie <[email protected]> wrote:
> > On 07/12/2010 09:52 AM, Mike wrote:
> >
> > > I hope someone can help, I'm very new to Ubuntu 9.04. I currently have
> > > a VM setup with Ubuntu 9.04 and running which is connected to an iSCSI
> > > target. Everything works great on this VM. I've cloned this VM and I'm
> > > trying to disconnect the current iSCSI target and reconnect it to a
> > > new one but I'm having a lot of problems trying to get this to work.
> > > Can someone point me in the right direction to figure out how I can
> > > remove the current iSCSI and add a new one?
> >
> > iscsiadm -m session
> >
> > will show the currently connect sessions (iscsiadm -m session -P 3 will
> > show more info).
> >
> > iscsiadm -m node -T target -p ip -u
> >
> > will logout
> >
> > iscsiadm -m node
> >
> > will show the targets that have been discovered.
> >
> > iscsiadm -m node -T target -p ip -l
> >
> > will log into a target.



 

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to