setaOffice

Unix Intelligence Gathering

Filezilla error: Could not write to transfer socket: ECONNABORTED – Connection aborted

Posted by Emerson Takahashi on February 25, 2013

The connection was being dropped during a FTP transfer.

We saw on the error logs that a timeout was occuring and it seems to be documented on the Filezilla Wiki: Timeouts on large files.

Two alternatives to solve this problem

  • Change the protocol that you’re connecting from FTP to SFTP
    Site Manager - Protocol SFTP
  • Set the connection to make an active transfer instead of a passive transfer
    Site Manager - Active FTP transfers
About these ads

Posted in Windows 7 | Tagged: | Comments Off

Error adding disk partition to LVM – Device /dev/mapper/mpath1p1 not found (or ignored by filtering)

Posted by Emerson Takahashi on February 25, 2013

I’ve tried to add a disk partition to the LVM but I was receiving the message “Device /dev/mapper/mpath1p1 not found (or ignored by filtering)”

root@linux:~ # multipath -ll mpath1
mpath1 (360060e800573b800000073b800001703) dm-24 HP,OPEN-V*3
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:0:4 sdi 8:128 [active][ready]
\_ 1:0:0:4 sdk 8:160 [active][ready]

I created a new msdos label on this disk, partitioned the disk and then I ran kpartx to make the partition available to the operating system

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

The device file was created

root@linux:~ # ls -l /dev/mapper/mpath1*
brw-rw—- 1 root disk 253, 24 Feb 22 17:22 /dev/mapper/mpath1
brw-rw—- 1 root disk 253, 27 Feb 22 17:24 /dev/mapper/mpath1p1

Checking the disk partition

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

Disk /dev/mapper/mpath1: 536.8 GB, 536871567360 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/mpath1p1 1 65270 524281243+ 8e Linux LVM

I running into trouble to add this disk partition to the LVM.

root@linux:~ # pvcreate /dev/mapper/mpath1p1
Device /dev/mapper/mpath1p1 not found (or ignored by filtering).

This problem was resolved by editing the file /etc/lvm/lvm.conf and configuring the following filter

filter = [ "a|cciss/.*|", "a|mapper/.*|", "r|/dev/sd.*|", "r|/dev/dm-.*|" ]

Posted in Linux | Tagged: | Comments Off

HP-UX – route add and route delete

Posted by Emerson Takahashi on February 20, 2013

To add a route in HP-UX, use the following command

root@hp-ux:/ # route add net 10.32.12.128 netmask 255.255.255.128 10.32.32.1 1
add net 10.32.12.128: gateway 10.32.32.1

And to delete a route in HP-UX, use the following command

root@hp-ux:/ # route delete net 10.32.12.128 netmask 255.255.255.128 10.32.32.1 1
delete net 10.32.12.128: gateway 10.32.32.1

To permanently add the route, add the configuration to the file /etc/rc.config.d/netconf

ROUTE_DESTINATION[7]=”10.32.12.128″
ROUTE_MASK[7]=”255.255.255.128″
ROUTE_GATEWAY[7]=”10.32.32.1″
ROUTE_COUNT[7]=”1″
ROUTE_ARGS[7]=”"

Posted in HP-UX | Tagged: | Comments Off

Install Java in Red Hat Enterprise Linux 5

Posted by Emerson Takahashi on January 22, 2013

To install Java in RHEL 5, you enable the RHEL Server Supplementary and then install the java-1.6.0-sun and java-1.6.0-sun-plugin packages

root@rhel5:/ # yum install java-1.6.0-sun-plugin

Posted in Linux | Tagged: , | Comments Off

How to measure processor clock speed in AIX

Posted by Emerson Takahashi on December 11, 2012

To know the clock frequency of an IBM Power processor in AIX run pmcycles

root@aix:/ # pmcycles
This machine runs at 1200 MHz

To know the individual frequency of each processor, run pmcycles

root@aix:/ # pmcycles -m
CPU 0 runs at 1200 MHz
CPU 1 runs at 1200 MHz
CPU 2 runs at 1200 MHz
CPU 3 runs at 1200 MHz

Posted in AIX, Hardware | Tagged: | Comments Off

AIX wall message: WARNING!!! The system is now operating with a power problem. This message will be walled every 12 hours. Remove this crontab entry after the problem is resolved

Posted by Emerson Takahashi on November 6, 2012

An AIX system displayed this message

Broadcast message from root@aix (tty) at 12:00:01 … rc.powerfail:2::WARNING!!! The system is now operating with a power problem. This message will be walled every 12 hours. Remove this crontab entry after the problem is resolved.

This message is called from cron at 12:00PM everyday

root@aix:/ # crontab -l
0 00,12 * * * wall%rc.powerfail:2::WARNING!!! The system is now operating with a power problem. This message will be walled every 12 hours. Remove this crontab entry after the problem is resolved.

I did this to check if there is still a problem

root@aix:/ # sh /etc/rc.powerfail > /dev/console 2>&1

Broadcast message from root@aix (pts/1) at 12:18:49 … rc.powerfail: init has received a SIGPWR signal. The system currently running under normal power conditions. Execute rc.powerfail -h as the root user for more information. ^G^G^G^G

