Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

floating IP is not online 7 years 10 months ago #860

  • Pieffers
  • Pieffers's Avatar Topic Author
  • Offline
  • Posts: 3
Hoi, this is my first post, please be gentle.

I have worked through the manual " reference design and how-to for HA 2-node Xenserver Pool". I followed all installs and configs, except for the fact that do not use Bonded interfaces.

In the final steps I should create a shared iscsi SR, but the floating IP is not online. My DRBD interfcaces have resp 10.10.10.1 and 10.10.10.2 IPnrs, the floating is in iscsi-ha.conf configured with 10.10.10.3.

How and when should this floating interface be online?

Here are my files:

targets.conf:

# Set the driver. If not specified, defaults to "iscsi".
default-driver iscsi

# Set iSNS parameters, if needed
#iSNSServerIP 192.168.111.222
#iSNSServerPort 3205
#iSNSAccessControl On
#iSNS On

# Continue if tgtadm exits with non-zero code (equivalent of
# --ignore-errors command line option)
#ignore-errors yes
<target iqn.2016.lan.cvo:xenserver-test>
backing-store /dev/drbd1
scsi_id 0000000000
scsi_sn 0000000001
lun 10
</target>



drdb.conf:


global { usage-count no; }
common { syncer { rate 100M; } }
resource iscsi1 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus;
cram-hmac-alg sha1;
shared-secret "samson39";
}
on xenserver-test-01 {
device /dev/drbd1;
disk /dev/sdb;
address 10.10.10.1:7789;
meta-disk internal;
}
on xenserver-test-02 {
device /dev/drbd1;
disk /dev/sdb;
address 10.10.10.2:7789;
meta-disk internal;
}
}



iscsi-ha.conf:


DRBD_RESOURCES=iscsi1
ISCSI_TARGET_SERVICE=/etc/init.d/tgtd
DRBD_VIRTUAL_IP=10.10.10.3
DRBD_VIRTUAL_MASK=255.255.255.0
DRBD_INTERFACE=xenbr1
MONITOR_MAX_STARTS=5
MONITOR_DELAY=10
MONITOR_KILLALL=1
MONITOR_SCANRATE=5


