Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drbdadm version: Version: 8.9.10 (api:2)
- GIT-hash: 54df7406bd33851eb5fdde48362754bfd71e0500 build by buildsystem@linbit, 2017-01-09 16:07:22
- root@pve3:/var/lib/drbd.d# drbdmanage shutdown
- You are going to shut down the drbdmanaged server process on this node.
- Please confirm:
- yes/no: yes
- root@pve3:/var/lib/drbd.d# drbdmanage startup
- Attempting to startup the server through D-Bus activation...
- D-Bus connection successful, server is running and reachable
- root@pve3:/var/lib/drbd.d# drbdmanage n
- Waiting for server: ...............
- No nodes defined
- root@pve3:/var/lib/drbd.d# drbdadm status
- .drbdctrl role:Secondary
- volume:0 disk:Outdated
- volume:1 disk:Outdated
- pve1 connection:Connecting
- pve2 connection:Connecting
- vm-115-disk-1 role:Primary
- disk:UpToDate
- pve1 connection:StandAlone
- pve2 connection:StandAlone
- root@pve3:/var/lib/drbd.d# drbd-overview
- 0:.drbdctrl/0 Conn(pve3)/C'ng(pve2,pve1) Seco(pve3)/Unkn(pve2,pve1) Outd(pve3)/DUnk(pve1,pve2)
- 1:.drbdctrl/1 Conn(pve3)/C'ng(pve2,pve1) Seco(pve3)/Unkn(pve1,pve2) Outd(pve3)/DUnk(pve2,pve1)
- 100:vm-115-disk-1/0 Conn(pve3)/StAl(pve1,pve2) Prim(pve3)/Unkn(pve1,pve2) UpTo(pve3)/DUnk(pve1)/Inco(pve2)
- 101:vm-115-disk-2/0 Connected(1*) Secondary(1*) UpToDate(1*)
- root@pve3:/var/lib/drbd.d# drbdmanage a
- Error: Cannot connect to the drbdmanaged process using DBus
- The DBus subsystem returned the following error description:
- org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 751, in _message_cb
- _method_reply_return(connection, message, method_name, signature, *retval)
- File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 254, in _method_reply_return
- reply.append(signature=signature, *retval)
- TypeError: 'int' object is not iterable
- root@pve3:/var/lib/drbd.d# drbdmanage v
- Waiting for server: ...............
- No resources defined
- root@pve3:/var/lib/drbd.d# tail -n 20 /var/log/syslog
- Feb 13 16:23:46 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: outdated-wfc-timeout implicitly set to degr-wfc-timeout (2s)
- Feb 13 16:23:46 pve3 drbdmanaged[19695]: WARNING Resource '.drbdctrl': wait-connect-resource not finished within 2 seconds
- Feb 13 16:23:46 pve3 drbdmanaged[19695]: INFO Leader election by wait for connections
- Feb 13 16:23:46 pve3 drbdmanaged[19695]: INFO DrbdAdm: Running external command: drbdsetup wait-connect-resource --wait-after-sb=yes --wfc-timeout=2 .drbdctrl
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: ERROR DrbdAdm: External command 'drbdsetup': Exit code 5
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: degr-wfc-timeout has to be shorter than wfc-timeout
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: degr-wfc-timeout implicitly set to wfc-timeout (2s)
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: outdated-wfc-timeout has to be shorter than degr-wfc-timeout
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: outdated-wfc-timeout implicitly set to degr-wfc-timeout (2s)
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: WARNING Resource '.drbdctrl': wait-connect-resource not finished within 2 seconds
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: INFO Leader election by wait for connections
- Feb 13 16:23:48 pve3 drbdmanaged[19695]: INFO DrbdAdm: Running external command: drbdsetup wait-connect-resource --wait-after-sb=yes --wfc-timeout=2 .drbdctrl
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: ERROR DrbdAdm: External command 'drbdsetup': Exit code 5
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: degr-wfc-timeout has to be shorter than wfc-timeout
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: degr-wfc-timeout implicitly set to wfc-timeout (2s)
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: outdated-wfc-timeout has to be shorter than degr-wfc-timeout
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: ERROR drbdsetup/stderr: outdated-wfc-timeout implicitly set to degr-wfc-timeout (2s)
- Feb 13 16:23:50 pve3 drbdmanaged[19695]: WARNING Resource '.drbdctrl': wait-connect-resource not finished within 2 seconds
- ------------------------------------------------------------------------------------------------------------------------------------------------------
- root@pve2:~# drbdmanage resume-all
- Operation completed successfully
- root@pve2:~# drbdadm status
- .drbdctrl role:Secondary
- volume:0 disk:UpToDate
- volume:1 disk:UpToDate
- pve1 role:Primary
- volume:0 peer-disk:UpToDate
- volume:1 peer-disk:UpToDate
- vm-115-disk-1 role:Primary
- disk:UpToDate
- pve1 role:Secondary
- peer-disk:UpToDate
- root@pve2:~# drbd-overview
- 0:.drbdctrl/0 Connected(2*) Second/Primar UpToDa/UpToDa
- 1:.drbdctrl/1 Connected(2*) Second/Primar UpToDa/UpToDa
- 100:vm-115-disroot@pve2:~# drbdmanage n
- +------------------------------------------------------------------------------------------------------------+
- | Name | Pool Size | Pool Free | | State |
- |------------------------------------------------------------------------------------------------------------|
- | pve1 | 15260 | 2618 | | ok |
- | pve2 | 15260 | 0 | | pending actions: adjust connections |
- +------------------------------------------------------------------------------------------------------------+
- k-1/0 Connected(2*) Primar/Second UpToDa/UpToDa
- root@pve2:~# drbdmanage v
- +------------------------------------------------------------------------------------------------------------+
- | Name | Vol ID | Size | Minor | | State |
- |------------------------------------------------------------------------------------------------------------|
- | vm-115-disk-2 | 0 | 1 GiB | 101 | | ok |
- | vm-115-disk-1 | 0 | 13 GiB | 100 | | ok |
- +------------------------------------------------------------------------------------------------------------+
- root@pve2:~# drbdmanage a
- +------------------------------------------------------------------------------------------------------------+
- | Node | Resource | Vol ID | | State |
- |------------------------------------------------------------------------------------------------------------|
- | pve1 | vm-115-disk-1 | * | | ok |
- | pve2 | vm-115-disk-2 | * | | disconnected, pending actions: decommission |
- | pve2 | vm-115-disk-1 | * | | pending actions: commission |
- | pve2 | vm-115-disk-1 | 0 | | pending actions: commission, attach |
- +------------------------------------------------------------------------------------------------------------+
- Feb 13 16:35:41 pve2 org.drbd.drbdmanaged[2449]: Logical volume drbdpool/vm-115-disk-1_00 is used by another device.
- Feb 13 16:35:44 pve2 drbdmanaged[3512]: ERROR ThinLV: Removal of an existing volume 'vm-115-disk-1_00' failed, aborting
- Feb 13 16:35:44 pve2 drbdmanaged[3512]: ERROR DrbdManager: Failed to create block device for resource 'vm-115-disk-1' volume 0
- Feb 13 16:37:14 pve2 drbdmanaged[3512]: INFO DrbdAdm: Running external command: drbdadm -vvv adjust .drbdctrl
- Feb 13 16:37:14 pve2 drbdmanaged[3512]: INFO DrbdAdm: External command 'drbdadm': Exit code 0
- Feb 13 16:37:14 pve2 drbdmanaged[3512]: WARNING ThinLV: Volume 'vm-115-disk-1_00' exists already, attempting to remove it.
- Feb 13 16:37:14 pve2 drbdmanaged[3512]: WARNING ThinLV: Attempt 1 of 2: Removal of volume 'vm-115-disk-1_00' failed.
- Feb 13 16:37:15 pve2 org.drbd.drbdmanaged[2449]: Logical volume drbdpool/vm-115-disk-1_00 is used by another device.
- Feb 13 16:37:16 pve2 drbdmanaged[3512]: WARNING ThinLV: Attempt 2 of 2: Removal of volume 'vm-115-disk-1_00' failed.
- Feb 13 16:37:19 pve2 org.drbd.drbdmanaged[2449]: Logical volume drbdpool/vm-115-disk-1_00 is used by another device.
- Feb 13 16:37:22 pve2 drbdmanaged[3512]: ERROR ThinLV: Removal of an existing volume 'vm-115-disk-1_00' failed, aborting
- Feb 13 16:37:22 pve2 drbdmanaged[3512]: ERROR DrbdManager: Failed to create block device for resource 'vm-115-disk-1' volume 0
- Feb 13 16:37:26 pve2 drbdmanaged[3512]: INFO DrbdAdm: Running external command: drbdadm -vvv adjust .drbdctrl
- Feb 13 16:37:26 pve2 drbdmanaged[3512]: INFO DrbdAdm: External command 'drbdadm': Exit code 0
- Feb 13 16:37:28 pve2 drbdmanaged[3512]: WARNING ThinLV: Volume 'vm-115-disk-1_00' exists already, attempting to remove it.
- Feb 13 16:37:28 pve2 drbdmanaged[3512]: WARNING ThinLV: Attempt 1 of 2: Removal of volume 'vm-115-disk-1_00' failed.
- Feb 13 16:37:31 pve2 org.drbd.drbdmanaged[2449]: Logical volume drbdpool/vm-115-disk-1_00 is used by another device.
- Feb 13 16:37:36 pve2 drbdmanaged[3512]: WARNING ThinLV: Attempt 2 of 2: Removal of volume 'vm-115-disk-1_00' failed.
- Feb 13 16:37:42 pve2 org.drbd.drbdmanaged[2449]: Logical volume drbdpool/vm-115-disk-1_00 is used by another device.
- Feb 13 16:37:44 pve2 drbdmanaged[3512]: ERROR ThinLV: Removal of an existing volume 'vm-115-disk-1_00' failed, aborting
- Feb 13 16:37:44 pve2 drbdmanaged[3512]: ERROR DrbdManager: Failed to create block device for resource 'vm-115-disk-1' volume
- ---------------------------------------------------------------------------------------------------------------------------------------
- root@pve1:~# drbd-overview
- 0:.drbdctrl/0 Connected(2*) Primar/Second UpToDa/UpToDa
- 1:.drbdctrl/1 Connected(2*) Primar/Second UpToDa/UpToDa
- 100:vm-115-disk-1/0 Connected(2*) Second/Primar UpToDa/UpToDa
- root@pve1:~# drbdadm status
- .drbdctrl role:Primary
- volume:0 disk:UpToDate
- volume:1 disk:UpToDate
- pve2 role:Secondary
- volume:0 peer-disk:UpToDate
- volume:1 peer-disk:UpToDate
- vm-115-disk-1 role:Secondary
- disk:UpToDate
- pve2 role:Primary
- peer-disk:UpToDate
- root@pve1:~# drbdmanage n
- +------------------------------------------------------------------------------------------------------------+
- | Name | Pool Size | Pool Free | | State |
- |------------------------------------------------------------------------------------------------------------|
- | pve1 | 15260 | 2610 | | ok |
- | pve2 | 15260 | 0 | | pending actions: adjust connections |
- +------------------------------------------------------------------------------------------------------------+
- root@pve1:~# drbdmanage v
- +------------------------------------------------------------------------------------------------------------+
- | Name | Vol ID | Size | Minor | | State |
- |------------------------------------------------------------------------------------------------------------|
- | vm-115-disk-2 | 0 | 1 GiB | 101 | | ok |
- | vm-115-disk-1 | 0 | 13 GiB | 100 | | ok |
- +------------------------------------------------------------------------------------------------------------+
- root@pve1:~# drbdmanage a
- +------------------------------------------------------------------------------------------------------------+
- | Node | Resource | Vol ID | | State |
- |------------------------------------------------------------------------------------------------------------|
- | pve1 | vm-115-disk-1 | * | | ok |
- | pve2 | vm-115-disk-2 | * | | disconnected, pending actions: decommission |
- | pve2 | vm-115-disk-1 | * | | pending actions: commission |
- | pve2 | vm-115-disk-1 | 0 | | pending actions: commission, attach |
- +------------------------------------------------------------------------------------------------------------+
- Feb 13 15:12:00 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:33:55 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:34:09 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:34:38 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:34:50 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:36:09 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:36:43 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:37:11 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:38:13 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:38:42 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:39:11 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:39:22 pve1 drbdmanaged[3730]: INFO updating storage pool information
- Feb 13 16:40:39 pve1 drbdmanaged[3730]: INFO updating storage pool information
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement