hpacucli Error: No controllers detected

I have a HP Proliant server that is using hardware RAID for the boot disk but when I used hpacucli no status was shown

root@linux:~ # hpacucli ctrl all show config

Error: No controllers detected.

Verified if I have RAID and the server model

root@linux:~ # lspci | grep -i raid
02:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Gen8 Controllers (rev 01)

root@linux:~ # dmidecode | grep -i proliant
Product Name: ProLiant DL380p Gen8
Family: ProLiant

I had hpacucli 8.70 and I read that old versions that causes problems like this. So I uninstalled

root@linux:~ # rpm -qa | grep hpacucli
hpacucli-8.70-8.0.i386

root@linux:~ # rpm -e hpacucli

And installed the newest version

root@linux:~ # rpm -ivh /tmp/hpacucli-9.40-12.0.x86_64.rpm
Preparing… ########################################### [100%]
1:hpacucli ########################################### [100%]

DOWNGRADE NOTE: To downgrade this application to any version prior to 9.10.x.x, the current RPM must be manually uninstalled using the “rpm -e” command before any prior versions can be installed.

LOCKING NOTE: The locking mechanism starting with versions 9.10.X.X, are not compatible with prior versions of the applications. Therefore, mixing older and newer versions of the various applications (ACU, HPACUCLI, HPACUSCRIPTING) is not recommended.

After this, the utility was showing my drives

root@linux:~ # hpacucli ctrl all show config

Smart Array P420i in Slot 0 (Embedded) (sn: 001438027AE8760)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, OK)

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

SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380 (WWID: 5001438027AE876F)

Installing Oracle Java 8 Update 31 plugin in Firefox – Linux

I have a Red Hat Enterprise Linux 5 and I want to install Java 8 with the browser plugin.

root@linux:~ # cat /etc/*release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

In order to do that, go to http://www.java.com/en/download/manual.jsp and download the corresponding version according to your machine. I choose Linux x64 RPM

root@linux:/tmp # rpm -ivh jre-8u31-linux-x64.rpm
Preparing… ########################################### [100%]
1:jre1.8.0_31 ########################################### [100%]
Unpacking JAR files…
rt.jar…
jsse.jar…
charsets.jar…
localedata.jar…
jfxrt.jar…

Go to /usr/lib64/mozilla/plugins and create a link

root@linux:/usr/lib64/mozilla/plugins # ln -s /usr/java/jre1.8.0_31/lib/amd64/libnpjp2.so libnpjp2.so
root@linux:/usr/lib64/mozilla/plugins # ls -l
total 0
lrwxrwxrwx 1 root root 41 Jun 9 2014 libflashplayer.so -> /usr/lib64/flash-plugin/libflashplayer.so
lrwxrwxrwx 1 root root 41 Jul 7 2014 libjavaplugin.so -> /etc/alternatives/libjavaplugin.so.x86_64
lrwxrwxrwx 1 root root 43 Jan 28 15:18 libnpjp2.so -> /usr/java/jre1.8.0_31/lib/amd64/libnpjp2.so

Verify if the plugin is being loaded typing about:plugins in the address bar

Suse Linux 11 stuck at boot: Set System Time to the current Hardware Clock

I was having a problem with a SLES 11 running under VMware where it stuck at boot.
Set System Time to the current Hardware Clock
To solve this problem I booted in single user mode and moved the script that sets the time

root@linux:~ # mv /etc/init.d/boot.clock /root

How to remove Default Profile button that showed up in Google Chrome

You are horrified that this button have appeared.
Default Profile
To disable it, type in the address bar chrome://flags/#enable-new-avatar-menu and select Disabled
Default Profile Flags
Click on the Relaunch now button that showed on the botton of the screen.

pvmove: Insufficient free space with both disks the same size

I was migrating some LUNs to another storage.

After creating the LUNs with the same size, I intended to move the data to the new disk but I was getting there was insufficient free space

root@linux:~ # pvmove /dev/mapper/bkpcvrdd01 /dev/mapper/bkpcvrdd01newp1
Insufficient free space: 12800 extents needed, but only 12799 available
Unable to allocate mirror extents for pvmove0.
Failed to convert pvmove LV to mirrored

What happens is that the source disk is bigger than the new disk.

root@linux:~ # pvdisplay /dev/mapper/bkpcvrdd01 /dev/mapper/bkpcvrdd01newp1
— Physical volume —
PV Name /dev/mapper/bkpcvrdd01
VG Name bkpcvrdvg
PV Size 50.00 GB / not usable 640.00 KB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 12800
Free PE 0
Allocated PE 12800
PV UUID giRfdd-oDKH-12W7-ObwE-nFoN-nF0L-3OFlK5

— Physical volume —
PV Name /dev/mapper/bkpcvrdd01newp1
VG Name bkpcvrdvg
PV Size 50.00 GB / not usable 3.31 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 12799
Free PE 12799
Allocated PE 0
PV UUID MXxLNF-hDbU-eaEp-0wyW-ly1l-N1FJ-Bh2fNk

Both are the same size but due to the physical structure, each disk shows a different size.

Run fdisk -l and observe the size. This is the disk after a LUN expansion.

root@linux:~ # fdisk -l /dev/mapper/bkpcvrdd01new

Disk /dev/mapper/bkpcvrdd01new: 54.2 GB, 54223962112 bytes
255 heads, 63 sectors/track, 6592 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/bkpcvrdd01newp1 1 6592 52950208+ 8e Linux LVM

Now compare both disk sizes:

53.6 GB, 53687746560 bytes
53.6 GB, 53686370304 bytes

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.

Follow

Get every new post delivered to your Inbox.

Join 1,096 other followers

%d bloggers like this: