Quantcast
Channel: Emerson . – setaOffice
Viewing all 312 articles
Browse latest View live

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

$
0
0

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.


Filed under: Solaris Tagged: thunderbird

Remove virbr0 interface in Linux

$
0
0

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/


Filed under: Linux Tagged: brctl, chkconfig, ifconfig, virsh

pvmove: Insufficient free space with both disks the same size

$
0
0

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


Filed under: Linux Tagged: fdisk, pvdisplay, pvmove

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

$
0
0

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.


Filed under: Chrome Tagged: chrome, default profile, google

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

$
0
0

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


Filed under: Linux Tagged: mv

Installing Oracle Java 8 Update 31 plugin in Firefox – Linux

$
0
0

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


Filed under: Games, Linux Tagged: ln, rpm

hpacucli Error: No controllers detected

$
0
0

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)


Filed under: Hardware, Linux Tagged: dmidecode, hpacucli

Disk showing Failed LUN paths in HP-UX

$
0
0

Displaying Lun paths to the LUN

root@hp-ux:~ # scsimgr -p lun_map -D /dev/rdisk/disk31
lunpath:61:0/2/1/0.0x21230002ac001673.0x4001000000000000:fibre_channel:FAILED:AUTH_FAILED
lunpath:62:0/2/1/0.0x21230002ac001673.0x4002000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:71:0/5/1/0.0x20240002ac001673.0x4001000000000000:fibre_channel:FAILED:AUTH_FAILED
lunpath:72:0/5/1/0.0x20240002ac001673.0x4002000000000000:fibre_channel:ACTIVE:ACTIVE

Displaying the LUN to the lunpath mapping

root@hp-ux:~ # ioscan -m lun /dev/rdisk/disk31
Class I Lun H/W Path Driver S/W State H/W Type Health Description
=======================================================================
disk 31 64000/0xfa00/0x8c esdisk CLAIMED DEVICE limited 3PARdataVV
0/2/1/0.0x21230002ac001673.0x4001000000000000
0/2/1/0.0x21230002ac001673.0x4002000000000000
0/5/1/0.0x20240002ac001673.0x4001000000000000
0/5/1/0.0x20240002ac001673.0x4002000000000000
/dev/disk/disk31 /dev/rdisk/disk31

root@hp-ux:~ # scsimgr get_info -D /dev/rdisk/disk31

STATUS INFORMATION FOR LUN : /dev/rdisk/disk31

Generic Status Information

SCSI services internal state = ONLINE
Device type = Direct_Access
EVPD page 0x83 description code = 1
EVPD page 0x83 description association = 0
EVPD page 0x83 description type = 3
World Wide Identifier (WWID) = 0x50002ac0031a1673
Serial number = ” 1405747″
Vendor id = “3PARdata”
Product id = “VV ”
Product revision = “3131”
Other properties = “”
SPC protocol revision = 6
Open count (includes chr/blk/pass-thru/class) = 1
Raw open count (includes class/pass-thru) = 0
Pass-thru opens = 0
LUN path count = 4
Active LUN paths = 2
Standby LUN paths = 0
Failed LUN paths = 2
Maximum I/O size allowed = 2097152
Preferred I/O size = 2097152
Outstanding I/Os = 0
I/O load balance policy = round_robin
Path fail threshold time period = 0
Transient time period = 120
Tracing buffer size = 1024
LUN Path used when policy is path_lockdown = NA
LUN access type = NA
Asymmetric logical unit access supported = No
Asymmetric states supported = NA
Preferred paths reported by device = No
Preferred LUN paths = 0

Driver esdisk Status Information :

Capacity in number of blocks = 213909504
Block size in bytes = 512
Number of active IOs = 0
Special properties =
Maximum number of IO retries = 45
IO transfer timeout in secs = 30
FORMAT command timeout in secs = 86400
START UNIT command timeout in secs = 60
Timeout in secs before starting failing IO = 120
IO infinite retries = false

I saw two failed LUN paths. To validate disk paths to the disk I use scsimgr

root@hp-ux:~ # scsimgr -f replace_wwid -D /dev/rdisk/disk31
scsimgr: Successfully validated binding of LUN paths with new LUN.

The invalid ones were removed

root@hp-ux:~ # ioscan -m lun /dev/rdisk/disk31
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 31 64000/0xfa00/0x8c esdisk CLAIMED DEVICE online 3PARdataVV
0/2/1/0.0x21230002ac001673.0x4002000000000000
0/5/1/0.0x20240002ac001673.0x4002000000000000
/dev/disk/disk31 /dev/rdisk/disk31


Filed under: HP-UX Tagged: ioscan, scsimgr

Discover disk model to replace in an HP Proliant running Linux

$
0
0

You ran hpacucli to verify the internal disks in an HP Proliant Server and one of them is failed.

root@linux:~ # hpacucli ctrl all show config
Smart Array P410i in Slot 0 (Embedded) (sn: 5001438013FD2D00)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, Interim Recovery Mode)

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

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 5001438013FD2D0F)

To discover the hard disk model, run hpacucli ctrl all show config detail and look for the physical drive model

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

Smart Array P410i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: 5001438013FD2D00
Cache Serial Number: PBCDH0CRH1TCEG
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Hardware Revision: C
Firmware Version: 5.76
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 3 secs
Surface Scan Mode: Idle
Queue Depth: Automatic
Monitor and Performance Delay: 60 min
Elevator Sort: Enabled
Degraded Performance Optimization: Disabled
Inconsistency Repair Policy: Disabled
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 15 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 25% Read / 75% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
Total Cache Memory Available: 400 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Capacitors
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: Failed Physical Drive
Array Type: Data

One of the drives on this array have failed or has been removed.

Logical Drive: 1
Size: 279.4 GB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 256 KB
Status: Interim Recovery Mode
Caching: Enabled
Unique Identifier: 600508B1001CD2D750A3CD6D749784BC
Disk Name: /dev/cciss/c0d0
Mount Points: /boot 250 MB
OS Status: LOCKED
Logical Drive Label: AEB333F050014380108763703899
Mirror Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, Failed)
Mirror Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
Drive Type: Data

physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: Failed
Last Failure Reason: Write retries failed
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPD4
Serial Number: ECA1PC20D4NR1205
Model: HP EG0300FBDSP
Current Temperature (C): 25
Maximum Temperature (C): 36
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown

physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPD4
Serial Number: EB01PC20V2RK1205
Model: HP EG0300FBDSP
Current Temperature (C): 28
Maximum Temperature (C): 35
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250
Device Number: 250
Firmware Version: RevC
WWID: 5001438013FD2D0F
Vendor ID: PMCSIERA
Model: SRC 8x6G

Then go to HP/Compaq Hard Disk Drives – Hard Drive Model Number Matrix and search for the hard drive model that showed when you got the details.

If you didn’t find the disk on the list, try this other list – HP/Compaq SCSI Hard Disk Drives – Hard Drive Model Number Matrix


Filed under: Hardware, Linux Tagged: hpacucli

Trying to install Storage Foundation Basic on CentOS? It doesn’t work

$
0
0

Running Storage Foundation Basic installer was giving me an error message saying perl was not found

root@centos6veritas:/tmp/veritas/dvd3-sfbasic/rhel6_x86_64# ./installer
Error: Cannot find perl to execute ./installer

The installer script checks the binary on the directory of your distribution/perl. Since this is not a genuine Red Hat Enterprise Linux, a workaround is needed.

root@centos6veritas:/tmp/veritas/dvd3-sfbasic/rhel6_x86_64/perl # ln -s RHEL6x8664 SLES10x8664

root@centos6veritas:/tmp/veritas/dvd3-sfbasic/rhel6_x86_64/perl # ls -l
total 4
drwxrwxr-x. 4 root root 4096 Oct 28 07:16 RHEL6x8664
lrwxrwxrwx. 1 root root 10 Feb 21 00:41 SLES10x8664 -> RHEL6x8664

Thanks to the Symantec Storage Foundation 6.2 Release Notes – Linux: Storage Foundation Basic cannot be installed on the Oracle Enterprise Linux platform (3651391) I found why the installer wasn’t working.

But in the end the installer will refuse to install and quit because it expects a Red Hat Enterprise Linux or Oracle Linux

Estimated time remaining: (mm:ss) 0:10 2 of 8

Checking system communication ………………………………………………………………………………………………………………………… Done
Checking release compatibility ……………………………………………………………………………………………………………………… Failed

System verification checks completed

The following errors were discovered on the systems:

CPI ERROR V-9-20-1208 This release is intended to operate on OL and RHEL Linux distributions but centos6veritas is a CentOS system

installer log files and summary file are saved at:

/opt/VRTS/install/logs/installer-201502210042QRK

Would you like to view the summary file? [y,n,q] (n)


Filed under: Linux, Veritas Volume Manager Tagged: perl

Using sanlun: NetApp utility for gathering information about LUNs

$
0
0

To map NetApp LUNs, use the command sanlun

root@linux:~ # sanlun lun show
controller(7mode/E-Series)/ device host lun
vserver(cDOT/FlashRay) lun-pathname filename adapter protocol size product
—————————————————————————————————————————————–
dataontap01 /vol/linux_fcdisk5/linux_fcdisk5.lun /dev/sdag host5 FCP 66.0g 7DOT
dataontap01 /vol/linux_fcdisk5/linux_fcdisk5.lun /dev/sdaa host3 FCP 66.0g 7DOT
dataontap01 /vol/linux_fcdisk6/linux_fcdisk6.lun /dev/sdah host5 FCP 142.0g 7DOT
dataontap01 /vol/linux_fcdisk6/linux_fcdisk6.lun /dev/sdab host3 FCP 142.0g 7DOT
dataontap01 /vol/linux_fcdisk4/linux_fcdisk4.lun /dev/sdaf host3 FCP 100g 7DOT
dataontap01 /vol/linux_fcdisk3/linux_fcdisk3.lun /dev/sdae host3 FCP 350.0g 7DOT
dataontap01 /vol/linux_fcdisk2/linux_fcdisk2.lun /dev/sdad host3 FCP 250g 7DOT
dataontap01 /vol/linux_fcdisk1/linux_fcdisk1.lun /dev/sdac host3 FCP 160.0g 7DOT
dataontap01 /vol/linux_fcdisk4/linux_fcdisk4.lun /dev/sdz host5 FCP 100g 7DOT
dataontap01 /vol/linux_fcdisk2/linux_fcdisk2.lun /dev/sdx host5 FCP 250g 7DOT
dataontap01 /vol/linux_fcdisk3/linux_fcdisk3.lun /dev/sdy host5 FCP 350.0g 7DOT
dataontap01 /vol/linux_fcdisk1/linux_fcdisk1.lun /dev/sdw host5 FCP 160.0g 7DOT

To show NetApp LUN multipath information you need to use the command and pass -p command switch

root@linux:~ # sanlun lun show -p

ONTAP Path: dataontap01:/vol/linux_fcdisk2/linux_fcdisk2.lun
LUN: 1
LUN Size: 250g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d4b_softwarevg(360a980004257492f5724464c54412d4b)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdx host5 1b
up secondary sdad host3 1b

ONTAP Path: dataontap01:/vol/linux_fcdisk4/linux_fcdisk4.lun
LUN: 3
LUN Size: 100g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d4f_softwarevg(360a980004257492f5724464c54412d4f)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdz host5 1b
up secondary sdaf host3 1b

ONTAP Path: dataontap01:/vol/linux_fcdisk1/linux_fcdisk1.lun
LUN: 0
LUN Size: 160.0g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d49_softwarevg(360a980004257492f5724464c54412d49)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdw host5 1b
up secondary sdac host3 1b

ONTAP Path: dataontap01:/vol/linux_fcdisk6/linux_fcdisk6.lun
LUN: 5
LUN Size: 142.0g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d53_softwarevg(360a980004257492f5724464c54412d53)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdah host5 1b
up secondary sdab host3 1b

ONTAP Path: dataontap01:/vol/linux_fcdisk3/linux_fcdisk3.lun
LUN: 2
LUN Size: 350.0g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d4d_softwarevg(360a980004257492f5724464c54412d4d)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdy host5 1b
up secondary sdae host3 1b

ONTAP Path: dataontap01:/vol/linux_fcdisk5/linux_fcdisk5.lun
LUN: 4
LUN Size: 66.0g
Controller CF State: Cluster Enabled
Controller Partner: dataontap02
Product: 7DOT
Host Device: VG_2d51_softwarevg(360a980004257492f5724464c54412d51)
Multipath Policy: round-robin 0
Multipath Provider: Native
——— ———- ——- ———— ———————————————-
host controller controller
path path /dev/ host target
state type node adapter port
——— ———- ——- ———— ———————————————-
up primary sdag host5 1b
up secondary sdaa host3 1b


Filed under: Linux Tagged: sanlun

multipath: /sbin/scsi_id exitted with 1 – cannot get the the wwid for cciss!c0d0

$
0
0

Whenever you run multipath and shows the message cannot get the the wwid for cciss!c0d0

root@linux:~ # multipath -ll oradisk004
/sbin/scsi_id exitted with 1
cannot get the the wwid for cciss!c0d0
oradisk004 (360060e800573b800000073b8000012d2) dm-12 HP,OPEN-V
[size=50G][features=1 queue_if_no_path][hwhandler=1 hp-sw][rw]
\_ round-robin 0 [prio=8][active]
\_ 1:0:0:3 sdd 8:48 [active][ready]
\_ 2:0:0:3 sdh 8:112 [active][ready]

Edit file /etc/multipath.conf and verify if you are blacklisting the cciss drive

blacklist {
devnode “^cciss!c[0-9]d[0-9]*”
}


Filed under: Linux Tagged: multipath

Error when updating Google Chrome: Public key for google-chrome-release-version.x86_64.rpm is not installed

$
0
0

When you update your Fedora desktop, you may receive a message complaining about a public key for Google Chrome not installed on your system

Public key for google-chrome-stable-41.0.2272.76-1.x86_64.rpm is not installed

Update the repository file and add the gpgkey parameter. If you want to install, you can also create this file and then yum install google-chrome-stable

root@fedora:~ # vi /etc/yum.repos.d/google-chrome.repo

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Then run again yum update or yum install google-chrome-stable and it will automatically import the public key

warning: /var/cache/yum/x86_64/21/google-chrome/packages/google-chrome-stable-41.0.2272.76-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Retrieving key from https://dl-ssl.google.com/linux/linux_signing_key.pub
Importing GPG key 0x7FAC5991:
Userid : “Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>”
Fingerprint: 4cca 1eaf 950c ee4a b839 76dc a040 830f 7fac 5991
From : https://dl-ssl.google.com/linux/linux_signing_key.pub


Filed under: Linux Tagged: yum

Linux LVM: pvs showing dm-XX. How to map and show the friendly name (alias)

$
0
0

When listing the disks used by LVM and it shows only dm, you can make it display the multipath friendly name

root@linux:~ # pvs
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p2 rootvg lvm2 a- 135.69G 11.69G
/dev/dm-0 softwarevg lvm2 a- 100.00G 30.00G
/dev/dm-1 softwarevg lvm2 a- 100.00G 0
/dev/dm-2 softwarevg lvm2 a- 100.00G 0
/dev/dm-33 softwarevg lvm2 a- 100.99G 100.99G
/dev/dm-6 bkpcvrdvg lvm2 a- 50.00G 0
/dev/dm-7 softwarevg lvm2 a- 100.00G 0
/dev/dm-8 softwarevg lvm2 a- 50.00G 0

Edit file /etc/lvm/lvm.conf and tell LVM to not use the cache file. Set write_cache_state to 0

root@linux:~ # vi /etc/lvm/lvm.conf
write_cache_state = 0

And delete the cache file

root@linux:~ # rm /etc/lvm/.cache

It should be displaying with the friendly names

root@linux:~ # pvs
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p2 rootvg lvm2 a- 135.69G 11.69G
/dev/mapper/bkpdisk01-part1 bkpcvrdvg lvm2 a- 50.00G 0
/dev/mapper/sfwdisk01-part1 softwarevg lvm2 a- 100.00G 0
/dev/mapper/sfwdisk02-part1 softwarevg lvm2 a- 50.00G 0
/dev/mapper/sfwdisk03 softwarevg lvm2 a- 100.00G 0
/dev/mapper/sfwdisk04 softwarevg lvm2 a- 100.00G 30.00G
/dev/mapper/sfwdisk05 softwarevg lvm2 a- 100.00G 0
/dev/mapper/sfwdisk05_NEW1 softwarevg lvm2 a- 100.99G 100.99G

If you need to map, go to /dev/mapper and do a long listing. Search for the number after the 253,. Eg. dm-33 is the sfwdisk05_NEW1

root@linux:/dev/mapper # ls -l
total 0
brw——- 1 root root 253, 18 Dec 16 10:56 bkpcvrdvg-apliclv
brw——- 1 root root 253, 19 Dec 16 10:56 bkpcvrdvg-bkpcvrdlv
brw——- 1 root root 253, 3 Dec 16 10:56 bkpdisk01
brw——- 1 root root 253, 6 Dec 16 10:56 bkpdisk01-part1
lrwxrwxrwx 1 root root 16 Dec 16 10:56 control -> ../device-mapper
brw——- 1 root root 253, 28 Mar 13 05:45 mpathe
brw——- 1 root root 253, 29 Mar 13 05:45 mpathf
brw——- 1 root root 253, 30 Mar 13 05:45 mpathg
brw——- 1 root root 253, 31 Mar 13 05:45 mpathh
brw——- 1 root root 253, 32 Mar 13 05:45 mpathi
brw——- 1 root root 253, 9 Dec 16 10:57 rootvg-auditlv
brw——- 1 root root 253, 10 Dec 16 10:57 rootvg-locallv
brw——- 1 root root 253, 11 Dec 16 10:57 rootvg-optlv
brw——- 1 root root 253, 12 Dec 16 10:56 rootvg-rootlv
brw——- 1 root root 253, 13 Dec 16 10:56 rootvg-swaplv
brw——- 1 root root 253, 14 Dec 16 10:57 rootvg-tmplv
brw——- 1 root root 253, 15 Dec 16 10:58 rootvg-userslv
brw——- 1 root root 253, 16 Dec 16 10:58 rootvg-usrlv
brw——- 1 root root 253, 17 Dec 16 10:58 rootvg-varlv
brw——- 1 root root 253, 4 Dec 16 10:56 sfwdisk01
brw——- 1 root root 253, 7 Dec 16 10:56 sfwdisk01-part1
brw——- 1 root root 253, 5 Dec 16 10:56 sfwdisk02
brw——- 1 root root 253, 8 Dec 16 10:56 sfwdisk02-part1
brw——- 1 root root 253, 1 Dec 16 10:56 sfwdisk03
brw——- 1 root root 253, 0 Dec 16 10:56 sfwdisk04
brw——- 1 root root 253, 2 Dec 16 10:56 sfwdisk05
brw——- 1 root root 253, 27 Mar 13 09:24 sfwdisk05_NEW
brw——- 1 root root 253, 33 Mar 13 09:26 sfwdisk05_NEW1
brw——- 1 root root 253, 25 Dec 16 12:25 softwarevg-applv
brw——- 1 root root 253, 26 Dec 16 10:56 softwarevg-arqlv
brw——- 1 root root 253, 21 Dec 16 10:56 softwarevg-deploylv
brw——- 1 root root 253, 22 Dec 16 10:56 softwarevg-logslv
brw——- 1 root root 253, 24 Dec 16 10:56 softwarevg-oraclelv
brw——- 1 root root 253, 20 Dec 16 10:56 softwarevg-softwarelv
brw——- 1 root root 253, 23 Dec 16 10:56 softwarevg-transferlv


Filed under: Linux Tagged: pvs

ia64dsk: The disk for dev_t d00009b appears to have grown since the partition table was written.

$
0
0

We are seeing a message about a disk to have grown since the partition table was written.

We had a storage migration using an HP MPX200 router

root@hp-ux:~ # dmesg

Mar 19 14:33

09b appears to have grown since the partition table was written.
ia64dsk: The disk for dev_t d00009b appears to have grown since the partition table was written.

To identify the disk, check /dev

root@hp-ux:~ # ls -ltraR /dev | grep 009b
crw-r—– 1 bin sys 13 0x00009b Feb 12 14:29 disk30
brw-r—– 1 bin sys 1 0x00009b Feb 12 14:29 disk30

According to idisk, we need to use -G option but it is not documented on the manual page

root@hp-ux:~ # idisk -p /dev/rdisk/disk30
idisk version: 1.44

EFI Primary Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0x65182f71
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x117fffff
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x117fffbf
LastUsableLbaHi = 0x0
Disk GUID = 9d7ea890-0835-11e4-8000-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x6c45b3e0

Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 9d7eaaf2-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0x40
Starting Lba Hi = 0x0
Ending Lba Lo = 0xf9fff
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = 9d7eab10-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x117377ff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 9d7eab24-0835-11e4-8000-d6217b60e588
Starting Lba Lo = 0x11737800
Starting Lba Hi = 0x0
Ending Lba Lo = 0x117ff7ff
Ending Lba Hi = 0x0
NOTE: This disk appears to have grown since the partition
table was written. Use idisk with the -G option to
extend the usable space to fill the disk.

There should be a difference in cylinders and blocks between the two disks that is causing this message


Filed under: HP-UX Tagged: dmesg, idisk, ls

HPOM – UXMON: File /var/log/messages age exceeds 1d threshold.

$
0
0

Removed file /var/opt/OV/conf/OpC/act_mon.cfg that had some configuration about the file /var/log/messages

################################################################################
#
# The intention of this script is to monitor the last modification time of a
# file, or to monitor its size. This is used to supervise other programs or
# scripts which have to write regularly to their logfile. If a program or a
# script doesn’t modify “its” file, there is probably something wrong with this process.
#
# If the configured interval is exceeded for the file which is intended to be
# monitored, or if the size is above or below the configured limit (depending
# on whether the size threshold has a < or > modifier),
# a log-message is written
#
#
################################################################################

[LINUX]
/var/log/cron 2d WARNING 0000-2400 * TT_LINUX
/var/log/messages 1d warning 0000-2400 * TT_LINUX


Filed under: HPOM

UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur.

$
0
0

Having this problem alerted on a Linux system

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-03-24 19:54:33
Message : UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.
Msg Group : OS
Application : ntpmon
Object : ntpq
Event Type :
not_found

Instance Name :
not_found

Instruction : This message shows no valid peers

Please, contact with your UX expert

Please check /var/opt/OV/log/OpC/ntp_mon.log for more details

Verifying the log file I noticed the following

root@linux:~ # tail -50 /var/opt/OV/log/OpC/ntp_mon.log
NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.”

It is using the fake driver even if it is configured to use 4 NTP servers configured

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 38 64 377 0.000 0.000 0.001
NTP1server 172.16.73.51 4 u 5 16 1 31.138 -15.569 0.001
NTP2server 172.16.73.9 3 u 4 16 1 26.626 -15.001 0.001
NTP3server 172.16.73.50 5 u 3 16 1 23.416 -16.803 0.001
NTP4server 172.16.73.51 4 u 2 16 1 28.340 -10.889 0.001

Stopped NTP service and it was still listening

root@linux:~ # service ntp stop
Shutting down network time protocol daemon (NTPD) done

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 65 64 377 0.000 0.000 0.001
NTP1server 172.16.73.51 4 u – 16 377 30.697 -18.969 2.157
NTP2server 172.16.73.9 3 u 13 16 377 26.172 -1.256 1.121
NTP3server 172.16.73.50 5 u 11 16 377 23.315 -12.326 8.230
NTP4server 172.16.73.51 4 u 16 16 377 28.309 -11.716 2.544

Found that there was already another NTP process running

root@linux:~ # ps -ef | grep ntp
root 23339 1 0 2014 ? 00:38:38 ntpd -pq
root 30880 23657 0 10:07 pts/8 00:00:00 grep ntp

Killed the process

root@linux:~ # kill 23339
root@linux:~ # ps -ef | grep ntp
root 30918 23657 0 10:07 pts/8 00:00:00 grep ntp

NTP stopped listening

root@linux:~ # ntpq -p
ntpq: read: Connection refused

Started NTO service

root@linux:~ # service ntp start
Starting network time protocol daemon (NTPD) done

root@linux:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
NTP1server 172.16.73.51 4 u 5 16 1 31.138 -15.569 0.001
NTP2server 172.16.73.9 3 u 4 16 1 26.626 -15.001 0.001
NTP3server 172.16.73.50 5 u 3 16 1 23.416 -16.803 0.001
NTP4server 172.16.73.51 4 u 2 16 1 28.340 -10.889 0.001


Filed under: HPOM

device-mapper: create ioctl failed: Device or resource busy

$
0
0

I was trying to create the device file partition but I was receiving an error message

root@linux:~ # kpartx -a /dev/mapper/mpathm
device-mapper: create ioctl failed: Device or resource busy
create/reload failed on mpathm1

The disk already had a partition. Let’s use dmsetup to see what we have

root@linux:~ # dmsetup ls | grep mpathm
mpathm-part1 (253, 38)
mpathm (253, 32)

We already have a mpathm registered so we need to remove

root@linux:~ # dmsetup remove mpathm-part1

Then retry

root@linux:~ # kpartx -a /dev/mapper/mpathm
root@linux:~ #


Filed under: Linux Tagged: dmsetup, kpartx

UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

$
0
0

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-03-24 19:54:33
Message : UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.
Msg Group : OS
Application : ntpmon
Object : ntpq
Event Type :
not_found

Instance Name :
not_found

Instruction : This message shows no valid peers

Please, contact with your UX expert

Please check /var/opt/OV/log/OpC/ntp_mon.log for more details

Checking /var/opt/OV/log/OpC/ntp_mon.log shows the following message:

Mon Mar 30 09:04:47 2015 : NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

Edit file /etc/ntp.conf to not use the local clock

root@linux:~ # vi /etc/ntp.conf
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10


Filed under: HPOM Tagged: ntp, vi

Where to download (HP) fibreutils package?

$
0
0

You can get the fibreutils package on the ISO image for HP Service Pack for Proliant on hp/swpackages directory

root@linux:~ # rpm -qi fibreutils
Name : fibreutils Relocations: (not relocatable)
Version : 3.2 Vendor: Hewlett-Packard Company
Release : 3 Build Date: Wed 04 May 2011 11:34:14 PM BRT
Install Date: Fri 28 Oct 2011 06:42:26 PM BRST Build Host: localhost.localdomain
Group : Applications/System Source RPM: fibreutils-3.2-3.src.rpm
Size : 73160 License: Proprietary
Signature : (none)
Packager : Hewlett-Packard Company
URL : http://www.hp.com
Summary : Provides complimentary programs and scripts for HP supported fibre channel HBAs
Description :
This RPM has the following components:

* Miscellaneous scripts and programs to compliment HP supported FC drivers:

lssd
lssg
adapter_info
hp_rescan
scsi_info

root@linux:~ # lssd -h
Usage: /usr/bin/lssd [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # lssg -h
Usage: /usr/bin/lssg [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # adapter_info -h
NAME

adapter_info

DESCRIPTION

Prints information about Fibre Channel HBAs/CNAs.

OPTIONS

-d, –device – Prints all information for a specific SCSI host adapter
-h, –help – Prints this help message
-i, –versioninfo – Prints driver version information for all HBAs
-l, –luns – Prints the device information for all HBAs
-m, –model – Prints the HBA model for all HBAs
-p, –pciids – Prints the PCI IDs for all HBAs
-r, –remoteports – Prints the attached remote ports for all HBAs
-v, –verbose – Prints all information except device and LUN information

root@linux:~ # hp_rescan -h
NAME

hp_rescan

DESCRIPTION

Sends the rescan signal to all or selected Fibre Channel HBAs/CNAs.

OPTIONS

-a, –all – Rescan all Fibre Channel HBAs
-h, –help – Prints this help message
-i, –instance – Rescan a particular instance
-l, –list – List all supported Fibre Channel HBAs

root@linux:~ # scsi_info
syntax: scsi_info


Filed under: Linux Tagged: adapter_info, hprescan, lssd, lssg, scsi_info
Viewing all 312 articles
Browse latest View live