drbd unconfigured disk

511 views
Skip to first unread message

David Sedeño

unread,
Oct 4, 2017, 3:17:47 AM10/4/17
to ganeti
Hi,

after a secondary host reboot, one vm has one drbd disk in "unconfigured" state:

node2# cat /proc/drbd

1: cs:Unconfigured

ganeti doesn't see the secondary disk:

   - disk/1: drbd, size 250.0G
      access mode: rw
      nodeA: node1.XXX.XX, minor=19
      nodeB: node2.XXX.XX, minor=1
      port: 11068
      on primary: /dev/drbd19 (147:19) in sync, status *DEGRADED*
      name: None


we have tried verify-disk and activate-disks without success:

# gnt-cluster verify-disks
Submitted jobs 18016
Waiting for job 18016 ...
No disks need to be activated.

# gnt-instance activate-disks instance
Wed Oct  4 08:52:47 2017  - WARNING: Could not prepare block device disk/1 on node node2.XXX.XX (is_primary=False, pass=1): Error while assembling disk: drbd1: can't attach local disk: 1: Failure: (104) Can not open backing device.\n
Failure: command execution error:
Cannot activate block devices

how can I reconfigure the secondary disk ? 

We have more nodes, it is safe to move the secondary disk to another node  with replace-disks ?

Ganeti versión: 2.15.2

Thanks

David Sedeño

Georg Faerber

unread,
Oct 4, 2017, 10:28:25 AM10/4/17
to gan...@googlegroups.com
On 17-10-04 00:17:46, David Sedeño wrote:
> how can I reconfigure the secondary disk ?

Did you try: gnt-instance stop $instance && gnt-instance start $instance

Cheers,
Georg
signature.asc

Benjamin Redling

unread,
Oct 4, 2017, 10:39:26 AM10/4/17
to gan...@googlegroups.com
Hi David,

Am 04.10.2017 um 09:17 schrieb David Sedeño:
> # gnt-instance activate-disks instance
> Wed Oct  4 08:52:47 2017  - WARNING: Could not prepare block device
> disk/1 on node node2.XXX.XX (is_primary=False, pass=1): Error while
> assembling disk: drbd1: can't attach local disk: 1: Failure: (104) Can
> not open backing device.\n
> Failure: command execution error:
> Cannot activate block devices
>
> how can I reconfigure the secondary disk ? 

you can get the necessary help with:
gnt-instance replace-disks -h
There is a parameter to restrict the replacement to the secondary.

It's the same for other commands: just use "-h" or "--help" at the end.

Regards,
Benjamin
--
FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html
☎ +49 3641 9 44323

David Sedeño

unread,
Oct 6, 2017, 5:20:00 AM10/6/17
to ganeti
Hi,

the problem was that the drbd1 had a lvm on top of the device that drbd use too, when the host boots lvm starts before drbd, so it can't use the device.

We have deleted the unused lvm, reboots and drbd just correctly use the device.

Thanks

David
Reply all
Reply to author
Forward
0 new messages