Add/Remove Linux iSCSI initiator target and add new one

Here is how to delete old target.
replace the ip with the old IP setting.

iscsiadm -m node -p 192.198.1.148 --op=delete

to add the new one ..

iscsiadm -m discovery -t sendtargets -p 192.168.1.145

after that tweak the udev rules ..

vi /etc/udev/rules.d/buffalo.rules

type the following content to it..

  KERNEL=="sd*", SUBSYSTEMS=="scsi", ATTRS{model}=="VIRTUAL-DISK", SYMLINK+="usbhd%n

so.. it would sym-link the iSCSI drive to

/dev/usbhd1
udevcontrol reload_rules
# restart iscsi..
/etc/init.d/iscsi restart

see the new dev ..

shall had something like this..

 
ll /dev
lrwxrwxrwx 1 root root          3 Dec 22 23:02 usbhd -> sdb
lrwxrwxrwx 1 root root          4 Dec 22 23:02 usbhd1 -> sdb1

which later can be used by cluster suite to mount /dev/usbhd1 to something like /data
which is transparent/similar on both nodes regardless it had the USB drive/dongle or anything connected to its