Problem recreating disk on secondary

25 views
Skip to first unread message

Giuseppe 'Gippa' Paterno'

unread,
Nov 3, 2013, 4:28:52 PM11/3/13
to Ganeti
Hi!
Might be a dumb question, but I am unable to re-create the disk on my secondary.
This is a two-nodes cluster and I had to recreate from scratch the volume group on the secondary.

I tried to run "replace-disks" both with automatic and forcing the secondary, but these are the output:

====================================
# gnt-instance replace-disks -s fw-melano
Fri Oct 18 19:33:18 2013 Replacing disk(s) 0 for instance
'fw-melano.wiran.net'
Fri Oct 18 19:33:18 2013 Current primary node: lugspa0638.XX.XX
Fri Oct 18 19:33:18 2013 Current seconary node: lugspb0638.XX.XX
Fri Oct 18 19:33:18 2013 STEP 1/6 Check device existence
Fri Oct 18 19:33:18 2013 - INFO: Checking disk/0 on lugspa0638.XX.XX
Fri Oct 18 19:33:19 2013 - INFO: Checking disk/0 on lugspb0638.XX.XX
Failure: command execution error:
Can't find disk/0 on node lugspb0638.moresi.com: disk not found
====================================
# gnt-instance replace-disks --auto fw-melano
Fri Oct 18 19:34:01 2013 - INFO: Checking disk/0 on lugspa0638.XX.XX
Fri Oct 18 19:34:02 2013 - INFO: Checking disk/0 on lugspb0638.XX.XX
Failure: prerequisites not met for this operation:
error type: wrong_state, error details:
Please run activate-disks on instance fw-melano.wiran.net first
====================================

The log on the secondary:

====================================

2013-10-18 19:34:33,790: ganeti-noded pid=18330 INFO RunCmd lvs
--noheadings --separator=, --units=k --nosuffix
-olv_attr,lv_kernel_major,lv_kernel_minor,vg_extent_size,stripes
/dev/virtvg/91e9815c-c83d-4888-b2f6-55dddf301226.disk0_meta
2013-10-18 19:34:33,815: ganeti-noded pid=18330 ERROR Can't find LV
/dev/virtvg/91e9815c-c83d-4888-b2f6-55dddf301226.disk0_meta: exited with
exit code 5, One or more specified logical volume(s) not found.
====================================


Well, it's obvious that the lv is not found ... I deleted the entire vg :)
Ganeti version: 2.8.0

Could you give me a suggestion please?


Thanks,
Gippa

Giuseppe 'Gippa' Paterno'

unread,
Nov 4, 2013, 5:00:27 AM11/4/13
to Ganeti
In regards to my previous post, I made the mistake of running
replace-disks while the guest was started.
While offline is working as a charm.
May I suggest as an improvement to do on-line disks replacement, if the
primary is running?
Thanks.
Regards,
Gippa

Michele Tartara

unread,
Nov 4, 2013, 5:06:21 AM11/4/13
to Ganeti Users list
Hi Gippa,
good to hear that you managed to fix your issue. Still, if the
command failed without indicating the proper cause for failure (the
fact that the guest was started) that's a bug that will need to be
fixed.

Could you please open a bug for that on the issue tracker?
https://code.google.com/p/ganeti/issues/list

There you can also specify that your preferred solution for the bug
would be for it to be an online disk replacement, instead of just a
better error message.

Thanks,
Michele

--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Giuseppe 'Gippa' Paterno'

unread,
Nov 4, 2013, 5:13:44 AM11/4/13
to gan...@googlegroups.com
Hi Michele,
> Could you please open a bug for that on the issue tracker?
Here it is:
https://code.google.com/p/ganeti/issues/detail?id=606&thanks=606&ts=1383559972

Thanks a million!
Cheers,
Gippa
Reply all
Reply to author
Forward
0 new messages