According to the response shown above. My system is running under normal power conditions. Here is the help for the script

root@aix:/ # sh /etc/rc.powerfail -h
rc.powerfail:
This command is used to handle power problems with the system.
There are several different states that the system can be in when
the signal SIGPWR is received by init. The action taken will be
determined by the value of the power status. The following table
shows the values of the power status and action taken.
Power
Status Indication
—— —————————————————————-
0 System is running normally, there is no action taken.
1 A non-critical cooling problem exists.
2 A non-critical power problem exists.
3 System facing a critical condition. Will start shutdown in 10 minutes.
4 System facing a severe condition. Will be halted in the next 20 seconds.
255 ERROR with the machstat command, system shutdown starts immediately. ^G^G^G^G

Other codes

root@aix:/ # sh /etc/rc.powerfail > /dev/console 2>&1

Broadcast message from root@aix (pts/1) at 14:58:56 …

rc.powerfail: init has received a SIGPWR signal.
The system is now operating with a non-critical power problem.
Execute rc.powerfail -h as the root user for more information. ^G^G^G^G

Posted in AIX | Tagged: | Comments Off

Logrotate configuration for nscd

Posted by Emerson Takahashi on October 18, 2012

I wrote a section for nscd log rotation

Edited /etc/logrotate.conf file and added:

# system-specific logs may be also be configured here.
/var/log/nscd.log {
missingok
size=100M
create 644 root root
rotate 4
postrotate
/bin/kill -HUP `cat /var/run/nscd/nscd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

I followed the HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples

Posted in Linux | Tagged: , | Comments Off

Tivoli Storage Manager – discover which is the server that is making the backups

Posted by Emerson Takahashi on September 25, 2012

To check the server that is making the backups, check which is the host that the client is establishing the connection. In this case is the host called TSMSERVER

root@linux:~ # dsmc q file
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 3.0
Client date/time: 08/08/11 17:30:49
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LINUX
Session established with server TSMSERVER: AIX-RS/6000
Server Version 5, Release 4, Level 6.0
Server date/time: 08/08/11 17:30:37 Last access: 08/08/11 17:20:07

# Last Incr Date Type File Space Name
— ————– —- —————
1 03/01/11 03:05:21 REISERFS /
2 04/14/11 17:49:16 REISERFS /boot
3 03/03/11 15:08:10 EXT3 /logs
4 06/18/10 21:37:39 REISERFS /opt
5 06/18/10 22:17:30 REISERFS /usr
6 06/18/10 21:39:56 REISERFS /usr/software
7 06/18/10 21:38:53 REISERFS /var

Posted in Tivoli Data Protector | Tagged: | Comments Off

Checking the hard drive model in an HP Smart Array

Posted by Emerson Takahashi on September 25, 2012

To discover the model of the hard drive that is in an HP Smart Array, type the following command

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

Smart Array P400i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number:
Cache Serial Number: PA82C0H9SV5DJS
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Chassis Slot:
Hardware Revision: Rev D
Firmware Version: 7.22
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 100% Read / 0% Write
Drive Write Cache: Disabled
Total Cache Size: 256 MB
No-Battery Write Cache: Disabled
Battery/Capacitor Count: 0
SATA NCQ Supported: True

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

Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Stripe Size: 128 KB
Status: Interim Recovery Mode
Array Accelerator: Enabled
Unique Identifier: 600508B100184839535635444A530004
Disk Name: /dev/cciss/c0d0
Mount Points: /boot 1.0 GB
Logical Drive Label: A01123B864C1
Mirror Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
Mirror Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 0 MB, Failed)

physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDC
Serial Number: 3NM7VLAB00009915WTN0
Model: HP DG146BB976
PHY Count: 2
PHY Transfer Rate: 3.0GBPS, Unknown
physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: Failed
Drive Type: Data Drive
Interface Type: SAS
Size: 0 MB
Firmware Revision: HPDC
Serial Number: READ_CAPACITY FAILED
Model: HP DG146BB976
PHY Count: 1
PHY Transfer Rate: Unknown

This will be handy when you have to replace a faulty disk

root@linux:~ # hpacucli ctrl all show config

Smart Array P400i in Slot 0 (Embedded) (sn: )

array A (SAS, Unused Space: 0 MB)

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

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, 0 MB, Failed)

Posted in Hardware, Linux, Solaris | Tagged: | Comments Off

Getting IP address after installing CentOS / Red Hat Linux in a virtual machine

Posted by Emerson Takahashi on September 24, 2012

I installed a VirtualBox/Parallels Desktop virtual machine with CentOS 6 and it didn’t automatically set up the network card with DHCP. I needed to add the following configuration to the file

root@centos:/etc/sysconfig/network-scripts # vi ifcfg-eth0
DEVICE=”eth0″
HWADDR=”00:1C:42:C0:FF:EE”
NM_CONTROLLED=”yes”
ONBOOT=”yes
BOOTPROTO=”dhcp”

Then restart the network service

root@centos:/etc/sysconfig/network-scripts # service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0… done.
[ OK ]

Posted in Linux | Tagged: , | Comments Off

 
Follow

Get every new post delivered to your Inbox.

Join 288 other followers

%d bloggers like this: