Discussion:
[drbd-mc] Adding a drbd resource to the cluster
David Davies
2010-03-05 17:27:38 UTC
Permalink
Hi

I am using DMC-0.6.1,jar on mac osx 10.6.2 to build a 2 node cluster with drbd replicating 2 resources.

I have managed to get drbd up and running and the resources are syncing (19hours so far..)

I have added under Services a group(1) and under that a IPaddr Service

I can get this to move between hosts no problem.

Problem starts here

If I add a dependent service to IPaddr of Filesystem + linbit:drbd the service is visibile on the worksheet

Then I configure the required options

block device i set to drbd:cluster_metadata
mount point i type in the mount point on my drive /cluster_metadata (this exists and is not mount on both nodes)
Then I click filesystem type and it errors out with the following popup

Any Ideas ??
I cant add the filesystem to the cluster as i dont know how by hand!

Thank you

David


AppError.Text
release: 0.6.1

uncaught exception
java.lang.ClassCastException: javax.swing.Box$Filler cannot be cast to javax.swing.JScrollPane
javax.swing.Box$Filler cannot be cast to javax.swing.JScrollPane
drbd.gui.GuiComboBox$2.popupMenuWillBecomeVisible(GuiComboBox.java:392)
javax.swing.JComboBox.firePopupMenuWillBecomeVisible(JComboBox.java:938)
javax.swing.plaf.basic.BasicComboPopup.firePopupMenuWillBecomeVisible(BasicComboPopup.java:330)
javax.swing.JPopupMenu.setVisible(JPopupMenu.java:730)
javax.swing.JPopupMenu.show(JPopupMenu.java:904)
com.apple.laf.AquaComboBoxPopup.show(AquaComboBoxPopup.java:99)
javax.swing.plaf.basic.BasicComboPopup.togglePopup(BasicComboPopup.java:1110)
javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(BasicComboPopup.java:807)
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
java.awt.Component.processMouseEvent(Component.java:6345)
javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
java.awt.Component.processEvent(Component.java:6113)
java.awt.Container.processEvent(Container.java:2085)
java.awt.Component.dispatchEventImpl(Component.java:4714)
java.awt.Container.dispatchEventImpl(Container.java:2143)
java.awt.Component.dispatchEvent(Component.java:4544)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
java.awt.Container.dispatchEventImpl(Container.java:2129)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4544)
java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Rasto Levrinc
2010-03-05 18:32:47 UTC
Permalink
Post by David Davies
I am using DMC-0.6.1,jar on mac osx 10.6.2 to build a 2 node cluster with
drbd replicating 2 resources.
I've had already some reports, that it doesn't work on Mac as it should or
not at all. Unfortunately I don't have any Mac to test at the moment.
Post by David Davies
block device i set to drbd:cluster_metadata mount point i type in the
mount point on my drive /cluster_metadata (this exists and is not
mount on both nodes) Then I click filesystem type and it errors out with
the following popup
Any Ideas ??
It looks like this is a problem only on Mac. Looking at the stacktrace,
can you try the following for me?

After you start the DRBD-MC, click and write "godmode" to the black
terminal area. You'll not see any characters there, but it will unlock
some menus, if you'll not make any typo. Up, next to the "Session" menu, a
new menu "Settings" with "Look and Feel" submenu will appear. Select a
"MetalLookAndFeel" there. If this helps or the Metal look and feel is not
there, please let me know.

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
David Davies
2010-03-05 20:40:04 UTC
Permalink
Thanks for the response

I get a flash of OH MY GOD then entering settings and choosing MetalLookAndFeel
The gui changes skin
I then get a popup java error which i cant seem to reproduce

I am then able to add the filesystem type correctly -- great thanks
I figured I would save the settings for the future but I get an error

The main thing is I can now add the filesystem, so you've solved my initial issue thank you.
If you need me to test gui bits on the mac let me know.

Cheers

David

AppError.Text
release: 0.6.1

uncaught exception
java.lang.NullPointerException
null
sun.font.FontManager.getFont2D(Native Method)
sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:343)
sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:336)
sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:284)
sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:938)
javax.swing.JComponent.getFontMetrics(JComponent.java:1587)
javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:259)
com.apple.laf.AquaButtonUI.getPreferredSize(AquaButtonUI.java:439)
javax.swing.JComponent.getPreferredSize(JComponent.java:1622)
drbd.utilities.Tools.resizeTable(Tools.java:2200)
drbd.gui.resources.Info$11.run(Info.java:963)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Post by Rasto Levrinc
Post by David Davies
I am using DMC-0.6.1,jar on mac osx 10.6.2 to build a 2 node cluster with
drbd replicating 2 resources.
I've had already some reports, that it doesn't work on Mac as it should or
not at all. Unfortunately I don't have any Mac to test at the moment.
Post by David Davies
block device i set to drbd:cluster_metadata mount point i type in the
mount point on my drive /cluster_metadata (this exists and is not
mount on both nodes) Then I click filesystem type and it errors out with
the following popup
Any Ideas ??
It looks like this is a problem only on Mac. Looking at the stacktrace,
can you try the following for me?
After you start the DRBD-MC, click and write "godmode" to the black
terminal area. You'll not see any characters there, but it will unlock
some menus, if you'll not make any typo. Up, next to the "Session" menu, a
new menu "Settings" with "Look and Feel" submenu will appear. Select a
"MetalLookAndFeel" there. If this helps or the Metal look and feel is not
there, please let me know.
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
Rasto Levrinc
2010-03-06 08:11:20 UTC
Permalink
Post by David Davies
I get a flash of OH MY GOD then entering settings and choosing
MetalLookAndFeel
The gui changes skin
I then get a popup java error which i cant seem to reproduce
Yes, some of the elements didn't convert their look-and-feel and it caused
the error, but this is not a problem, since you are not supposed to change
it on the fly. For the next release I simply force the metal look-and-feel
even on mac users. I know why they may not like it, but for now there is
no choice.
Post by David Davies
I am then able to add the filesystem type correctly -- great thanks
I figured I would save the settings for the future but I get an error
You wouldn't be able to save the look-and-feel, but are you saying that
you are unable to save at all? The DRBD-MC just gets the home dir with
System.getProperty("user.home") and saves there. It works on Linux and
Windows. Can you check if you have drbd-gui.drbdg file in your home
directory?

Thanks,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...