[Linux-cluster] iscsi target change ip

Doug Bunger dougbunger at yahoo.com
Tue May 26 13:35:48 UTC 2009


Just to verify, as well as the discover, you are also using:
  iscsiadm -m node -T iqn.xx.xx:xx-xx -p x.x.x.x:3260 --login
Together these create a set of links visible under /var/lib/iscsi:
  ls -l /var/lib/iscsi/*/*
You could stop the service, delete the links and associated directoies, then rediscover and login with the new IP.  The "more correct" way of doing it is to have iscsiadm delete them for you:
  iscsiadm -m node -T iqn.xx.xx:xx-xx -p x.x.x.x:3260 -o delete
I pointed out the "wrong way" first, because in real world failures, I've had the "right way" hang, forcing me to do it the wrong way.  ;)


-- Doug Bunger 

-- dougbunger at yahoo.com 

--

--- On Tue, 5/26/09, ESGLinux <esggrupos at gmail.com> wrote:

From: ESGLinux <esggrupos at gmail.com>
Subject: [Linux-cluster] iscsi target change ip
To: "linux clustering" <linux-cluster at redhat.com>
Date: Tuesday, May 26, 2009, 1:49 AM

Hello, 
I have a server configured as iscsi target to use it with my cluster. To use it with the inititiators I run this command:

iscsiadm -m discovery -t sendtargets -p 192.168.1.191

that creates a disk /dev/sda on the hosts. Now I need to change the ip of the target and want to know where I need to change in the initiators the configuration of the target ip.

Thanks in advance
ESG



-----Inline Attachment Follows-----

--
Linux-cluster mailing list
Linux-cluster at redhat.com
https://www.redhat.com/mailman/listinfo/linux-cluster


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090526/ac1b4c69/attachment.htm>


More information about the Linux-cluster mailing list