Skip to main content

dpkg: warning: files list file for package ‘lsof’ missing; assuming package has no files currently installed

Some errors got installing/removing packages after repairing a broken root file system:

dpkg: warning: files list file for package 'lsof' missing; assuming package has no files currently installed

I fixed these messages creating the package file list again:

dpkg-deb -c /var/cache/apt/archives/lsof_4.86+dfsg-1_amd64.deb | awk {'print $6'} | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' > /var/lib/dpkg/info/lsof.list

And then:

# apt-get -d install lsof --reinstall

Check if jumbo frames are working

This is a simple post showing how to test if large MTU is working in your network using ping tool:

When jumbo frames are not enabled in all networking devs:

# ping -s 8000 -M do -c 5 172.16.64.75
PING 172.16.64.75 (172.16.64.75) 2000(2028) bytes of data.
From 172.16.64.68 icmp_seq=1 Frag needed and DF set (mtu = 1500)
From 172.16.64.68 icmp_seq=1 Frag needed and DF set (mtu = 1500)
From 172.16.64.68 icmp_seq=1 Frag needed and DF set (mtu = 1500)
From 172.16.64.68 icmp_seq=1 Frag needed and DF set (mtu = 1500)
From 172.16.64.68 icmp_seq=1 Frag needed and DF set (mtu = 1500)

--- 172.16.64.75 ping statistics ---
0 packets transmitted, 0 received, +5 errors

And with enabled jumbo frames:

# ping -s 8000 -M do -c 5 172.16.64.75
PING 172.16.64.75 (172.16.64.75) 8000(8028) bytes of data.
8008 bytes from 172.16.64.75: icmp_seq=1 ttl=64 time=0.461 ms
8008 bytes from 172.16.64.75: icmp_seq=2 ttl=64 time=0.360 ms
8008 bytes from 172.16.64.75: icmp_seq=3 ttl=64 time=0.402 ms
8008 bytes from 172.16.64.75: icmp_seq=4 ttl=64 time=0.410 ms
8008 bytes from 172.16.64.75: icmp_seq=5 ttl=64 time=0.347 ms

--- 172.16.64.75 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.347/0.396/0.461/0.040 ms

/usr/sbin/irqbalance: irq X affinity_hint subset empty

 

I found these messages  in my Ubuntu 14.04 server filling the syslog:

 

Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 121 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 122 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 123 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 124 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 125 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 126 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 133 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 134 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 135 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 136 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 137 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 138 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 146 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 147 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 148 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 149 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 150 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 151 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 158 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 159 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 160 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 161 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 162 affinity_hint subset empty
Jul 4 14:49:14 h80-stack01 /usr/sbin/irqbalance: irq 163 affinity_hint subset empty

Seems to be a bug reported in Ubuntu, to avoid it, I followed these steps:

Edit file /etc/init/irqbalance.conf and change the line

exec /usr/sbin/irqbalance $DOPTIONS

for

exec /usr/sbin/irqbalance $OPTIONS $DOPTIONS

Edit /etc/default/irqbalance and add this line:

OPTIONS="--hintpolicy=ignore"

The file should look like this:

#Configuration for the irqbalance daemon

#Should irqbalance be enabled?
ENABLED="1"
#Balance the IRQs only once?
ONESHOT="0"
OPTIONS="--hintpolicy=ignore"

Finally restart irqbalance service:

$ sudo service irqbalance restart

If the service restart does not work try rebooting machine.

ceph HEALTH_ERR 1 pgs inconsistent; 2 scrub errors

 

Today I found some errors in my ceph cluster:

$ ceph health detail
HEALTH_ERR 1 pgs inconsistent; 2 scrub errors
pg 4.b is active+clean+inconsistent, acting [6,13,15]
2 scrub errors

Looking for this pg in the primary OSD:

$ grep 4.b /var/log/ceph/*
/var/log/ceph/ceph-osd.6.log:2014-07-07 08:46:17.253344 7f49cdc55700 0 log [ERR] : 4.b shard 6: soid 35ea2f8b/rbd_data.18486a2ae8944a.0000000000002441/head//4 digest 2737967484 != known digest 1957685266
/var/log/ceph/ceph-osd.6.log:2014-07-07 08:46:17.253348 7f49cdc55700 0 log [ERR] : 4.b shard 13: soid 35ea2f8b/rbd_data.18486a2ae8944a.0000000000002441/head//4 digest 2737967484 != known digest 1957685266
/var/log/ceph/ceph-osd.6.log:2014-07-07 08:46:17.253494 7f49cdc55700 0 log [ERR] : 4.b deep-scrub 0 missing, 1 inconsistent objects
/var/log/ceph/ceph-osd.6.log:2014-07-07 08:46:17.253499 7f49cdc55700 0 log [ERR] : 4.b deep-scrub 2 errors

 

I tryed ceph pg repair command on this pg:

$ ceph pg repair 4.b
instructing pg 4.b on osd.6 to repair

 

And, after few minutes, the pg seems to be healthy again:

$ ceph health detail
HEALTH_OK

 

And querying this pg with ceph pg 4.b query command

{ "state": "active+clean",
  "epoch": 15555,
  "up": [
        6,
        13,
        15],
  "acting": [
        6,
        13,
        15],
  "actingbackfill": [
        "6",
        "13",
        "15"],

 

Looking for this pg in the ceph log again shows that this was fixed:

$ grep 4.b /var/log/ceph/*
/var/log/ceph/ceph-osd.6.log:2014-07-07 09:43:10.062293 7f49cdc55700 0 log [ERR] : 4.b shard 6: soid 35ea2f8b/rbd_data.18486a2ae8944a.0000000000002441/head//4 digest 2737967484 != known digest 1957685266
/var/log/ceph/ceph-osd.6.log:2014-07-07 09:43:10.062306 7f49cdc55700 0 log [ERR] : 4.b shard 13: soid 35ea2f8b/rbd_data.18486a2ae8944a.0000000000002441/head//4 digest 2737967484 != known digest 1957685266
/var/log/ceph/ceph-osd.6.log:2014-07-07 09:43:10.062423 7f49cdc55700 0 log [ERR] : 4.b repair 0 missing, 1 inconsistent objects
/var/log/ceph/ceph-osd.6.log:2014-07-07 09:43:10.062447 7f49cdc55700 0 log [ERR] : 4.b repair 2 errors, 2 fixed

Notice: Undefined variable: wp_sh_class_name in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Notice: Undefined variable: wp_sh_class_name in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048