Remove virbr0 interface in Linux

virbr0 is an ethernet bridge

root@linux:~ # ifconfig virbr0
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:7630 (7.4 KiB)

You use brctl to manage the interface.
brctl is used to set up, maintain, and inspect the ethernet bridge configuration in the linux kernel

root@linux:~ # brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes

Verify if libvirtd is running

root@linux:~ # service libvirtd status
libvirtd (pid 12529) is running…

Verify if there is any host running. In my case there isn’t

root@linux:~ # virsh list
Id Name State
———————————-

This is the default network set-up for the virtual machines

root@linux:~ # virsh net-list
Name State Autostart
—————————————–
default active yes

To remove first I’ll make sure the service libvirtd won’t be started automatically on next boot

root@linux:~ # chkconfig –list | grep -i lib
libvirt-guests 0:off 1:off 2:off 3:on 4:on 5:on 6:off
libvirtd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

root@linux:~ # chkconfig libvirt-guests off
root@linux:~ # chkconfig libvirtd off

Destroy the network default

root@linux:~ # virsh net-destroy default
Network default destroyed

And undefine the network default

root@linux:~ # virsh net-undefine default
Network default has been undefined

Stop the libvirtd service

root@linux:~ # service libvirtd stop
Stopping libvirtd daemon: [ OK ]

The interface virbr0 is now gone

root@linux:~ # ifconfig virbr0
virbr0: error fetching interface information: Device not found

Source: http://unixhood.com/main/2013/07/30/how-to-disableremove-virbr0-nat-interface-in-linux-kvm/

Mozilla Thunderbird showing error about disk space and there is disk space

Thunderbird complaining about disk space

Mozilla Thunderbird shows the error message: “There is not enough disk space to download new messages. Try deleting old mail, emptying the Trash folder, and compacting your mail folders, and then try again.”

You verify and there is plenty of disk space.

This is happening because Mozilla Thunderbird is a 32 bit application and your inbox folder has more than 2GB of email.

To solve your problem, create a new folder and then copy your email to it.
Delete your emails from the inbox and then run Compact Folders.
Close Mozilla Thunderbird and open it again. Your email should be downloading.

HP iLO 2 ClassNotFoundException com.hp.ilo2.remcons.remcons.class

You must have seen the dialog box with the error message when using the Remote Console applet that uses Java.
ClassNotFoundException

There is no definite solution. Use the Integrated Remote Console with Internet Explorer.

If you want to try some solutions:

First you verify if you are running the latest Java version. Some browsers refuse to load the applet if isn’t running the latest version.
Verify Java version

Check if the iLO 2 firmware isn’t too old. Upgrade to the latest version.
iLO 2 Firmware
Copy your configuration and then perform a factory reset to defaults in HP iLO 2 and then reconfigure it.

Nothing garantees that it will work but some people reported success with the steps shown above.

Migrating from RAID 0 to RAID 1 in an HP Smart Array

I have two disks in an HP Smart Array P410 and one disk is configured as a logicaldrive.

root@linux:~ # hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 5001438010849BE0)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 0, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)

unassigned

physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

In order to do that, I’ll add the drive to the logical drive using the command below. Note that I can’t using the current configuration.

root@linux:~ # hpacucli ctrl slot=0 ld 1 add drives=1I:1:3

Error: This operation is not supported with the current configuration. Use the
“show” command on devices to show additional details about the
configuration.

I also try to modify the RAID to RAID 1 in this logical drive.

root@linux:~ # hpacucli ctrl slot=0 ld 1 modify raid=1

Error: This operation is not supported with the current configuration. Use the
“show” command on devices to show additional details about the
configuration.

According to Smart Array P410i Controller Technical Specifications

The HP Smart Array P410 is an 8 Port Serial Attached SCSI (SAS) RAID controller. The P410 is designed for RAID applications and can be upgraded with the 512MB battery-backed write cache (BBWC) or 512MB / 1GB flash-backed write cache (FBWC) and the Smart Array Advanced Pack.

Management Features:
Online array expansion (with BBWC/FBWC upgrade)
Online Advanced Capacity Expansion (with BBWC/FBWC and Smart Array Advanced Pack upgrade)
Online logical drive extension (with BBWC/FBWC upgrade)
Online RAID level migration (with BBWC/FBWC upgrade)
Online strip size migration (with BBWC/FBWC upgrade)
Offline Mirror splitting and recombining (with BBWC/FBWC and Smart Array Advanced Pack upgrade)
Unlimited global online spare assignment
User selectable expand and rebuild priority
User selectable RAID level and stripe size
User selectable read and write cache sizes

That means that you must have the Battery-Based Write Cache  (BBWC) or Flash-Based Write Cache (FBWC) upgrade in order to do that.

To check if you have BBWC, run hpacucli ctrl all show config detail and verify if it shows Battery/Capacitor Count: 1

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 150,000 times in 2014. If it were an exhibit at the Louvre Museum, it would take about 6 days for that many people to see it.

Click here to see the complete report.

Emulex OneConnect initialization failed

I have a HP Proliant BL685C G7 and both network interfaces are missing.

Rebooted the server and it showed some messages from the network card

be2net 0000:05:00.0 Waiting for POST, 58s elapsed
be2net 0000:05:00.0 POST timeout; stage=0xb00
be2net 0000:05:00.0 PCI INT A disabled
be2net 0000:05:00.0 Emulex OneConnect initialization failed
be2net: probe of 0000:05:00.0 failed with error -1
ACPI: PCI Interrupt Link [I031] enabled at IRQ 29

According to this document HP Store All Storage – Interface ETH 4 and ETH 5 are Missing it is a physical hardware failure and you need to contact HP – even though that the affected equipment is a storage I believe it is the same case with the server.

There is also another document be2net Driver Fails to Initialize where it shows that the NIC fails to initiate and asks you to update to update to a newer kernel or upgrade the NIC firmware. In this case the server’s OS was upgraded recently and firmware updated.

be2net 0000:10:00.0: Emulex OneConnect 10Gbps NIC initialization failed
be2net: probe of 0000:10:00.0 failed with error -1

hpacucli takes a long time to respond

If run hpacucli and your server is taking a long time to respond, it is because HP decided to change the hpacucli utility to scan multiple LUNs connected via Fibre or iSCSI storage

root@linux:~ # time hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 500143801176C960)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (136.7 GB, RAID 1, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143801176C96F)

real 2m25.058s
user 0m0.083s
sys 0m0.071s

Type INFOMGR_BYPASS_NONSA=1 to disable the scan hpacucli. To reenable type export -n INFOMGR_BYPASS_NONSA

root@linux:~# export INFOMGR_BYPASS_NONSA=1
root@linux:~# time hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 50014380226F2BA0)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380226F2BAF)

real 0m0.931s
user 0m0.130s
sys 0m0.167s

Source: http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c03696601

Removing vpath disks coming from IBM storage

root@linux:~ # datapath query device

Total Devices : 7

DEV#: 0 DEVICE NAME: vpathk TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000097
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdaw CLOSE NORMAL 0 0
1 Host1Channel0/sdbd CLOSE NORMAL 0 0
2 Host1Channel0/sdai CLOSE NORMAL 173 0
3 Host1Channel0/sdap CLOSE NORMAL 106 0
4 Host0Channel0/sdu CLOSE NORMAL 0 0
5 Host0Channel0/sdab CLOSE NORMAL 0 0
6 Host0Channel0/sdg CLOSE NORMAL 80 0
7 Host0Channel0/sdn CLOSE NORMAL 236 0

DEV#: 1 DEVICE NAME: vpathn TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000092
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdax CLOSE NORMAL 0 0
1 Host1Channel0/sdaj CLOSE NORMAL 9294 0
2 Host1Channel0/sdaq CLOSE NORMAL 0 0
3 Host0Channel0/sdv CLOSE NORMAL 0 0
4 Host1Channel0/sdac CLOSE NORMAL 9067 0
5 Host0Channel0/sda CLOSE NORMAL 8218 0
6 Host0Channel0/sdh CLOSE NORMAL 7460 0
7 Host0Channel0/sdo CLOSE NORMAL 0 0

DEV#: 2 DEVICE NAME: vpathl TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000096
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sday CLOSE NORMAL 1819009 0
1 Host1Channel0/sdak CLOSE NORMAL 0 0
2 Host1Channel0/sdar CLOSE NORMAL 1818549 0
3 Host0Channel0/sdw CLOSE NORMAL 1820897 0
4 Host1Channel0/sdad CLOSE NORMAL 0 0
5 Host0Channel0/sdb CLOSE NORMAL 0 0
6 Host0Channel0/sdi CLOSE NORMAL 0 0
7 Host0Channel0/sdp CLOSE NORMAL 1804045 0

DEV#: 3 DEVICE NAME: vpathm TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000091
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdaz CLOSE NORMAL 0 0
1 Host1Channel0/sdal CLOSE NORMAL 100105 0
2 Host1Channel0/sdas CLOSE NORMAL 0 0
3 Host0Channel0/sdq CLOSE NORMAL 0 0
4 Host0Channel0/sdx CLOSE NORMAL 0 0
5 Host1Channel0/sdae CLOSE NORMAL 95597 0
6 Host0Channel0/sdc CLOSE NORMAL 96473 0
7 Host0Channel0/sdj CLOSE NORMAL 95534 0

DEV#: 4 DEVICE NAME: vpathh TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000095
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdba CLOSE NORMAL 160 0
1 Host1Channel0/sdam CLOSE NORMAL 0 0
2 Host1Channel0/sdat CLOSE NORMAL 219 0
3 Host0Channel0/sdr CLOSE NORMAL 254 0
4 Host0Channel0/sdy CLOSE NORMAL 370 0
5 Host1Channel0/sdaf CLOSE NORMAL 0 0
6 Host0Channel0/sdd CLOSE NORMAL 0 0
7 Host0Channel0/sdk CLOSE NORMAL 0 0

DEV#: 5 DEVICE NAME: vpathi TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000094
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdbb CLOSE NORMAL 4959899 0
1 Host1Channel0/sdag CLOSE NORMAL 0 0
2 Host1Channel0/sdan CLOSE NORMAL 0 0
3 Host1Channel0/sdau CLOSE NORMAL 4956162 0
4 Host0Channel0/sds CLOSE NORMAL 5032326 0
5 Host0Channel0/sdz CLOSE NORMAL 5055897 0
6 Host0Channel0/sde CLOSE NORMAL 0 0
7 Host0Channel0/sdl CLOSE NORMAL 0 0

DEV#: 6 DEVICE NAME: vpathj TYPE: 2145 POLICY: Optimized Sequential
SERIAL: 600507680191818c1000000000000093
============================================================================
Path# Adapter/Hard Disk State Mode Select Errors
0 Host1Channel0/sdbc CLOSE NORMAL 3715251 0
1 Host1Channel0/sdah CLOSE NORMAL 0 0
2 Host1Channel0/sdao CLOSE NORMAL 0 0
3 Host1Channel0/sdav CLOSE NORMAL 3743916 0
4 Host0Channel0/sdt CLOSE NORMAL 3823190 0
5 Host0Channel0/sdaa CLOSE NORMAL 3800038 0
6 Host0Channel0/sdf CLOSE NORMAL 0 0
7 Host0Channel0/sdm CLOSE NORMAL 0 0

Use the command rmvpath to remove all paths

root@linux:~ # rmvpath
Continuing will remove all IBM vpath devices.
Do you want to continue (y/n)?: n

This is a little man page for the rmvpath command

root@linux:~ # rmvpath ?

NAME
rmvpath — remove IBM vpath devices.

SYNOPSIS
rmvpath [OPTION]… [VPATH]

DESCRIPTION
rmvpath can be invoked with no options or with the name
of a specific vpath device to remove, and/or a specific
configuration file.

OPTIONS
-f [FILENAME] indicate a specific configuration file to update
rmvpath will default to /etc/vpath.conf
[VPATH] if no vpath is specified, all IBM vpath
devices will be removed
debug prints debug information to stdout

DEFAULTS
o default configuration file is /etc/vpath.conf
o all vpaths are removed

To remove /dev/vpath4, updating /tmp/configuration:

rmvpath -f /tmp/configuration vpath4

I removed only the vpathi disk here

root@linux:~ # rmvpath vpathi
Remove vpathi requested
Deleting file: /dev/vpathi

Source: Implementing Linux with IBM Disk Storage

Updating iLO3 firmware on a Proliant BL685c G7 running RHEL 5

I have a ProLiant BL685c G7 and I will update iLO3 firmware

Go to http://www8.hp.com/us/en/drivers.html
Search by the product name ProLiant BL685c G7
Select your operating system. In my case Red Hat Linux Enterprise 5 Server (x86-64)
Select Firmware – Lights-Out Management and download the file

Copy the file to the server and make it executable
root@linux:~ # chmod 700 CP022551.scexe

iLO3 was running version 1.55 and was upgraded to 1.80

root@linux:~ # ./CP022551.scexe

FLASH_iLO3 v1.09 for Linux (Jan 23 2013)
(C) Copyright 2002-2013 Hewlett-Packard Development Company, L.P.
Firmware image: ilo3_180.bin
Current iLO 3 firmware version 1.55; Serial number ILOUSE253RVDV

Component XML file: CP022551.xml
CP022551.xml reports firmware version 1.80
This operation will update the firmware on the
iLO 3 in this server with version 1.80.
Continue (y/N)?y
Current firmware is 1.55 (Jan 24 2013 )
Firmware image is 0x801664(8394340) bytes
Committing to flash part…
******** DO NOT INTERRUPT! ********
Flashing completed.
Attempting to reset device.
Succeeded.
***** iLO 3 reboot in progress (may take up to 60 seconds.)
***** Please ignore console messages, if any.
iLO 3 reboot completed.

Sun Cluster 3.1: Listener probe timed out two times consecutively

Oct 19 22:01:02 solaris10node1 SC[SUNWscor.oracle_listener.monitor]:dbs-oracle-proddb-rg:lsn-oraproddb-01-res: [ID 523531 user.error] Listener probe timed out two times consecutively

This error was appearing in one server because every night a full database export was being done. The listener was being overloaded.

Follow

Get every new post delivered to your Inbox.

Join 2,092 other followers

%d bloggers like this: