How to change IP address of iScsi Targets

3,470 views
Skip to first unread message

elee...@gmail.com

unread,
May 26, 2009, 11:32:50 AM5/26/09
to open-iscsi
Hi,

I have a Stonefly Storage 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 172.168.1.110


that creates a disk /dev/sdb 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

Eleena

fabien monnier

unread,
May 26, 2009, 1:33:39 PM5/26/09
to open-...@googlegroups.com
What is you target software? (ex : tgt, iscsitarget)

fabien monnier

unread,
May 26, 2009, 3:31:26 PM5/26/09
to open-...@googlegroups.com, elee...@gmail.com
Sorry it's a Stonefy Storage........... :)

1) on your initiator:

shuttdown your initiator iscsi daemon

 /etc/init.d/open-iscsi stop

after that, the device in /dev/sdb will be disapear

remove old initiators settings

rm -r /etc/iscsi/nodes/*
rm -r /etc/iscsi/send-target/*

2) on your target:

change the target ip.

3) on your initiator

Make new iscsi configuration (You can help you with join tutoriel)

Send me a mail when you success or not.

Bye

iscsi_tuto.odt

frank

unread,
May 27, 2009, 1:54:57 PM5/27/09
to open-iscsi
Hi,

Following is the best way to do that....

1. Unmount the file system.

2. Logout of the existence sessions.

3. Use the following command to delete existing nodes.

iscsiadm -m node -T iqn.xx.xx:xx-xx -p x.x.x.x:3260 -o delete

4. Rediscover the target with New IP.

Regds.

Frank.....
Reply all
Reply to author
Forward
0 new messages