Fixing ceph partition uuid or OSD data dir is not mounted

Posted on Mon 06 February 2017 in Ceph • Tagged with ceph, linux, notepad, work • 1 min read





To fix the partition uuid

sgdisk --info=##partnr## -t ##partnr##:##part-uuid## /dev/##disk##

sgdisk --info=1 -t 1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d /dev/sda1

Ref: /lib/udev/rules.d/95-ceph-osd.rules

Openstack Manila with CephFS as backend [notepad]

Posted on Thu 22 December 2016 in openstack • Tagged with ceph, Openstack, linux, notepad, work • 1 min read


ceph - setting up rbd-mirror between two ceph clusters

Posted on Sat 15 October 2016 in Ceph • Tagged with ceph, rbdmirror, howto, linux, notepad, work • 3 min read

2x ceph cluster (aio) running centos 7.2 /w ceph jewel. Added a 2nd crush rule to both clusters:

rule rep_osd {
    ruleset 1
    type replicated
    min_size 1
    max_size 10
    step take default
    step choose firstn 0 type osd
    step emit

(ceph crush map)


Install the rbd-mirror package in …

Continue reading

Google Software Updater fuckups

Posted on Thu 22 September 2016 in Linux • Tagged with notepad, osx, linux, Google Chrome • 1 min read


To disable the ksfetch (ks = keystone) daemon (which comes with google products) there are several ways to do this.

  1. Uninstall the Google Software Update Agent
$ /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle \
    /Contents/Resources/ [--nuke] 

The --nuke parameter will also remove ksfetch related stuff.

  1. Set the checkInterval …

Continue reading

ejabberd + letsencrypt (ssl config)

Posted on Mon 05 September 2016 in Linux • Tagged with letsencrypt, Linux, notepad, ejabberd • 1 min read

    port: 5222
    module: ejabberd_c2s
    certfile: "/etc/ejabberd/ejabberd.pem"
    starttls: true
    starttls_required: true
      - "no_sslv2"
      - "no_sslv3"
      - "no_tlsv1"
      - "no_tlsv1_1"
    dhfile: "/etc/ejabberd/dh2048.pem"
    port: 5269
    ip: "::"
    module: ejabberd_s2s_in
      - "no_sslv2"
      - "no_sslv3"
      - "no_tlsv1"
      - "no_tlsv1_1"

s2s_use_starttls: required
s2s_certfile: "/etc/ejabberd …

Continue reading

RHEV/ovirt - can't switch SPM role - async_tasks are stucked

Posted on Mon 29 August 2016 in ovirt • Tagged with KVM, Linux, ovirt, RHEV, rev, redhat • 1 min read

On the host with the SPM role

$ vdsClient -s 0 getAllTasksStatuses
{'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'feb3aaa5-ec1c-42a6-8f17-f7c94891b43f': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '631fd441-0955-49da-9376-1cba24764aa7', 'taskResult': 'success', 'taskState': 'finished'}, 'b4fe0c6d-d458-4ed2-a9e2-2c0d41914b8f': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '67e1a2e8-3747-43fa-b0dd-fc469a6f6a02', 'taskResult': 'success',
'taskState': 'finished'}}}

On the RHEV/ovirt manager …

Continue reading

RHEV/ovirt - find stucked / zombie tasks

Posted on Sun 14 August 2016 in ovirt • Tagged with KVM, Linux, RHEV, rev, redhat • 1 min read

Random notes

$ vdsClient -s 0 getAllTasksStatuses
$ vdsClient stopTask 
$ vdsClient clearTask 
$ su - postgres
$ psql -d engine -U postgres
> select * from job order by start_time desc;
> select DeleteJob('702e9f6a-e2a3-4113-bd7d-3757ba6bc4ef');


/usr/share/ovirt-engine/dbscripts/ -c "select * from job;"

entropy inside a virtual machine

Posted on Thu 30 June 2016 in Linux • Tagged with ceph, kvm, linux, notepad • 1 min read

Sometimes my ceph-(test!)deployments inside a VM failed.

The Problem is that the kernel/cpu can not provide enough entropy (random numbers) for the ceph-create-keys command - so it stuck/hang. It is not a ceph problem! This can also happen with ssl commands.

But first things first - we need …

Continue reading

Openstack Horizon - leapyear bug

Posted on Mon 29 February 2016 in openstack • Tagged with Openstack, SUSE Cloud 5, SUSE Cloud 6, linux, openstack, suse • 2 min read

Switching the language in the dashboard ends with a error.

"day is out of range for month"


[Mon Feb 29 09:20:05 2016] [error] Internal Server Error: /settings/
[Mon Feb 29 09:20:05 2016] [error] Traceback (most recent call last …

Continue reading

openvswitch and OpenFlow

Posted on Fri 04 September 2015 in Linux • Tagged with ovs, linux, notepad, openflow, openvswitch • 2 min read


Layer 1

ovs-ofctl del-flow BRIDGE
ovs-ofctl add-flow BRIDGE priority=500,in_port=1,actions=output:2
ovs-ofctl add-flow BRIDGE priority=500,in_port=2,actions=output:1
ovs-ofctl dump-flows BRIDGE

Layer 2

ovs-ofctl del-flow BRIDGE
ovs-ofctl add-flow BRIDGE dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02 …

Continue reading