Ifconfig:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:26:18:0c:a9:09 txqueuelen 1000 (Ethernet)
RX packets 17113 bytes 6708443 (6.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13228 bytes 4197057 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:13:3b:12:6b:be txqueuelen 1000 (Ethernet)
RX packets 257 bytes 21272 (20.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 287 bytes 23016 (22.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 246 bytes 40697 (39.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 246 bytes 40697 (39.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

xenbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.20.50.57 netmask 255.255.255.0 broadcast 172.20.50.255
ether 00:26:18:0c:a9:09 txqueuelen 0 (Ethernet)
RX packets 17058 bytes 6459915 (6.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13244 bytes 4199857 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

xenbr1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.2 netmask 255.255.255.0 broadcast 10.10.10.255
ether 00:13:3b:12:6b:be txqueuelen 0 (Ethernet)
RX packets 257 bytes 17674 (17.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 287 bytes 21594 (21.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0




fdisk -l


Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt


# Start End Size Type Name
1 46139392 83888127 18G Microsoft basic
2 8390656 46139391 18G Microsoft basic
3 83888128 84936703 512M BIOS boot parti
5 2048 8390655 4G Microsoft basic
6 84936704 87033855 1G Linux swap

Disk /dev/mapper/VG_XenStorage--8562342e--5cf9--676f--9a34--a7a7addd68f1-MGT: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes







Many thx!
Martijn

Please Log in or Create an account to join the conversation.

Last edit: by Pieffers.

floating IP is not online 7 years 10 months ago #861

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
The floating IP is managed by the iscsi-ha service. Can you first make sure that the service is running?
"service iscsi-ha status"

Also, you can view status with "iscsi-cfg status"
This will show where the floating IP is..
I think ifconfig only shows the IP addresses that are stored in the host's network config. We don't store the floating IP there so it may not display at all using ifconfig.

Try "ip addr show" instead of ifconfig

Please Log in or Create an account to join the conversation.

floating IP is not online 7 years 10 months ago #864

  • Pieffers
  • Pieffers's Avatar Topic Author
  • Offline
  • Posts: 3
hello, thanks for your reply:



[root@xenserver-test-01 ~]# service iscsi-ha status
ls: cannot access /etc/rcunknown.d: No such file or directory
Version: IHA_1.5.7 ● iscsi-ha.service - SYSV: iscsi-ha init script version 1.1
Loaded: loaded (/etc/rc.d/init.d/iscsi-ha)
Active: active (running) since Tue 2016-06-21 13:12:00 CEST; 2h 34min ago
Docs: man:systemd-sysv-generator(8)
Process: 1938 ExecStart=/etc/rc.d/init.d/iscsi-ha start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iscsi-ha.service
├─ 2030 /bin/bash /etc/rc.d/init.d/iscsi-ha start
├─ 2043 /bin/bash /etc/rc.d/init.d/iscsi-ha start
├─ 2045 logger -t iscsi-ha-NOTICE-/etc/rc.d/init.d/iscsi-ha
├─ 2137 logger -t iscsi-ha-WARNING-/etc/iscsi-ha/iscsi-ha.sh
├─ 2139 logger -t iscsi-ha-2135-INFO-/etc/iscsi-ha/iscsi-ha.sh
├─ 2142 logger -t iscsi-ha-NOTICE-/etc/iscsi-ha/iscsi-ha.sh
├─ 2246 /bin/sh /sbin/service drbd start
├─ 2254 /bin/bash /etc/init.d/drbd start
├─ 2345 /sbin/drbdadm wait-con-int
├─ 2346 /sbin/drbdsetup wait-connect 1
└─30789 sleep 10
[root@xenserver-test-01 ~]#








| iSCSI-HA Status |
| Tue Jun 21 15:48:21 CEST 2016 |

| iSCSI-HA Status: Version: IHA_1.5.7 ● iscsi-ha.service - SYSV: iscsi-ha init script version 1.1 |
| Loaded: loaded (/etc/rc.d/init.d/iscsi-ha) |
| Active: active (running) since Tue 2016-06-21 13:12:00 CEST; 2h 36min ago |
| Docs: man:systemd-sysv-generator(8) |
| Process: 1938 ExecStart=/etc/rc.d/init.d/iscsi-ha start (code=exited, status=0/SUCCESS) |
| CGroup: /system.slice/iscsi-ha.service |
| ├─2030 /bin/bash /etc/rc.d/init.d/iscsi-ha start |
| ├─2043 /bin/bash /etc/rc.d/init.d/iscsi-ha start |
| ├─2045 logger -t iscsi-ha-NOTICE-/etc/rc.d/init.d/iscsi-ha |
| ├─2137 logger -t iscsi-ha-WARNING-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2139 logger -t iscsi-ha-2135-INFO-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2142 logger -t iscsi-ha-NOTICE-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2246 /bin/sh /sbin/service drbd start |
| ├─2254 /bin/bash /etc/init.d/drbd start |
| ├─2345 /sbin/drbdadm wait-con-int |
| ├─2346 /sbin/drbdsetup wait-connect 1 |
| ├─2471 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─2472 sleep 10 |
| ├─2473 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─2474 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─2475 logger -t iscsi-ha-WARNING-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2477 logger -t iscsi-ha-2473-INFO-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2479 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─2480 logger -t iscsi-ha-NOTICE-/etc/iscsi-ha/iscsi-ha.sh |
| ├─2487 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─2488 /bin/sh /sbin/service iscsi-ha status |
| ├─2501 /bin/bash /etc/init.d/iscsi-ha status |
| ├─2502 /bin/sh /etc/iscsi-ha/scripts/timeout 10 /etc/iscsi-ha/scripts/replug_pbd --silent |
| ├─2503 /bin/sh /etc/iscsi-ha/scripts/timeout 10 /etc/iscsi-ha/scripts/replug_pbd --silent |
| ├─2505 /bin/bash /etc/iscsi-ha/scripts/replug_pbd --silent |
| ├─2507 sleep 10 |
| ├─2526 /bin/bash /etc/iscsi-ha/scripts/replug_pbd --silent |
| ├─2527 vgscan |
| ├─2529 grep -v Reading |
| ├─2530 awk -F VG_XenStorage- {print $2} |
| ├─2532 awk -F " {print $1} |
| └─2534 systemctl status iscsi-ha.service |
| Last Updated: Tue Jun 21 15:48:15 CEST 2016 |
| HOST ROLE: MASTER |
Control + C to exit


| DRBD Status |

| version: 8.4.3 (api:1/proto:86-101) |
| srcversion: FB3AC7056350AC64629E395 |
| 1: cs:WFConnection ro:Secondary/Unknown ds:Diskless/DUnknown C r
|
| ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0 |
^C




[root@xenserver-test-01 ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master xenbr1 state UP qlen 1000
link/ether 00:13:3b:12:6b:d3 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master xenbr0 state UP qlen 1000
link/ether 00:26:18:1d:2d:3d brd ff:ff:ff:ff:ff:ff
4: xenbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:13:3b:12:6b:d3 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.1/24 brd 10.10.10.255 scope global xenbr1
valid_lft forever preferred_lft forever
5: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:26:18:1d:2d:3d brd ff:ff:ff:ff:ff:ff
inet 172.20.50.38/24 brd 172.20.50.255 scope global dynamic xenbr0
valid_lft 681619sec preferred_lft 681619sec

Please Log in or Create an account to join the conversation.

floating IP is not online 7 years 10 months ago #865

  • Pieffers
  • Pieffers's Avatar Topic Author
  • Offline
  • Posts: 3
from the other host (slave):


| iSCSI-HA Status |
| Tue Jun 21 15:55:28 CEST 2016 |

| iSCSI-HA Status: Version: IHA_1.5.7 ● iscsi-ha.service - SYSV: iscsi-ha init script version 1.1 |
| Loaded: loaded (/etc/rc.d/init.d/iscsi-ha) |
| Active: active (running) since Tue 2016-06-21 13:10:41 CEST; 2h 44min ago |
| Docs: man:systemd-sysv-generator(8) |
| Process: 1952 ExecStart=/etc/rc.d/init.d/iscsi-ha start (code=exited, status=0/SUCCESS) |
| CGroup: /system.slice/iscsi-ha.service |
| ├─ 2047 /bin/bash /etc/rc.d/init.d/iscsi-ha start |
| ├─ 2087 /bin/bash /etc/rc.d/init.d/iscsi-ha start |
| ├─ 2091 logger -t iscsi-ha-NOTICE-/etc/rc.d/init.d/iscsi-ha |
| ├─ 2150 logger -t iscsi-ha-WARNING-/etc/iscsi-ha/iscsi-ha.sh |
| ├─ 2151 logger -t iscsi-ha-2147-INFO-/etc/iscsi-ha/iscsi-ha.sh |
| ├─ 2154 logger -t iscsi-ha-NOTICE-/etc/iscsi-ha/iscsi-ha.sh |
| ├─ 2243 /bin/sh /sbin/service drbd start |
| ├─ 2259 /bin/bash /etc/init.d/drbd start |
| ├─ 2327 /sbin/drbdadm wait-con-int |
| ├─ 2328 /sbin/drbdsetup wait-connect 1 |
| ├─32684 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─32685 sleep 10 |
| ├─32686 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─32687 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─32688 logger -t iscsi-ha-WARNING-/etc/iscsi-ha/iscsi-ha.sh |
| ├─32690 logger -t iscsi-ha-32686-INFO-/etc/iscsi-ha/iscsi-ha.sh |
| ├─32692 /bin/bash /etc/iscsi-ha/iscsi-ha.sh |
| ├─32693 logger -t iscsi-ha-NOTICE-/etc/iscsi-ha/iscsi-ha.sh |
| ├─32700 /bin/sh /sbin/service iscsi-ha status |
| ├─32706 /bin/bash /etc/init.d/iscsi-ha status |
| └─32720 systemctl status iscsi-ha.service |
| Last Updated: Tue Jun 21 15:55:21 CEST 2016 |
| HOST ROLE: SLAVE |
| VIRTUAL IP: 10.10.10.3 is not local |
| ISCSI TARGET: [expected stopped] |
| DRBD ROLE: iscsi1=Secondary |
| DRBD CONNECTION: iscsi1 in WFConnection state |
Control + C to exit


| DRBD Status |

| version: 8.4.3 (api:1/proto:86-101) |
| srcversion: FB3AC7056350AC64629E395 |
| 1: cs:WFConnection ro:Secondary/Unknown ds:Diskless/DUnknown C r
|
| ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0 |
^C

Please Log in or Create an account to join the conversation.

floating IP is not online 7 years 10 months ago #866

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
Looks like you are running on Xenserver 7 which we are not supporting yet.
We are currently working on a new release that will support XS 7.
The following user(s) said Thank You: Pieffers

Please Log in or Create an account to join the conversation.

  • Page:
  • 1