Ceph recovery issue

Our ceph environment only has one network, so that internal and public uses the same network.

When the number of osd changes, huge data transferring will cause client has no access to ceph.

In this case, limit internal net flow...

Read More

Ceph recovery issue

Our ceph environment only has one network, so that internal and public uses the same network. When the number of osd changes, huge data transferring will cause client has no access to ceph. In this case, limit internal net flow...

Read More

Ceph resize journal disk

  • set osd with ‘noout’ so that the data will not migrate

ceph osd set noout

  • stop osd which need resize journal

service ceph stop osd.N

  • flush his journal to the filestore
  • ...
Read More

SSH not support dsa and rsa keys

After upgrading my system and recovering my keys, I cannot ssh to any other servers with my private key. I check the keys over and over again, there’s no reason the keys are wrong.

Google some articles, I find the...

Read More

Openstack(Juno) Nova config params

Controller (with network node)

  • nova.conf

egrep -v '^$|^#' nova.conf

[DEFAULT] verbose=False debug=False dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge logdir=/var/log/nova state_path=/var/lib/nova lock_path=/var/lock/nova force_dhcp_release=True libvirt_use_virtio_for_bridges=True api_paste_config=/etc/nova/api-paste.ini enabled_apis=osapi_compute,metadata auth_strategy = keystone memcached_servers=controller1,controller2,controller3 rpc_backend = rabbit rabbit_hosts = controller1,controller2,controller3...
      
Read More

Openstack(Juno) Neutron config params

Controller (with network node)

  • neutron.conf

egrep -v '^$|^#' neutron.conf

[DEFAULT] verbose = False debug = False state_path = /var/lib/neutron lock_path = $state_path/lock api_paste_config = api-paste.ini core_plugin = ml2 service_plugins = router...
      
Read More

Cinder delete volume with error state

While I’m using tgt+lvm as cinder backend, it’s possible that the volume goes into error-deleting after delete the volume.

Log shows

Stderr: 'device-mapper: remove ioctl failed: Device or resource busy\nCommand failed\n'

But how does it stay...

Read More

How to limit bandwidth in nova by editing flavor

From early release, nova can limit bandwidth by using kvm xml files. Just add extra specs within flavors in order to limit vm quota.

nova flavor-key nlimit set quota:vif_outbound_average=20

This makes vm using flavor nlimit have only 20KB/s...

Read More

Issue with time drift and usb-tablet

When RHEL5 run on vm, it makes the physical machine high cpu load while the vm is still in idle state.

Three ways to solve this problem:

  1. upgrade kernel to a newer version(i.e 3.2)

  2. add Read More

Install Dnscrypt on Ubuntu 14.10 via ppa

Since shnatsel’s ppa doesn’t have dnscrypt-proxy for ubuntu(14.10, 14.04 and 12.04), I’ve found a new ppa that we can install and update dnscrypt.

sudo add-apt-repository ppa:anton+/dnscrypt 
sudo apt-get update 
Read More

Mysql Foreign Key Error with errno 150

When execute ALTER TABLE ADD FOREIGN KEY or create table with foreign keys, you would get MySQL Foreign Key Problem (errno: 150). It means that a foreign key constraint was not correctly formed.

To avoid this error, please...

Read More